function st_theme_font() { $font_body = st_get_setting("body_font", array('font-family' => 'Roboto')); $heading_font = st_get_setting("headings_font", array('font-family' => 'Roboto')); st_make_font_style($font_body, 'body'); st_make_font_style($heading_font, 'h1,h2,h3,h4,h5,h6, .subscribe_section label, .widget_calendar caption'); // Predefined Colors (pc) - Custom Color (cc) $pc = st_get_setting("predefined_colors"); $e_cc = st_get_setting("enable_custom_global_skin"); $cc = st_get_setting("custom_global_skin"); $skin = ''; if ($e_cc == 'y') { $skin = $cc != '' ? $cc : $pc; } elseif ($pc != '') { $skin = $pc; } $skin = str_replace('#', '', esc_attr($skin)); $skin = $skin != '' ? $skin : 'bca474'; ?> <style type="text/css"> /* CSS Skin */ a,.primary-nav ul li.current-menu-item a,.top-bar-right a:hover,.primary-nav ul li a:hover,.cpt-filters li a:hover,.cpt-filters li a.selected, .blog-title a:hover,.sidebar .widget_nav_menu ul li a:hover, .sidebar .widget_nav_menu ul li.current-menu-item a,.st-recent-posts ul li a:hover,.st-recent-posts .recent-date,.footer-social li a:hover, .tab-title li.current, .cpt-detail .cpt-title { color:#<?php echo $skin; ?> ; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; } input[type="reset"], input[type="submit"], input[type="button"], button,.footer-social li a:hover,.btn_default,.acc-title-active,.toggle_current, .st-pagination li a:hover,.ui-datepicker-calendar .ui-state-hover,.ui-datepicker-calendar .ui-state-active,.go-detail,.go-gallery, .color , .st-pagination li a.page-current, .st-pagination li .page-numbers.current , table#wp-calendar thead > tr > th, table#wp-calendar td#today, .bg_color:hover, .woocommerce div.product form.cart .button, .woocommerce #content div.product form.cart .button, .woocommerce-page div.product form.cart .button, .woocommerce-page #content div.product form.cart .button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background-color: #<?php echo $skin; ?> ; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; } <?php if (st_is_woocommerce()) { ?> .woocommerce .widget_price_filter .ui-slider .ui-slider-handle, .woocommerce-page .widget_price_filter .ui-slider .ui-slider-handle { background: #<?php echo $skin; ?> ; } <?php } ?> .flickr_badge_image img:hover, .footer-sidebar .flickr_badge_image img:hover { border-color: #<?php echo $skin; ?> ;} <?php for ($i = 1; $i <= 6; $i++) { $h = st_get_setting("heading_" . $i, array()); if (intval($h['font-size']) > 0) { echo "h{$i}{ font-size: " . intval($h['font-size']) . "px;} \n"; } } ?> </style> <?php }
function st_theme_style() { $font_body = st_get_setting("body_font", array('font-family' => 'Roboto')); $heading_font = st_get_setting("headings_font", array('font-family' => 'Roboto')); st_make_font_style($font_body, 'body'); st_make_font_style($heading_font, 'h1,h2,h3,h4,h5,h6, .subscribe_section label, .widget_calendar caption'); // Predefined Colors (pc) - Custom Color (cc) $pc = st_get_setting("predefined_colors"); $e_cc = st_get_setting("enable_custom_global_skin"); $cc = st_get_setting("custom_global_skin"); $skin = ''; if ($e_cc == 'y') { $skin = $cc != '' ? $cc : $pc; } elseif ($pc != '') { $skin = $pc; } $skin = str_replace('#', '', esc_attr($skin)); $skin = $skin != '' ? $skin : 'fff200'; $skin = '#' . $skin; ?> <style type="text/css"> /* CSS Skin */ .bg,#header .socials li a:hover,.social-icons li a:hover,.header-right-inner .social-icons li a.search-form-icon:hover,.header-right-inner .social-icons li a.search-form-icon.active,.controls button:hover,.btn,input.btn,a.btn,.button,input.button,a.button,.post .categories a:hover,.pagination ul li a,#submit_comemnt,.flex-control-nav li a.flex-active,.acc-title.acc-title-active,.toggle-title.toggle_current,.tab-title li.current,.widget_tag_cloud a,.p-pagination a,.flex-direction-nav li a:hover,input[type=submit],.mfp-arrow:hover:before,.mfp-arrow:hover:after,#sttotop:hover,.wpcf7-form .wpcf7-submit{background-color:<?php echo $skin; ?> ;-o-transition:.5s;-ms-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s} .flex-direction-nav li a{color:#000;-o-transition:.5s;-ms-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s} .color,.content a:hover,.sidebar a:hover,.breadcrumbs a:hover,.txt_when_hover:hover,.ticky .post-title a{color:<?php echo $skin; ?> ;-o-transition:.5s;-ms-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s} .bodder-color,#footer{border-color:<?php echo $skin; ?> } /* Header background */ #header{background:<?php echo $skin; ?> } /*Header link and text color */ <?php $container_bg = st_get_setting('container_bg', '000000'); $container_bg_opacity = floatval(st_get_setting('container_bg_opacity', '0.5')); $container_bg_opacity = $container_bg_opacity > 1 ? 1 : ($container_bg_opacity < 0 ? 0 : $container_bg_opacity); $rgba = hex2rgba($container_bg, $container_bg_opacity); $argb = hex2argb($container_bg, $container_bg_opacity); $argb = '#' . $argb; $g_opacity = floatval(st_get_setting('gallery_item_hover_opacity', '0.6')); $g_opacity = $g_opacity > 1 ? 1 : ($g_opacity < 0 ? 0 : $g_opacity); $gi_argb = hex2argb('000000', $g_opacity); $gi_argb = '#' . $gi_argb; ?> .container-bg{background:rgba(<?php echo $rgba; ?> );-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=<?php echo $argb; ?> , endColorstr=<?php echo $argb; ?> );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=<?php echo $argb; ?> , endColorstr=<?php echo $argb; ?> );zoom:1}.isotope .overlay{background:rgba(0,0,0,0);-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000);zoom:1}.isotope .item-inner:hover .overlay{background:rgba(0,0,0,<?php echo $g_opacity; ?> );-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=<?php echo $gi_argb; ?> , endColorstr=<?php echo $gi_argb; ?> );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=<?php echo $gi_argb; ?> , endColorstr=<?php echo $gi_argb; ?> );zoom:1} <?php $bcolor = st_get_setting('border_color', '343434'); $bcolor = '#' . $bcolor; ?> .post .post-meta,.sidebar .widgettitle,.page-title.has-border,.page-title-wrapper.has-border{border-color:<?php echo $bcolor; ?> } .divider{background-color:<?php echo $bcolor; ?> } <?php for ($i = 1; $i <= 6; $i++) { $h = st_get_setting("heading_" . $i, array()); if (intval($h['font-size']) > 0) { echo "h{$i}{ font-size: " . intval($h['font-size']) . "px;} \n"; } } ?> </style> <?php }