- Timestamp:
- 04/23/2018 01:34:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-nav.php
r977 r7150 1 <?php if ( ! has_nav_menu( 'header-nav-menu' ) ) : ?> 2 <ul id="nav" class="menu"> 3 <li <?php if ( is_page( 'about' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'about' ); ?>">About</a></li> 4 <li <?php if ( is_page( 'plugins' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'plugins' ); ?>">Plugins</a></li> 5 <li <?php if ( is_page( 'themes' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'themes' ); ?>">Themes</a></li> 6 <li><a href="<?php echo esc_url( '//codex.' . parse_url( home_url(), PHP_URL_HOST ) . '/' ); ?>">Documentation</a></li> 7 <li <?php if ( is_post_type_archive( 'post' ) || is_singular( 'post' ) || is_date() || is_tag() || is_category() || is_home() ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'blog' ); ?>">Blog</a></li> 8 <?php if ( function_exists( 'is_bbpress' ) ) : ?><li <?php if ( is_bbpress() ) : ?>class="current"<?php endif; ?>><a href="<?php bbp_forums_url(); ?>">Support</a></li><?php endif; ?> 9 <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php echo home_url( 'download' ); ?>">Download</a></li> 10 </ul> 11 <?php else: ?> 12 <?php wp_nav_menu( array( 13 'container' => '', 14 'menu_class' => 'menu', 15 'menu_id' => 'nav', 16 'theme_location' => 'header-nav-menu', 17 ) ); ?> 18 <?php endif; ?> 1 <div id="nav"> 2 <a href="#" id="bb-menu-icon"></a> 3 <?php if ( ! has_nav_menu( 'header-nav-menu' ) ) : ?> 4 <ul id="bb-nav" class="menu"> 5 <li <?php if ( is_page( 'about' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'about' ); ?>">About</a></li> 6 <li <?php if ( is_page( 'plugins' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'plugins' ); ?>">Plugins</a></li> 7 <li <?php if ( is_page( 'themes' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'themes' ); ?>">Themes</a></li> 8 <li><a href="<?php echo esc_url( '//codex.' . parse_url( home_url(), PHP_URL_HOST ) . '/' ); ?>">Documentation</a></li> 9 <li <?php if ( is_post_type_archive( 'post' ) || is_singular( 'post' ) || is_date() || is_tag() || is_category() || is_home() ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'blog' ); ?>">Blog</a></li> 10 <?php if ( function_exists( 'is_bbpress' ) ) : ?><li <?php if ( is_bbpress() ) : ?>class="current"<?php endif; ?>><a href="<?php bbp_forums_url(); ?>">Support</a></li><?php endif; ?> 11 <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php echo home_url( 'download' ); ?>">Download</a></li> 12 </ul> 13 <?php else: ?> 14 <?php wp_nav_menu( array( 15 'container' => '', 16 'menu_class' => 'menu', 17 'menu_id' => 'bb-nav', 18 'theme_location' => 'header-nav-menu', 19 ) ); ?> 20 <?php endif; ?> 21 </div>
Note: See TracChangeset
for help on using the changeset viewer.