Changeset 4597 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 07/04/2011 02:16:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r4596 r4597 521 521 * @since 1.2 522 522 */ 523 function bp_dtheme_show_notice() { ?> 523 function bp_dtheme_show_notice() { 524 global $pagenow; 525 526 // Bail if bp-default theme was not just activated 527 if ( empty( $_GET['activated'] ) || ( 'themes.php' != $pagenow ) || !is_admin() ) 528 return; 529 530 ?> 531 524 532 <div id="message" class="updated fade"> 525 533 <p><?php printf( __( 'Theme activated! This theme contains <a href="%s">custom header image</a> support and <a href="%s">sidebar widgets</a>.', 'buddypress' ), admin_url( 'themes.php?page=custom-header' ), admin_url( 'widgets.php' ) ) ?></p> … … 527 535 528 536 <style type="text/css">#message2, #message0 { display: none; }</style> 537 529 538 <?php 530 539 } 531 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) 532 add_action( 'admin_notices', 'bp_dtheme_show_notice' ); 540 add_action( 'admin_notices', 'bp_dtheme_show_notice' ); 533 541 endif; 534 542
Note: See TracChangeset
for help on using the changeset viewer.