Created
December 23, 2014 01:14
-
-
Save svenl77/69687134f5d9b25d81a5 to your computer and use it in GitHub Desktop.
cc_switch_css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cc_switch_css(){ | |
global $cap; | |
$switch_css = array( | |
'body_bg_color' => 'ffffff', | |
'container_bg_color' => 'ffffff', | |
'container_alt_bg_color' => 'ededed', | |
'details_bg_color' => 'ededed', | |
'details_hover_bg_color' => 'f9f9f9', | |
'font_color' => '888888', | |
'font_alt_color' => 'afafaf', | |
'link_color' => '489ed5', | |
); | |
if ($cap->style_css != false){ | |
switch ($cap->style_css){ | |
case __('dark','cc'): | |
$switch_css = array( | |
'body_bg_color' => '333333', | |
'container_bg_color' => '181818', | |
'container_alt_bg_color' => '333333', | |
'details_bg_color' => '181818', | |
'details_hover_bg_color' => '252525', | |
'font_color' => '888888', | |
'font_alt_color' => '555555', | |
'link_color' => 'ffffff', | |
); | |
break; | |
case __('natural','cc'): | |
$switch_css = array( | |
'body_bg_color' => 'F5E5B3', | |
'container_bg_color' => 'FFF9DB', | |
'container_alt_bg_color' => 'F5E5B3', | |
'details_bg_color' => 'FFF9DB', | |
'details_hover_bg_color' => 'FFE5B3', | |
'font_color' => '888888', | |
'font_alt_color' => 'aaaaaa', | |
'link_color' => 'ff7400', | |
); | |
break; | |
case __('white','cc'): | |
$switch_css = array( | |
'body_bg_color' => 'ffffff', | |
'container_bg_color' => 'ffffff', | |
'container_alt_bg_color' => 'ededed', | |
'details_bg_color' => 'ededed', | |
'details_hover_bg_color' => 'f9f9f9', | |
'font_color' => '888888', | |
'font_alt_color' => 'afafaf', | |
'link_color' => '489ed5', | |
); | |
break; | |
case __('light','cc'): | |
$switch_css = array( | |
'body_bg_color' => 'ededed', | |
'container_bg_color' => 'ffffff', | |
'container_alt_bg_color' => 'ededed', | |
'details_bg_color' => 'ffffff', | |
'details_hover_bg_color' => 'f9f9f9', | |
'font_color' => '888888', | |
'font_alt_color' => 'afafaf', | |
'link_color' => '529e81', | |
); | |
break; | |
case __('grey','cc'): | |
$switch_css = array( | |
'body_bg_color' => 'f1f1f1', | |
'container_bg_color' => 'dddddd', | |
'container_alt_bg_color' => 'f1f1f1', | |
'details_bg_color' => 'dddddd', | |
'details_hover_bg_color' => 'ededed', | |
'font_color' => '555555', | |
'font_alt_color' => 'aaaaaa', | |
'link_color' => '1f8787', | |
); | |
break; | |
case __('black','cc'): | |
$switch_css = array( | |
'body_bg_color' => '000000', | |
'container_bg_color' => '000000', | |
'container_alt_bg_color' => '333333', | |
'details_bg_color' => '333333', | |
'details_hover_bg_color' => '181818', | |
'font_color' => '888888', | |
'font_alt_color' => '555555', | |
'link_color' => 'ffffff', | |
); | |
break; | |
} | |
} | |
return $switch_css; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment