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

@@ -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;}';