Changeset 453
- Timestamp:
- 03/03/2014 09:56:36 PM (12 years ago)
- Location:
- sites/trunk/buddypress.org/public_html/wp-content/themes
- Files:
-
- 4 deleted
- 3 edited
-
bb-base/functions.php (modified) (1 diff)
-
bb-base/header-nav.php (modified) (1 diff)
-
bb-base/header-subnav.php (modified) (2 diffs)
-
bbpress-org/header-nav.php (deleted)
-
bbpress-org/header-subnav.php (deleted)
-
buddypress-org/header-nav.php (deleted)
-
buddypress-org/header-subnav.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php
r451 r453 14 14 show_admin_bar( true ); 15 15 16 /** 17 * Are we looking at a codex site 18 * 19 * @return bool 20 */ 21 function bb_base_is_codex() { 22 return (bool) strstr( $_SERVER['HTTP_HOST'], 'codex' ); 23 } 24 16 25 // Include in Codex code on codex sites 17 if ( strstr( $_SERVER['HTTP_HOST'], 'codex') ) {26 if ( bb_base_is_codex() ) { 18 27 include( get_template_directory() . '/functions-codex.php' ); 19 28 } -
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-nav.php
r442 r453 1 1 <ul id="nav" class="menu"> 2 <li <?php if ( is_page( 'about' ) ) : ?>class="current"<?php endif; ?>><a href="<?php bloginfo( 'url' ); ?>/about/">About</a></li>3 <li <?php if ( is_page( 'plugins' ) ) : ?>class="current"<?php endif; ?>><a href="<?php bloginfo( 'url' ); ?>/plugins/">Plugins</a></li>4 <li <?php if ( is_page( 'themes' ) ) : ?>class="current"<?php endif; ?>><a href="<?php bloginfo( 'url' ); ?>/themes/">Themes</a></li>2 <li <?php if ( is_page( 'about' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'about' ); ?>">About</a></li> 3 <li <?php if ( is_page( 'plugins' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'plugins' ); ?>">Plugins</a></li> 4 <li <?php if ( is_page( 'themes' ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'themes' ); ?>">Themes</a></li> 5 5 <li><a href="http://codex.bbpress.org/">Documentation</a></li> 6 <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 bloginfo( 'url' ); ?>/blog/">Blog</a></li>7 < li <?php if ( is_bbpress() ) : ?>class="current"<?php endif; ?>><a href="<?php bloginfo( 'url' ); ?>/forums/">Support</a></li>8 <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php bloginfo( 'url' ); ?>/download/">Download</a></li>6 <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> 7 <?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; ?> 8 <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php echo home_url( 'download' ); ?>">Download</a></li> 9 9 </ul> -
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php
r442 r453 2 2 <div id="subnav"><div id="subnav-inner"> 3 3 <ul id="nav-secondary" class="menu"> 4 <?php if ( is_user_logged_in() ) : ?>5 <li><a href="<?php b loginfo( 'url' ); ?>/forums/new-topic/">Create New Topic</a></li>4 <?php if ( is_user_logged_in() && function_exists( 'bbp_forums_url' ) ) : ?> 5 <li><a href="<?php bbp_forums_url( 'new-topic' ); ?>">Create New Topic</a></li> 6 6 <?php endif; ?> 7 7 </ul> … … 11 11 <li><a href="//wordpress.org/support/register.php">Register</a></li> 12 12 <li><a href="//wordpress.org/support/bb-login.php">Lost Password</a></li> 13 <li><a href="<?php bloginfo( 'url' ); ?>/login/">Log In</a></li>14 <?php else : ?>13 <li><a href="<?php echo home_url( 'login' ); ?>">Log In</a></li> 14 <?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?> 15 15 <li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>">Favorites</a></li> 16 16 <li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>">Subscriptions</a></li>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)