sportspress_frontend_css_colors => themeboy

This commit is contained in:
Brian Miyaji
2015-03-10 14:23:05 +11:00
parent 19ca004960
commit e18cab661c
2 changed files with 4 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ class SP_Settings_General extends SP_Settings_Page {
'link' => $link, 'link' => $link,
); );
update_option( 'sportspress_frontend_css_colors', $colors ); update_option( 'themeboy', $colors );
} }
} }
@@ -293,7 +293,7 @@ class SP_Settings_General extends SP_Settings_Page {
'Carbon' => array( '353535', '191919', 'ededed', 'ffffff', 'f67f17' ), 'Carbon' => array( '353535', '191919', 'ededed', 'ffffff', 'f67f17' ),
'Avocado' => array( '00241e', '013832', 'ffffff', 'ffffff', 'efb11e' ), 'Avocado' => array( '00241e', '013832', 'ffffff', 'ffffff', 'efb11e' ),
) ); ) );
?><tr valign="top" class="sportspress_frontend_css_colors"> ?><tr valign="top" class="themeboy">
<th scope="row" class="titledesc"> <th scope="row" class="titledesc">
<?php _e( 'Frontend Styles', 'sportspress' ); ?> <?php _e( 'Frontend Styles', 'sportspress' ); ?>
</th> </th>
@@ -319,7 +319,7 @@ class SP_Settings_General extends SP_Settings_Page {
<label data-sp-colors="<?php echo implode( ',', $colors ); ?>"><?php _e( 'Customize', 'sportspress' ); ?></label><br> <label data-sp-colors="<?php echo implode( ',', $colors ); ?>"><?php _e( 'Customize', 'sportspress' ); ?></label><br>
<?php <?php
// Get settings // Get settings
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) ); $colors = array_map( 'esc_attr', (array) get_option( 'themeboy', array() ) );
// Defaults // Defaults
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e'; if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';

View File

@@ -148,7 +148,7 @@ class SP_Frontend_Scripts {
$offset = ( 'twentyfourteen' == $template ? 48 : 0 ); $offset = ( 'twentyfourteen' == $template ? 48 : 0 );
} }
$colors = (array) get_option( 'sportspress_frontend_css_colors', array() ); $colors = (array) get_option( 'themeboy', array() );
// Defaults // Defaults
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e'; if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';