Admin notice to configure sport

This commit is contained in:
Brian Miyaji
2014-03-30 12:49:23 +11:00
parent cd9eaf6128
commit 87e0c574f4
10 changed files with 192 additions and 41 deletions

View File

@@ -46,6 +46,9 @@ class SP_Settings_Config extends SP_Settings_Page {
$sport_options[ $slug ] = $data['name'];
endforeach;
if ( ! get_option( 'sportspress_sport' ) )
$sport_options = array_merge( array( 0 => __( '— Select —', 'sportspress' ) ), $sport_options );
return apply_filters('sportspress_event_settings', array(
array( 'title' => __( 'Configure SportsPress', 'sportspress' ), 'type' => 'title','desc' => '', 'id' => 'config_options' ),
@@ -163,6 +166,7 @@ class SP_Settings_Config extends SP_Settings_Page {
endforeach;
endforeach;
update_option( 'sportspress_primary_result', 0 );
update_option( '_sp_needs_config', 0 );
elseif ( isset( $_POST['sportspress_primary_result'] ) ):
update_option( 'sportspress_primary_result', $_POST['sportspress_primary_result'] );
endif;

View File

@@ -51,7 +51,7 @@ class SP_Settings_General extends SP_Settings_Page {
array( 'type' => 'frontend_styles' ),
array(
'title' => __( 'Custom CSS', 'woocommerce' ),
'title' => __( 'Custom CSS', 'sportspress' ),
'id' => 'sportspress_custom_css',
'css' => 'width:100%; height: 130px;',
'type' => 'textarea',