示例#1
0
文件: header.php 项目: netpoe/UXJ
    $remove_border = !empty($options['header-remove-border']) && $options['header-remove-border'] == '1' ? 'true' : 'false';
    $transparency_markup = $activate_transparency == 'true' ? 'data-transparent-header="true" data-remove-border="' . $remove_border . '" class="transparent"' : null;
}
//header vars
$logo_class = !empty($options['use-logo']) && $options['use-logo'] == '1' ? null : 'class="no-image"';
$sideWidgetArea = !empty($options['header-slide-out-widget-area']) ? $options['header-slide-out-widget-area'] : 'off';
$sideWidgetClass = !empty($options['header-slide-out-widget-area-style']) ? $options['header-slide-out-widget-area-style'] : 'slide-out-from-right';
$fullWidthHeader = !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1' ? 'true' : 'false';
$headerSearch = !empty($options['header-disable-search']) && $options['header-disable-search'] == '1' ? 'false' : 'true';
$headerFormat = !empty($options['header_format']) ? $options['header_format'] : 'default';
$mobile_fixed = !empty($options['header-mobile-fixed']) ? $options['header-mobile-fixed'] : 'false';
$fullWidthHeader = !empty($options['header-fullwidth']) && $options['header-fullwidth'] == '1' ? 'true' : 'false';
$headerColorScheme = !empty($options['header-color']) ? $options['header-color'] : 'light';
$userSetBG = !empty($options['header-background-color']) && $headerColorScheme == 'custom' ? $options['header-background-color'] : '#ffffff';
$trans_header = !empty($options['transparent-header']) && $options['transparent-header'] == '1' ? $options['transparent-header'] : 'false';
$bg_header = !empty($post->ID) && $post->ID != 0 ? using_page_header($post->ID) : 0;
$bg_header = $bg_header == 1 ? 'true' : 'false';
//convert to string for references in css
$perm_trans = !empty($options['header-permanent-transparent']) && $trans_header != 'false' && $bg_header == 'true' ? $options['header-permanent-transparent'] : 'false';
$headerResize = !empty($options['header-resize-on-scroll']) && $perm_trans != '1' ? $options['header-resize-on-scroll'] : '0';
$button_styling = !empty($options['button-styling']) ? $options['button-styling'] : 'default';
$footer_reveal = !empty($options['footer-reveal']) ? $options['footer-reveal'] : 'false';
$footer_reveal_shadow = !empty($options['footer-reveal-shadow']) && $footer_reveal == '1' ? $options['footer-reveal-shadow'] : 'none';
$has_main_menu = has_nav_menu('top_nav') ? 'true' : 'false';
if ($headerColorScheme == 'dark') {
    $userSetBG = '#1f1f1f';
}
$userSetSideWidgetArea = $sideWidgetArea;
if ($has_main_menu == 'true' && $mobile_fixed == '1') {
    $sideWidgetArea = '1';
}
示例#2
0
    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);
    }
示例#3
0
<div id="header-space"></div>

<?php 
// header transparent option
$transparency_markup = null;
$activate_transparency = null;
$using_fw_slider = using_nectar_slider();
$using_fw_slider = !empty($options['transparent-header']) && $options['transparent-header'] == '1' ? $using_fw_slider : 0;
if ($force_effect == 'on') {
    $using_fw_slider = '1';
}
$disable_effect = get_post_meta($post->ID, '_disable_transparent_header', true);
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);
    $remove_border = !empty($options['header-remove-border']) && $options['header-remove-border'] == '1' ? 'true' : 'false';
    $transparency_markup = $activate_transparency == 'true' ? 'data-transparent-header="true" data-remove-border="' . $remove_border . '" class="transparent"' : null;
}
?>

<div id="header-outer" data-has-menu="<?php 
echo has_nav_menu('top_nav') ? 'true' : 'false';
?>
" <?php 
echo $transparency_markup;
?>
 data-user-set-bg="<?php 
echo $userSetBG;
?>
" data-format="<?php 
示例#4
0
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>';
        }
    }
}
示例#5
0
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>';
    }
}