Change default primary color

This commit is contained in:
Brian Miyaji
2014-09-05 17:42:18 +10:00
parent 7c3fc53224
commit e61fc78beb
3 changed files with 9 additions and 2 deletions

View File

@@ -271,7 +271,7 @@ class SP_Settings_General extends SP_Settings_Page {
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
// Defaults
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#364c74';
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#00a69c';
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
if ( empty( $colors['text'] ) ) $colors['text'] = '#363f48';
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';

View File

@@ -107,6 +107,13 @@ class SP_Frontend_Scripts {
}
$colors = (array) get_option( 'sportspress_frontend_css_colors', array() );
// Defaults
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#00a69c';
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
if ( empty( $colors['text'] ) ) $colors['text'] = '#363f48';
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
echo '<style type="text/css">.sp-data-table tbody a,.sp-data-table tbody a:hover,.sp-calendar tbody a,.sp-calendar tbody a:hover{background:none;}';

View File

@@ -126,7 +126,7 @@ class SP_Install {
}
// Default color scheme
add_option( 'sportspress_frontend_css_primary', '#364c74' );
add_option( 'sportspress_frontend_css_primary', '#00a69c' );
add_option( 'sportspress_frontend_css_background', '#f4f4f4' );
add_option( 'sportspress_frontend_css_text', '#363f48' );
add_option( 'sportspress_frontend_css_heading', '#ffffff' );