web_dor_update_color_control

The Business Responsive web dor update color control function.

Description

web_dor_update_color_control(); 

Usage

  1. if ( !function_exists( 'web_dor_update_color_control' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = web_dor_update_color_control(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function web_dor_update_color_control() { 
  2. //for update global options 
  3. global $dor_color_control_page; 
  4.  
  5. foreach ($dor_color_control_page->options_colorcontrol as $value) { 
  6. $$value['id'] = $value['std'];  
  7. ?> 
  8.  
  9. <style type="text/css"> 
  10.  
  11. h1, h2, h3, h4, h5, h6 { 
  12. color:<?php echo $cc_text_headers_color; ?>; 
  13.  
  14. .searchback { 
  15. background-color:<?php echo '#'.web_dor_ligthest_brigths($cc_selected_menu_color, 20); ?> !important; 
  16.  
  17. .read_more, .post-password-form input[type="submit"], .more-link { 
  18. background-color: <?php echo $cc_selected_menu_color; ?>; 
  19. color:<?php echo $cc_primary_links_hover_color ?>; 
  20.  
  21. #header{ 
  22. background-color:<?php echo $cc_content_back_color; ?>; 
  23. .shadow 
  24. background:url(<?php echo get_template_directory_uri(); ?>/images/stver.png) bottom center no-repeat <?php echo $cc_shadow_background_color; ?>; 
  25. background-color: ; 
  26.  
  27. .container{ 
  28. color: <?php echo $cc_primary_text_color; ?>; 
  29.  
  30. #wrapper, #content{ 
  31. color: <?php echo $cc_primary_text_color; ?>; 
  32. background-color: <?php echo $cc_content_back_color; ?>; 
  33.  
  34. #site-title 
  35. background-color:<?php echo $cc_content_back_color; ?>; 
  36. #header-block, .web_buisnes_menu{ 
  37. background-color:<?php echo $cc_head_elem_back_color; ?>; 
  38. #footer .container.phone{ 
  39. background-color:<?php echo $cc_footer_back_color; ?>; 
  40.  
  41. .topPost { 
  42. background-image: url(<?php echo get_template_directory_uri(); ?>/images/topPost-back<?php if($cc_color_scheme == "Theme-1") echo "1"; elseif($cc_color_scheme == "Theme-2") echo "2"; elseif($cc_color_scheme == "Theme-3") echo "3"; else echo "1"; ?>.png); 
  43. .about_us_img { 
  44. background-image: url(<?php echo get_template_directory_uri(); ?>/images/topPost-back<?php if($cc_color_scheme == "Theme-1") echo "1"; elseif($cc_color_scheme == "Theme-2") echo "2"; elseif($cc_color_scheme == "Theme-3") echo "3"; else echo "1"; ?>.png); 
  45.  
  46.  
  47. body, .content { 
  48. background-color: <?php echo $cc_content_back_color; ?>; 
  49.  
  50. #footer { 
  51. background-color: <?php echo $cc_footer_back_color; ?>; 
  52.  
  53. #header { 
  54. color: <?php echo $cc_text_headers_color; ?>; 
  55.  
  56.  
  57.  
  58. #footer { 
  59. color: <?php echo $cc_footer_text_color; ?>; 
  60.  
  61. a:link, a:visited { 
  62. text-decoration: none; 
  63. color: <?php echo $cc_primary_links_color; ?>; 
  64.  
  65. a { 
  66. text-decoration: none; 
  67. color: <?php echo $cc_primary_links_color; ?>; 
  68. a:hover, a:focus, a:active { 
  69. color: <?php echo $cc_primary_links_hover_color; ?>; 
  70. .web_buisnes_menu a:hover, .web_buisnes_menu .current-menu-item > a, .web_buisnes_menu .current_page_item > a, .web_buisnes_menu .current-page-parent > a, .web_buisnes_menu .current-menu-parent > a { 
  71. color: <?php echo $cc_primary_links_hover_color; ?>; 
  72.  
  73. .web_buisnes_menu li:hover { 
  74. background-color: <?php echo $cc_menu_color; ?>; 
  75.  
  76. .get_title{ 
  77. background-image:url(<?php echo get_template_directory_uri(); ?>/images/Shado.png); 
  78. background-position: bottom; 
  79. background-repeat: no-repeat; 
  80. color: <?php echo $cc_primary_links_hover_color; ?>; 
  81.  
  82. .comment-author .fn { 
  83. color: <?php echo $cc_text_headers_color; ?> !important; 
  84.  
  85. .sep{ 
  86. color: <?php echo $cc_selected_menu_color; ?>; 
  87. .nav .current-menu-item, .nav .current_page_item , .nav .current-page-parent, #menu-button-block, .get_title, .nav .current-menu-parent, a .page-links-number{ 
  88. background-color: <?php echo $cc_selected_menu_color; ?>; 
  89. a .page-links-number{ 
  90. color:<?php echo $cc_primary_links_hover_color; ?>; 
  91.  
  92. .nav li li:hover { 
  93. background-color: <?php echo $cc_menu_color; ?>; 
  94. .web_buisnes_menu a{ 
  95. color:<?php echo $cc_primary_links_color ?>; 
  96. .container.top-posts.phone{ 
  97. /*background-color:<?php echo $cc_content_back_color; ?>;*/ 
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. .nav.phone > li > a, .nav.phone > li > a:link, .nav.phone > li > a:visited, .page-links-number { 
  105. color:<?php echo $cc_primary_links_color; ?>; 
  106. background:<?php echo $cc_head_elem_back_color; ?>; 
  107. .nav.phone > li:hover > a , .nav.phone > li > a:hover, .nav.phone > li > a:focus, .nav.phone > li > a:active { 
  108. color:<?php echo $cc_primary_links_hover_color; ?>; 
  109. background:<?php echo $cc_menu_color; ?>; 
  110.  
  111. #menu-button-block a { 
  112. background-image:url(<?php echo get_template_directory_uri(); ?>/images/menu.phone.png); 
  113. .nav.phone li ul li > a, .nav.phone li ul li > a:link, .nav.phone li ul li > a:visited { 
  114. color:<?php echo $cc_primary_links_color ?> !important; 
  115. .nav.phone li ul li:hover > a, .nav.phone li ul li > a:hover, .nav.phone li ul li > a:focus, .nav.phone li ul li > a:active, .nav.phone li.current-menu-item > a:hover{ 
  116. color:<?php echo $cc_primary_links_hover_color; ?> !important; 
  117. background-color:<?php echo $cc_menu_color; ?> !important; 
  118. .nav.phone li.has-sub > a, .nav.phone li.has-sub > a:link, .nav.phone li.has-sub > a:visited { 
  119. background:<?php echo $cc_head_elem_back_color; ?> url(<?php echo get_template_directory_uri(); ?>/images/menu_right.png) right top no-repeat !important; 
  120. background-size:contain !important; 
  121. .nav.phone li.has-sub:hover > a, .nav.phone li.has-sub > a:hover, .nav.phone li.has-sub > a:focus, .nav.phone li.has-sub > a:active, .nav.phone li.has-sub.current-menu-ancestor > a:hover, .nav.phone li.has-sub.current-menu-item > a:focus, .nav.phone li.has-sub.current-menu-item > a:active, .nav.phone li.current-menu-parent > a:hover, .nav.phone li.current-menu-parent > a:focus, .nav.phone li.current-menu-parent > a:active, .nav.phone li.current-menu-ancestor > a:hover, .nav.phone li.current-menu-ancestor > a:focus, .nav.phone li.current-menu-ancestor > a:active{ 
  122. background:<?php echo $cc_menu_color; ?> url(<?php echo get_template_directory_uri(); ?>/images/menu_right.png) right top no-repeat !important; 
  123. background-size:contain !important; 
  124.  
  125. .nav.phone li ul li.has-sub > a, .nav.phone li ul li.has-sub > a:link, .nav.phone li ul li.has-sub > a:visited{ 
  126. background:<?php echo $cc_head_elem_back_color; ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  127. background-size:contain !important; 
  128.  
  129. .nav.phone li ul li.has-sub:hover > a, .nav.phone li ul li.has-sub > a:hover, .nav.phone li ul li.has-sub > a:focus, .nav.phone li ul li.has-sub > a:active { 
  130. background:<?php echo '#'.web_dor_ligthest_brigths($cc_menu_color, 15); ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  131. background-size:contain !important; 
  132. .nav.phone li.current-menu-item > a 
  133. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  134. background-color:<?php echo $cc_selected_menu_color; ?> !important; 
  135. .nav.phone li.current-menu-ancestor > a:hover, .nav.phone li.current-menu-item > a:focus, .nav.phone li.current-menu-item > a:active{ 
  136. color:<?php echo $cc_primary_links_color ?> !important; 
  137. background-color:<?php echo $cc_menu_color; ?> !important; 
  138. .nav.phone li.current-menu-parent > a, .nav.phone li.current-menu-parent > a:visited,  
  139. .nav.phone li.has-sub.current-menu-item > a, .nav.phone li.has-sub.current-menu-item > a:visited,  
  140. .nav.phone li.current-menu-ancestor > a, .nav.phone li.current-menu-ancestor > a:visited,  
  141. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  142. background:<?php echo $cc_selected_menu_color; ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  143. background-size:contain !important; 
  144. .nav.phone li ul li.current-menu-item > a, .nav.phone li ul li.current-menu-item > a:visited,  
  145. .nav.phone li ul li.current-menu-item > a:focus, .nav.phone li ul li.current-menu-item > a:active{ 
  146. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  147. background-color:<?php echo '#'.web_dor_ligthest_brigths($cc_selected_menu_color, 15); ?> !important; 
  148. .nav.phone li ul li.current-menu-ancestor > a:hover, { 
  149. background-color:<?php echo '#'.web_dor_ligthest_brigths($cc_menu_color, 15); ?> !important; 
  150. .nav.phone li ul li.current-menu-parent > a, .nav.phone li ul li.current-menu-parent > a:visited,  
  151. .nav.phone li ul li.current-menu-parent > a:hover, .nav.phone li ul li.current-menu-parent > a:focus, .nav.phone li ul li.current-menu-parent > a:active,  
  152. .nav.phone li ul li.has-sub.current-menu-item > a, .nav.phone li ul li.has-sub.current-menu-item > a:visited,  
  153. .nav.phone li ul li.has-sub.current-menu-ancestor > a:hover, .nav.phone li ul li.has-sub.current-menu-item > a:focus, .nav.phone li ul li.has-sub.current-menu-item > a:active,  
  154. .nav.phone li ul li.current-menu-ancestor > a, .nav.phone li ul li.current-menu-ancestor > a:visited,  
  155. .nav.phone li ul li.current-menu-ancestor > a:hover, .nav.phone li ul li.current-menu-ancestor > a:focus, .nav.phone li ul li.current-menu-ancestor > a:active { 
  156. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  157. background:<?php echo '#'.web_dor_ligthest_brigths($cc_selected_menu_color, 15); ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  158. background-size:contain !important; 
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. .nav.phone li.current-menu-parent > a, .nav.phone li.current-menu-parent > a:link, .nav.phone li.current-menu-parent > a:visited,  
  170. .nav.phone li.current-menu-parent > a:hover, .nav.phone li.current-menu-parent > a:focus, .nav.phone li.current-menu-parent > a:active,  
  171. .nav.phone li.has-sub.current_page_item > a, .nav.phone li.has-sub.current_page_item > a:link, .nav.phone li.has-sub.current_page_item > a:visited,  
  172. .nav.phone li.has-sub.current-menu-ancestor > a:hover, .nav.phone li.has-sub.current_page_item > a:focus, .nav.phone li.has-sub.current_page_item > a:active,  
  173. .nav.phone li.current-menu-ancestor > a, .nav.phone li.current-menu-ancestor > a:link, .nav.phone li.current-menu-ancestor > a:visited,  
  174. .nav.phone li.current-menu-ancestor > a:hover, .nav.phone li.current-menu-ancestor > a:focus, .nav.phone li.current-menu-ancestor > a:active { 
  175. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  176. background:<?php echo $cc_selected_menu_color; ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  177. background-size:contain !important; 
  178. .nav.phone li ul li.current_page_item > a, .nav.phone li ul li.current_page_item > a:link, .nav.phone li ul li.current_page_item > a:visited,  
  179. .nav.phone li ul li.current-menu-ancestor > a:hover, .nav.phone li ul li.current_page_item > a:focus, .nav.phone li ul li.current_page_item > a:active{ 
  180. color:<?php echo $cc_primary_links_hover_color ?> !important; 
  181. background-color:<?php echo '#'.web_dor_ligthest_brigths($cc_selected_menu_color, 15); ?> !important; 
  182. .nav.phone li ul li.current-menu-parent > a, .nav.phone li ul li.current-menu-parent > a:link, .nav.phone li ul li.current-menu-parent > a:visited,  
  183. .nav.phone li ul li.current-menu-parent > a:hover, .nav.phone li ul li.current-menu-parent > a:focus, .nav.phone li ul li.current-menu-parent > a:active,  
  184. .nav.phone li ul li.has-sub.current_page_item > a, .nav.phone li ul li.has-sub.current_page_item > a:link, .nav.phone li ul li.has-sub.current_page_item > a:visited,  
  185. .nav.phone li ul li.has-sub.current-menu-ancestor > a:hover, .nav.phone li ul li.has-sub.current_page_item > a:focus, .nav.phone li ul li.has-sub.current_page_item > a:active,  
  186. .nav.phone li ul li.current-menu-ancestor > a, .nav.phone li ul li.current-menu-ancestor > a:link, .nav.phone li ul li.current-menu-ancestor > a:visited,  
  187.  
  188.  
  189. .nav.phone li ul li.current-menu-ancestor > a:hover, .nav.phone li ul li.current-menu-ancestor > a:focus, .nav.phone li ul li.current-menu-ancestor > a:active { 
  190. color:<?php echo $cc_primary_links_color ?> !important; 
  191. background:<?php echo '#'.web_dor_ligthest_brigths($cc_menu_color, 15); ?> url(<?php echo get_template_directory_uri(); ?>/images/down_menu.png) right bottom no-repeat !important; 
  192. background-size:contain !important; 
  193.  
  194. .form-submit #submit { 
  195. background-color:<?php echo $cc_selected_menu_color; ?>; 
  196. color:<?php echo $cc_primary_links_hover_color; ?>; 
  197. .comment-reply-link{ 
  198. background-color:<?php echo $cc_selected_menu_color; ?>; 
  199.  
  200. .sub-menu, .nav ul { 
  201. background-color: <?php echo '#'.web_dor_ligthest_brigths($cc_head_elem_back_color, 15); ?>; 
  202. </style> 
  203.  
  204. <?php