function nectar_custom_css() { global $options; global $external_dynamic; if ($external_dynamic != 'on') { ob_start(); //boxed css if (!empty($options['boxed_layout']) && $options['boxed_layout'] == '1') { $attachment = $options["background-attachment"]; $position = $options["background-position"]; $repeat = $options["background-repeat"]; $background_color = $options["background-color"]; echo '<style type="text/css"> body { background-image: url("' . $options["background_image"] . '"); background-position: ' . $position . '; background-repeat: ' . $repeat . '; background-color: ' . $background_color . '!important; background-attachment: ' . $attachment . ';'; if (!empty($options["background-cover"]) && $options["background-cover"] == '1') { echo 'background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover;'; } echo '} </style>'; } } //top nav $logo_height = !empty($options['use-logo']) && !empty($options['logo-height']) ? intval($options['logo-height']) : 30; $header_padding = !empty($options['header-padding']) ? intval($options['header-padding']) : 28; $nav_font_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2) * 1.4) : 20; $dd_indicator_height = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2)) - 1 : 20; $headerFormat = !empty($options['header_format']) ? $options['header_format'] : 'default'; $padding_top = ceil($logo_height / 2) - ceil($nav_font_size / 2); $padding_bottom = ceil($logo_height / 2) - ceil($nav_font_size / 2) + $header_padding; $search_padding_top = ceil($logo_height / 2) - ceil(21 / 2) + 1; $search_padding_bottom = ceil($logo_height / 2) - ceil(21 / 2); $using_secondary = !empty($options['header_layout']) ? $options['header_layout'] : ' '; if ($using_secondary == 'header_with_secondary') { $header_space = $logo_height + $header_padding * 2 + 34; } else { $header_space = $logo_height + $header_padding * 2; } //woo product title $wooSocial = !empty($options['woo_social']) && $options['woo_social'] == 1 ? '1' : '0'; $wooSocialCount = 0; $wooProductTitlePadding = 0; if ($wooSocial == '1') { if (!empty($options['woo-facebook-sharing']) && $options['woo-facebook-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-twitter-sharing']) && $options['woo-twitter-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-pinterest-sharing']) && $options['woo-pinterest-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-google-plus-sharing']) && $options['woo-google-plus-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-linkedin-sharing']) && $options['woo-linkedin-sharing'] == 1) { $wooSocialCount++; } if (empty($options['product_tab_position']) || $options['product_tab_position'] == 'in_sidebar') { $wooProductTitlePadding = $wooSocialCount * 52 + 50; } } //legacy WP header changes if (floatval(get_bloginfo('version')) < "3.8") { echo '<style> html .admin-bar #header-outer, html .logged-in.buddypress #header-outer { top: 28px; } html .admin-bar #header-outer[data-using-secondary="1"], html .logged-in.buddypress #header-outer[data-using-secondary="1"] { top: 60px; } </style>'; } if (!empty($options['loading-image'])) { $custom_loading_icon = ' .nectar-slider-loading .loading-icon, .portfolio-loading, #ajax-loading-screen .loading-icon, .loading-icon, .pp_loaderIcon { background-image: url("' . $options["loading-image"] . '"); } '; } else { $custom_loading_icon = null; } if ($external_dynamic != 'on') { echo '<style type="text/css">'; } echo ' #header-outer { padding-top: ' . $header_padding . 'px; } #header-outer #logo img { height: ' . $logo_height . 'px; } #header-outer[data-format="centered-menu-under-logo"] header#top #logo .starting-logo { margin-top: -' . intval($logo_height + 17) . 'px; } header#top nav > ul > li > a { padding-bottom: ' . $padding_bottom . 'px; padding-top: ' . $padding_top . 'px; }'; if ($headerFormat == 'centered-menu-under-logo') { echo '#header-outer .cart-menu { padding-bottom: ' . intval($padding_bottom + ceil(($nav_font_size - 21) / 2) + $logo_height / 2 + 7) . 'px; padding-top: ' . intval($padding_top + $header_padding + ceil(($nav_font_size - 21) / 2) + $logo_height / 2 + 7) . 'px; }'; } else { echo '#header-outer .cart-menu { padding-bottom: ' . intval($padding_bottom + ceil(($nav_font_size - 21) / 2)) . 'px; padding-top: ' . intval($padding_top + $header_padding + ceil(($nav_font_size - 21) / 2)) . 'px; }'; } echo 'header#top nav > ul li#search-btn, header#top nav > ul li.slide-out-widget-area-toggle { padding-bottom: ' . $search_padding_bottom . 'px; padding-top: ' . $search_padding_top . 'px; } header#top .sf-menu > li.sfHover > ul { top: ' . $nav_font_size . 'px; } .sf-sub-indicator { height: ' . $dd_indicator_height . 'px; } #header-space { height: ' . $header_space . 'px;} body[data-smooth-scrolling="1"] #full_width_portfolio .project-title.parallax-effect { top: ' . $header_space . 'px; } body.single-product div.product .product_title { padding-right:' . $wooProductTitlePadding . 'px; } '; echo $custom_loading_icon; //nectar slider font calcs $heading_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && $options['nectar_slider_heading_font_size'] != '-' ? intval($options['nectar_slider_heading_font_size']) : 60; $caption_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && $options['home_slider_caption_font_size'] != '-' ? intval($options['home_slider_caption_font_size']) : 24; echo '@media only screen and (min-width: 1000px) and (max-width: 1300px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: ' . $heading_size * 0.75 . 'px!important; line-height: ' . $heading_size * 0.85 . 'px!important; } .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: ' . $caption_size * 0.75 . 'px!important; line-height: ' . $caption_size * 1.3 . 'px!important; } } @media only screen and (min-width : 690px) and (max-width : 1000px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: ' . $heading_size * 0.55 . 'px!important; line-height: ' . $heading_size * 0.65 . 'px!important; } .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: ' . $caption_size * 0.55 . 'px!important; line-height: ' . $caption_size * 1 . 'px!important; } } @media only screen and (max-width : 690px) { .nectar-slider-wrap[data-full-width="true"][data-fullscreen="false"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"][data-fullscreen="false"] .swiper-slide .content h2, .full-width-content .vc_span12 .nectar-slider-wrap[data-fullscreen="false"] .swiper-slide .content h2 { font-size: ' . $heading_size * 0.25 . 'px!important; line-height: ' . $heading_size * 0.35 . 'px!important; } .nectar-slider-wrap[data-full-width="true"][data-fullscreen="false"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"][data-fullscreen="false"] .swiper-slide .content p, .full-width-content .vc_span12 .nectar-slider-wrap[data-fullscreen="false"] .swiper-slide .content p { font-size: ' . $caption_size * 0.32 . 'px!important; line-height: ' . $caption_size * 0.73 . 'px!important; } } '; $removeHeaderSearch = !empty($options['header-disable-search']) && $options['header-disable-search'] == '1' ? 'true' : 'false'; if ($removeHeaderSearch == 'true') { echo '#mobile-menu #mobile-search, header#top nav ul #search-btn { display: none!important; }'; } if ($external_dynamic != 'on') { //page header global $post; $font_color = get_post_meta($post->ID, '_nectar_header_font_color', true); if (!empty($font_color)) { echo '#page-header-bg h1, #page-header-bg .subheader, #portfolio-nav a i, .page-header-no-bg h1, .page-header-no-bg span, #portfolio-nav a i, page-header-bg #portfolio-nav a i, #page-header-bg span { color: ' . $font_color . '!important; } '; echo 'body #page-header-bg a.pinterest-share i, body #page-header-bg a.facebook-share i, body #page-header-bg a.linkedin-share i, body #page-header-bg .twitter-share i, body #page-header-bg .google-plus-share i, body #page-header-bg .icon-salient-heart, body #page-header-bg .icon-salient-heart-2 { color: ' . $font_color . '; }'; } // header transparent option if (!empty($options['transparent-header']) && $options['transparent-header'] == '1') { $starting_color = empty($options['header-starting-color']) ? '#ffffff' : $options['header-starting-color']; $activate_transparency = using_page_header($post->ID); if ($activate_transparency) { //old IE versions echo '.no-rgba #header-space { display: none; } '; echo '@media only screen and (min-width: 1000px) { #header-space { display: none; } .nectar-slider-wrap.first-section, .parallax_slider_outer.first-section, .full-width-content.first-section, .parallax_slider_outer.first-section .swiper-slide .content, .nectar-slider-wrap.first-section .swiper-slide .content, #page-header-bg, .nder-page-header, #page-header-wrap, .full-width-section.first-section { margin-top: 0!important; } body #page-header-bg, body #page-header-wrap { height: ' . $header_space . 'px; } .swiper-container .slider-prev, .swiper-container .slider-next { top: 52%!important; } .first-section .nectar-slider-loading .loading-icon { opacity: 0 } body #search-outer { z-index: 100000; } #header-outer.transparent header#top #logo, #header-outer.transparent header#top #logo:hover { color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav > ul > li > a, #header-outer.transparent header#top nav ul #search-btn a span.icon-salient-search, #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class^="icon-"], #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class*=" icon-"], #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart, .ascend #boxed #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart { color: ' . $starting_color . '!important; opacity: 0.75!important; transition: opacity 0.2s linear, color 0.2s linear; } #header-outer.transparent header#top nav > ul > li > a:hover, #header-outer.transparent header#top nav .sf-menu > li.sfHover > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_item > a, #header-outer.transparent header#top nav > ul > li > a:hover > .sf-sub-indicator > i, #header-outer.transparent header#top nav > ul > li.sfHover > a > span > i, #header-outer.transparent header#top nav ul #search-btn a:hover span, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover span, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a i, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a i, #header-outer.transparent .cart-outer:hover .icon-salient-cart, .ascend #boxed #header-outer.transparent .cart-outer:hover .cart-menu .cart-icon-wrap .icon-salient-cart, #header-outer.transparent.directional-nav-effect header#top nav > ul > li > a span.light, #header-outer.transparent.directional-nav-effect header#top nav > ul.buttons > li a span.light, #header-outer.transparent.directional-nav-effect .cart-menu .cart-icon-wrap span.light .icon-salient-cart, #header-outer.transparent.directional-nav-effect header#top nav ul #search-btn a span.light span.icon-salient-search { opacity: 1!important; color: ' . $starting_color . '!important; } #header-outer.transparent:not(.directional-nav-effect) header#top nav ul .slide-out-widget-area-toggle a i.lines, #header-outer.transparent:not(.directional-nav-effect) header#top nav ul .slide-out-widget-area-toggle a i.lines:before, #header-outer.transparent:not(.directional-nav-effect) header#top nav ul .slide-out-widget-area-toggle a i.lines:after, #header-outer.transparent.directional-nav-effect header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i, #header-outer.transparent.directional-nav-effect header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:after, #header-outer.transparent.directional-nav-effect header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:before { background-color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines { opacity: 0.75!important; } #header-outer.transparent.side-widget-open header#top nav ul .slide-out-widget-area-toggle a i.lines, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:before, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:after { opacity: 1!important; } }'; } } } // ext responsive global $woocommerce; if (!empty($options['responsive']) && $options['responsive'] == 1 && !empty($options['ext_responsive']) && $options['ext_responsive'] == '1') { echo '@media only screen and (min-width: 1000px) { .container, .woocommerce-tabs .full-width-content .tab-container { max-width: 1425px; width: 100%; margin: 0 auto; padding: 0px 90px; } .swiper-slide .content { padding: 0px 90px; } body .container .container:not(.tab-container) { width: 100%!important; padding: 0!important; } body .carousel-heading .container { padding: 0 10px!important; } body .carousel-heading .container .carousel-next { right: 10px; } body .carousel-heading .container .carousel-prev { right: 35px; } .carousel-wrap[data-full-width="true"] .carousel-heading a.portfolio-page-link { left: 90px; } .carousel-wrap[data-full-width="true"] .carousel-heading { margin-left: -20px; margin-right: -20px; } .carousel-wrap[data-full-width="true"] .carousel-next { right: 90px!important; } .carousel-wrap[data-full-width="true"] .carousel-prev { right: 115px!important; } .carousel-wrap[data-full-width="true"] { padding: 0!important; } .carousel-wrap[data-full-width="true"] .caroufredsel_wrapper { padding: 20px!important; } #search-outer #search #close a { right: 90px; } #boxed, #boxed #header-outer, #boxed #header-secondary-outer, #boxed #page-header-bg[data-parallax="1"], #boxed #featured, #boxed .orbit > div, #boxed #featured article, .ascend #boxed #search-outer { max-width: 1400px!important; width: 90%!important; min-width: 980px; } #boxed #search-outer #search #close a { right: 0!important; } #boxed .container { width: 92%; padding: 0; } #boxed #footer-outer #footer-widgets, #boxed #footer-outer #copyright { padding-left: 0; padding-right: 0; } #boxed .carousel-wrap[data-full-width="true"] .carousel-heading a.portfolio-page-link { left: 35px; } #boxed .carousel-wrap[data-full-width="true"] .carousel-next { right: 35px!important; } #boxed .carousel-wrap[data-full-width="true"] .carousel-prev { right: 60px!important; } }'; if ($external_dynamic != 'on') { if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul.buttons { padding-right: 20px!important; } #boxed header#top nav > ul.product_added.buttons { padding-right: 0px!important; } #search-outer #search #close a { right: 110px; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul.product_added.buttons { padding-right: 20px!important; } #boxed header#top nav > ul.product_added.buttons { padding-right: 0px!important; } #search-outer #search #close a.product_added { right: 110px; } }'; } } } //full width header shopping cart fix if ($external_dynamic != 'on') { if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: 80px!important; } body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].transparent header#top nav > ul.product_added .slide-out-widget-area-toggle, body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].side-widget-open header#top nav > ul.product_added .slide-out-widget-area-toggle { margin-right: -20px!important; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: 80px!important; } body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].transparent header#top nav > ul.product_added .slide-out-widget-area-toggle, body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].side-widget-open header#top nav > ul.product_added .slide-out-widget-area-toggle { margin-right: -20px!important; } }'; } if ($woocommerce && !empty($options['product_tab_position']) && $options['product_tab_position'] == 'fullwidth') { echo ' .woocommerce.single-product #single-meta { position: relative!important; top: 0!important; margin: 0; left: 8px; height: auto; } .woocommerce.single-product #single-meta:after { display: block; content: " "; clear: both; height: 1px; } .woocommerce-tabs { margin-top: 40px; clear: both; } @media only screen and (min-width: 1000px) { .woocommerce #reviews #comments, .woocommerce #reviews #review_form_wrapper { float: left; width: 47%; } .woocommerce #reviews #comments { margin-right: 3%; width: 50%; } .woocommerce.ascend #respond { margin-top: 0px!important; } .woocommerce .woocommerce-tabs > div { margin-top: 15px!important; } .woocommerce #reviews #reply-title { margin-top: 5px!important; } }'; } } if ($external_dynamic != 'on') { echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); //Default fonts with extended chars if (!empty($options['extended-theme-font']) && $options['extended-theme-font'] != '0') { echo "<style type='text/css'> @font-face{font-family:OpenSansLight;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.svg#OpenSansLight') format('svg')!important}@font-face{font-family:OpenSansRegular;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg')!important}@font-face{font-family:OpenSansSemibold;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg')!important}@font-face{font-family:OpenSansBold;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.svg#OpenSansBold') format('svg')!important} </style>\n\t\t\t"; } //custom css if (!empty($options["custom-css"])) { echo '<style type="text/css">' . $options["custom-css"] . '</style>'; } } }
function nectar_page_specific_dynamic() { ob_start(); echo '<style type="text/css">'; ////page header global $post; global $options; $font_color = get_post_meta($post->ID, '_nectar_header_font_color', true); if (!empty($font_color)) { echo '#page-header-bg h1, #page-header-bg .subheader, .nectar-box-roll .overlaid-content h1, .nectar-box-roll .overlaid-content .subheader, #portfolio-nav a i, .page-header-no-bg h1, body .section-title #portfolio-nav a:hover i, .page-header-no-bg span, #portfolio-nav a i, page-header-bg #portfolio-nav a i, #page-header-bg span { color: ' . $font_color . '!important; } '; echo 'body #page-header-bg a.pinterest-share i, body #page-header-bg a.facebook-share i, body #page-header-bg .twitter-share i, body #page-header-bg .google-plus-share i, body #page-header-bg .icon-salient-heart, body #page-header-bg .icon-salient-heart-2 { color: ' . $font_color . '; }'; } echo 'body .section-title #portfolio-nav a:hover i { opacity: 0.75; }'; $logo_height = !empty($options['use-logo']) && !empty($options['logo-height']) ? intval($options['logo-height']) : 30; $header_padding = !empty($options['header-padding']) ? intval($options['header-padding']) : 28; $nav_font_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2) * 1.4) : 20; $dd_indicator_height = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2)) - 1 : 20; $padding_top = ceil($logo_height / 2) - ceil($nav_font_size / 2); $padding_bottom = ceil($logo_height / 2) - ceil($nav_font_size / 2) + $header_padding; $search_padding_top = ceil($logo_height / 2) - ceil(21 / 2) + 1; $search_padding_bottom = ceil($logo_height / 2) - ceil(21 / 2); $using_secondary = !empty($options['header_layout']) ? $options['header_layout'] : ' '; if ($using_secondary == 'header_with_secondary') { $header_space = $logo_height + $header_padding * 2 + 34; } else { $header_space = $logo_height + $header_padding * 2; } //woo product title $wooSocial = !empty($options['woo_social']) && $options['woo_social'] == 1 ? '1' : '0'; $wooSocialCount = 0; $wooProductTitlePadding = 0; if ($wooSocial == '1') { if (!empty($options['woo-facebook-sharing']) && $options['woo-facebook-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-twitter-sharing']) && $options['woo-twitter-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-pinterest-sharing']) && $options['woo-pinterest-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-google-plus-sharing']) && $options['woo-google-plus-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-linkedin-sharing']) && $options['woo-linkedin-sharing'] == 1) { $wooSocialCount++; } $wooProductTitlePadding = $wooSocialCount * 52 + 50; } //// header transparent option if (!empty($options['transparent-header']) && $options['transparent-header'] == '1') { $starting_color = empty($options['header-starting-color']) ? '#ffffff' : $options['header-starting-color']; $activate_transparency = using_page_header($post->ID); if ($activate_transparency) { //old IE versions echo '.no-rgba #header-space { display: none; } '; echo '@media only screen and (min-width: 1000px) { #header-space { display: none; } .nectar-slider-wrap.first-section, .parallax_slider_outer.first-section, .full-width-content.first-section, .parallax_slider_outer.first-section .swiper-slide .content, .nectar-slider-wrap.first-section .swiper-slide .content, #page-header-bg, .nder-page-header, #page-header-wrap, .full-width-section.first-section { margin-top: 0!important; } body #page-header-bg, body #page-header-wrap { height: ' . $header_space . 'px; } .first-section .nectar-slider-loading .loading-icon { opacity: 0 } .swiper-container .slider-prev, .swiper-container .slider-next { top: 52%!important; } body #search-outer { z-index: 100000; } #header-outer.transparent header#top #logo, #header-outer.transparent header#top #logo:hover { color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav > ul > li > a, #header-outer.transparent header#top nav ul #search-btn a span.icon-salient-search, #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class^="icon-"], #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class*=" icon-"], #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart, .ascend #boxed #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart { color: ' . $starting_color . '!important; opacity: 0.75!important; transition: opacity 0.2s linear, color 0.2s linear; } #header-outer.transparent header#top nav > ul > li > a:hover, #header-outer.transparent header#top nav .sf-menu > li.sfHover > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_item > a, #header-outer.transparent header#top nav > ul > li > a:hover > .sf-sub-indicator > i, #header-outer.transparent header#top nav > ul > li.sfHover > a > span > i, #header-outer.transparent header#top nav ul #search-btn a:hover span, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover span, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a i, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a i, #header-outer.transparent .cart-outer:hover .icon-salient-cart, .ascend #boxed #header-outer.transparent .cart-outer:hover .cart-menu .cart-icon-wrap .icon-salient-cart { opacity: 1!Important; color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines:before, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines:after { background-color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines { opacity: 0.75!important; } #header-outer.transparent.side-widget-open header#top nav ul .slide-out-widget-area-toggle a i.lines, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:before, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:after { opacity: 1!important; } }'; } } echo '.pagination-navigation { -webkit-filter: url("' . esc_url(get_permalink()) . '#goo"); filter: url("' . esc_url(get_permalink()) . '#goo"); }'; global $woocommerce; if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: 80px!important; } body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].transparent header#top nav > ul.product_added .slide-out-widget-area-toggle, body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].side-widget-open header#top nav > ul.product_added .slide-out-widget-area-toggle { margin-right: -20px!important; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: 80px!important; } body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].transparent header#top nav > ul.product_added .slide-out-widget-area-toggle, body:not(.ascend) #header-outer[data-full-width="true"][data-remove-border="true"].side-widget-open header#top nav > ul.product_added .slide-out-widget-area-toggle { margin-right: -20px!important; } }'; } if ($woocommerce && !empty($options['product_tab_position']) && $options['product_tab_position'] == 'fullwidth') { echo ' .woocommerce.single-product #single-meta { position: relative!important; top: 0!important; margin: 0; left: 8px; height: auto; } .woocommerce.single-product #single-meta:after { display: block; content: " "; clear: both; height: 1px; } .woocommerce-tabs { margin-top: 40px; clear: both; } @media only screen and (min-width: 1000px) { .woocommerce #reviews #comments, .woocommerce #reviews #review_form_wrapper { float: left; width: 47%; } .woocommerce #reviews #comments { margin-right: 3%; width: 50%; } .ascend.woocommerce #respond { margin-top: 0px!important; } .woocommerce .woocommerce-tabs > div { margin-top: 15px!important; } .woocommerce #reviews #reply-title { margin-top: 5px!important; } }'; } if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul.buttons { padding-right: 20px!important; } #boxed header#top nav > ul.product_added.buttons { padding-right: 0px!important; } #search-outer #search #close a { right: 110px; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul.product_added { padding-right: 20px!important; } #boxed header#top nav > ul.product_added.buttons { padding-right: 0px!important; } #search-outer #search #close a.product_added { right: 110px; } }'; } //boxed css if (!empty($options['boxed_layout']) && $options['boxed_layout'] == '1') { $attachment = $options["background-attachment"]; $position = $options["background-position"]; $repeat = $options["background-repeat"]; $background_color = $options["background-color"]; echo 'body { background-image: url("' . $options["background_image"] . '"); background-position: ' . $position . '; background-repeat: ' . $repeat . '; background-color: ' . $background_color . '!important; background-attachment: ' . $attachment . ';'; if (!empty($options["background-cover"]) && $options["background-cover"] == '1') { echo 'background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover;'; } echo '}'; } //blog next post coloring if (is_singular('post')) { $next_post = get_previous_post(); if (!empty($next_post)) { $blog_next_bg_color = get_post_meta($next_post->ID, '_nectar_header_bg_color', true); $blog_next_font_color = get_post_meta($next_post->ID, '_nectar_header_font_color', true); if (!empty($blog_next_font_color)) { echo '.blog_next_prev_buttons .col h3, .blog_next_prev_buttons span { color: ' . $blog_next_font_color . '; }'; } if (!empty($blog_next_bg_color)) { echo '.blog_next_prev_buttons { background-color: ' . $blog_next_bg_color . '; }'; } } } echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); }
function nectar_typography() { global $options; global $external_dynamic; if ($external_dynamic != 'on') { ob_start(); } $body = $options['body_font']; $navigation = $options['navigation_font']; $navigation_dropdown = $options['navigation_dropdown_font']; $home_slider_caption = $options['home_slider_caption_font']; $sidebar_carousel_footer_header = $options['sidebar_footer_h_font']; $team_member_names = $options['team_member_h_font']; if ($external_dynamic != 'on') { echo '<style type="text/css">'; } /*-------------------------------------------------------------------------*/ /* Body Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['body_font_style']); intval(substr($options['body_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['body_font_size'], 0, -2)) * 1.8 . 'px' : ($line_height = null); ?> <?php echo 'body, .toggle h3 a, body .ui-widget, table, .bar_graph li span strong, #slide-out-widget-area .tagcloud a, #search-results .result .title span, .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, body .nectar-love span, body .nectar-social .nectar-love .nectar-love-count, body .carousel-heading h2 {'; ?> <?php if ($options['body_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['body_font']) ? '"' . $options['body_font'] . '"' : $options['body_font']; } if ($options['body_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['body_font_transform'] != '-') { echo 'text-transform: ' . $options['body_font_transform'] . ';'; } if ($options['body_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['body_font_spacing'] . ';'; } if ($options['body_font_size'] != '-') { echo 'font-size:' . $options['body_font_size'] . ';'; } ?> <?php //user set line-height if ($options['body_font_line_height'] != '-') { echo 'line-height:' . $options['body_font_line_height'] . ';'; $the_line_height = $options['body_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; if ($options['body_font'] != '-') { echo '.bold, strong, b { font-family: ' . $font_family . '; font-weight: 600; } '; } echo '.nectar-fancy-ul ul li .icon-default-style[class^="icon-"] {'; if (!empty($the_line_height)) { echo 'line-height:' . $the_line_height . '!important;'; } echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Navigation Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['navigation_font_style']); intval(substr($options['navigation_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['navigation_font_size'], 0, -2)) * 1.4 . 'px' : ($line_height = null); ?> <?php echo 'header#top nav > ul > li > a {'; ?> <?php if ($options['navigation_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['navigation_font']) ? '"' . $options['navigation_font'] . '"' : $options['navigation_font']; } if ($options['navigation_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['navigation_font_transform'] != '-') { echo 'text-transform: ' . $options['navigation_font_transform'] . ';'; } if ($options['navigation_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['navigation_font_spacing'] . ';'; } if ($options['navigation_font_size'] != '-') { echo 'font-size:' . $options['navigation_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; //make search font match main nav font //if($options['navigation_font'] != '-') echo '#search-outer #search input[type="text"] { font-family: ' . $font_family .'; }'; ?> <?php /*-------------------------------------------------------------------------*/ /* Navigation Dropdown Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['navigation_dropdown_font_style']); intval(substr($options['navigation_dropdown_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['navigation_dropdown_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'header#top .sf-menu li ul li a, #header-secondary-outer nav > ul > li > a, #header-secondary-outer ul ul li a, #header-outer .widget_shopping_cart .cart_list a {'; ?> <?php if ($options['navigation_dropdown_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['navigation_dropdown_font']) ? '"' . $options['navigation_dropdown_font'] . '"' : $options['navigation_dropdown_font']; } if ($options['navigation_dropdown_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['navigation_dropdown_font_transform'] != '-') { echo 'text-transform: ' . $options['navigation_dropdown_font_transform'] . ';'; } if ($options['navigation_dropdown_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['navigation_dropdown_font_spacing'] . ';'; } if ($options['navigation_dropdown_font_size'] != '-') { echo 'font-size:' . $options['navigation_dropdown_font_size'] . ';'; } ?> <?php //user set line-height if ($options['navigation_dropdown_font_line_height'] != '-') { echo 'line-height:' . $options['navigation_dropdown_font_line_height'] . ';'; $the_line_height = $options['navigation_dropdown_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo '@media only screen and (min-width : 1px) and (max-width : 1000px) { header#top .sf-menu a { font-family: ' . $options['navigation_dropdown_font'] . '!important; font-size: 14px!important; } }'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h1 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h1_font_style']); intval(substr($options['h1_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h1_font_size'], 0, -2)) + 6 . 'px' : ($line_height = null); ?> <?php echo '#page-header-bg h1, body h1, body .row .col.section-title h1 {'; ?> <?php if ($options['h1_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h1_font']) ? '"' . $options['h1_font'] . '"' : $options['h1_font']; } if ($options['h1_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h1_font_transform'] != '-') { echo 'text-transform: ' . $options['h1_font_transform'] . ';'; } if ($options['h1_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h1_font_spacing'] . ';'; } if ($options['h1_font_size'] != '-') { echo 'font-size:' . $options['h1_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h1_font_line_height'] != '-') { echo 'line-height:' . $options['h1_font_line_height'] . ';'; $the_line_height = $options['h1_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (max-width: 1300px) and (min-width: 1000px) { body .row .col.section-title h1, body h1 { font-size: <?php if (!empty($options['h1_font_size']) && $options['h1_font_size'] != '-') { echo $options['h1_font_size'] * 0.7 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px'; } ?> ; } } @media only screen and (max-width: 1000px) and (min-width: 690px) { body .row .col.section-title h1, body h1 { font-size: <?php if (!empty($options['h1_font_size']) && $options['h1_font_size'] != '-') { echo $options['h1_font_size'] * 0.65 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.65 . 'px'; } ?> ; } } @media only screen and (max-width: 690px) { body .row .col.section-title h1, body h1 { font-size: <?php if (!empty($options['h1_font_size']) && $options['h1_font_size'] != '-') { echo $options['h1_font_size'] * 0.6 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.6 . 'px'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h2 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h2_font_style']); intval(substr($options['h2_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h2_font_size'], 0, -2)) + intval(substr($options['h2_font_size'], 0, -2)) * 0.65 . 'px' : ($line_height = null); ?> <?php echo '#page-header-bg h2, body h2, article.post .post-header h2, article.post.quote .post-content h2, article.post.link .post-content h2, article.post.format-status .post-content h2, #call-to-action span, .woocommerce .full-width-tabs #reviews h3, .row .col.section-title h2 {'; ?> <?php if ($options['h2_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h2_font']) ? '"' . $options['h2_font'] . '"' : $options['h2_font']; } if ($options['h2_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h2_font_transform'] != '-') { echo 'text-transform: ' . $options['h2_font_transform'] . ';'; } if ($options['h2_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h2_font_spacing'] . ';'; } if ($options['h2_font_size'] != '-') { echo 'font-size:' . $options['h2_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h2_font_line_height'] != '-') { echo 'line-height:' . $options['h2_font_line_height'] . ';'; $the_line_height = $options['h2_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (max-width: 1300px) and (min-width: 1000px) { .row .span_2 h2, .row .span_3 h2, .row .span_4 h2, .row .vc_col-sm-2 h2, .row .vc_col-sm-3 h2, .row .vc_col-sm-4 h2 { font-size: <?php if (!empty($options['h2_font_size']) && $options['h2_font_size'] != '-') { echo $options['h2_font_size'] * 0.7 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px'; } ?> ; } } @media only screen and (max-width: 690px) { .col h2 { font-size: <?php if (!empty($options['h2_font_size']) && $options['h2_font_size'] != '-') { echo $options['h2_font_size'] * 0.6 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.6 . 'px'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h3 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h3_font_style']); intval(substr($options['h3_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h3_font_size'], 0, -2)) + 8 . 'px' : ($line_height = null); ?> <?php echo 'body h3, .row .col h3, .toggle h3 a, .ascend #respond h3, .ascend h3#comments, .woocommerce ul.products li.product.text_on_hover h3 {'; ?> <?php if ($options['h3_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h3_font']) ? '"' . $options['h3_font'] . '"' : $options['h3_font']; } if ($options['h3_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h3_font_transform'] != '-') { echo 'text-transform: ' . $options['h3_font_transform'] . ';'; } if ($options['h3_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h3_font_spacing'] . ';'; } if ($options['h3_font_size'] != '-') { echo 'font-size:' . $options['h3_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h3_font_line_height'] != '-') { echo 'line-height:' . $options['h3_font_line_height'] . ';'; $the_line_height = $options['h3_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 1000px) { .ascend .comments-section .comment-wrap.full-width-section > h3 { font-size: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 1.7 . 'px!important'; } ?> ; line-height: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 1.7 + 8 . 'px!important'; } ?> ; } } @media only screen and (min-width: 1300px) and (max-width: 1500px){ body .portfolio-items.constrain-max-cols.masonry-items .col.elastic-portfolio-item h3 { font-size: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 0.85 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.85 . 'px'; } ?> ; } } @media only screen and (max-width: 1300px) and (min-width: 1000px), (max-width: 690px) { .row .span_2 h3, .row .span_3 h3, .row .span_4 h3, .row .vc_col-sm-2 h3, .row .vc_col-sm-3 h3, .row .vc_col-sm-4 h3 { font-size: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 0.7 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h4 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h4_font_style']); intval(substr($options['h4_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h4_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body h4, .row .col h4, .portfolio-items .work-meta h4, #respond h3, h3#comments {'; ?> <?php if ($options['h4_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h4_font']) ? '"' . $options['h4_font'] . '"' : $options['h4_font']; } if ($options['h4_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h4_font_transform'] != '-') { echo 'text-transform: ' . $options['h4_font_transform'] . ';'; } if ($options['h4_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h4_font_spacing'] . ';'; } if ($options['h4_font_size'] != '-') { echo 'font-size:' . $options['h4_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h4_font_line_height'] != '-') { echo 'line-height:' . $options['h4_font_line_height'] . ';'; $the_line_height = $options['h4_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h5 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h5_font_style']); intval(substr($options['h5_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h5_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body h5, .row .col h5, .portfolio-items .work-item.style-3-alt p {'; ?> <?php if ($options['h5_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h5_font']) ? '"' . $options['h5_font'] . '"' : $options['h5_font']; } if ($options['h5_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h5_font_transform'] != '-') { echo 'text-transform: ' . $options['h5_font_transform'] . ';'; } if ($options['h5_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h5_font_spacing'] . ';'; } if ($options['h5_font_size'] != '-') { echo 'font-size:' . $options['h5_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h5_font_line_height'] != '-') { echo 'line-height:' . $options['h5_font_line_height'] . ';'; $the_line_height = $options['h5_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> body .wpb_column > .wpb_wrapper > .morphing-outline .inner > h5 { font-size: <?php if (!empty($options['h5_font_size']) && $options['h5_font_size'] != '-') { echo ceil($options['h5_font_size'] * 1.35) . 'px!important'; } ?> ; } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h6 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h6_font_style']); intval(substr($options['h6_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h6_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body h6, .row .col h6 {'; ?> <?php if ($options['h6_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h6_font']) ? '"' . $options['h6_font'] . '"' : $options['h6_font']; } if ($options['h6_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h6_font_transform'] != '-') { echo 'text-transform: ' . $options['h6_font_transform'] . ';'; } if ($options['h6_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h6_font_spacing'] . ';'; } if ($options['h6_font_size'] != '-') { echo 'font-size:' . $options['h6_font_size'] . ';'; } ?> <?php //user set line-height if ($options['h6_font_line_height'] != '-') { echo 'line-height:' . $options['h6_font_line_height'] . ';'; $the_line_height = $options['h6_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Italic Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['i_font_style']); intval(substr($options['i_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['i_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body i, body em, .masonry.meta_overlaid article.post .post-header .meta-author > span, #post-area.masonry.meta_overlaid article.post .post-meta .date, #post-area.masonry.meta_overlaid article.post.quote .quote-inner .author, #post-area.masonry.meta_overlaid article.post.link .post-content .destination {'; ?> <?php if ($options['i_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['i_font']) ? '"' . $options['i_font'] . '"' : $options['i_font']; } if ($options['i_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['i_font_transform'] != '-') { echo 'text-transform: ' . $options['i_font_transform'] . ';'; } if ($options['i_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['i_font_spacing'] . ';'; } if ($options['i_font_size'] != '-') { echo 'font-size:' . $options['i_font_size'] . ';'; } ?> <?php //user set line-height if ($options['i_line_height'] != '-') { echo 'line-height:' . $options['i_line_height'] . ';'; $the_line_height = $options['i_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Header Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['page_heading_font_style']); intval(substr($options['page_heading_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['page_heading_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body #page-header-bg h1, html body .row .col.section-title h1, .nectar-box-roll .overlaid-content h1 {'; ?> <?php if ($options['page_heading_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['page_heading_font']) ? '"' . $options['page_heading_font'] . '"' : $options['page_heading_font']; } if ($options['page_heading_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['page_heading_font_transform'] != '-') { echo 'text-transform: ' . $options['page_heading_font_transform'] . ';'; } if ($options['page_heading_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['page_heading_font_spacing'] . ';'; } if ($options['page_heading_font_size'] != '-') { echo 'font-size:' . $options['page_heading_font_size'] . ';'; } ?> <?php //user set line-height if ($options['page_heading_font_line_height'] != '-') { echo 'line-height:' . $options['page_heading_font_line_height'] . ';'; $the_line_height = $options['page_heading_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 690px) and (max-width: 1000px) { #page-header-bg .span_6 h1, .overlaid-content h1 { font-size: <?php if (!empty($options['page_heading_font_size']) && $options['page_heading_font_size'] != '-') { echo $options['page_heading_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if (!empty($options['page_heading_font_size']) && $options['page_heading_font_size'] != '-') { echo $options['page_heading_font_size'] * 0.7 + 4 . 'px!important'; } ?> ; } } @media only screen and (min-width: 1000px) and (max-width: 1300px) { #page-header-bg .span_6 h1, .nectar-box-roll .overlaid-content h1 { font-size: <?php if (!empty($options['page_heading_font_size']) && $options['page_heading_font_size'] != '-') { echo $options['page_heading_font_size'] * 0.85 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.85 . 'px'; } ?> ; } } @media only screen and (min-width: 1300px) and (max-width: 1500px) { #page-header-bg .span_6 h1, .nectar-box-roll .overlaid-content h1 { font-size: <?php if (!empty($options['page_heading_font_size']) && $options['page_heading_font_size'] != '-') { echo $options['page_heading_font_size'] * 0.9 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.9 . 'px'; } ?> ; } } @media only screen and (max-width: 690px) { #page-header-bg.fullscreen-header .span_6 h1, .overlaid-content h1 { font-size: <?php if (!empty($options['page_heading_font_size']) && $options['page_heading_font_size'] != '-') { echo $options['page_heading_font_size'] * 0.45 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.45 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Header Subtitle Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['page_heading_subtitle_font_style']); intval(substr($options['page_heading_subtitle_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['page_heading_subtitle_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body #page-header-bg .span_6 span.subheader, body .row .col.section-title > span, .nectar-box-roll .overlaid-content .subheader {'; ?> <?php if ($options['page_heading_subtitle_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['page_heading_subtitle_font']) ? '"' . $options['page_heading_subtitle_font'] . '"' : $options['page_heading_subtitle_font']; } if ($options['page_heading_subtitle_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['page_heading_subtitle_font_transform'] != '-') { echo 'text-transform: ' . $options['page_heading_subtitle_font_transform'] . ';'; } if ($options['page_heading_subtitle_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['page_heading_subtitle_font_spacing'] . ';'; } if ($options['page_heading_subtitle_font_size'] != '-') { echo 'font-size:' . $options['page_heading_subtitle_font_size'] . ';'; } ?> <?php //user set line-height if ($options['page_heading_subtitle_font_line_height'] != '-') { echo 'line-height:' . $options['page_heading_subtitle_font_line_height'] . ';'; $the_line_height = $options['page_heading_subtitle_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 1000px) and (max-width: 1300px) { body #page-header-bg:not(.fullscreen-header) .span_6 span.subheader, body .row .col.section-title > span { font-size: <?php if (!empty($options['page_heading_subtitle_font_size']) && $options['page_heading_subtitle_font_size'] != '-') { echo $options['page_heading_subtitle_font_size'] * 0.8 . 'px'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.8 . 'px'; } ?> ; } } @media only screen and (min-width: 690px) and (max-width: 1000px) { body #page-header-bg.fullscreen-header .span_6 span.subheader, .overlaid-content .subheader { font-size: <?php if (!empty($options['page_heading_subtitle_font_size']) && $options['page_heading_subtitle_font_size'] != '-') { echo $options['page_heading_subtitle_font_size'] * 0.9 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.9 . 'px!important'; } ?> ; } } @media only screen and (max-width: 690px) { body #page-header-bg.fullscreen-header .span_6 span.subheader, .overlaid-content .subheader { font-size: <?php if (!empty($options['page_heading_subtitle_font_size']) && $options['page_heading_subtitle_font_size'] != '-') { echo $options['page_heading_subtitle_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Off Canvas Navigation Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['off_canvas_nav_font_style']); intval(substr($options['off_canvas_nav_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['off_canvas_nav_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body #slide-out-widget-area .inner .off-canvas-menu-container li a, body #slide-out-widget-area.fullscreen .inner .off-canvas-menu-container li a {'; ?> <?php if ($options['off_canvas_nav_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['off_canvas_nav_font']) ? '"' . $options['off_canvas_nav_font'] . '"' : $options['off_canvas_nav_font']; } if ($options['off_canvas_nav_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['off_canvas_nav_font_transform'] != '-') { echo 'text-transform: ' . $options['off_canvas_nav_font_transform'] . ';'; } if ($options['off_canvas_nav_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['off_canvas_nav_font_spacing'] . ';'; } if ($options['off_canvas_nav_font_size'] != '-') { echo 'font-size:' . $options['off_canvas_nav_font_size'] . ';'; } ?> <?php //user set line-height if ($options['off_canvas_nav_font_line_height'] != '-') { echo 'line-height:' . $options['off_canvas_nav_font_line_height'] . ';'; $the_line_height = $options['off_canvas_nav_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 690px) and (max-width: 1000px) { body #slide-out-widget-area.fullscreen .inner .off-canvas-menu-container li a { font-size: <?php if (!empty($options['off_canvas_nav_font_size']) && $options['off_canvas_nav_font_size'] != '-') { echo $options['off_canvas_nav_font_size'] * 0.9 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.9 . 'px!important'; } ?> ; } } @media only screen and (max-width: 690px) { body #slide-out-widget-area.fullscreen .inner .off-canvas-menu-container li a { font-size: <?php if (!empty($options['off_canvas_nav_font_size']) && $options['off_canvas_nav_font_size'] != '-') { echo $options['off_canvas_nav_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Off Canvas Navigation Font Subtext /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['off_canvas_nav_subtext_font_style']); intval(substr($options['off_canvas_nav_subtext_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['off_canvas_nav_subtext_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo '#slide-out-widget-area .menuwrapper li small {'; ?> <?php if ($options['off_canvas_nav_subtext_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['off_canvas_nav_subtext_font']) ? '"' . $options['off_canvas_nav_subtext_font'] . '"' : $options['off_canvas_nav_subtext_font']; } if ($options['off_canvas_nav_subtext_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['off_canvas_nav_subtext_font_transform'] != '-') { echo 'text-transform: ' . $options['off_canvas_nav_subtext_font_transform'] . ';'; } if ($options['off_canvas_nav_subtext_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['off_canvas_nav_subtext_font_spacing'] . ';'; } if ($options['off_canvas_nav_subtext_font_size'] != '-') { echo 'font-size:' . $options['off_canvas_nav_subtext_font_size'] . ';'; } ?> <?php //user set line-height if ($options['off_canvas_nav_subtext_font_line_height'] != '-') { echo 'line-height:' . $options['off_canvas_nav_subtext_font_line_height'] . ';'; $the_line_height = $options['off_canvas_nav_subtext_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 690px) and (max-width: 1000px) { #slide-out-widget-area .menuwrapper li small { font-size: <?php if (!empty($options['off_canvas_nav_subtext_font_size']) && $options['off_canvas_nav_subtext_font_size'] != '-') { echo $options['off_canvas_nav_subtext_font_size'] * 0.9 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.9 . 'px!important'; } ?> ; } } @media only screen and (max-width: 690px) { #slide-out-widget-area .menuwrapper li small { font-size: <?php if (!empty($options['off_canvas_nav_subtext_font_size']) && $options['off_canvas_nav_subtext_font_size'] != '-') { echo $options['off_canvas_nav_subtext_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Nectar Slider Heading Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['nectar_slider_heading_font_style']); intval(substr($options['nectar_slider_heading_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['nectar_slider_heading_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '.swiper-slide .content h2 {'; ?> <?php if ($options['nectar_slider_heading_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['nectar_slider_heading_font']) ? '"' . $options['nectar_slider_heading_font'] . '"' : $options['nectar_slider_heading_font']; } if ($options['nectar_slider_heading_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['nectar_slider_heading_font_transform'] != '-') { echo 'text-transform: ' . $options['nectar_slider_heading_font_transform'] . ';'; } if ($options['nectar_slider_heading_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['nectar_slider_heading_font_spacing'] . ';'; } if ($options['nectar_slider_heading_font_size'] != '-') { echo 'font-size:' . $options['nectar_slider_heading_font_size'] . ';'; } ?> <?php //user set line-height if ($options['nectar_slider_heading_font_line_height'] != '-') { echo 'line-height:' . $options['nectar_slider_heading_font_line_height'] . ';'; $the_line_height = $options['nectar_slider_heading_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 1000px) and (max-width: 1300px) { body .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, body .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, body .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: <?php if (!empty($options['nectar_slider_heading_font_size']) && $options['nectar_slider_heading_font_size'] != '-') { echo $options['nectar_slider_heading_font_size'] * 0.8 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.8 . 'px!important'; } ?> ; } } @media only screen and (min-width: 690px) and (max-width: 1000px) { body .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, body .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, body .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: <?php if (!empty($options['nectar_slider_heading_font_size']) && $options['nectar_slider_heading_font_size'] != '-') { echo $options['nectar_slider_heading_font_size'] * 0.6 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.6 . 'px!important'; } ?> ; } } @media only screen and (max-width: 690px) { body .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, body .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, body .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: <?php if (!empty($options['nectar_slider_heading_font_size']) && $options['nectar_slider_heading_font_size'] != '-') { echo $options['nectar_slider_heading_font_size'] * 0.5 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.5 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Nectar/Home Slider Caption /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['home_slider_caption_font_style']); intval(substr($options['home_slider_caption_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['home_slider_caption_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '#featured article .post-title h2 span, .swiper-slide .content p, #portfolio-filters-inline #current-category, body .vc_text_separator div {'; ?> <?php if ($options['home_slider_caption_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['home_slider_caption_font']) ? '"' . $options['home_slider_caption_font'] . '"' : $options['home_slider_caption_font']; } if ($options['home_slider_caption_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['home_slider_caption_font_transform'] != '-') { echo 'text-transform: ' . $options['home_slider_caption_font_transform'] . ';'; } if ($options['home_slider_caption_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['home_slider_caption_font_spacing'] . ';'; } if ($options['home_slider_caption_font_size'] != '-') { echo 'font-size:' . $options['home_slider_caption_font_size'] . ';'; } ?> <?php //user set line-height if ($options['home_slider_caption_font_line_height'] != '-') { echo 'line-height:' . $options['home_slider_caption_font_line_height'] . ';'; $the_line_height = $options['home_slider_caption_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo '#portfolio-filters-inline ul { line-height: ' . $line_height . '; }'; echo '.swiper-slide .content p.transparent-bg span { '; $nectar_slider_line_height_2 = intval(substr($options["home_slider_caption_font_size"], 0, -2)) + 25; ?> <?php if (!empty($line_height)) { echo 'line-height:' . $nectar_slider_line_height_2 . 'px;'; } ?> <?php echo '}'; ?> @media only screen and (min-width: 1000px) and (max-width: 1300px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: <?php if (!empty($options['home_slider_caption_font_size']) && $options['home_slider_caption_font_size'] != '-') { echo $options['home_slider_caption_font_size'] * 0.8 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.8 . 'px!important'; } ?> ; } } @media only screen and (min-width: 690px) and (max-width: 1000px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: <?php if (!empty($options['home_slider_caption_font_size']) && $options['home_slider_caption_font_size'] != '-') { echo $options['home_slider_caption_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px!important'; } ?> ; } } @media only screen and (max-width: 690px) { body .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, body .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, body .full-width-content .vc_span12 .swiper-slide .content p { font-size: <?php if (!empty($options['home_slider_caption_font_size']) && $options['home_slider_caption_font_size'] != '-') { echo $options['home_slider_caption_font_size'] * 0.7 . 'px!important'; } ?> ; line-height: <?php if ($the_line_height) { echo $the_line_height * 0.7 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Testimonial Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['testimonial_font_style']); intval(substr($options['testimonial_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['testimonial_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '.testimonial_slider blockquote, .testimonial_slider blockquote span, blockquote {'; ?> <?php if ($options['testimonial_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['testimonial_font']) ? '"' . $options['testimonial_font'] . '"' : $options['testimonial_font']; } if ($options['testimonial_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['testimonial_font_transform'] != '-') { echo 'text-transform: ' . $options['testimonial_font_transform'] . ';'; } if ($options['testimonial_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['testimonial_font_spacing'] . ';'; } if ($options['testimonial_font_size'] != '-') { echo 'font-size:' . $options['testimonial_font_size'] . ';'; } ?> <?php //user set line-height if ($options['testimonial_font_line_height'] != '-') { echo 'line-height:' . $options['testimonial_font_line_height'] . ';'; $the_line_height = $options['testimonial_font_line_height']; } else { if (!empty($line_height)) { //auto line-height echo 'line-height:' . $line_height . ';'; $the_line_height = $line_height; } else { $the_line_height = null; } } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Sidear, Carousel & Nectar Button Header Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['sidebar_footer_h_font_style']); $line_height = substr($options['sidebar_footer_h_font_size'], 0, -2); ?> <?php echo '#footer-outer .widget h4, #sidebar h4, #call-to-action .container a, .uppercase, .nectar-button, body .widget_calendar table th, body #footer-outer #footer-widgets .col .widget_calendar table th, .swiper-slide .button a, header#top nav > ul > li.megamenu > ul > li > a, .carousel-heading h2, body .gform_wrapper .top_label .gfield_label, body .vc_pie_chart .wpb_pie_chart_heading, #infscr-loading div, #page-header-bg .author-section a, .ascend input[type="submit"], .ascend button[type="submit"], .widget h4, .text-on-hover-wrap .categories a, .text_on_hover.product .add_to_cart_button, .woocommerce-page div[data-project-style="text_on_hover"] .single_add_to_cart_button, .woocommerce div[data-project-style="text_on_hover"] .cart .quantity input.qty, .woocommerce-page #respond input#submit, .meta_overlaid article.post .post-header h2, .meta_overlaid article.post.quote .post-content h2, .meta_overlaid article.post.link .post-content h2, .meta_overlaid article.post.format-status .post-content h2, .meta_overlaid article .meta-author a, .pricing-column.highlight h3 .highlight-reason, .blog-recent[data-style="minimal"] .col > span {'; ?> <?php if ($options['sidebar_footer_h_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['sidebar_footer_h_font']) ? '"' . $options['sidebar_footer_h_font'] . '"' : $options['sidebar_footer_h_font']; } if ($options['sidebar_footer_h_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['sidebar_footer_h_font_transform'] != '-') { echo 'text-transform: ' . $options['sidebar_footer_h_font_transform'] . '!important;'; } if ($options['sidebar_footer_h_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['sidebar_footer_h_font_spacing'] . ';'; } if ($options['sidebar_footer_h_font_size'] != '-') { echo 'font-size:' . $options['sidebar_footer_h_font_size'] . ';'; } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } else { echo 'font-weight: normal;'; } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Team member names & heading subtitles /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['team_member_h_font_style']); $line_height = substr($options['team_member_h_font_size'], 0, -2); ?> <?php echo '.team-member h4, .row .col.section-title p, .row .col.section-title span, #page-header-bg .subheader, .nectar-milestone .subject, .testimonial_slider blockquote span {'; ?> <?php if ($options['team_member_h_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['team_member_h_font']) ? '"' . $options['team_member_h_font'] . '"' : $options['team_member_h_font']; } if ($options['team_member_h_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['team_member_h_font_transform'] != '-') { echo 'text-transform: ' . $options['team_member_h_font_transform'] . ';'; } if ($options['team_member_h_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['team_member_h_font_spacing'] . ';'; } if ($options['team_member_h_font_size'] != '-') { echo 'font-size:' . $options['team_member_h_font_size'] . ';'; } ?> <?php if (!empty($styles[0]) && $styles[0] == 'regular') { $styles[0] = '400'; } if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo 'article.post .post-meta .month { line-height:' . $line_height + -6 . 'px!important; }'; if ($external_dynamic != 'on') { echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); } }
function nectar_custom_css() { ob_start(); $options = get_option('salient'); //boxed css if (!empty($options['boxed_layout']) && $options['boxed_layout'] == '1') { $attachment = $options["background-attachment"]; $position = $options["background-position"]; $repeat = $options["background-repeat"]; $background_color = $options["background-color"]; echo '<style type="text/css"> body { background-image: url("' . $options["background_image"] . '"); background-position: ' . $position . '; background-repeat: ' . $repeat . '; background-color: ' . $background_color . '!important; background-attachment: ' . $attachment . ';'; if (!empty($options["background-cover"]) && $options["background-cover"] == '1') { echo 'background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover;'; } echo '} </style>'; } //top nav $logo_height = !empty($options['use-logo']) && !empty($options['logo-height']) ? intval($options['logo-height']) : 30; $header_padding = !empty($options['header-padding']) ? intval($options['header-padding']) : 28; $nav_font_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2) * 1.4) : 20; $dd_indicator_height = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-' ? intval(substr($options['navigation_font_size'], 0, -2)) - 1 : 20; $padding_top = ceil($logo_height / 2) - ceil($nav_font_size / 2); $padding_bottom = ceil($logo_height / 2) - ceil($nav_font_size / 2) + $header_padding; $search_padding_top = ceil($logo_height / 2) - ceil(21 / 2) + 1; $search_padding_bottom = ceil($logo_height / 2) - ceil(21 / 2); $using_secondary = !empty($options['header_layout']) ? $options['header_layout'] : ' '; if ($using_secondary == 'header_with_secondary') { $header_space = $logo_height + $header_padding * 2 + 34; } else { $header_space = $logo_height + $header_padding * 2; } //woo product title $wooSocial = !empty($options['woo_social']) && $options['woo_social'] == 1 ? '1' : '0'; $wooSocialCount = 0; $wooProductTitlePadding = 0; if ($wooSocial == '1') { if (!empty($options['woo-facebook-sharing']) && $options['woo-facebook-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-twitter-sharing']) && $options['woo-twitter-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-pinterest-sharing']) && $options['woo-pinterest-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-google-plus-sharing']) && $options['woo-google-plus-sharing'] == 1) { $wooSocialCount++; } if (!empty($options['woo-linkedin-sharing']) && $options['woo-linkedin-sharing'] == 1) { $wooSocialCount++; } $wooProductTitlePadding = $wooSocialCount * 52 + 50; } //legacy WP header changes if (floatval(get_bloginfo('version')) < "3.8") { echo '<style> html .admin-bar #header-outer, html .logged-in.buddypress #header-outer { top: 28px; } html .admin-bar #header-outer[data-using-secondary="1"], html .logged-in.buddypress #header-outer[data-using-secondary="1"] { top: 60px; } </style>'; } echo '<style type="text/css"> #header-outer { padding-top: ' . $header_padding . 'px; } #header-outer #logo img { height: ' . $logo_height . 'px; } header#top nav > ul > li > a { padding-bottom: ' . $padding_bottom . 'px; padding-top: ' . $padding_top . 'px; } header#top nav > ul li#search-btn { padding-bottom: ' . $search_padding_bottom . 'px; padding-top: ' . $search_padding_top . 'px; } header#top .sf-menu > li.sfHover > ul { top: ' . $nav_font_size . 'px; } .sf-sub-indicator { height: ' . $dd_indicator_height . 'px; } #header-space { height: ' . $header_space . 'px;} body[data-smooth-scrolling="1"] #full_width_portfolio .project-title.parallax-effect { top: ' . $header_space . 'px; } body.single-product div.product .product_title { padding-right:' . $wooProductTitlePadding . 'px; }'; //nectar slider font calcs $heading_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && $options['nectar_slider_heading_font_size'] != '-' ? intval($options['nectar_slider_heading_font_size']) : 60; $caption_size = !empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && $options['home_slider_caption_font_size'] != '-' ? intval($options['home_slider_caption_font_size']) : 24; echo '@media only screen and (min-width: 1000px) and (max-width: 1300px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: ' . $heading_size * 0.75 . 'px!important; line-height: ' . $heading_size * 0.85 . 'px!important; } .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: ' . $caption_size * 0.75 . 'px!important; line-height: ' . $caption_size * 1.3 . 'px!important; } } @media only screen and (min-width : 690px) and (max-width : 1000px) { .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content h2, .full-width-content .vc_span12 .swiper-slide .content h2 { font-size: ' . $heading_size * 0.55 . 'px!important; line-height: ' . $heading_size * 0.65 . 'px!important; } .nectar-slider-wrap[data-full-width="true"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"] .swiper-slide .content p, .full-width-content .vc_span12 .swiper-slide .content p { font-size: ' . $caption_size * 0.55 . 'px!important; line-height: ' . $caption_size * 1 . 'px!important; } } @media only screen and (max-width : 690px) { .nectar-slider-wrap[data-full-width="true"][data-fullscreen="false"] .swiper-slide .content h2, .nectar-slider-wrap[data-full-width="boxed-full-width"][data-fullscreen="false"] .swiper-slide .content h2, .full-width-content .vc_span12 .nectar-slider-wrap[data-fullscreen="false"] .swiper-slide .content h2 { font-size: ' . $heading_size * 0.25 . 'px!important; line-height: ' . $heading_size * 0.35 . 'px!important; } .nectar-slider-wrap[data-full-width="true"][data-fullscreen="false"] .swiper-slide .content p, .nectar-slider-wrap[data-full-width="boxed-full-width"][data-fullscreen="false"] .swiper-slide .content p, .full-width-content .vc_span12 .nectar-slider-wrap[data-fullscreen="false"] .swiper-slide .content p { font-size: ' . $caption_size * 0.32 . 'px!important; line-height: ' . $caption_size * 0.73 . 'px!important; } } '; // header transparent option if (!empty($options['transparent-header']) && $options['transparent-header'] == '1') { global $post; $starting_color = empty($options['header-starting-color']) ? '#ffffff' : $options['header-starting-color']; $activate_transparency = using_page_header($post->ID); if ($activate_transparency) { //old IE versions echo '.no-rgba #header-space { display: none; } '; echo '@media only screen and (min-width: 1000px) { #header-space { display: none; } .nectar-slider-wrap.first-section, .parallax_slider_outer.first-section, .full-width-content.first-section, .parallax_slider_outer.first-section .swiper-slide .content, .nectar-slider-wrap.first-section .swiper-slide .content, #page-header-bg, .nder-page-header, #page-header-wrap, .full-width-section.first-section { margin-top: 0!important; } body #page-header-bg, body #page-header-wrap { height: ' . $header_space . 'px; } .swiper-container .slider-prev, .swiper-container .slider-next { top: 52%!important; } body #search-outer { z-index: 100000; } #header-outer.transparent header#top #logo, #header-outer.transparent header#top #logo:hover { color: ' . $starting_color . '!important; } #header-outer.transparent header#top nav > ul > li > a, #header-outer.transparent header#top nav ul #search-btn a span, #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class^="icon-"], #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class*=" icon-"], #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart { color: ' . $starting_color . '!important; opacity: 0.75; transition: opacity 0.2s linear, color 0.2s linear; } #header-outer.transparent header#top nav > ul > li > a:hover, #header-outer.transparent header#top nav .sf-menu > li.sfHover > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a, #header-outer.transparent header#top nav .sf-menu > li.current_page_item > a, #header-outer.transparent header#top nav > ul > li > a:hover > .sf-sub-indicator > i, #header-outer.transparent header#top nav > ul > li.sfHover > a > span > i, #header-outer.transparent header#top nav ul #search-btn a:hover span, #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a i, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a i { opacity: 1!Important; color: ' . $starting_color . '!important; } }'; } } // ext responsive global $woocommerce; if (!empty($options['responsive']) && $options['responsive'] == 1 && !empty($options['ext_responsive']) && $options['ext_responsive'] == '1') { echo '@media only screen and (min-width: 1000px) { .container { max-width: 1425px; width: 100%; padding: 0px 90px; } .swiper-slide .content { padding: 0px 90px; } body .container .container { width: 100%!important; padding: 0!important; } body .carousel-heading .container { padding: 0 10px!important; } body .carousel-heading .container .carousel-next { right: 10px; } body .carousel-heading .container .carousel-prev { right: 35px; } .carousel-wrap[data-full-width="true"] .carousel-heading a.portfolio-page-link { left: 90px; } .carousel-wrap[data-full-width="true"] .carousel-heading { margin-left: -20px; margin-right: -20px; } .carousel-wrap[data-full-width="true"] .carousel-next { right: 90px!important; } .carousel-wrap[data-full-width="true"] .carousel-prev { right: 115px!important; } .carousel-wrap[data-full-width="true"] { padding: 0!important; } .carousel-wrap[data-full-width="true"] .caroufredsel_wrapper { padding: 20px!important; } #search-outer #search #close a { right: 90px; } #boxed, #boxed #header-outer, #boxed #header-secondary-outer, #boxed #page-header-bg[data-parallax="1"], #boxed #featured, #boxed .orbit > div, #boxed #featured article { max-width: 1400px!important; width: 90%!important; min-width: 980px; } #boxed #search-outer #search #close a { right: 0!important; } #boxed .container { width: 92%; padding: 0; } #boxed #footer-outer #footer-widgets, #boxed #footer-outer #copyright { padding-left: 0; padding-right: 0; } #boxed .carousel-wrap[data-full-width="true"] .carousel-heading a.portfolio-page-link { left: 35px; } #boxed .carousel-wrap[data-full-width="true"] .carousel-next { right: 35px!important; } #boxed .carousel-wrap[data-full-width="true"] .carousel-prev { right: 60px!important; } }'; if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul { padding-right: 20px!important; } #boxed header#top nav > ul.product_added { padding-right: 0px!important; } #search-outer #search #close a { right: 110px; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1') { echo '@media only screen and (min-width: 1080px) and (max-width: 1475px) { header#top nav > ul.product_added { padding-right: 20px!important; } #boxed header#top nav > ul.product_added { padding-right: 0px!important; } #search-outer #search #close a.product_added { right: 110px; } }'; } } //full width header shopping cart fix if ($woocommerce && $woocommerce->cart->cart_contents_count > 0 && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added { padding-right: 80px!important; } }'; } elseif ($woocommerce && !empty($options['enable-cart']) && $options['enable-cart'] == '1' && !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1') { echo '@media only screen and (min-width: 1080px) { #header-outer[data-full-width="true"] header#top nav > ul.product_added { padding-right: 80px!important; } }'; } echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); //Default fonts with extended chars if (!empty($options['extended-theme-font']) && $options['extended-theme-font'] != '0') { echo "<style type='text/css'> @font-face{font-family:OpenSansLight;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Light-webfont.svg#OpenSansLight') format('svg')!important}@font-face{font-family:OpenSansRegular;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg')!important}@font-face{font-family:OpenSansSemibold;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg')!important}@font-face{font-family:OpenSansBold;src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.eot');src:url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.woff') format('woff'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.ttf') format('truetype'),url('" . get_template_directory_uri() . "/css/fonts/default_ext_chars/OpenSans-Bold-webfont.svg#OpenSansBold') format('svg')!important} </style>\n\t\t"; } //custom css if (!empty($options["custom-css"])) { echo '<style type="text/css">' . $options["custom-css"] . '</style>'; } }
}'; } if ($woocommerce && !empty($options['product_tab_position']) && $options['product_tab_position'] == 'fullwidth') { echo ' .woocommerce.single-product #single-meta { position: relative!important; top: 0!important; margin: 0; left: 8px; height: auto; } .woocommerce.single-product #single-meta:after { display: block; content: " "; clear: both; height: 1px; } .woocommerce-tabs { margin-top: 40px; clear: both; } @media only screen and (min-width: 1000px) { .woocommerce #reviews #comments, .woocommerce #reviews #review_form_wrapper { float: left; width: 47%; } .woocommerce #reviews #comments { margin-right: 3%; width: 50%; } .woocommerce.ascend #respond { margin-top: 0px!important; } .woocommerce .woocommerce-tabs > div { margin-top: 15px!important; } .woocommerce #reviews #reply-title { margin-top: 5px!important; } }'; } } if ($external_dynamic != 'on') { //custom css if (!empty($options["custom-css"])) { echo $options["custom-css"]; } echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); } else { //custom css if (!empty($options["custom-css"])) { echo $options["custom-css"]; } }
function nectar_colors() { global $options; global $external_dynamic; if ($external_dynamic != 'on') { ob_start(); } $social_accent_color = !empty($options["sharing_btn_accent_color"]) && $options["sharing_btn_accent_color"] == '1' ? 'body .twitter-share:hover i, .twitter-share.hovered i, body .linkedin-share:hover i, .linkedin-share.hovered i, body .google-plus-share:hover i, .google-plus-share.hovered i, .pinterest-share:hover i, .pinterest-share.hovered i, .facebook-share:hover i, .facebook-share.hovered i,' : null; global $woocommerce; if ($woocommerce) { $woocommerce_main = ', .woocommerce ul.products li.product .onsale, .woocommerce-page ul.products li.product .onsale, .woocommerce span.onsale, .woocommerce-page span.onsale, .woocommerce .product-wrap .add_to_cart_button.added, .single-product .facebook-share a:hover, .single-product .twitter-share a:hover, .single-product .pinterest-share a:hover, .woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-page table.cart a.remove:hover, .woocommerce .chzn-container .chzn-results .highlighted, .woocommerce .chosen-container .chosen-results .highlighted, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce .container-wrap nav.woocommerce-pagination ul li:hover span, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li.active, .woocommerce #content div.product .woocommerce-tabs ul.tabs li.active, .woocommerce-page div.product .woocommerce-tabs ul.tabs li.active, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li.active, .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce-page .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_layered_nav_filters ul li a:hover, .woocommerce-page .widget_layered_nav_filters ul li a:hover '; } else { $woocommerce_main = null; } if ($external_dynamic != 'on') { echo '<style type="text/css">'; } echo 'body a { color: ' . $options["accent-color"] . '; } header#top nav ul li a:hover, header#top nav .sf-menu li.sfHover > a, header#top nav .sf-menu li.current-menu-item > a, header#top nav .sf-menu li.current_page_item > a .sf-sub-indicator i, header#top nav .sf-menu li.current_page_ancestor > a .sf-sub-indicator i, header#top nav ul li a:hover, header#top nav .sf-menu li.sfHover > a, header#top nav .sf-menu li.current_page_ancestor > a, header#top nav .sf-menu li.current-menu-ancestor > a, header#top nav .sf-menu li.current_page_item > a, body header#top nav .sf-menu li.current_page_item > a .sf-sub-indicator [class^="icon-"], header#top nav .sf-menu li.current_page_ancestor > a .sf-sub-indicator [class^="icon-"], header#top nav .sf-menu li.current-menu-ancestor > a, header#top nav .sf-menu li.current_page_item > a, .sf-menu li ul li.sfHover > a .sf-sub-indicator [class^="icon-"], ul.sf-menu > li > a:hover > .sf-sub-indicator i, ul.sf-menu > li > a:active > .sf-sub-indicator i, ul.sf-menu > li.sfHover > a > .sf-sub-indicator i, .sf-menu ul li.current_page_item > a , .sf-menu ul li.current-menu-ancestor > a, .sf-menu ul li.current_page_ancestor > a, .sf-menu ul a:focus , .sf-menu ul a:hover, .sf-menu ul a:active, .sf-menu ul li:hover > a, .sf-menu ul li.sfHover > a, .sf-menu li ul li a:hover, .sf-menu li ul li.sfHover > a, #footer-outer a:hover, .recent-posts .post-header a:hover, article.post .post-header a:hover, article.result a:hover, article.post .post-header h2 a, .single article.post .post-meta a:hover, .comment-list .comment-meta a:hover, label span, .wpcf7-form p span, .icon-3x[class^="icon-"], .icon-3x[class*=" icon-"], .icon-tiny[class^="icon-"], .circle-border, article.result .title a, .home .blog-recent .col .post-header a:hover, .home .blog-recent .col .post-header h3 a, #single-below-header a:hover, header#top #logo:hover, .sf-menu > li.current_page_ancestor > a > .sf-sub-indicator [class^="icon-"], .sf-menu > li.current-menu-ancestor > a > .sf-sub-indicator [class^="icon-"], body #mobile-menu li.open > a [class^="icon-"], .pricing-column h3, .comment-author a:hover, .project-attrs li i, #footer-outer #copyright li a i:hover, .col:hover > [class^="icon-"].icon-3x.accent-color.alt-style.hovered, .col:hover > [class*=" icon-"].icon-3x.accent-color.alt-style.hovered, #header-outer .widget_shopping_cart .cart_list a, .woocommerce .star-rating, .woocommerce-page table.cart a.remove, .woocommerce form .form-row .required, .woocommerce-page form .form-row .required, body #header-secondary-outer #social a:hover i, .woocommerce ul.products li.product .price, ' . $social_accent_color . ' .woocommerce-page ul.products li.product .price, .nectar-milestone .number.accent-color, header#top nav > ul > li.megamenu > ul > li > a:hover, header#top nav > ul > li.megamenu > ul > li.sfHover > a, body #portfolio-nav a:hover i, span.accent-color, .nectar-love:hover i, .nectar-love.loved i, .portfolio-items .nectar-love:hover i, .portfolio-items .nectar-love.loved i, body .hovered .nectar-love i, header#top nav ul #search-btn a:hover span, header#top nav ul .slide-out-widget-area-toggle a:hover span, #search-outer #search #close a span:hover, .carousel-wrap[data-full-width="true"] .carousel-heading a:hover i, #search-outer .ui-widget-content li:hover a .title, #search-outer .ui-widget-content .ui-state-hover .title, #search-outer .ui-widget-content .ui-state-focus .title, .portfolio-filters-inline .container ul li a.active, body [class^="icon-"].icon-default-style, .team-member a.accent-color:hover, .ascend .comment-list .reply a, .wpcf7-form .wpcf7-not-valid-tip, .text_on_hover.product .add_to_cart_button { color:' . $options["accent-color"] . '!important; } .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.accent-color.alt-style.hovered, body .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.accent-color.alt-style.hovered, .ascend #header-outer:not(.transparent) .cart-outer:hover .cart-menu-wrap:not(.has_products) .icon-salient-cart { color:' . $options["accent-color"] . '!important; } .orbit-wrapper div.slider-nav span.right, .orbit-wrapper div.slider-nav span.left, .flex-direction-nav a, .jp-play-bar, .jp-volume-bar-value, .jcarousel-prev:hover, .jcarousel-next:hover, .portfolio-items .col[data-default-color="true"] .work-info-bg, .portfolio-items .col[data-default-color="true"] .bottom-meta, .portfolio-filters a, .portfolio-filters #sort-portfolio, .project-attrs li span, .progress li span, .nectar-progress-bar span, #footer-outer #footer-widgets .col .tagcloud a:hover, #sidebar .widget .tagcloud a:hover, article.post .more-link span:hover, article.post.quote .post-content .quote-inner, article.post.link .post-content .link-inner, #pagination .next a:hover, #pagination .prev a:hover, .comment-list .reply a:hover, input[type=submit]:hover, input[type="button"]:hover, #footer-outer #copyright li a.vimeo:hover, #footer-outer #copyright li a.behance:hover, .toggle.open h3 a, .tabbed > ul li a.active-tab, [class*=" icon-"], .icon-normal, .bar_graph li span, .nectar-button[data-color-override="false"].regular-button, .nectar-button.tilt.accent-color, body .swiper-slide .button.transparent_2 a.primary-color:hover, #footer-outer #footer-widgets .col input[type="submit"], .carousel-prev:hover, .carousel-next:hover, .blog-recent .more-link span:hover, .post-tags a:hover, .pricing-column.highlight h3, #to-top:hover, #to-top.dark:hover, #pagination a.page-numbers:hover, #pagination span.page-numbers.current, .single-portfolio .facebook-share a:hover, .single-portfolio .twitter-share a:hover, .single-portfolio .pinterest-share a:hover, .single-post .facebook-share a:hover, .single-post .twitter-share a:hover, .single-post .pinterest-share a:hover, .mejs-controls .mejs-time-rail .mejs-time-current, .mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-current, .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current, article.post.quote .post-content .quote-inner, article.post.link .post-content .link-inner, article.format-status .post-content .status-inner, article.post.format-aside .aside-inner, body #header-secondary-outer #social li a.behance:hover, body #header-secondary-outer #social li a.vimeo:hover, #sidebar .widget:hover [class^="icon-"].icon-3x, .woocommerce-page div[data-project-style="text_on_hover"] .single_add_to_cart_button, article.post.quote .content-inner .quote-inner .whole-link, .iosSlider .prev_slide:hover, .iosSlider .next_slide:hover, body [class^="icon-"].icon-3x.alt-style.accent-color, body [class*=" icon-"].icon-3x.alt-style.accent-color, #slide-out-widget-area, #header-outer .widget_shopping_cart a.button, #header-outer a.cart-contents .cart-wrap span, .swiper-slide .button.solid_color a, .swiper-slide .button.solid_color_2 a, .portfolio-filters, button[type=submit]:hover, #buddypress button:hover, #buddypress a.button:hover, #buddypress ul.button-nav li.current a, header#top nav ul .slide-out-widget-area-toggle a:hover i.lines, header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:after, header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:before, #buddypress a.button:focus, .text_on_hover.product a.added_to_cart, .woocommerce div.product .woocommerce-tabs .full-width-content ul.tabs li a:after, .woocommerce div[data-project-style="text_on_hover"] .cart .quantity input.minus, .woocommerce div[data-project-style="text_on_hover"] .cart .quantity input.plus, .woocommerce .span_4 input[type="submit"].checkout-button ' . $woocommerce_main . ' { background-color:' . $options["accent-color"] . '!important; } .col:hover > [class^="icon-"].icon-3x:not(.alt-style).accent-color.hovered, .col:hover > [class*=" icon-"].icon-3x:not(.alt-style).accent-color.hovered, body .nectar-button.see-through-2[data-hover-color-override="false"]:hover, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x:not(.alt-style).accent-color.hovered, .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x:not(.alt-style).accent-color.hovered { background-color:' . $options["accent-color"] . '!important; } .tabbed > ul li a.active-tab, body .recent_projects_widget a:hover img, .recent_projects_widget a:hover img, #sidebar #flickr a:hover img, body .nectar-button.see-through-2[data-hover-color-override="false"]:hover, #footer-outer #flickr a:hover img, #featured article .post-title a:hover, body #featured article .post-title a:hover, div.wpcf7-validation-errors { border-color:' . $options["accent-color"] . '!important; } .default-loading-icon:before { border-top-color:' . $options["accent-color"] . '!important; } #header-outer a.cart-contents span:before { border-color: transparent ' . $options["accent-color"] . '!important; } .col:not(#post-area):not(.span_12):not(#sidebar):hover .hovered .circle-border, #sidebar .widget:hover .circle-border { border-color:' . $options["accent-color"] . '; } .gallery a:hover img { border-color:' . $options["accent-color"] . '!important; }'; if (!empty($options['responsive']) && $options['responsive'] == 1) { echo '@media only screen and (min-width : 1px) and (max-width : 1000px) { body #featured article .post-title > a { background-color:' . $options["accent-color"] . '; } body #featured article .post-title > a { border-color:' . $options["accent-color"] . '; } }'; } if (!empty($options["extra-color-1"])) { /*Extra Color 1*/ echo ' .nectar-button.regular-button.extra-color-1, .nectar-button.tilt.extra-color-1 { background-color: ' . $options["extra-color-1"] . '!important; } .icon-3x[class^="icon-"].extra-color-1:not(.alt-style), .icon-tiny[class^="icon-"].extra-color-1, .icon-3x[class*=" icon-"].extra-color-1:not(.alt-style) , .icon-3x[class*=" icon-"].extra-color-1:not(.alt-style) .circle-border, .woocommerce-page table.cart a.remove, #header-outer .widget_shopping_cart .cart_list li a.remove, #header-outer .woocommerce.widget_shopping_cart .cart_list li a.remove, .nectar-milestone .number.extra-color-1, span.extra-color-1, .team-member ul.social.extra-color-1 li a, .stock.out-of-stock, body [class^="icon-"].icon-default-style.extra-color-1, .team-member a.extra-color-1:hover { color: ' . $options["extra-color-1"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-1:not(.alt-style), .col:hover > [class*=" icon-"].icon-3x.extra-color-1:not(.alt-style).hovered, body .swiper-slide .button.transparent_2 a.extra-color-1:hover, body .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-1:not(.alt-style).hovered, body .col:not(#post-area):not(#sidebar):not(.span_12):hover a [class*=" icon-"].icon-3x.extra-color-1:not(.alt-style).hovered, #sidebar .widget:hover [class^="icon-"].icon-3x.extra-color-1:not(.alt-style) { background-color: ' . $options["extra-color-1"] . '!important; } body [class^="icon-"].icon-3x.alt-style.extra-color-1, body [class*=" icon-"].icon-3x.alt-style.extra-color-1, [class*=" icon-"].extra-color-1.icon-normal, .extra-color-1.icon-normal, .bar_graph li span.extra-color-1, .nectar-progress-bar span.extra-color-1, #header-outer .widget_shopping_cart a.button, .woocommerce ul.products li.product .onsale, .woocommerce-page ul.products li.product .onsale, .woocommerce span.onsale, .woocommerce-page span.onsale, .woocommerce-page table.cart a.remove:hover, .swiper-slide .button.solid_color a.extra-color-1, .swiper-slide .button.solid_color_2 a.extra-color-1, .toggle.open.extra-color-1 h3 a { background-color: ' . $options["extra-color-1"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-1.alt-style.hovered, .col:hover > [class*=" icon-"].icon-3x.extra-color-1.alt-style.hovered, .no-highlight.extra-color-1 h3, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-1.alt-style.hovered, body .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.extra-color-1.alt-style.hovered { color: ' . $options["extra-color-1"] . '!important; } .col:not(#post-area):not(.span_12):not(#sidebar):hover .extra-color-1.hovered .circle-border, .woocommerce-page table.cart a.remove, #header-outer .woocommerce.widget_shopping_cart .cart_list li a.remove, #header-outer .woocommerce.widget_shopping_cart .cart_list li a.remove, #sidebar .widget:hover .extra-color-1 .circle-border, .woocommerce-page table.cart a.remove { border-color:' . $options["extra-color-1"] . '; } .pricing-column.highlight.extra-color-1 h3 { background-color:' . $options["extra-color-1"] . '!important; } '; } /*Extra Color 2*/ if (!empty($options["extra-color-2"])) { echo ' .nectar-button.regular-button.extra-color-2, .nectar-button.tilt.extra-color-2 { background-color: ' . $options["extra-color-2"] . '!important; } .icon-3x[class^="icon-"].extra-color-2:not(.alt-style), .icon-3x[class*=" icon-"].extra-color-2:not(.alt-style), .icon-tiny[class^="icon-"].extra-color-2, .icon-3x[class*=" icon-"].extra-color-2 .circle-border, .nectar-milestone .number.extra-color-2, span.extra-color-2, .team-member ul.social.extra-color-2 li a, body [class^="icon-"].icon-default-style.extra-color-2, .team-member a.extra-color-2:hover { color: ' . $options["extra-color-2"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-2:not(.alt-style).hovered, .col:hover > [class*=" icon-"].icon-3x.extra-color-2:not(.alt-style).hovered, body .swiper-slide .button.transparent_2 a.extra-color-2:hover, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-2:not(.alt-style).hovered, .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.extra-color-2:not(.alt-style).hovered, #sidebar .widget:hover [class^="icon-"].icon-3x.extra-color-2:not(.alt-style) { background-color: ' . $options["extra-color-2"] . '!important; } body [class^="icon-"].icon-3x.alt-style.extra-color-2, body [class*=" icon-"].icon-3x.alt-style.extra-color-2, [class*=" icon-"].extra-color-2.icon-normal, .extra-color-2.icon-normal, .bar_graph li span.extra-color-2, .nectar-progress-bar span.extra-color-2, .woocommerce .product-wrap .add_to_cart_button.added, .woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce-page .widget_price_filter .ui-slider .ui-slider-range, .swiper-slide .button.solid_color a.extra-color-2, .swiper-slide .button.solid_color_2 a.extra-color-2, .toggle.open.extra-color-2 h3 a { background-color: ' . $options["extra-color-2"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-2.alt-style.hovered, .col:hover > [class*=" icon-"].icon-3x.extra-color-2.alt-style.hovered, .no-highlight.extra-color-2 h3, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-2.alt-style.hovered, body .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.extra-color-2.alt-style.hovered { color: ' . $options["extra-color-2"] . '!important; } .col:not(#post-area):not(.span_12):not(#sidebar):hover .extra-color-2.hovered .circle-border, #sidebar .widget:hover .extra-color-2 .circle-border { border-color:' . $options["extra-color-2"] . '; } .pricing-column.highlight.extra-color-2 h3 { background-color:' . $options["extra-color-2"] . '!important; } '; } /*Extra Color 3*/ if (!empty($options["extra-color-3"])) { echo ' .nectar-button.regular-button.extra-color-3, .nectar-button.tilt.extra-color-3 { background-color: ' . $options["extra-color-3"] . '!important; } .icon-3x[class^="icon-"].extra-color-3:not(.alt-style) , .icon-3x[class*=" icon-"].extra-color-3:not(.alt-style) , .icon-tiny[class^="icon-"].extra-color-3, .icon-3x[class*=" icon-"].extra-color-3 .circle-border, .nectar-milestone .number.extra-color-3, span.extra-color-3, .team-member ul.social.extra-color-3 li a, body [class^="icon-"].icon-default-style.extra-color-3, .team-member a.extra-color-3:hover { color: ' . $options["extra-color-3"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-3:not(.alt-style).hovered, .col:hover > [class*=" icon-"].icon-3x.extra-color-3:not(.alt-style).hovered, body .swiper-slide .button.transparent_2 a.extra-color-3:hover, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-3:not(.alt-style).hovered, .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.extra-color-3:not(.alt-style).hovered, #sidebar .widget:hover [class^="icon-"].icon-3x.extra-color-3:not(.alt-style) { background-color: ' . $options["extra-color-3"] . '!important; } body [class^="icon-"].icon-3x.alt-style.extra-color-3, body [class*=" icon-"].icon-3x.alt-style.extra-color-3, .extra-color-3.icon-normal, [class*=" icon-"].extra-color-3.icon-normal, .bar_graph li span.extra-color-3, .nectar-progress-bar span.extra-color-3, .swiper-slide .button.solid_color a.extra-color-3, .swiper-slide .button.solid_color_2 a.extra-color-3, .toggle.open.extra-color-3 h3 a { background-color: ' . $options["extra-color-3"] . '!important; } .col:hover > [class^="icon-"].icon-3x.extra-color-3.alt-style.hovered, .col:hover > [class*=" icon-"].icon-3x.extra-color-3.alt-style.hovered, .no-highlight.extra-color-3 h3, .col:not(#post-area):not(.span_12):not(#sidebar):hover [class^="icon-"].icon-3x.extra-color-3.alt-style.hovered, body .col:not(#post-area):not(.span_12):not(#sidebar):hover a [class*=" icon-"].icon-3x.extra-color-3.alt-style.hovered { color: ' . $options["extra-color-3"] . '!important; } .col:not(#post-area):not(.span_12):not(#sidebar):hover .extra-color-3.hovered .circle-border, #sidebar .widget:hover .extra-color-3 .circle-border { border-color:' . $options["extra-color-3"] . '; } .pricing-column.highlight.extra-color-3 h3 { background-color:' . $options["extra-color-3"] . '!important; } '; } /*Custom header colors*/ if (!empty($options['header-color']) && $options['header-color'] == 'custom') { if (!empty($options['header-background-color'])) { echo 'body #header-outer, body #search-outer { background-color:' . $options['header-background-color'] . '; }'; } if (!empty($options['header-font-color'])) { echo 'header#top nav > ul > li > a, header#top #logo, header#top .span_9 > .slide-out-widget-area-toggle i, .sf-sub-indicator [class^="icon-"], body[data-header-color="custom"].ascend #boxed #header-outer .cart-menu .cart-icon-wrap i, body.ascend #boxed #header-outer .cart-menu .cart-icon-wrap i, .sf-sub-indicator [class*=" icon-"], header#top nav ul #search-btn a span, header#top #toggle-nav i, header#top #toggle-nav i, header#top #mobile-cart-link i, #header-outer .cart-menu .cart-icon-wrap .icon-salient-cart, #search-outer #search input[type="text"], #search-outer #search #close a span { color:' . $options['header-font-color'] . '!important; }'; echo 'header#top nav ul .slide-out-widget-area-toggle a i.lines, header#top nav ul .slide-out-widget-area-toggle a i.lines:after, header#top nav ul .slide-out-widget-area-toggle a i.lines:before { background-color:' . $options['header-font-color'] . '!important; }'; } if (!empty($options['header-font-hover-color'])) { echo 'body header#top nav > ul > li > a:hover, header#top #logo:hover, .ascend #header-outer:not(.transparent) .cart-outer:hover .cart-menu-wrap:not(.has_products) .icon-salient-cart, body header#top nav .sf-menu > li.sfHover > a, body header#top nav .sf-menu > li.current-menu-item > a, body header#top nav .sf-menu > li.current_page_item > a .sf-sub-indicator i, body header#top nav .sf-menu > li.current_page_ancestor > a .sf-sub-indicator i, body header#top nav .sf-menu > li.sfHover > a, body header#top nav .sf-menu > li.current_page_ancestor > a, body header#top nav .sf-menu > li.current-menu-ancestor > a, body header#top nav .sf-menu > li.current-menu-ancestor > a i, body header#top nav .sf-menu > li.current_page_item > a, body header#top nav .sf-menu > li.current_page_item > a .sf-sub-indicator [class^="icon-"], body header#top nav .sf-menu > li.current_page_ancestor > a .sf-sub-indicator [class^="icon-"], body header#top nav .sf-menu > li.current-menu-ancestor > a, body .sf-menu > li.sfHover > a .sf-sub-indicator [class^="icon-"], body .sf-menu > li:hover > a .sf-sub-indicator [class^="icon-"], body .sf-menu > li:hover > a, header#top nav ul #search-btn a:hover span, header#top nav ul .slide-out-widget-area-toggle a:hover span, #search-outer #search #close a span:hover { color:' . $options['header-font-hover-color'] . '!important; }'; echo 'header#top nav ul .slide-out-widget-area-toggle a:hover i.lines, header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:after, header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:before { background-color:' . $options['header-font-hover-color'] . '!important; }'; } if (!empty($options['header-dropdown-background-color'])) { echo '#search-outer .ui-widget-content, header#top .sf-menu li ul li a, header#top nav > ul > li.megamenu > ul.sub-menu, body header#top nav > ul > li.megamenu > ul.sub-menu > li > a, #header-outer .widget_shopping_cart .cart_list a, #header-secondary-outer ul ul li a, #header-outer .widget_shopping_cart .cart_list li, .woocommerce .cart-notification, #header-outer .widget_shopping_cart_content { background-color:' . $options['header-dropdown-background-color'] . '!important; }'; } if (!empty($options['header-dropdown-background-hover-color'])) { echo 'header#top .sf-menu li ul li a:hover, body header#top nav .sf-menu ul li.sfHover > a, header#top .sf-menu li ul li.current-menu-item > a, header#top .sf-menu li ul li.current-menu-ancestor > a, header#top nav > ul > li.megamenu > ul ul li a:hover, header#top nav > ul > li.megamenu > ul ul li.current-menu-item a, #header-secondary-outer ul ul li a:hover, body #header-secondary-outer .sf-menu ul li.sfHover > a, #header-outer .widget_shopping_cart .cart_list li:hover, #header-outer .widget_shopping_cart .cart_list li:hover a, #search-outer .ui-widget-content li:hover, .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { background-color:' . $options['header-dropdown-background-hover-color'] . '!important; }'; } if (!empty($options['header-dropdown-font-color'])) { echo '#search-outer .ui-widget-content li a, #search-outer .ui-widget-content i, header#top .sf-menu li ul li a, body #header-outer .widget_shopping_cart .cart_list a, #header-secondary-outer ul ul li a, .woocommerce .cart-notification .item-name, .cart-outer .cart-notification, .sf-menu li ul .sf-sub-indicator [class^="icon-"], .sf-menu li ul .sf-sub-indicator [class*=" icon-"], #header-outer .widget_shopping_cart .quantity { color:' . $options['header-dropdown-font-color'] . '!important; }'; } if (!empty($options['header-dropdown-font-hover-color'])) { echo '#search-outer .ui-widget-content li:hover a .title, #search-outer .ui-widget-content .ui-state-hover .title, #search-outer .ui-widget-content .ui-state-focus .title, #search-outer .ui-widget-content li:hover a, #search-outer .ui-widget-content li:hover i, #search-outer .ui-widget-content .ui-state-hover a, #search-outer .ui-widget-content .ui-state-focus a, #search-outer .ui-widget-content .ui-state-hover i, #search-outer .ui-widget-content .ui-state-focus i, #search-outer .ui-widget-content .ui-state-hover span, #search-outer .ui-widget-content .ui-state-focus span, body header#top nav .sf-menu ul li.sfHover > a, header#top nav > ul > li.megamenu > ul ul li.current-menu-item a, body #header-outer .widget_shopping_cart .cart_list li:hover a, #header-secondary-outer ul ul li:hover > a, body #header-secondary-outer ul ul li:hover > a i, body header#top nav .sf-menu ul li.sfHover > a .sf-sub-indicator i, #header-outer .widget_shopping_cart li:hover .quantity, body header#top nav .sf-menu ul li:hover > a .sf-sub-indicator i, body header#top nav .sf-menu ul li:hover > a, header#top nav > ul > li.megamenu > ul > li > a:hover, header#top nav > ul > li.megamenu > ul > li.sfHover > a, body header#top nav .sf-menu ul li.current-menu-item > a, body header#top nav .sf-menu ul li.current_page_item > a .sf-sub-indicator i, body header#top nav .sf-menu ul li.current_page_ancestor > a .sf-sub-indicator i, body header#top nav .sf-menu ul li.sfHover > a, #header-secondary-outer ul li.sfHover > a, body header#top nav .sf-menu ul li.current_page_ancestor > a, body header#top nav .sf-menu ul li.current-menu-ancestor > a, body header#top nav .sf-menu ul li.current_page_item > a, body header#top nav .sf-menu ul li.current_page_item > a .sf-sub-indicator [class^="icon-"], body header#top nav .sf-menu ul li.current_page_ancestor > a .sf-sub-indicator [class^="icon-"], body header#top nav .sf-menu ul li.current-menu-ancestor > a, body header#top nav .sf-menu ul li.current_page_item > a, body .sf-menu ul li ul li.sfHover > a .sf-sub-indicator [class^="icon-"], body ul.sf-menu > li > a:active > .sf-sub-indicator i, body ul.sf-menu > li.sfHover > a > .sf-sub-indicator i, body .sf-menu ul li.current_page_item > a , body .sf-menu ul li.current-menu-ancestor > a, body .sf-menu ul li.current_page_ancestor > a, body .sf-menu ul a:focus , body .sf-menu ul a:hover, body .sf-menu ul a:active, body .sf-menu ul li:hover > a, body .sf-menu ul li.sfHover > a, .body sf-menu li ul li a:hover, body .sf-menu li ul li.sfHover > a, body header#top nav > ul > li.megamenu ul li:hover > a { color:' . $options['header-dropdown-font-hover-color'] . '!important; }'; } if (!empty($options['secondary-header-background-color'])) { echo '#header-secondary-outer { background-color:' . $options['secondary-header-background-color'] . '!important; }'; } if (!empty($options['secondary-header-font-color'])) { echo '#header-secondary-outer nav > ul > li > a, body #header-secondary-outer nav > ul > li > a span.sf-sub-indicator [class^="icon-"], #header-secondary-outer #social li a i { color:' . $options['secondary-header-font-color'] . '!important; }'; } if (!empty($options['secondary-header-font-hover-color'])) { echo '#header-secondary-outer #social li a:hover i, #header-secondary-outer nav > ul > li:hover > a, #header-secondary-outer nav > ul > li.current-menu-item > a, #header-secondary-outer nav > ul > li.sfHover > a, #header-secondary-outer nav > ul > li.sfHover > a span.sf-sub-indicator [class^="icon-"], #header-secondary-outer nav > ul > li.current-menu-item > a span.sf-sub-indicator [class^="icon-"], #header-secondary-outer nav > ul > li.current-menu-ancestor > a, #header-secondary-outer nav > ul > li.current-menu-ancestor > a span.sf-sub-indicator [class^="icon-"], body #header-secondary-outer nav > ul > li:hover > a span.sf-sub-indicator [class^="icon-"] { color:' . $options['secondary-header-font-hover-color'] . '!important; }'; } /*Custom slide out widget area colors*/ if (!empty($options['header-slide-out-widget-area-background-color'])) { echo '#slide-out-widget-area { background-color:' . $options['header-slide-out-widget-area-background-color'] . '!important; }'; } if (!empty($options['header-slide-out-widget-area-color'])) { echo '#slide-out-widget-area, #slide-out-widget-area a, body #slide-out-widget-area a.slide_out_area_close .icon-default-style[class^="icon-"] { color:' . $options['header-slide-out-widget-area-color'] . '!important; }'; echo '#slide-out-widget-area .tagcloud a { border-color: ' . $options['header-slide-out-widget-area-color'] . '!important; }'; } if (!empty($options['header-slide-out-widget-area-header-color'])) { echo '#slide-out-widget-area h1, #slide-out-widget-area h2, #slide-out-widget-area h3, #slide-out-widget-area h4, #slide-out-widget-area h5 { color:' . $options['header-slide-out-widget-area-header-color'] . '!important; }'; } if (!empty($options['header-slide-out-widget-area-hover-color'])) { echo 'body #slide-out-widget-area a:hover, html body #slide-out-widget-area a.slide_out_area_close:hover .icon-default-style[class^="icon-"] { color:' . $options['header-slide-out-widget-area-hover-color'] . '!important; }'; echo '#slide-out-widget-area .tagcloud a:hover { border-color: ' . $options['header-slide-out-widget-area-hover-color'] . '!important; }'; } } /*Custom footer colors*/ if (!empty($options['footer-custom-color']) && $options['footer-custom-color'] == '1') { if (!empty($options['footer-background-color'])) { echo '#footer-outer { background-color:' . $options['footer-background-color'] . '!important; } #footer-outer #footer-widgets { border-bottom: none!important; } #footer-outer #footer-widgets .col ul li { border-bottom: 1px solid rgba(0,0,0,0.1)!important; } #footer-outer #footer-widgets .col .widget_recent_comments ul li { background-color: rgba(0, 0, 0, 0.07)!important; border-bottom: 0px!important;} '; } if (!empty($options['footer-font-color'])) { echo '#footer-outer, #footer-outer a { color:' . $options['footer-font-color'] . '!important; }'; } if (!empty($options['footer-secondary-font-color'])) { echo '#footer-outer .widget h4, #footer-outer .col .widget_recent_entries span, #footer-outer .col .recent_posts_extra_widget .post-widget-text span { color:' . $options['footer-secondary-font-color'] . '!important; }'; } if (!empty($options['footer-copyright-background-color'])) { echo '#footer-outer #copyright, body { border: none!important; background-color:' . $options['footer-copyright-background-color'] . '!important; }'; } if (!empty($options['footer-copyright-font-color'])) { echo '#footer-outer #copyright li a i, #footer-outer #copyright p { color:' . $options['footer-copyright-font-color'] . '!important; }'; } } /*Custom CTA colors*/ if (!empty($options['cta-background-color'])) { echo '#call-to-action { background-color:' . $options['cta-background-color'] . '!important; }'; } if (!empty($options['cta-text-color'])) { echo '#call-to-action span { color:' . $options['cta-text-color'] . '!important; }'; } /*slide out widget overlay*/ $slide_out_widget_overlay = !empty($options['header-slide-out-widget-area-overlay-opacity']) ? $options['header-slide-out-widget-area-overlay-opacity'] : 'dark'; if ($slide_out_widget_overlay == 'dark') { echo 'body #slide-out-widget-area-bg { background-color: rgba(0,0,0,0.8); }'; } else { if ($slide_out_widget_overlay == 'medium') { echo 'body #slide-out-widget-area-bg { background-color: rgba(0,0,0,0.6); }'; } else { echo 'body #slide-out-widget-area-bg { background-color: rgba(0,0,0,0.4); }'; } } if ($external_dynamic != 'on') { echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); } }
function nectar_typography() { global $options; global $external_dynamic; if ($external_dynamic != 'on') { ob_start(); } $body = $options['body_font']; $navigation = $options['navigation_font']; $navigation_dropdown = $options['navigation_dropdown_font']; $home_slider_caption = $options['home_slider_caption_font']; $sidebar_carousel_footer_header = $options['sidebar_footer_h_font']; $team_member_names = $options['team_member_h_font']; if ($external_dynamic != 'on') { echo '<style type="text/css">'; } /*-------------------------------------------------------------------------*/ /* Body Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['body_font_style']); intval(substr($options['body_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['body_font_size'], 0, -2)) * 1.8 . 'px' : ($line_height = null); ?> <?php echo 'body, .toggle h3 a, body .ui-widget, table, .bar_graph li span strong, #search-results .result .title span, .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, body .nectar-love span, body .nectar-social .nectar-love .nectar-love-count, body .carousel-heading h2 {'; ?> <?php if ($options['body_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['body_font']) ? '"' . $options['body_font'] . '"' : $options['body_font']; } if ($options['body_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['body_font_transform'] != '-') { echo 'text-transform: ' . $options['body_font_transform'] . ';'; } if ($options['body_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['body_font_spacing'] . ';'; } if ($options['body_font_size'] != '-') { echo 'font-size:' . $options['body_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; if ($options['body_font'] != '-') { echo '.bold, strong, b { font-family: ' . $font_family . '; font-weight: bold; } '; } echo '.nectar-fancy-ul ul li .icon-default-style[class^="icon-"] {'; if (!empty($line_height)) { echo 'line-height:' . $line_height . '!important;'; } echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Navigation Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['navigation_font_style']); intval(substr($options['navigation_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['navigation_font_size'], 0, -2)) * 1.4 . 'px' : ($line_height = null); ?> <?php echo 'header#top nav > ul > li > a {'; ?> <?php if ($options['navigation_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['navigation_font']) ? '"' . $options['navigation_font'] . '"' : $options['navigation_font']; } if ($options['navigation_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['navigation_font_transform'] != '-') { echo 'text-transform: ' . $options['navigation_font_transform'] . ';'; } if ($options['navigation_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['navigation_font_spacing'] . ';'; } if ($options['navigation_font_size'] != '-') { echo 'font-size:' . $options['navigation_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; //make search font match main nav font //if($options['navigation_font'] != '-') echo '#search-outer #search input[type="text"] { font-family: ' . $font_family .'; }'; ?> <?php /*-------------------------------------------------------------------------*/ /* Navigation Dropdown Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['navigation_dropdown_font_style']); intval(substr($options['navigation_dropdown_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['navigation_dropdown_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'header#top .sf-menu li ul li a, #header-secondary-outer nav > ul > li > a, #header-secondary-outer ul ul li a, #header-outer .widget_shopping_cart .cart_list a {'; ?> <?php if ($options['navigation_dropdown_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['navigation_dropdown_font']) ? '"' . $options['navigation_dropdown_font'] . '"' : $options['navigation_dropdown_font']; } if ($options['navigation_dropdown_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['navigation_dropdown_font_transform'] != '-') { echo 'text-transform: ' . $options['navigation_dropdown_font_transform'] . ';'; } if ($options['navigation_dropdown_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['navigation_dropdown_font_spacing'] . ';'; } if ($options['navigation_dropdown_font_size'] != '-') { echo 'font-size:' . $options['navigation_dropdown_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo '@media only screen and (min-width : 1px) and (max-width : 1000px) { header#top .sf-menu a { font-family: ' . $options['navigation_dropdown_font'] . '!important; font-size: 14px!important; } }'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h1 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h1_font_style']); intval(substr($options['h1_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h1_font_size'], 0, -2)) + 6 . 'px' : ($line_height = null); ?> <?php echo '#page-header-bg h1, body h1, body .row .col.section-title h1 {'; ?> <?php if ($options['h1_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h1_font']) ? '"' . $options['h1_font'] . '"' : $options['h1_font']; } if ($options['h1_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h1_font_transform'] != '-') { echo 'text-transform: ' . $options['h1_font_transform'] . ';'; } if ($options['h1_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h1_font_spacing'] . ';'; } if ($options['h1_font_size'] != '-') { echo 'font-size:' . $options['h1_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 690px) and (max-width: 1300px) { #page-header-bg .span_6 h1, body .row .col.section-title h1, h1 { font-size: <?php if (!empty($options['h1_font_size']) && $options['h1_font_size'] != '-') { echo $options['h1_font_size'] * 0.85 . 'px!important'; } ?> ; line-height: <?php if (!empty($options['h1_font_size']) && $options['h1_font_size'] != '-') { echo $options['h1_font_size'] * 0.85 + 4 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h2 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h2_font_style']); intval(substr($options['h2_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h2_font_size'], 0, -2)) + intval(substr($options['h2_font_size'], 0, -2)) * 0.65 . 'px' : ($line_height = null); ?> <?php echo '#page-header-bg h2, body h2, article.post .post-header h2, article.post.quote .post-content h2, article.post.link .post-content h2, article.post.format-status .post-content h2, #call-to-action span {'; ?> <?php if ($options['h2_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h2_font']) ? '"' . $options['h2_font'] . '"' : $options['h2_font']; } if ($options['h2_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h2_font_transform'] != '-') { echo 'text-transform: ' . $options['h2_font_transform'] . ';'; } if ($options['h2_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h2_font_spacing'] . ';'; } if ($options['h2_font_size'] != '-') { echo 'font-size:' . $options['h2_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h3 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h3_font_style']); intval(substr($options['h3_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h3_font_size'], 0, -2)) + 8 . 'px' : ($line_height = null); ?> <?php echo 'body h3, .row .col h3, .toggle h3 a, .ascend #respond h3, .ascend h3#comments {'; ?> <?php if ($options['h3_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h3_font']) ? '"' . $options['h3_font'] . '"' : $options['h3_font']; } if ($options['h3_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h3_font_transform'] != '-') { echo 'text-transform: ' . $options['h3_font_transform'] . ';'; } if ($options['h3_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h3_font_spacing'] . ';'; } if ($options['h3_font_size'] != '-') { echo 'font-size:' . $options['h3_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> @media only screen and (min-width: 1000px) { .ascend .comments-section .comment-wrap.full-width-section > h3 { font-size: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 1.7 . 'px!important'; } ?> ; line-height: <?php if (!empty($options['h3_font_size']) && $options['h3_font_size'] != '-') { echo $options['h3_font_size'] * 1.7 + 8 . 'px!important'; } ?> ; } } <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h4 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h4_font_style']); intval(substr($options['h4_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h4_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body h4, .row .col h4, .portfolio-items .work-meta h4, #respond h3, h3#comments {'; ?> <?php if ($options['h4_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h4_font']) ? '"' . $options['h4_font'] . '"' : $options['h4_font']; } if ($options['h4_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h4_font_transform'] != '-') { echo 'text-transform: ' . $options['h4_font_transform'] . ';'; } if ($options['h4_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h4_font_spacing'] . ';'; } if ($options['h4_font_size'] != '-') { echo 'font-size:' . $options['h4_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Heading Font - h5 /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['h5_font_style']); intval(substr($options['h5_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['h5_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body h5, .row .col h5 {'; ?> <?php if ($options['h5_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['h5_font']) ? '"' . $options['h5_font'] . '"' : $options['h5_font']; } if ($options['h5_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['h5_font_transform'] != '-') { echo 'text-transform: ' . $options['h5_font_transform'] . ';'; } if ($options['h5_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['h5_font_spacing'] . ';'; } if ($options['h5_font_size'] != '-') { echo 'font-size:' . $options['h5_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Italic Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['i_font_style']); intval(substr($options['i_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['i_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body i, body em {'; ?> <?php if ($options['i_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['i_font']) ? '"' . $options['i_font'] . '"' : $options['i_font']; } if ($options['i_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['i_font_transform'] != '-') { echo 'text-transform: ' . $options['i_font_transform'] . ';'; } if ($options['i_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['i_font_spacing'] . ';'; } if ($options['i_font_size'] != '-') { echo 'font-size:' . $options['i_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Header Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['page_heading_font_style']); intval(substr($options['page_heading_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['page_heading_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body #page-header-bg h1, html body .row .col.section-title h1 {'; ?> <?php if ($options['page_heading_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['page_heading_font']) ? '"' . $options['page_heading_font'] . '"' : $options['page_heading_font']; } if ($options['page_heading_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['page_heading_font_transform'] != '-') { echo 'text-transform: ' . $options['page_heading_font_transform'] . ';'; } if ($options['page_heading_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['page_heading_font_spacing'] . ';'; } if ($options['page_heading_font_size'] != '-') { echo 'font-size:' . $options['page_heading_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Page Header Subtitle Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['page_heading_subtitle_font_style']); intval(substr($options['page_heading_subtitle_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['page_heading_subtitle_font_size'], 0, -2)) + 10 . 'px' : ($line_height = null); ?> <?php echo 'body #page-header-bg .subheader, body .row .col.section-title > span {'; ?> <?php if ($options['page_heading_subtitle_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['page_heading_subtitle_font']) ? '"' . $options['page_heading_subtitle_font'] . '"' : $options['page_heading_subtitle_font']; } if ($options['page_heading_subtitle_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['page_heading_subtitle_font_transform'] != '-') { echo 'text-transform: ' . $options['page_heading_subtitle_font_transform'] . ';'; } if ($options['page_heading_subtitle_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['page_heading_subtitle_font_spacing'] . ';'; } if ($options['page_heading_subtitle_font_size'] != '-') { echo 'font-size:' . $options['page_heading_subtitle_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Nectar Slider Heading Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['nectar_slider_heading_font_style']); intval(substr($options['nectar_slider_heading_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['nectar_slider_heading_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '.swiper-slide .content h2 {'; ?> <?php if ($options['nectar_slider_heading_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['nectar_slider_heading_font']) ? '"' . $options['nectar_slider_heading_font'] . '"' : $options['nectar_slider_heading_font']; } if ($options['nectar_slider_heading_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['nectar_slider_heading_font_transform'] != '-') { echo 'text-transform: ' . $options['nectar_slider_heading_font_transform'] . ';'; } if ($options['nectar_slider_heading_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['nectar_slider_heading_font_spacing'] . ';'; } if ($options['nectar_slider_heading_font_size'] != '-') { echo 'font-size:' . $options['nectar_slider_heading_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Nectar/Home Slider Caption /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['home_slider_caption_font_style']); intval(substr($options['home_slider_caption_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['home_slider_caption_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '#featured article .post-title h2 span, .swiper-slide .content p, #portfolio-filters-inline #current-category, body .vc_text_separator div {'; ?> <?php if ($options['home_slider_caption_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['home_slider_caption_font']) ? '"' . $options['home_slider_caption_font'] . '"' : $options['home_slider_caption_font']; } if ($options['home_slider_caption_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['home_slider_caption_font_transform'] != '-') { echo 'text-transform: ' . $options['home_slider_caption_font_transform'] . ';'; } if ($options['home_slider_caption_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['home_slider_caption_font_spacing'] . ';'; } if ($options['home_slider_caption_font_size'] != '-') { echo 'font-size:' . $options['home_slider_caption_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo '#portfolio-filters-inline ul { line-height: ' . $line_height . '; }'; echo '.swiper-slide .content p.transparent-bg span { '; $nectar_slider_line_height_2 = intval(substr($options["home_slider_caption_font_size"], 0, -2)) + 25; ?> <?php if (!empty($line_height)) { echo 'line-height:' . $nectar_slider_line_height_2 . 'px;'; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Testimonial Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['testimonial_font_style']); intval(substr($options['testimonial_font_size'], 0, -2)) > 8 ? $line_height = intval(substr($options['testimonial_font_size'], 0, -2)) + 19 . 'px!important' : ($line_height = null); ?> <?php echo '.testimonial_slider blockquote, .testimonial_slider blockquote span, blockquote {'; ?> <?php if ($options['testimonial_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['testimonial_font']) ? '"' . $options['testimonial_font'] . '"' : $options['testimonial_font']; } if ($options['testimonial_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['testimonial_font_transform'] != '-') { echo 'text-transform: ' . $options['testimonial_font_transform'] . ';'; } if ($options['testimonial_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['testimonial_font_spacing'] . ';'; } if ($options['testimonial_font_size'] != '-') { echo 'font-size:' . $options['testimonial_font_size'] . ';'; } ?> <?php if (!empty($line_height)) { echo 'line-height:' . $line_height . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Sidear, Carousel & Nectar Button Header Font /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['sidebar_footer_h_font_style']); $line_height = substr($options['sidebar_footer_h_font_size'], 0, -2); ?> <?php echo '#footer-outer .widget h4, #sidebar h4, #call-to-action .container a, .uppercase, .nectar-button, body .widget_calendar table th, body #footer-outer #footer-widgets .col .widget_calendar table th, .swiper-slide .button a, header#top nav > ul > li.megamenu > ul > li > a, .carousel-heading h2, body .gform_wrapper .top_label .gfield_label, body .vc_pie_chart .wpb_pie_chart_heading, #infscr-loading div, #page-header-bg .author-section a, .ascend input[type="submit"], .ascend button[type="submit"], .widget h4 {'; ?> <?php if ($options['sidebar_footer_h_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['sidebar_footer_h_font']) ? '"' . $options['sidebar_footer_h_font'] . '"' : $options['sidebar_footer_h_font']; } if ($options['sidebar_footer_h_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['sidebar_footer_h_font_transform'] != '-') { echo 'text-transform: ' . $options['sidebar_footer_h_font_transform'] . '!important;'; } if ($options['sidebar_footer_h_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['sidebar_footer_h_font_spacing'] . ';'; } if ($options['sidebar_footer_h_font_size'] != '-') { echo 'font-size:' . $options['sidebar_footer_h_font_size'] . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } else { echo 'font-weight: normal;'; } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php /*-------------------------------------------------------------------------*/ /* Team member names & heading subtitles /*-------------------------------------------------------------------------*/ $styles = explode('-', $options['team_member_h_font_style']); $line_height = substr($options['team_member_h_font_size'], 0, -2); ?> <?php echo '.team-member h4, .row .col.section-title p, .row .col.section-title span, #page-header-bg .subheader, .nectar-milestone .subject, .testimonial_slider blockquote span {'; ?> <?php if ($options['team_member_h_font'] != '-') { $font_family = 1 === preg_match('~[0-9]~', $options['team_member_h_font']) ? '"' . $options['team_member_h_font'] . '"' : $options['team_member_h_font']; } if ($options['team_member_h_font'] != '-') { echo 'font-family: ' . $font_family . ';'; } if ($options['team_member_h_font_transform'] != '-') { echo 'text-transform: ' . $options['team_member_h_font_transform'] . ';'; } if ($options['team_member_h_font_spacing'] != '-') { echo 'letter-spacing: ' . $options['team_member_h_font_spacing'] . ';'; } if ($options['team_member_h_font_size'] != '-') { echo 'font-size:' . $options['team_member_h_font_size'] . ';'; } ?> <?php if (!empty($styles[0]) && strpos($styles[0], 'italic') === false) { echo 'font-weight:' . $styles[0] . ';'; } else { if (!empty($styles[0]) && strpos($styles[0], '0italic') == true) { $the_weight = explode("i", $styles[0]); echo 'font-weight:' . $the_weight[0] . ';'; echo 'font-style: italic'; } else { if (!empty($styles[0])) { if (strpos($styles[0], 'italic') !== false) { echo 'font-weight: 400;'; echo 'font-style: italic'; } } } } ?> <?php if (!empty($styles[1])) { echo 'font-style:' . $styles[1]; } ?> <?php echo '}'; ?> <?php echo 'article.post .post-meta .month { line-height:' . $line_height + -6 . 'px!important; }'; if ($external_dynamic != 'on') { echo '</style>'; $dynamic_css = ob_get_contents(); ob_end_clean(); echo nectar_quick_minify($dynamic_css); } }