<?php
/**
 *  UABB Creative Menu Module front-end file
 *
 *  @package UABB Creative Menu
 */

?>
<?php
if ( 'always' === $settings->creative_menu_mobile_breakpoint ) {
	if ( 'default' === $settings->creative_mobile_menu_type || 'below-row' === $settings->creative_mobile_menu_type ) {
		?>
		<div class="uabb-creative-menu
		<?php
		if ( $settings->creative_menu_collapse ) {
			echo ' uabb-creative-menu-accordion-collapse';}
		?>
		uabb-menu-default">
			<?php $module->get_toggle_button(); ?>
				<div class="uabb-clear"></div>
				<?php
				$menu_html = $module->get_menu( $settings, $module );
				echo ( ! is_null( $menu_html ) ? wp_kses_post( $menu_html ) : '' );
				?>
		</div>
	<?php } else { ?>
		<?php
		echo $module->get_responsive_media( $settings, $module ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	}
} else {
	?>
	<div class="uabb-creative-menu
	<?php
	if ( $settings->creative_menu_collapse ) {
		echo ' uabb-creative-menu-accordion-collapse';}
	?>
	uabb-menu-default">
		<?php $module->get_toggle_button(); ?>
			<div class="uabb-clear"></div>
			<?php
			$menu_html = $module->get_menu( $settings, $module );
			echo ( ! is_null( $menu_html ) ? wp_kses_post( $menu_html ) : '' );
			?>
	</div>

	<?php
	echo $module->get_responsive_media( $settings, $module ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
