Changeset 2713
- Timestamp:
- 02/12/2010 07:00:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r2712 r2713 202 202 add_action( 'init', 'bp_dtheme_add_custom_header_support' ); 203 203 204 /* Remove r */ 205 function bp_dtheme_remove_redundant() { 206 global $bp; 207 208 /* Remove the navigation options we do not need in this theme. */ 209 bp_core_remove_subnav_item( $bp->blogs->slug, 'my-blogs' ); 210 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-posts' ); 211 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-comments' ); 212 } 213 add_action( 'init', 'bp_dtheme_remove_redundant' ); 214 204 /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */ 215 205 function bp_dtheme_show_notice() { ?> 216 206 <div id="message" class="updated fade"> … … 221 211 <?php 222 212 } 213 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) 214 add_action( 'admin_notices', 'bp_dtheme_show_notice' ); 223 215 224 216 /* Add words that we need to use in JS to the end of the page so they can be translated and still used. */ … … 238 230 add_action( 'wp_footer', 'bp_dtheme_js_terms' ); 239 231 240 241 /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */242 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {243 add_action( 'admin_notices', 'bp_dtheme_show_notice' );244 }245 246 247 232 ?>
Note: See TracChangeset
for help on using the changeset viewer.