????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/header/
Upload File :
Current File : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/header/header-menu-mobile-icons.php

<?php
/**
 * Mobile Icons Header Menu.
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Partials
 * @version 3.0.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Menu Location
$menu_location = apply_filters( 'tb_main_menu_location', 'main_menu' );

// Multisite global menu
$ms_global_menu = apply_filters( 'tb_ms_global_menu', false );

// Display if menu is defined
if ( has_nav_menu( $menu_location ) || $ms_global_menu ) : ?>

	<?php
	// Closing toggle for the sidr mobile menu style
	if ( 'sidr' == tb_global_obj( 'mobile_menu_style' ) ) : ?>

		<div id="sidr-close"><a href="#sidr-close" class="toggle-sidr-close"></a></div>

	<?php endif; ?>

	<div id="mobile-menu" class="clr tb-hidden">
		<a href="#mobile-menu" class="mobile-menu-toggle"><?php echo apply_filters( 'tb_mobile_menu_open_button_text', '<span class="fa fa-navicon"></span>' ); ?></a>
		<?php
		// Output icons if the mobile_menu region has a menu defined
		if ( has_nav_menu( 'mobile_menu' ) ) {
			if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ 'mobile_menu' ] ) ) {
				$menu = wp_get_nav_menu_object( $locations[ 'mobile_menu' ] );
				if ( ! empty( $menu ) ) {
					$menu_items = wp_get_nav_menu_items( $menu->term_id );
					foreach ( $menu_items as $key => $menu_item ) {
						if ( in_array( $menu_item->title, tb_get_awesome_icons() ) ) {
							$url = $menu_item->url;
							$attr_title = $menu_item->attr_title; ?>
							<a href="<?php echo $url; ?>" title="<?php echo $attr_title; ?>" class="mobile-menu-extra-icons mobile-menu-<?php echo $menu_item->title; ?>">
								<span class="fa fa-<?php echo $menu_item->title; ?>"></span>
							</a>
					<?php }
					}
				}
			}
		} ?>
	</div><!-- #mobile-menu -->

<?php endif; ?>