bp_dtheme_show_notice()
Show a notice when the theme is activated – workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes–td25211004.html)
Description Description
Source Source
File: bp-themes/bp-default/functions.php
function bp_dtheme_show_notice() { global $pagenow; // Bail if bp-default theme was not just activated if ( empty( $_GET['activated'] ) || ( 'themes.php' != $pagenow ) || !is_admin() ) return; ?> <div id="message" class="updated fade"> <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> </div> <style type="text/css">#message2, #message0 { display: none; }</style> <?php }
Changelog Changelog
Version | Description |
---|---|
BuddyPress (1.2) | Introduced. |