This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
OriginalHouse_Web/src/wp-content/themes/originalhouse/includes/topmenu.php

68 lines
2.8 KiB
PHP
Raw Normal View History

<?php
global $woo_options;
?>
<div id="navigation-top" class="fr">
<?php
if ( function_exists( 'has_nav_menu') && has_nav_menu( 'primary-menu' ) ) {
wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'primary-nav', 'menu_class' => 'nav fr', 'theme_location' => 'primary-menu' ) );
} else {
?>
<ul id="primary-nav" class="nav fr">
<?php
if ( isset($woo_options[ 'woo_custom_nav_menu' ]) AND $woo_options[ 'woo_custom_nav_menu' ] == 'true' ) {
if ( function_exists( 'woo_custom_navigation_output') )
woo_custom_navigation_output();
} else { ?>
<?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo( 'url' ); ?>"><?php _e( 'Home', 'woothemes' ); ?></a></li>
<?php
wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' );
}
?>
</ul><!-- /#nav -->
<?php } ?>
<div id="search-top">
<div class="search_main">
<form method="get" class="searchform" action="<?php home_url( '/' ); ?>" >
<input type="text" class="field s" name="s" value="" />
<input type="submit" class="search-submit" value="<?php esc_attr_e( 'Search', 'woothemes' ); ?>">
</form>
<span class="arrow"></span>
<div class="fix"></div>
</div>
</div><!-- /#search-top -->
</div>
<div id="navigation">
<?php
if ( function_exists( 'has_nav_menu' ) && has_nav_menu('secondary-menu' ) ) {
wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-menu', 'menu_class' => 'nav fl','theme_location' => 'secondary-menu' ) );
} else {
?>
<ul id="main-nav" class="nav fl">
<?php
if ( isset($woo_options[ 'woo_custom_nav_menu' ]) AND $woo_options[ 'woo_custom_nav_menu' ] == 'true' ) {
if ( function_exists( 'woo_custom_navigation_output') )
woo_custom_navigation_output();
} else { ?>
<?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo( 'url' ); ?>"><?php _e( 'Home', 'woothemes' ) ?></a></li>
<?php
wp_list_categories( 'sort_column=menu_order&depth=6&title_li=&exclude=' );
}
?>
</ul><!-- /#nav -->
<?php } ?>
</div><!-- /#navigation -->