Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. <?php
  2. function cc_switch_css(){
  3. global $cap;
  4.  
  5. $switch_css = array(
  6. 'body_bg_color' => 'ffffff',
  7. 'container_bg_color' => 'ffffff',
  8. 'container_alt_bg_color' => 'ededed',
  9. 'details_bg_color' => 'ededed',
  10. 'details_hover_bg_color' => 'f9f9f9',
  11. 'font_color' => '888888',
  12. 'font_alt_color' => 'afafaf',
  13. 'link_color' => '489ed5',
  14. );
  15.  
  16. if ($cap->style_css != false){
  17. switch ($cap->style_css){
  18. case __('dark','cc'):
  19. $switch_css = array(
  20. 'body_bg_color' => '333333',
  21. 'container_bg_color' => '181818',
  22. 'container_alt_bg_color' => '333333',
  23. 'details_bg_color' => '181818',
  24. 'details_hover_bg_color' => '252525',
  25. 'font_color' => '888888',
  26. 'font_alt_color' => '555555',
  27. 'link_color' => 'ffffff',
  28. );
  29. break;
  30. case __('natural','cc'):
  31. $switch_css = array(
  32. 'body_bg_color' => 'F5E5B3',
  33. 'container_bg_color' => 'FFF9DB',
  34. 'container_alt_bg_color' => 'F5E5B3',
  35. 'details_bg_color' => 'FFF9DB',
  36. 'details_hover_bg_color' => 'FFE5B3',
  37. 'font_color' => '888888',
  38. 'font_alt_color' => 'aaaaaa',
  39. 'link_color' => 'ff7400',
  40. );
  41.  
  42. break;
  43. case __('white','cc'):
  44. $switch_css = array(
  45. 'body_bg_color' => 'ffffff',
  46. 'container_bg_color' => 'ffffff',
  47. 'container_alt_bg_color' => 'ededed',
  48. 'details_bg_color' => 'ededed',
  49. 'details_hover_bg_color' => 'f9f9f9',
  50. 'font_color' => '888888',
  51. 'font_alt_color' => 'afafaf',
  52. 'link_color' => '489ed5',
  53. );
  54. break;
  55. case __('light','cc'):
  56. $switch_css = array(
  57. 'body_bg_color' => 'ededed',
  58. 'container_bg_color' => 'ffffff',
  59. 'container_alt_bg_color' => 'ededed',
  60. 'details_bg_color' => 'ffffff',
  61. 'details_hover_bg_color' => 'f9f9f9',
  62. 'font_color' => '888888',
  63. 'font_alt_color' => 'afafaf',
  64. 'link_color' => '529e81',
  65. );
  66. break;
  67. case __('grey','cc'):
  68. $switch_css = array(
  69. 'body_bg_color' => 'f1f1f1',
  70. 'container_bg_color' => 'dddddd',
  71. 'container_alt_bg_color' => 'f1f1f1',
  72. 'details_bg_color' => 'dddddd',
  73. 'details_hover_bg_color' => 'ededed',
  74. 'font_color' => '555555',
  75. 'font_alt_color' => 'aaaaaa',
  76. 'link_color' => '1f8787',
  77. );
  78. break;
  79. case __('black','cc'):
  80. $switch_css = array(
  81. 'body_bg_color' => '000000',
  82. 'container_bg_color' => '000000',
  83. 'container_alt_bg_color' => '333333',
  84. 'details_bg_color' => '333333',
  85. 'details_hover_bg_color' => '181818',
  86. 'font_color' => '888888',
  87. 'font_alt_color' => '555555',
  88. 'link_color' => 'ffffff',
  89. );
  90. break;
  91. }
  92. }
  93. return $switch_css;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement