Modify welcome message text and fix skip feature

This commit is contained in:
Brian Miyaji
2014-01-13 19:15:44 +11:00
parent 0c96846340
commit d8c1b13646
2 changed files with 5 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ function sportspress_admin_notices_styles() {
if ( $screen->id != 'settings_page_sportspress' ): if ( $screen->id != 'settings_page_sportspress' ):
if ( isset( $_GET['sportspress_installed'] ) ): if ( isset( $_REQUEST['sportspress_installed'] ) ):
update_option( 'sportspress_installed', $_GET['sportspress_installed'] ); update_option( 'sportspress_installed', $_REQUEST['sportspress_installed'] );
endif; endif;
if ( ! get_option( 'sportspress_installed' ) ): if ( ! get_option( 'sportspress_installed' ) ):

View File

@@ -2,9 +2,9 @@
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?> ?>
<div id="message" class="updated sportspress-message"> <div id="message" class="updated sportspress-message">
<h3><?php _e( 'Welcome to SportsPress!', 'sportspress' ); ?></h3> <h3><?php _e( '<strong>Welcome to SportsPress</strong> &#8211; Get Started', 'sportspress' ); ?></h3>
<p class="submit"> <p class="submit">
<a class="button button-primary button-hero" href="<?php echo admin_url('options-general.php?page=sportspress'); ?>"><?php _e( 'Settings', 'sportspress' ); ?></a> <a class="button button-primary button-hero" href="<?php echo admin_url('options-general.php?page=sportspress'); ?>"><?php _e( 'Go to SportsPress Settings', 'sportspress' ); ?></a>
<a class="button button-secondary button-hero" href="<?php echo add_query_arg('skip_install_sportspress', 'true' ); ?>"><?php _e( 'Skip setup', 'sportspress' ); ?></a> <a class="button button-secondary button-hero" href="<?php echo add_query_arg('sportspress_installed', '1' ); ?>"><?php _e( 'Skip setup', 'sportspress' ); ?></a>
</p> </p>
</div> </div>