Exemplo n.º 1
0
 function widget($args, $instance)
 {
     // Get menu
     $select_nav_menu = !empty($instance['select_nav_menu']) ? wp_get_nav_menu_object($instance['select_nav_menu']) : false;
     if (!$select_nav_menu) {
         return;
     }
     $instance['title'] = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo $args['before_title'] . $instance['title'] . $args['after_title'];
     }
     wp_nav_menu_select(array('theme_location' => $select_nav_menu));
     echo $args['after_widget'];
 }
Exemplo n.º 2
0
echo esc_url(home_url('/'));
?>
" title="<?php 
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home"><?php 
bloginfo('name');
?>
</a></h1>
			<h2 class="site-description"><?php 
bloginfo('description');
?>
</h2>
		</hgroup>

		<nav id="site-navigation" class="navigation-main grid-100 hide-on-mobile" role="navigation">
			<?php 
wp_nav_menu(array('theme_location' => 'primary'));
?>
		</nav><!-- #site-navigation -->
		
		<nav id="site-navigation-select" class="navigation-main-select hide-on-desktop mobile-grid-100" role="navigation">
			<?php 
wp_nav_menu_select(array('theme_location' => 'primary'));
?>
		</nav><!-- #site-navigation-select -->
		
	</header><!-- #masthead -->

	<div id="main" class="site-main">
Exemplo n.º 3
0
?>


                <div id="topnavi">
                <?php 
wp_nav_menu(array('theme_location' => 'main-menu', 'menu_class' => 'sf-menu sf-vertical regular-menu', 'fallback_cb' => 'wp_page_menu'));
?>
                       
        
                <?php 
//test if mobile device
$detect = new Mobile_Detect();
if ($detect->isMobile()) {
    wp_nav_menu_select(array('theme_location' => 'main-menu', 'menu_class' => 'sf-menu mobile-menu', 'fallback_cb' => 'wp_page_menu'));
} else {
    wp_nav_menu_select(array('theme_location' => 'main-menu', 'menu_class' => 'sf-menu responsive-menu', 'fallback_cb' => 'wp_page_menu'));
}
?>
        
                </div><!-- #topnavi -->
                
                <div class="clear"></div>

                <?php 
if (of_get_option('gg_searchbar')) {
    ?>
<div id="search-left">     
                <?php 
    get_template_part('searchform');
    ?>
                </div>  
Exemplo n.º 4
0
    ?>
/img/main-bg.jpg');"
    <?php 
}
?>
>
	<h1><a title="<?php 
bloginfo('name');
?>
" href="<?php 
echo home_url();
?>
"><?php 
bloginfo('name');
?>
</a></h1>
	<nav class="nav_container">
		<div class="container">
			<?php 
wp_nav_menu(array('container_class' => 'main_nav', 'items_wrap' => '<ul id="%1$s" class="%2$s" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">%3$s</ul>', 'theme_location' => 'primary'));
?>
                  <button id="search" class="icon search" title="Desplegar Buscador"></button>
                  <a class="icon user login" href="/wp-login.php" title="Iniciar Sesión"></a>
		</div>
            <?php 
wp_nav_menu_select(array('theme_location' => 'select-menu', 'menu_class' => 'custom-class'));
?>
	</nav>
</header>
  <?php 
get_search_form();
Exemplo n.º 5
0
        ?>
            <ul class="main_menu">
                <?php 
        wp_list_pages(array('title_li' => false));
        ?>
            </ul>
            <?php 
    }
    ?>
            
             <?php 
    if (has_nav_menu('main')) {
        ?>
		<div class="mobileTopMenu_wrap">
		   <?php 
        echo wp_nav_menu_select();
        ?>
		</div>
            <?php 
    } else {
        ?>
                <div class="mobileTopMenu_wrap">
                        <?php 
        wp_dropdown_pages(array('name' => 'mobileTopMenu'));
        ?>
                </div>
            <?php 
    }
    ?>
        </div>
    </nav>
Exemplo n.º 6
0
         'echo' => true,
         'before' => '<span class="navcurrent_left"></span>',
         'after' => '<span class="navcurrent_right"></span><div class="lineamenu"></div>',
         'link_before' => '',
         'link_after' => '',
         'depth' => 0,
         'walker' => new description_walker())
         );*/
?>

        <?php 
wp_nav_menu_zenite(array('theme_location' => 'zenite-menu'));
?>

                <?php 
wp_nav_menu_select(array('theme_location' => 'select-menu'));
?>
      </nav>
      
      </header>
  </div>
  <!-- //END wrapper_header -->
  <!--<div class="franja"></div>-->

</div>
<script type="text/javascript">
/*
  $(function(){
    $(".myMenu").buildMenu(
    {
      template:"menuVoices.html",
Exemplo n.º 7
0
<header>
	<div class="container">
		<h1><a href="http://anacapa-tech.net" target="_blank>"><img src="<?php 
echo get_stylesheet_directory_uri() . '/img/logo.png';
?>
" alt="<?php 
bloginfo('name');
?>
" /></a></h1>
		<h2 id="description"><?php 
bloginfo('description');
?>
</h2>
		<div id="search"><?php 
get_search_form();
?>
</div>
		<?php 
wp_nav_menu(array('container' => 'nav', 'container_class' => '', 'container_id' => 'primary', 'menu_id' => 'dropmenu', 'menu_class' => '', 'theme_location' => 'primary'));
?>
		<?php 
wp_nav_menu_select(array('theme_location' => 'primary', 'menu_class' => 'select-menu'));
?>
		
	</div>
</header>
<div id="main" role="main">
	<div class="container">