function section_template() { 
		global $post; 			?>
	<div id="nav_row" class="main_nav fix">
<?php 			
		
		if(function_exists('wp_nav_menu')){
			
			wp_nav_menu( array('menu_class'  => 'main-nav'.pagelines_nav_classes(), 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location'=>'primary', 'fallback_cb'=>'pagelines_nav_fallback') );
			
		}else{ pagelines_nav_fallback(); }
	
		if(!pagelines_option('hidesearch')){ get_search_form(); }
		
		?>
	</div>

<?php }
 	function section_template() { 
	
			pagelines_main_logo(); 
			pagelines_register_hook( 'brandnav_after_brand', 'brandnav' ); // Hook
		?>
		
			<div class="inline-nav main_nav fix">		
<?php 	
				if(function_exists('wp_nav_menu')){

					wp_nav_menu( array('menu_class'  => 'main-nav'.pagelines_nav_classes(), 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location'=>'primary', 'fallback_cb'=>'pagelines_nav_fallback') );

				}else{ pagelines_nav_fallback(); }
				
				pagelines_register_hook( 'brandnav_after_nav', 'brandnav' ); // Hook
?>
			</div>
	
<?php }
示例#3
0
    /**
     * Section template.
     */
    function section_template()
    {
        pagelines_main_logo($this->id);
        if (has_action('brandnav_after_brand')) {
            pagelines_register_hook('brandnav_after_brand', 'brandnav');
            // Hook
        } else {
            ?>

			<div class="brandnav-nav main_nav fix">
<?php 
            wp_nav_menu(array('menu_class' => 'main-nav tabbed-list' . pagelines_nav_classes(), 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location' => 'brandnav', 'fallback_cb' => 'pagelines_nav_fallback'));
            pagelines_register_hook('brandnav_after_nav', 'brandnav');
            // Hook
            ?>
			</div>
		<div class="clear"></div>
<?php 
        }
    }
示例#4
0
function pagelines_nav_fallback()
{
    _pl_deprecated_function(__FUNCTION__, '1.1', 'old style navigation from PL Framework');
    global $post;
    ?>

	<ul id="menu-nav" class="main-nav<?php 
    echo pagelines_nav_classes();
    ?>
">
		<?php 
    wp_list_pages('title_li=&sort_column=menu_order&depth=3');
    ?>
	</ul><?php 
}
/**
 * 
 *  Fallback for navigation, if it isn't set up
 *
 *  @package PageLines
 *  @subpackage Functions Library
 *  @since 1.1.0
 *
 */
function pagelines_nav_fallback() {
	global $post; ?>
	
	<ul id="menu-nav" class="main-nav<?php echo pagelines_nav_classes();?>">
		<?php wp_list_pages( 'title_li=&sort_column=menu_order&depth=3'); ?>
	</ul><?php
}