echo $page_value_option; ?> :hover {background-color: <?php echo $page_color_option; ?> ;} #main-navigation .sf-menu li.menu-item-object-page.<?php echo $page_value_option; ?> a:hover {color: #fff !important; background-color: <?php echo $page_color_option; ?> ;} #main-navigation .sf-menu li.menu-item-object-page.<?php echo $page_value_option; ?> ul {background-color: <?php echo $page_color_option; ?> ;background-image: none;} #main-navigation .sf-menu li.menu-item-object-page.<?php echo $page_value_option; ?> ul li a:hover {background-color: <?php echo dehex($page_color_option, -20); ?> !important;background-image: none;} <?php } }
function meso_custom_page_style_init() { global $wp_pages; print '<style type="text/css" media="all">' . "\n"; $page_color_cache = ''; if (is_array($wp_pages)) { foreach ($wp_pages as $page_value) { $page_id = $page_value; $page_value_option = 'tn_page_color_' . $page_id; $page_color_option = get_theme_mod('page_color_' . $page_id); if ($page_color_option != '') { $page_color_cache .= '#main-navigation li.menu-item-object-page.' . $page_value_option . ' a {border-bottom: 5px solid ' . $page_color_option . ';}#main-navigation ul.sf-menu li.menu-item-object-page.' . $page_value_option . ':hover {background-color: ' . $page_color_option . ';}#main-navigation .sf-menu li.menu-item-object-page.' . $page_value_option . ' a:hover {color: #fff !important;background-color: ' . $page_color_option . ';}#main-navigation .sf-menu li.menu-item-object-page.' . $page_value_option . ' ul {background-color: ' . $page_color_option . ';background-image: none;}#main-navigation .sf-menu li.menu-item-object-page.' . $page_value_option . ' ul li a:hover {background-color: ' . dehex($page_color_option, -20) . ' !important;background-image: none;} '; } } } echo $page_color_cache; print '</style>' . "\n"; }
function meso_add_main_color_style() { $main_color = get_theme_mod('main_color'); if ($main_color) { ?> #custom #right-sidebar ul.tabbernav { background: <?php echo $main_color; ?> !important; } h2.header-title { background: <?php echo $main_color; ?> ; } #right-sidebar ul.tabbernav li.tabberactive a,#right-sidebar ul.tabbernav li.tabberactive a:hover { color:#fff !important; background-color: <?php echo dehex($main_color, -20); ?> !important; } #right-sidebar ul.tabbernav li a:hover, #custom h2.inblog {color: #FFF !important;background-color: <?php echo dehex($main_color, -10); ?> !important;} #breadcrumbs a {color:<?php echo $main_color; ?> ;} #breadcrumbs a:hover {color:<?php echo dehex($main_color, -20); ?> ;} #content .item-title a,h2.post-title a, h1.post-title a, article.post .post-meta a:hover, #custom .product-with-desc ul.products li h1.post-title a:hover, #custom .twitterbox span a, #custom h3.widget-title a, #custom .ftop div.textwidget a, #custom .ftop a:hover, #custom .ftop .widget_my_theme_twitter_widget a, #content .activity-header a, #content .activity-inner a, #content .item-list-tabs a { color: <?php echo $main_color; ?> !important;} #custom #post-entry h1.post-title a:hover,#custom #post-entry h2.post-title a:hover {color: #222;} #woo-container p.price,.wp-pagenavi a, #woo-container span.price, #custom ul.product_list_widget li span.amount,span.pricebox, #custom .product-with-desc ul.products li .post-product-right span.price, .js_widget_product_price,#jigo-single-product p.price {background-color: <?php echo dehex($main_color, 18); ?> ; color:#fff;} .wp-pagenavi .current, .wp-pagenavi a:hover{background: none repeat scroll 0 0 <?php echo dehex($main_color, -10); ?> ;} #post-navigator .wp-pagenavi a,#post-navigator .wp-pagenavi a:hover {background: none repeat scroll 0 0 <?php echo dehex($main_color, -30); ?> ;} #post-navigator .wp-pagenavi .current {background: none repeat scroll 0 0 <?php echo dehex($main_color, -50); ?> ;} #content a.activity-time-since {color: #888 !important;} #content .item-list-tabs span {background-color: <?php echo dehex($main_color, 10); ?> !important;} #custom .widget a:hover, #custom h3.widget-title a:hover, #custom .ftop div.textwidget a:hover, #custom .ftop a:hover, #custom .ftop .widget_my_theme_twitter_widget a:hover {color: <?php echo dehex($main_color, -20); ?> !important;} #custom h3.widget-title {border-bottom: 5px solid <?php echo $main_color; ?> ;} #right-sidebar .search-form .search-submit,#searchform input[type="submit"], #searchform input[type="button"],#custom .bp-searchform #search-submit {background-color: <?php echo $main_color; ?> ;border:1px solid <?php echo $main_color; ?> ;} #post-entry .post-content a, #author-bio a, #post-related a, #commentpost .fn a, ol.pinglist a, #post-navigator-single a,#commentpost #rssfeed a, #commentpost .comment_text a, #commentpost p a, .product_meta a, a.show_review_form, #custom .twitterbox li a {color: <?php echo $main_color; ?> ;} .pagination-links a.page-numbers, #custom #woo-container nav.woocommerce-pagination a.page-numbers {background-color: <?php echo $main_color; ?> ;color:#fff !important;} .pagination-links .page-numbers, #custom #woo-container nav.woocommerce-pagination span.page-numbers.current {background-color: <?php echo dehex($main_color, -20); ?> ;color:#fff !important;} <?php } }