Changeset 2712 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 02/12/2010 06:52:58 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r2696 r2712 202 202 add_action( 'init', 'bp_dtheme_add_custom_header_support' ); 203 203 204 /* Show a notice to the user in wp-admin when the theme is activated */ 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 205 215 function bp_dtheme_show_notice() { ?> 206 216 <div id="message" class="updated fade"> … … 211 221 <?php 212 222 } 213 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" )214 add_action( 'admin_notices', 'bp_dtheme_show_notice' );215 223 216 224 /* Add words that we need to use in JS to the end of the page so they can be translated and still used. */ … … 230 238 add_action( 'wp_footer', 'bp_dtheme_js_terms' ); 231 239 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 232 247 ?>
Note: See TracChangeset
for help on using the changeset viewer.