<?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 echo wp_kses_post( $module->get_menu( $settings, $module ) ); ?>
		</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 echo wp_kses_post( $module->get_menu( $settings, $module ) ); ?>
	</div>

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