function section_template() { ?> <div id="logo"> <?php if(pagelines_option('footer_logo') && VPRO):?> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" /> </a> <?php else:?> <h1 class="site-title"> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <?php bloginfo('name');?> </a> </h1> <?php endif;?> </div> <?php function nav_fallback_simple() {?> <ul id="simple_footer"> <?php wp_list_pages( 'title_li=&sort_column=menu_order&depth=1'); ?> </ul><?php } if(function_exists('wp_nav_menu')): wp_nav_menu( array('theme_location'=>'footer_nav_simple','depth' => 1, 'fallback_cb'=>'nav_fallback_simple') ); else: nav_fallback(); endif;?> <span class="terms"> <?php e_pagelines('footer_terms');?> </span> <?php }
function section_template() { if (function_exists('wp_nav_menu')) { wp_nav_menu(array('menu_class' => 'inline-list simplenav font-sub', 'theme_location' => 'simple_nav', 'depth' => 1, 'fallback_cb' => 'simple_nav_fallback')); } else { nav_fallback(); } }
function section_template() { global $post; ?> <div id="nav_row" class="fix"> <?php global $additional_menu_classes; $additional_menu_classes = ''; if (pagelines_option('hidesearch')) { $additional_menu_classes .= ' nosearch'; } if (pagelines_option('enable_drop_down')) { $additional_menu_classes .= ' sf-menu'; } function nav_fallback() { ?> <?php global $additional_menu_classes; ?> <ul id="menu-nav" class="main-nav<?php echo $additional_menu_classes; ?> "> <?php wp_list_pages('title_li=&sort_column=menu_order&depth=3'); ?> </ul><?php } if (function_exists('wp_nav_menu')) { wp_nav_menu(array('menu_class' => 'main-nav' . $additional_menu_classes, 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location' => 'primary', 'fallback_cb' => 'nav_fallback')); } else { nav_fallback(); } if (!pagelines_option('hidesearch')) { get_search_form(); } ?> </div> <?php if (!is_404() && isset($post) && is_object($post) && !pagelines_option('hide_sub_header') && ($post->post_parent || wp_list_pages("title_li=&child_of=" . $post->ID . "&echo=0"))) { ?> <div id="subnav_row" class="fix"> <div id="subnav" class="fix"> <ul> <?php if (count($post->ancestors) >= 2) { $reverse_ancestors = array_reverse($post->ancestors); $children = wp_list_pages("title_li=&depth=1&child_of=" . $reverse_ancestors[0] . "&echo=0&sort_column=menu_order"); } elseif ($post->post_parent) { $children = wp_list_pages("title_li=&depth=1&child_of=" . $post->post_parent . "&echo=0&sort_column=menu_order"); } else { $children = wp_list_pages("title_li=&depth=1&child_of=" . $post->ID . "&echo=0&sort_column=menu_order"); } if ($children) { echo $children; } ?> </ul> </div><!-- /sub nav --> </div> <?php } }