Created
February 14, 2012 08:10
-
-
Save unix7/1824761 to your computer and use it in GitHub Desktop.
Genesis - Theme Activation Welcome Message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Autobahn theme activation welcome message */ | |
add_action( 'admin_notices', 'autobahn_child_theme_welcome', 11 ); | |
function autobahn_child_theme_welcome() { | |
global $pagenow; | |
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) { | |
$settings = sprintf( __( '<strong>Congratulations!</strong> You have successfully activated the <em>Autobahn</em> Child theme for Genesis. You should get started by configuring your settings via the regular <a href="%s" title="Genesis Framework Settings">Genesis Framework Settings page</a>. — Thank you for using this theme! I wish you a good -online- journey! <em>—David Decker, Autobahn theme developer :)</em>', 'autobahn' ) , admin_url( 'admin.php?page=genesis' ) ); | |
$output = printf( '<div class="updated"><p>%1$s</p></div>', $settings ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment