Example #1
0
function extra_get_google_font_css_value($setting_name, $property, $unformatted_value)
{
    if (!extra_callback_is_customizer()) {
        et_builder_enqueue_font($unformatted_value);
    }
    if (empty($unformatted_value) || 'none' == $unformatted_value) {
        $formatted_value = '';
    } else {
        $formatted_value = et_builder_get_font_family($unformatted_value, false);
    }
    return $formatted_value;
}
Example #2
0
function et_divi_add_customizer_css()
{
    ?>
	<?php 
    // Detect legacy settings
    $detect_legacy_secondary_nav_color = et_get_option('secondary_nav_text_color', 'Light');
    $detect_legacy_primary_nav_color = et_get_option('primary_nav_text_color', 'Dark');
    if ($detect_legacy_primary_nav_color == 'Light') {
        $legacy_primary_nav_color = '#ffffff';
    } else {
        $legacy_primary_nav_color = 'rgba(0,0,0,0.6)';
    }
    if ($detect_legacy_secondary_nav_color == 'Light') {
        $legacy_secondary_nav_color = '#ffffff';
    } else {
        $legacy_secondary_nav_color = 'rgba(0,0,0,0.7)';
    }
    $body_font_size = absint(et_get_option('body_font_size', '14'));
    $body_font_height = floatval(et_get_option('body_font_height', '1.7'));
    $body_header_size = absint(et_get_option('body_header_size', '30'));
    $body_header_style = et_get_option('body_header_style', '', '', true);
    $body_header_spacing = intval(et_get_option('body_header_spacing', '0'));
    $body_header_height = floatval(et_get_option('body_header_height', '1'));
    $body_font_color = et_get_option('font_color', '#666666');
    $body_header_color = et_get_option('header_color', '#666666');
    $accent_color = et_get_option('accent_color', '#2ea3f2');
    $link_color = et_get_option('link_color', $accent_color);
    $content_width = absint(et_get_option('content_width', '1080'));
    $large_content_width = intval($content_width * 1.25);
    $use_sidebar_width = et_get_option('use_sidebar_width', false);
    $sidebar_width = intval(et_get_option('sidebar_width', 21));
    $section_padding = absint(et_get_option('section_padding', '4'));
    $row_padding = absint(et_get_option('row_padding', '2'));
    $tablet_header_font_size = absint(et_get_option('tablet_header_font_size', $body_header_size));
    $tablet_body_font_size = absint(et_get_option('tablet_body_font_size', $body_font_size));
    $tablet_section_height = absint(et_get_option('tablet_section_height', '50'));
    $tablet_row_height = absint(et_get_option('tablet_row_height', '30'));
    $phone_header_font_size = absint(et_get_option('phone_header_font_size', $tablet_header_font_size));
    $phone_body_font_size = absint(et_get_option('phone_body_font_size', $tablet_body_font_size));
    $phone_section_height = absint(et_get_option('phone_section_height', $tablet_section_height));
    $phone_row_height = absint(et_get_option('phone_row_height', $tablet_row_height));
    $header_style = et_get_option('header_style', 'left');
    $menu_height = absint(et_get_option('menu_height', '66'));
    $logo_height = absint(et_get_option('logo_height', '54'));
    $menu_link = et_get_option('menu_link', $legacy_primary_nav_color);
    $menu_link_active = et_get_option('menu_link_active', '#2ea3f2');
    $vertical_nav = et_get_option('vertical_nav', false);
    $hide_primary_logo = et_get_option('hide_primary_logo', 'false');
    $hide_fixed_logo = et_get_option('hide_fixed_logo', 'false');
    $primary_nav_font_size = absint(et_get_option('primary_nav_font_size', '14'));
    $primary_nav_font_spacing = intval(et_get_option('primary_nav_font_spacing', '0'));
    $primary_nav_bg = et_get_option('primary_nav_bg', '#ffffff');
    $primary_nav_font_style = et_get_option('primary_nav_font_style', '', '', true);
    $primary_nav_dropdown_bg = et_get_option('primary_nav_dropdown_bg', $primary_nav_bg);
    $primary_nav_dropdown_link_color = et_get_option('primary_nav_dropdown_link_color', $menu_link);
    $primary_nav_dropdown_line_color = et_get_option('primary_nav_dropdown_line_color', $accent_color);
    $mobile_menu_link = et_get_option('mobile_menu_link', $menu_link);
    $mobile_primary_nav_bg = et_get_option('mobile_primary_nav_bg', $primary_nav_bg);
    $secondary_nav_font_size = absint(et_get_option('secondary_nav_font_size', '12'));
    $secondary_nav_font_spacing = intval(et_get_option('secondary_nav_font_spacing', '0'));
    $secondary_nav_font_style = et_get_option('secondary_nav_font_style', '', '', true);
    $secondary_nav_text_color_new = et_get_option('secondary_nav_text_color_new', $legacy_secondary_nav_color);
    $secondary_nav_bg = et_get_option('secondary_nav_bg', et_get_option('accent_color', '#2ea3f2'));
    $secondary_nav_dropdown_bg = et_get_option('secondary_nav_dropdown_bg', $secondary_nav_bg);
    $secondary_nav_dropdown_link_color = et_get_option('secondary_nav_dropdown_link_color', $secondary_nav_text_color_new);
    $fixed_primary_nav_font_size = absint(et_get_option('fixed_primary_nav_font_size', $primary_nav_font_size));
    $fixed_primary_nav_bg = et_get_option('fixed_primary_nav_bg', $primary_nav_bg);
    $fixed_secondary_nav_bg = et_get_option('fixed_secondary_nav_bg', $secondary_nav_bg);
    $fixed_menu_height = absint(et_get_option('minimized_menu_height', '40'));
    $fixed_menu_link = et_get_option('fixed_menu_link', $menu_link);
    $fixed_menu_link_active = et_get_option('fixed_menu_link_active', $menu_link_active);
    $fixed_secondary_menu_link = et_get_option('fixed_secondary_menu_link', $secondary_nav_text_color_new);
    $footer_bg = et_get_option('footer_bg', '#222222');
    $footer_widget_link_color = et_get_option('footer_widget_link_color', '#fff');
    $footer_widget_text_color = et_get_option('footer_widget_text_color', '#fff');
    $footer_widget_header_color = et_get_option('footer_widget_header_color', $accent_color);
    $footer_widget_bullet_color = et_get_option('footer_widget_bullet_color', $accent_color);
    $widget_header_font_size = intval(et_get_option('widget_header_font_size', intval(et_get_option('body_header_size' * 0.6, '18'))));
    $widget_body_font_size = absint(et_get_option('widget_body_font_size', $body_font_size));
    $widget_body_line_height = floatval(et_get_option('widget_body_line_height', '1.7'));
    $button_text_size = absint(et_get_option('all_buttons_font_size', '20'));
    $button_text_color = et_get_option('all_buttons_text_color', '#ffffff');
    $button_bg_color = et_get_option('all_buttons_bg_color', 'rgba(0,0,0,0)');
    $button_border_width = absint(et_get_option('all_buttons_border_width', '2'));
    $button_border_color = et_get_option('all_buttons_border_color', '#ffffff');
    $button_border_radius = absint(et_get_option('all_buttons_border_radius', '3'));
    $button_text_style = et_get_option('all_buttons_font_style', '', '', true);
    $button_icon = et_get_option('all_buttons_selected_icon', '5');
    $button_spacing = intval(et_get_option('all_buttons_spacing', '0'));
    $button_icon_color = et_get_option('all_buttons_icon_color', '#ffffff');
    $button_text_color_hover = et_get_option('all_buttons_text_color_hover', '#ffffff');
    $button_bg_color_hover = et_get_option('all_buttons_bg_color_hover', 'rgba(255,255,255,0.2)');
    $button_border_color_hover = et_get_option('all_buttons_border_color_hover', 'rgba(0,0,0,0)');
    $button_border_radius_hover = absint(et_get_option('all_buttons_border_radius_hover', '3'));
    $button_spacing_hover = intval(et_get_option('all_buttons_spacing_hover', '0'));
    $button_icon_size = 1.6 * intval($button_text_size);
    $slide_nav_show_top_bar = et_get_option('slide_nav_show_top_bar', true);
    $slide_nav_bg = et_get_option('slide_nav_bg', $accent_color);
    $slide_nav_links_color = et_get_option('slide_nav_links_color', '#ffffff');
    $slide_nav_links_color_active = et_get_option('slide_nav_links_color_active', '#ffffff');
    $slide_nav_top_color = et_get_option('slide_nav_top_color', 'rgba(255,255,255,0.6)');
    $slide_nav_search = et_get_option('slide_nav_search', 'rgba(255,255,255,0.6)');
    $slide_nav_search_bg = et_get_option('slide_nav_search_bg', 'rgba(0,0,0,0.2)');
    $slide_nav_width = intval(et_get_option('slide_nav_width', '320'));
    $slide_nav_font_style = et_get_option('slide_nav_font_style', '', '', true);
    $slide_nav_font_size = intval(et_get_option('slide_nav_font_size', '14'));
    $slide_nav_top_font_size = intval(et_get_option('slide_nav_top_font_size', '14'));
    $slide_nav_font_spacing = et_get_option('slide_nav_font_spacing', '0');
    $fullscreen_nav_font_size = intval(et_get_option('fullscreen_nav_font_size', '30'));
    $fullscreen_nav_top_font_size = intval(et_get_option('fullscreen_nav_top_font_size', '18'));
    ?>
	<style id="theme-customizer-css">
		<?php 
    if (14 !== $body_font_size) {
        ?>
			@media only screen and ( min-width: 767px ) {
				body, .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url, body .et_pb_bg_layout_light .et_pb_post p,  body .et_pb_bg_layout_dark .et_pb_post p { font-size: <?php 
        echo esc_html($body_font_size);
        ?>
px; }
				.et_pb_slide_content, .et_pb_best_value { font-size: <?php 
        echo esc_html(intval($body_font_size * 1.14));
        ?>
px; }
			}
		<?php 
    }
    ?>
		<?php 
    if ('#666666' !== $body_font_color) {
        ?>
			body { color: <?php 
        echo esc_html($body_font_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('#666666' !== $body_header_color) {
        ?>
				h1, h2, h3, h4, h5, h6 { color: <?php 
        echo esc_html($body_header_color);
        ?>
; }
			<?php 
    }
    ?>
		<?php 
    if (1.7 !== $body_font_height) {
        ?>
			body { line-height: <?php 
        echo esc_html($body_font_height);
        ?>
em; }
		<?php 
    }
    ?>
		<?php 
    if ($accent_color !== '#2ea3f2') {
        ?>
			.woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button, .woocommerce-message, .woocommerce-error, .woocommerce-info { background: <?php 
        echo esc_html($accent_color);
        ?>
 !important; }
			#et_search_icon:hover, .mobile_menu_bar:before, .mobile_menu_bar:after, .et_toggle_slide_menu:after, .et-social-icon a:hover, .et_pb_sum, .et_pb_pricing li a, .et_pb_pricing_table_button, .et_overlay:before, .entry-summary p.price ins, .woocommerce div.product span.price, .woocommerce-page div.product span.price, .woocommerce #content div.product span.price, .woocommerce-page #content div.product span.price, .woocommerce div.product p.price, .woocommerce-page div.product p.price, .woocommerce #content div.product p.price, .woocommerce-page #content div.product p.price, .et_pb_member_social_links a:hover, .woocommerce .star-rating span:before, .woocommerce-page .star-rating span:before, .et_pb_widget li a:hover, .et_pb_filterable_portfolio .et_pb_portfolio_filters li a.active, .et_pb_filterable_portfolio .et_pb_portofolio_pagination ul li a.active, .et_pb_gallery .et_pb_gallery_pagination ul li a.active, .wp-pagenavi span.current, .wp-pagenavi a:hover, .nav-single a, .posted_in a { color: <?php 
        echo esc_html($accent_color);
        ?>
; }
			.et_pb_contact_submit, .et_password_protected_form .et_submit_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .comment-reply-link, .form-submit input, .et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button { color: <?php 
        echo esc_html($accent_color);
        ?>
; }
			.footer-widget h4 { color: <?php 
        echo esc_html($accent_color);
        ?>
; }
			.et-search-form, .nav li ul, .et_mobile_menu, .footer-widget li:before, .et_pb_pricing li:before, blockquote { border-color: <?php 
        echo esc_html($accent_color);
        ?>
; }
			.et_pb_counter_amount, .et_pb_featured_table .et_pb_pricing_heading, .et_quote_content, .et_link_content, .et_audio_content, .et_pb_post_slider.et_pb_bg_layout_dark, .et_slide_in_menu_container { background-color: <?php 
        echo esc_html($accent_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if (1080 !== $content_width) {
        ?>
			.container, .et_pb_row, .et_pb_slider .et_pb_container, .et_pb_fullwidth_section .et_pb_title_container, .et_pb_fullwidth_section .et_pb_title_featured_container, .et_pb_fullwidth_header:not(.et_pb_fullscreen) .et_pb_fullwidth_header_container { max-width: <?php 
        echo esc_html($content_width);
        ?>
px; }
			.et_boxed_layout #page-container, .et_fixed_nav.et_boxed_layout #page-container #top-header, .et_fixed_nav.et_boxed_layout #page-container #main-header, .et_boxed_layout #page-container .container, .et_boxed_layout #page-container .et_pb_row { max-width: <?php 
        echo esc_html(intval(et_get_option('content_width', '1080')) + 160);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    if ($link_color !== '#2ea3f2') {
        ?>
			a { color: <?php 
        echo esc_html($link_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($primary_nav_bg !== '#ffffff') {
        ?>
			#main-header, #main-header .nav li ul, .et-search-form, #main-header .et_mobile_menu { background-color: <?php 
        echo esc_html($primary_nav_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($primary_nav_dropdown_bg !== $primary_nav_bg) {
        ?>
			#main-header .nav li ul { background-color: <?php 
        echo esc_html($primary_nav_dropdown_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($primary_nav_dropdown_line_color !== $accent_color) {
        ?>
			.nav li ul { border-color: <?php 
        echo esc_html($primary_nav_dropdown_line_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($secondary_nav_bg !== '#2ea3f2') {
        ?>
			#top-header, #et-secondary-nav li ul { background-color: <?php 
        echo esc_html($secondary_nav_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($secondary_nav_dropdown_bg !== $secondary_nav_bg) {
        ?>
			#et-secondary-nav li ul { background-color: <?php 
        echo esc_html($secondary_nav_dropdown_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($secondary_nav_text_color_new !== '#ffffff') {
        ?>
		#top-header, #top-header a { color: <?php 
        echo esc_html($secondary_nav_text_color_new);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($secondary_nav_dropdown_link_color !== $secondary_nav_text_color_new) {
        ?>
			#et-secondary-nav li ul a { color: <?php 
        echo esc_html($secondary_nav_dropdown_link_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($menu_link !== 'rgba(0,0,0,0.6)') {
        ?>
			.et_header_style_centered .mobile_nav .select_page, .et_header_style_split .mobile_nav .select_page, .et_nav_text_color_light #top-menu > li > a, .et_nav_text_color_dark #top-menu > li > a, #top-menu a, .et_mobile_menu li a, .et_nav_text_color_light .et_mobile_menu li a, .et_nav_text_color_dark .et_mobile_menu li a, #et_search_icon:before, .et_search_form_container input, span.et_close_search_field:after, #et-top-navigation .et-cart-info { color: <?php 
        echo esc_html($menu_link);
        ?>
; }
			.et_search_form_container input::-moz-placeholder { color: <?php 
        echo esc_html($menu_link);
        ?>
; }
			.et_search_form_container input::-webkit-input-placeholder { color: <?php 
        echo esc_html($menu_link);
        ?>
; }
			.et_search_form_container input:-ms-input-placeholder { color: <?php 
        echo esc_html($menu_link);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($primary_nav_dropdown_link_color !== $menu_link) {
        ?>
			#main-header .nav li ul a { color: <?php 
        echo esc_html($primary_nav_dropdown_link_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if (12 !== $secondary_nav_font_size || '' !== $secondary_nav_font_style || 0 !== $secondary_nav_font_spacing) {
        ?>
			#top-header, #top-header a, #et-secondary-nav li li a, #top-header .et-social-icon a:before {
				<?php 
        if (12 !== $secondary_nav_font_size) {
            ?>
					font-size: <?php 
            echo esc_html($secondary_nav_font_size);
            ?>
px;
				<?php 
        }
        ?>
				<?php 
        if ('' !== $secondary_nav_font_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($secondary_nav_font_style));
            ?>
				<?php 
        }
        ?>
				<?php 
        if (0 !== $secondary_nav_font_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($secondary_nav_font_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}
		<?php 
    }
    ?>
		<?php 
    if (14 !== $primary_nav_font_size) {
        ?>
			#top-menu li a { font-size: <?php 
        echo esc_html($primary_nav_font_size);
        ?>
px; }
			body.et_vertical_nav .container.et_search_form_container .et-search-form input { font-size: <?php 
        echo esc_html($primary_nav_font_size);
        ?>
px !important; }
		<?php 
    }
    ?>

		<?php 
    if (0 !== $primary_nav_font_spacing || '' !== $primary_nav_font_style) {
        ?>
			#top-menu li a, .et_search_form_container input {
				<?php 
        if ('' !== $primary_nav_font_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($primary_nav_font_style));
            ?>
				<?php 
        }
        ?>
				<?php 
        if (0 !== $primary_nav_font_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($primary_nav_font_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}

			.et_search_form_container input::-moz-placeholder {
				<?php 
        if ('' !== $primary_nav_font_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($primary_nav_font_style));
            ?>
				<?php 
        }
        ?>
				<?php 
        if (0 !== $primary_nav_font_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($primary_nav_font_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}
			.et_search_form_container input::-webkit-input-placeholder {
				<?php 
        if ('' !== $primary_nav_font_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($primary_nav_font_style));
            ?>
				<?php 
        }
        ?>
				<?php 
        if (0 !== $primary_nav_font_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($primary_nav_font_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}
			.et_search_form_container input:-ms-input-placeholder {
				<?php 
        if ('' !== $primary_nav_font_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($primary_nav_font_style));
            ?>
				<?php 
        }
        ?>
				<?php 
        if (0 !== $primary_nav_font_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($primary_nav_font_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}
		<?php 
    }
    ?>

		<?php 
    if ($menu_link_active !== '#2ea3f2') {
        ?>
			#top-menu li.current-menu-ancestor > a, #top-menu li.current-menu-item > a,
			.et_color_scheme_red #top-menu li.current-menu-ancestor > a, .et_color_scheme_red #top-menu li.current-menu-item > a,
			.et_color_scheme_pink #top-menu li.current-menu-ancestor > a, .et_color_scheme_pink #top-menu li.current-menu-item > a,
			.et_color_scheme_orange #top-menu li.current-menu-ancestor > a, .et_color_scheme_orange #top-menu li.current-menu-item > a,
			.et_color_scheme_green #top-menu li.current-menu-ancestor > a, .et_color_scheme_green #top-menu li.current-menu-item > a { color: <?php 
        echo esc_html($menu_link_active);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($footer_bg !== '#222222') {
        ?>
			#main-footer { background-color: <?php 
        echo esc_html($footer_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($footer_widget_link_color !== '#fff') {
        ?>
			#footer-widgets .footer-widget li a { color: <?php 
        echo esc_html($footer_widget_link_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($footer_widget_text_color !== '#fff') {
        ?>
			.footer-widget { color: <?php 
        echo esc_html($footer_widget_text_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($footer_widget_header_color !== '#2ea3f2') {
        ?>
			#main-footer .footer-widget h4 { color: <?php 
        echo esc_html($footer_widget_header_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($footer_widget_bullet_color !== '#2ea3f2') {
        ?>
			.footer-widget li:before { border-color: <?php 
        echo esc_html($footer_widget_bullet_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ($body_font_size !== $widget_body_font_size) {
        ?>
			.footer-widget, .footer-widget li, .footer-widget li a, #footer-info { font-size: <?php 
        echo esc_html($widget_body_font_size);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    /* Widget */
    et_pb_print_styles_css(array(array('key' => 'widget_header_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.footer-widget h4'), array('key' => 'widget_body_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.footer-widget .et_pb_widget div, .footer-widget .et_pb_widget ul, .footer-widget .et_pb_widget ol, .footer-widget .et_pb_widget label'), array('key' => 'widget_body_line_height', 'type' => 'line-height', 'default' => '', 'selector' => '.footer-widget .et_pb_widget div, .footer-widget .et_pb_widget ul, .footer-widget .et_pb_widget ol, .footer-widget .et_pb_widget label')));
    /* Footer widget bullet fix */
    if (1.7 !== $widget_body_line_height || 14 !== $widget_body_font_size) {
        // line_height (em) * font_size (px) = line height in px
        $widget_body_line_height_px = floatval($widget_body_line_height) * intval($widget_body_font_size);
        // ( line height in px / 2 ) - half of bullet diameter
        $footer_widget_bullet_top = $widget_body_line_height_px / 2 - 3;
        printf("#footer-widgets .footer-widget li:before { top: %spx; }", esc_html($footer_widget_bullet_top));
    }
    /* Footer Menu */
    et_pb_print_styles_css(array(array('key' => 'footer_menu_background_color', 'type' => 'background-color', 'default' => 'rgba(255,255,255,0.05)', 'selector' => '#et-footer-nav'), array('key' => 'footer_menu_text_color', 'type' => 'color', 'default' => '#bbbbbb', 'selector' => '.bottom-nav, .bottom-nav a, .bottom-nav li.current-menu-item a'), array('key' => 'footer_menu_active_link_color', 'type' => 'color', 'default' => '#bbbbbb', 'selector' => '#et-footer-nav .bottom-nav li.current-menu-item a'), array('key' => 'footer_menu_letter_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => '.bottom-nav'), array('key' => 'footer_menu_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '.bottom-nav a'), array('key' => 'footer_menu_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => '.bottom-nav, .bottom-nav a')));
    /* Bottom Bar */
    et_pb_print_styles_css(array(array('key' => 'bottom_bar_background_color', 'type' => 'background-color', 'default' => 'rgba(0,0,0,0.32)', 'selector' => '#footer-bottom'), array('key' => 'bottom_bar_text_color', 'type' => 'color', 'default' => '#666666', 'selector' => '#footer-info, #footer-info a'), array('key' => 'bottom_bar_font_style', 'type' => 'font-style', 'default' => '', 'selector' => '#footer-info, #footer-info a'), array('key' => 'bottom_bar_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => '#footer-info'), array('key' => 'bottom_bar_social_icon_size', 'type' => 'font-size', 'default' => 24, 'selector' => '#footer-bottom .et-social-icon a'), array('key' => 'bottom_bar_social_icon_color', 'type' => 'color', 'default' => '#666666', 'selector' => '#footer-bottom .et-social-icon a')));
    ?>
		<?php 
    if ('rgba' === substr($primary_nav_bg, 0, 4)) {
        ?>
			#main-header { box-shadow: none; }
		<?php 
    }
    ?>
		<?php 
    if ('rgba' === substr($fixed_primary_nav_bg, 0, 4) || 'rgba' === substr($primary_nav_bg, 0, 4) && '#ffffff' === $fixed_primary_nav_bg) {
        ?>
			.et-fixed-header#main-header { box-shadow: none !important; }
		<?php 
    }
    ?>
		<?php 
    if (20 !== $button_text_size || '#ffffff' !== $button_text_color || 'rgba(0,0,0,0)' !== $button_bg_color || 2 !== $button_border_width || '#ffffff' !== $button_border_color || 3 !== $button_border_radius || '' !== $button_text_style || 0 !== $button_spacing) {
        ?>
			body .et_pb_button,
			.woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt,
			.woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button
			{
				<?php 
        if (20 !== $button_text_size) {
            ?>
					 font-size: <?php 
            echo esc_html($button_text_size);
            ?>
px;
				<?php 
        }
        ?>
				<?php 
        if ('rgba(0,0,0,0)' !== $button_bg_color) {
            ?>
					background: <?php 
            echo esc_html($button_bg_color);
            ?>
;
				<?php 
        }
        ?>
				<?php 
        if (2 !== $button_border_width) {
            ?>
					border-width: <?php 
            echo esc_html($button_border_width);
            ?>
px !important;
				<?php 
        }
        ?>
				<?php 
        if ('#ffffff' !== $button_border_color) {
            ?>
					border-color: <?php 
            echo esc_html($button_border_color);
            ?>
;
				<?php 
        }
        ?>
				<?php 
        if (3 !== $button_border_radius) {
            ?>
					border-radius: <?php 
            echo esc_html($button_border_radius);
            ?>
px;
				<?php 
        }
        ?>
				<?php 
        if ('' !== $button_text_style) {
            ?>
					<?php 
            echo esc_html(et_pb_print_font_style($button_text_style));
            ?>
;
				<?php 
        }
        ?>
				<?php 
        if (0 !== $button_spacing) {
            ?>
					letter-spacing: <?php 
            echo esc_html($button_spacing);
            ?>
px;
				<?php 
        }
        ?>
			}
			body.et_pb_button_helper_class .et_pb_button,
			.woocommerce.et_pb_button_helper_class a.button.alt, .woocommerce-page.et_pb_button_helper_class a.button.alt, .woocommerce.et_pb_button_helper_class button.button.alt, .woocommerce-page.et_pb_button_helper_class button.button.alt, .woocommerce.et_pb_button_helper_class input.button.alt, .woocommerce-page.et_pb_button_helper_class input.button.alt, .woocommerce.et_pb_button_helper_class #respond input#submit.alt, .woocommerce-page.et_pb_button_helper_class #respond input#submit.alt, .woocommerce.et_pb_button_helper_class #content input.button.alt, .woocommerce-page.et_pb_button_helper_class #content input.button.alt,
			.woocommerce.et_pb_button_helper_class a.button, .woocommerce-page.et_pb_button_helper_class a.button, .woocommerce.et_pb_button_helper_class button.button, .woocommerce-page.et_pb_button_helper_class button.button, .woocommerce.et_pb_button_helper_class input.button, .woocommerce-page.et_pb_button_helper_class input.button, .woocommerce.et_pb_button_helper_class #respond input#submit, .woocommerce-page.et_pb_button_helper_class #respond input#submit, .woocommerce.et_pb_button_helper_class #content input.button, .woocommerce-page.et_pb_button_helper_class #content input.button {
				<?php 
        if ('#ffffff' !== $button_text_color) {
            ?>
					color: <?php 
            echo esc_html($button_text_color);
            ?>
 !important;
				<?php 
        }
        ?>
			}
		<?php 
    }
    ?>
		<?php 
    if ('5' !== $button_icon || '#ffffff' !== $button_icon_color || 20 !== $button_text_size) {
        ?>
			body .et_pb_button:after,
			.woocommerce a.button.alt:after, .woocommerce-page a.button.alt:after, .woocommerce button.button.alt:after, .woocommerce-page button.button.alt:after, .woocommerce input.button.alt:after, .woocommerce-page input.button.alt:after, .woocommerce #respond input#submit.alt:after, .woocommerce-page #respond input#submit.alt:after, .woocommerce #content input.button.alt:after, .woocommerce-page #content input.button.alt:after,
			.woocommerce a.button:after, .woocommerce-page a.button:after, .woocommerce button.button:after, .woocommerce-page button.button:after, .woocommerce input.button:after, .woocommerce-page input.button:after, .woocommerce #respond input#submit:after, .woocommerce-page #respond input#submit:after, .woocommerce #content input.button:after, .woocommerce-page #content input.button:after
			{
				<?php 
        if ('5' !== $button_icon) {
            ?>
					<?php 
            if ("'" === $button_icon) {
                ?>
						content: "<?php 
                echo htmlspecialchars_decode($button_icon);
                ?>
";
					<?php 
            } else {
                ?>
						content: '<?php 
                echo htmlspecialchars_decode($button_icon);
                ?>
';
					<?php 
            }
            ?>
					font-size: <?php 
            echo esc_html($button_text_size);
            ?>
px;
				<?php 
        } else {
            ?>
					font-size: <?php 
            echo esc_html($button_icon_size);
            ?>
px;
				<?php 
        }
        ?>
				<?php 
        if ('#ffffff' !== $button_icon_color) {
            ?>
					color: <?php 
            echo esc_html($button_icon_color);
            ?>
;
				<?php 
        }
        ?>
			}
		<?php 
    }
    ?>
		<?php 
    if ('#ffffff' !== $button_text_color_hover || 'rgba(255,255,255,0.2)' !== $button_bg_color_hover || 'rgba(0,0,0,0)' !== $button_border_color_hover || 3 !== $button_border_radius_hover || 0 !== $button_spacing_hover) {
        ?>
			body .et_pb_button:hover,
			.woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover,
			.woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button, .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
			{
				<?php 
        if ('#ffffff' !== $button_text_color_hover) {
            ?>
					 color: <?php 
            echo esc_html($button_text_color_hover);
            ?>
 !important;
				<?php 
        }
        ?>
				<?php 
        if ('rgba(255,255,255,0.2)' !== $button_bg_color_hover) {
            ?>
					background: <?php 
            echo esc_html($button_bg_color_hover);
            ?>
 !important;
				<?php 
        }
        ?>
				<?php 
        if ('rgba(0,0,0,0)' !== $button_border_color_hover) {
            ?>
					border-color: <?php 
            echo esc_html($button_border_color_hover);
            ?>
 !important;
				<?php 
        }
        ?>
				<?php 
        if (3 !== $button_border_radius_hover) {
            ?>
					border-radius: <?php 
            echo esc_html($button_border_radius_hover);
            ?>
px;
				<?php 
        }
        ?>
				<?php 
        if (0 !== $button_spacing_hover) {
            ?>
					letter-spacing: <?php 
            echo esc_html($button_spacing_hover);
            ?>
px;
				<?php 
        }
        ?>
			}
		<?php 
    }
    ?>

		<?php 
    if ('' !== $body_header_style || 0 !== $body_header_spacing || 1.0 !== $body_header_height) {
        ?>
				h1, h2, h3, h4, h5, h6, .et_quote_content blockquote p, .et_pb_slide_description .et_pb_slide_title {
					<?php 
        if ($body_header_style !== '') {
            ?>
						<?php 
            echo esc_html(et_pb_print_font_style($body_header_style));
            ?>
					<?php 
        }
        ?>
					<?php 
        if (0 !== $body_header_spacing) {
            ?>
						letter-spacing: <?php 
            echo esc_html($body_header_spacing);
            ?>
px;
					<?php 
        }
        ?>

					<?php 
        if (1.0 !== $body_header_height) {
            ?>
						line-height: <?php 
            echo esc_html($body_header_height);
            ?>
em;
					<?php 
        }
        ?>
				}
		<?php 
    }
    ?>

		<?php 
    /* Blog Meta */
    $et_pb_print_selectors_post_meta = "body.home-posts #left-area .et_pb_post .post-meta, body.archive #left-area .et_pb_post .post-meta, body.search #left-area .et_pb_post .post-meta, body.single #left-area .et_pb_post .post-meta";
    et_pb_print_styles_css(array(array('key' => 'post_meta_height', 'type' => 'line-height', 'default' => 1, 'selector' => $et_pb_print_selectors_post_meta), array('key' => 'post_meta_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => $et_pb_print_selectors_post_meta), array('key' => 'post_meta_style', 'type' => 'font-style', 'default' => '', 'selector' => $et_pb_print_selectors_post_meta)));
    /* Blog Title */
    $et_pb_print_selectors_post_header = "body.home-posts #left-area .et_pb_post h2, body.archive #left-area .et_pb_post h2, body.search #left-area .et_pb_post h2, body.single .et_post_meta_wrapper h1";
    et_pb_print_styles_css(array(array('key' => 'post_header_height', 'type' => 'line-height', 'default' => 1, 'selector' => $et_pb_print_selectors_post_header), array('key' => 'post_header_spacing', 'type' => 'letter-spacing', 'default' => 0, 'selector' => $et_pb_print_selectors_post_header), array('key' => 'post_header_style', 'type' => 'font-style', 'default' => '', 'selector' => $et_pb_print_selectors_post_header)));
    ?>
		<?php 
    if (!$slide_nav_show_top_bar) {
        ?>
			.et_slide_menu_top { display: none; }
		<?php 
    }
    ?>
		<?php 
    if ($accent_color !== $slide_nav_bg) {
        ?>
			body #page-container .et_slide_in_menu_container { background: <?php 
        echo esc_html($slide_nav_bg);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('#ffffff' !== $slide_nav_links_color) {
        ?>
			.et_slide_in_menu_container #mobile_menu_slide li span.et_mobile_menu_arrow:before, .et_slide_in_menu_container #mobile_menu_slide li a { color: <?php 
        echo esc_html($slide_nav_links_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('#ffffff' !== $slide_nav_links_color_active) {
        ?>
			.et_slide_in_menu_container #mobile_menu_slide li.current-menu-item span.et_mobile_menu_arrow:before, .et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a { color: <?php 
        echo esc_html($slide_nav_links_color_active);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('rgba(255,255,255,0.6)' !== $slide_nav_top_color) {
        ?>
			.et_slide_in_menu_container .et_slide_menu_top, .et_slide_in_menu_container .et_slide_menu_top a, .et_slide_in_menu_container .et_slide_menu_top input { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_slide_in_menu_container .et_slide_menu_top .et-search-form input, .et_slide_in_menu_container .et_slide_menu_top .et-search-form button#searchsubmit_header:before { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-webkit-input-placeholder { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-moz-placeholder { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_slide_in_menu_container .et_slide_menu_top .et-search-form input:-ms-input-placeholder { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_header_style_fullscreen .et_slide_in_menu_container span.mobile_menu_bar.et_toggle_fullscreen_menu:before { color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
			.et_header_style_fullscreen .et_slide_menu_top .et-search-form { border-color: <?php 
        echo esc_html($slide_nav_top_color);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('rgba(255,255,255,0.6)' !== $slide_nav_search) {
        ?>
			.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input,.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form button#searchsubmit_header:before { color: <?php 
        echo esc_html($slide_nav_search);
        ?>
; }
			.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-webkit-input-placeholder { color: <?php 
        echo esc_html($slide_nav_search);
        ?>
; }
			.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input::-moz-placeholder { color: <?php 
        echo esc_html($slide_nav_search);
        ?>
; }
			.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form input:-ms-input-placeholder { color: <?php 
        echo esc_html($slide_nav_search);
        ?>
; }
		<?php 
    }
    ?>
		<?php 
    if ('rgba(0,0,0,0.2)' !== $slide_nav_search_bg) {
        ?>
			.et_header_style_slide .et_slide_in_menu_container .et_slide_menu_top .et-search-form { background: <?php 
        echo esc_html($slide_nav_search_bg);
        ?>
 !important; }
		<?php 
    }
    ?>
		<?php 
    if (320 !== $slide_nav_width) {
        ?>
			.et_header_style_slide .et_slide_in_menu_container { width: <?php 
        echo esc_html($slide_nav_width);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    if ('' !== $slide_nav_font_style) {
        ?>
			.et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field, .et_slide_in_menu_container a, .et_slide_in_menu_container #et-info span { <?php 
        echo esc_html(et_pb_print_font_style($slide_nav_font_style));
        ?>
 }
		<?php 
    }
    ?>
		<?php 
    if (14 !== $slide_nav_font_size) {
        ?>
			.et_header_style_slide .et_slide_in_menu_container .et_mobile_menu li a { font-size: <?php 
        echo esc_html($slide_nav_font_size);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    if (14 !== $slide_nav_top_font_size) {
        ?>
			.et_header_style_slide .et_slide_in_menu_container,.et_header_style_slide .et_slide_in_menu_container input.et-search-field,.et_header_style_slide .et_slide_in_menu_container a,.et_header_style_slide .et_slide_in_menu_container #et-info span,.et_header_style_slide .et_slide_menu_top ul.et-social-icons a,.et_header_style_slide .et_slide_menu_top span { font-size: <?php 
        echo esc_html($slide_nav_top_font_size);
        ?>
px; }
			.et_header_style_slide .et_slide_in_menu_container .et-search-field::-moz-placeholder { font-size: <?php 
        echo esc_html($slide_nav_top_font_size);
        ?>
px; }
			.et_header_style_slide .et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { font-size: <?php 
        echo esc_html($slide_nav_top_font_size);
        ?>
px; }
			.et_header_style_slide .et_slide_in_menu_container .et-search-field:-ms-input-placeholder { font-size: <?php 
        echo esc_html($slide_nav_top_font_size);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    if (30 !== $fullscreen_nav_font_size) {
        ?>
			.et_header_style_fullscreen .et_slide_in_menu_container .et_mobile_menu li a { font-size: <?php 
        echo esc_html($fullscreen_nav_font_size);
        ?>
px; }
			.et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a, .et_slide_in_menu_container #mobile_menu_slide li a { padding: <?php 
        echo esc_html($fullscreen_nav_font_size / 2);
        ?>
px 0; }
		<?php 
    }
    ?>
		<?php 
    if (18 !== $fullscreen_nav_top_font_size) {
        ?>
			.et_header_style_fullscreen .et_slide_in_menu_container,.et_header_style_fullscreen .et_slide_in_menu_container input.et-search-field,.et_header_style_fullscreen .et_slide_in_menu_container a,.et_header_style_fullscreen .et_slide_in_menu_container #et-info span,.et_header_style_fullscreen .et_slide_menu_top ul.et-social-icons a,.et_header_style_fullscreen .et_slide_menu_top span { font-size: <?php 
        echo esc_html($fullscreen_nav_top_font_size);
        ?>
px; }
			.et_header_style_fullscreen .et_slide_in_menu_container .et-search-field::-moz-placeholder { font-size: <?php 
        echo esc_html($fullscreen_nav_top_font_size);
        ?>
px; }
			.et_header_style_fullscreen .et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { font-size: <?php 
        echo esc_html($fullscreen_nav_top_font_size);
        ?>
px; }
			.et_header_style_fullscreen .et_slide_in_menu_container .et-search-field:-ms-input-placeholder { font-size: <?php 
        echo esc_html($fullscreen_nav_top_font_size);
        ?>
px; }
		<?php 
    }
    ?>
		<?php 
    if ('0' !== $slide_nav_font_spacing) {
        ?>
			.et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field { letter-spacing: <?php 
        echo esc_html($slide_nav_font_spacing);
        ?>
px; }
			.et_slide_in_menu_container .et-search-field::-moz-placeholder { letter-spacing: <?php 
        echo esc_html($slide_nav_font_spacing);
        ?>
px; }
			.et_slide_in_menu_container .et-search-field::-webkit-input-placeholder { letter-spacing: <?php 
        echo esc_html($slide_nav_font_spacing);
        ?>
px; }
			.et_slide_in_menu_container .et-search-field:-ms-input-placeholder { letter-spacing: <?php 
        echo esc_html($slide_nav_font_spacing);
        ?>
px; }
		<?php 
    }
    ?>

		@media only screen and ( min-width: 981px ) {
			<?php 
    if (4 !== $section_padding) {
        ?>
				.et_pb_section { padding: <?php 
        echo esc_html($section_padding);
        ?>
% 0; }
				.et_pb_section.et_pb_section_first { padding-top: inherit; }
				.et_pb_fullwidth_section { padding: 0; }
			<?php 
    }
    ?>
			<?php 
    if (2 !== $row_padding) {
        ?>
				.et_pb_row { padding: <?php 
        echo esc_html($row_padding);
        ?>
% 0; }
			<?php 
    }
    ?>
			<?php 
    if (30 !== $body_header_size) {
        ?>
				h1 { font-size: <?php 
        echo esc_html($body_header_size);
        ?>
px; }
				h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.86));
        ?>
px; }
				h3 { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.73));
        ?>
px; }
				h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.6));
        ?>
px; }
				h5 { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.53));
        ?>
px; }
				h6 { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.47));
        ?>
px; }
				.et_pb_slide_description .et_pb_slide_title { font-size: <?php 
        echo esc_html(intval($body_header_size * 1.53));
        ?>
px; }
				.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: <?php 
        echo esc_html(intval($body_header_size * 0.53));
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (intval($body_header_size * 0.6) !== $widget_header_font_size) {
        ?>
				.footer-widget h4 { font-size: <?php 
        echo esc_html($widget_header_font_size);
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (66 !== $menu_height) {
        ?>
				.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation  { padding: <?php 
        echo esc_html(round($menu_height / 2));
        ?>
px 0 0 0; }
				.et_header_style_left #et-top-navigation nav > ul > li > a, .et_header_style_split #et-top-navigation nav > ul > li > a { padding-bottom: <?php 
        echo esc_html(round($menu_height / 2));
        ?>
px; }
				.et_header_style_split .centered-inline-logo-wrap { width: <?php 
        echo esc_html($menu_height);
        ?>
px; margin: -<?php 
        echo esc_html($menu_height);
        ?>
px 0; }
				.et_header_style_split .centered-inline-logo-wrap #logo { max-height: <?php 
        echo esc_html($menu_height);
        ?>
px; }
				.et_pb_svg_logo.et_header_style_split .centered-inline-logo-wrap #logo { height: <?php 
        echo esc_html($menu_height);
        ?>
px; }
				.et_header_style_centered #top-menu > li > a { padding-bottom: <?php 
        echo esc_html(round($menu_height * 0.18));
        ?>
px; }
				.et_header_style_slide #et-top-navigation, .et_header_style_fullscreen #et-top-navigation { padding: <?php 
        echo esc_html(round(($menu_height - 18) / 2));
        ?>
px 0 <?php 
        echo esc_html(round(($menu_height - 18) / 2));
        ?>
px 0 !important; }
				<?php 
        if (!$vertical_nav) {
            ?>
					.et_header_style_centered #main-header .logo_container { height: <?php 
            echo esc_html($menu_height);
            ?>
px; }
				<?php 
        }
        ?>
			<?php 
    }
    ?>
			<?php 
    if (54 !== $logo_height && in_array($header_style, array('left', 'slide', 'fullscreen'))) {
        ?>
				#logo { max-height: <?php 
        echo esc_html($logo_height . '%');
        ?>
; }
				.et_pb_svg_logo #logo { height: <?php 
        echo esc_html($logo_height . '%');
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if (64 !== $logo_height && 'centered' === $header_style) {
        ?>
				.et_header_style_centered #logo { max-height: <?php 
        echo esc_html($logo_height . '%');
        ?>
; }
				.et_pb_svg_logo.et_header_style_centered #logo { height: <?php 
        echo esc_html($logo_height . '%');
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if ($vertical_nav && et_get_option('logo_height')) {
        ?>
				#main-header .logo_container { width: <?php 
        echo esc_html($logo_height . '%');
        ?>
; }
				.et_header_style_centered #main-header .logo_container,
				.et_header_style_split #main-header .logo_container { margin: 0 auto; }
			<?php 
    }
    ?>
			<?php 
    if ('false' !== $hide_primary_logo || 'false' !== $hide_fixed_logo) {
        ?>
				.et_header_style_centered.et_hide_primary_logo #main-header:not(.et-fixed-header) .logo_container, .et_header_style_centered.et_hide_fixed_logo #main-header.et-fixed-header .logo_container { height: <?php 
        echo esc_html($menu_height * 0.18);
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (40 !== $fixed_menu_height) {
        ?>
				.et_header_style_left .et-fixed-header #et-top-navigation, .et_header_style_split .et-fixed-header #et-top-navigation { padding: <?php 
        echo esc_html(intval(round($fixed_menu_height / 2)));
        ?>
px 0 0 0; }
				.et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a, .et_header_style_split .et-fixed-header #et-top-navigation nav > ul > li > a  { padding-bottom: <?php 
        echo esc_html(round($fixed_menu_height / 2));
        ?>
px; }
				.et_header_style_centered header#main-header.et-fixed-header .logo_container { height: <?php 
        echo esc_html($fixed_menu_height);
        ?>
px; }
				.et_header_style_split .et-fixed-header .centered-inline-logo-wrap { width: <?php 
        echo esc_html($fixed_menu_height);
        ?>
px; margin: -<?php 
        echo esc_html($fixed_menu_height);
        ?>
px 0;  }
				.et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { max-height: <?php 
        echo esc_html($fixed_menu_height);
        ?>
px; }
				.et_pb_svg_logo.et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { height: <?php 
        echo esc_html($fixed_menu_height);
        ?>
px; }
				.et_header_style_slide .et-fixed-header #et-top-navigation, .et_header_style_fullscreen .et-fixed-header #et-top-navigation { padding: <?php 
        echo esc_html(round(($fixed_menu_height - 18) / 2));
        ?>
px 0 <?php 
        echo esc_html(round(($fixed_menu_height - 18) / 2));
        ?>
px 0 !important; }
			<?php 
    }
    ?>
			<?php 
    if (54 !== $logo_height && 'split' === $header_style) {
        ?>
				.et_header_style_split .centered-inline-logo-wrap { width: auto; height: <?php 
        echo esc_html(intval($menu_height) / 100 * $logo_height + 14);
        ?>
px; }
				.et_header_style_split .et-fixed-header .centered-inline-logo-wrap { width: auto; height: <?php 
        echo esc_html(intval($fixed_menu_height) / 100 * $logo_height + 14);
        ?>
px; }
				.et_header_style_split .centered-inline-logo-wrap #logo,
				.et_header_style_split .et-fixed-header .centered-inline-logo-wrap #logo { height: auto; max-height: 100%; }

			<?php 
    }
    ?>
			<?php 
    if ($fixed_secondary_nav_bg !== '#2ea3f2') {
        ?>
				.et-fixed-header#top-header, .et-fixed-header#top-header #et-secondary-nav li ul { background-color: <?php 
        echo esc_html($fixed_secondary_nav_bg);
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if ($fixed_primary_nav_bg !== $primary_nav_bg) {
        ?>
				.et-fixed-header#main-header, .et-fixed-header#main-header .nav li ul, .et-fixed-header .et-search-form { background-color: <?php 
        echo esc_html($fixed_primary_nav_bg);
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if (14 !== $fixed_primary_nav_font_size) {
        ?>
				.et-fixed-header #top-menu li a { font-size: <?php 
        echo esc_html($fixed_primary_nav_font_size);
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if ($fixed_menu_link !== 'rgba(0,0,0,0.6)') {
        ?>
				.et-fixed-header #top-menu a, .et-fixed-header #et_search_icon:before, .et-fixed-header #et_top_search .et-search-form input, .et-fixed-header .et_search_form_container input, .et-fixed-header .et_close_search_field:after, .et-fixed-header #et-top-navigation .et-cart-info { color: <?php 
        echo esc_html($fixed_menu_link);
        ?>
 !important; }
				.et-fixed-header .et_search_form_container input::-moz-placeholder { color: <?php 
        echo esc_html($fixed_menu_link);
        ?>
 !important; }
				.et-fixed-header .et_search_form_container input::-webkit-input-placeholder { color: <?php 
        echo esc_html($fixed_menu_link);
        ?>
 !important; }
				.et-fixed-header .et_search_form_container input:-ms-input-placeholder { color: <?php 
        echo esc_html($fixed_menu_link);
        ?>
 !important; }
			<?php 
    }
    ?>
			<?php 
    if ($fixed_menu_link_active !== '#2ea3f2') {
        ?>
				.et-fixed-header #top-menu li.current-menu-ancestor > a,
				.et-fixed-header #top-menu li.current-menu-item > a { color: <?php 
        echo esc_html($fixed_menu_link_active);
        ?>
 !important; }
			<?php 
    }
    ?>
			<?php 
    if ('#ffffff' !== $fixed_secondary_menu_link) {
        ?>
				.et-fixed-header#top-header a { color: <?php 
        echo esc_html($fixed_secondary_menu_link);
        ?>
; }
			<?php 
    }
    ?>

			<?php 
    /* Blog Meta & Title */
    et_pb_print_styles_css(array(array('key' => 'post_meta_font_size', 'type' => 'font-size', 'default' => 14, 'selector' => $et_pb_print_selectors_post_meta), array('key' => 'post_header_font_size', 'type' => 'font-size-post-header', 'default' => 30, 'selector' => '')));
    ?>
		}
		@media only screen and ( min-width: <?php 
    echo esc_html($large_content_width);
    ?>
px) {
			.et_pb_row { padding: <?php 
    echo esc_html(intval($large_content_width * $row_padding / 100));
    ?>
px 0; }
			.et_pb_section { padding: <?php 
    echo esc_html(intval($large_content_width * $section_padding / 100));
    ?>
px 0; }
			.single.et_pb_pagebuilder_layout.et_full_width_page .et_post_meta_wrapper { padding-top: <?php 
    echo esc_html(intval($large_content_width * $row_padding / 100 * 3));
    ?>
px; }
			.et_pb_section.et_pb_section_first { padding-top: inherit; }
			.et_pb_fullwidth_section { padding: 0; }
		}
		@media only screen and ( max-width: 980px ) {
			<?php 
    if ($mobile_primary_nav_bg !== $primary_nav_bg) {
        ?>
				#main-header, #main-header .nav li ul, .et-search-form, #main-header .et_mobile_menu { background-color: <?php 
        echo esc_html($mobile_primary_nav_bg);
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if ($menu_link !== $mobile_menu_link) {
        ?>
				.et_header_style_centered .mobile_nav .select_page, .et_header_style_split .mobile_nav .select_page, .et_mobile_menu li a, .mobile_menu_bar:before, .et_nav_text_color_light #top-menu > li > a, .et_nav_text_color_dark #top-menu > li > a, #top-menu a, .et_mobile_menu li a, #et_search_icon:before, #et_top_search .et-search-form input, .et_search_form_container input, #et-top-navigation .et-cart-info { color: <?php 
        echo esc_html($mobile_menu_link);
        ?>
; }
				.et_close_search_field:after { color: <?php 
        echo esc_html($mobile_menu_link);
        ?>
 !important; }
				.et_search_form_container input::-moz-placeholder { color: <?php 
        echo esc_html($mobile_menu_link);
        ?>
; }
				.et_search_form_container input::-webkit-input-placeholder { color: <?php 
        echo esc_html($mobile_menu_link);
        ?>
; }
				.et_search_form_container input:-ms-input-placeholder { color: <?php 
        echo esc_html($mobile_menu_link);
        ?>
; }
			<?php 
    }
    ?>
			<?php 
    if (14 !== $tablet_body_font_size && $body_font_size !== $tablet_body_font_size) {
        ?>
				body, .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: <?php 
        echo esc_html($tablet_body_font_size);
        ?>
px; }
				.et_pb_slide_content, .et_pb_best_value { font-size: <?php 
        echo esc_html(intval($tablet_body_font_size * 1.14));
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (30 !== $tablet_header_font_size && $tablet_header_font_size !== $body_header_size) {
        ?>
				h1 { font-size: <?php 
        echo esc_html($tablet_header_font_size);
        ?>
px; }
				h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: <?php 
        echo esc_html(intval($tablet_header_font_size * 0.86));
        ?>
px; }
				h3 { font-size: <?php 
        echo esc_html(intval($tablet_header_font_size * 0.73));
        ?>
px; }
				h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: <?php 
        echo esc_html(intval($tablet_header_font_size * 0.6));
        ?>
px; }
				.et_pb_slide_description .et_pb_slide_title { font-size: <?php 
        echo esc_html(intval($tablet_header_font_size * 1.53));
        ?>
px; }
				.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: <?php 
        echo esc_html(intval($tablet_header_font_size * 0.53));
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (50 !== $tablet_section_height) {
        ?>
				.et_pb_section { padding: <?php 
        echo esc_html($tablet_section_height);
        ?>
px 0; }
				.et_pb_section.et_pb_section_first { padding-top: inherit; }
				.et_pb_section.et_pb_fullwidth_section { padding: 0; }
			<?php 
    }
    ?>
			<?php 
    if (30 !== $tablet_row_height) {
        ?>
				.et_pb_row, .et_pb_column .et_pb_row_inner { padding: <?php 
        echo esc_html($tablet_row_height);
        ?>
px 0 !important; }
			<?php 
    }
    ?>
		}
		@media only screen and ( max-width: 767px ) {
			<?php 
    if (14 !== $phone_body_font_size && $phone_body_font_size !== $tablet_body_font_size) {
        ?>
				body, .et_pb_column_1_2 .et_quote_content blockquote cite, .et_pb_column_1_2 .et_link_content a.et_link_main_url, .et_pb_column_1_3 .et_quote_content blockquote cite, .et_pb_column_3_8 .et_quote_content blockquote cite, .et_pb_column_1_4 .et_quote_content blockquote cite, .et_pb_blog_grid .et_quote_content blockquote cite, .et_pb_column_1_3 .et_link_content a.et_link_main_url, .et_pb_column_3_8 .et_link_content a.et_link_main_url, .et_pb_column_1_4 .et_link_content a.et_link_main_url, .et_pb_blog_grid .et_link_content a.et_link_main_url { font-size: <?php 
        echo esc_html($phone_body_font_size);
        ?>
px; }
				.et_pb_slide_content, .et_pb_best_value { font-size: <?php 
        echo esc_html(intval($phone_body_font_size * 1.14));
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (30 !== $phone_header_font_size && $tablet_header_font_size !== $phone_header_font_size) {
        ?>
				h1 { font-size: <?php 
        echo esc_html($phone_header_font_size);
        ?>
px; }
				h2, .product .related h2, .et_pb_column_1_2 .et_quote_content blockquote p { font-size: <?php 
        echo esc_html(intval($phone_header_font_size * 0.86));
        ?>
px; }
				h3 { font-size: <?php 
        echo esc_html(intval($phone_header_font_size * 0.73));
        ?>
px; }
				h4, .et_pb_circle_counter h3, .et_pb_number_counter h3, .et_pb_column_1_3 .et_pb_post h2, .et_pb_column_1_4 .et_pb_post h2, .et_pb_blog_grid h2, .et_pb_column_1_3 .et_quote_content blockquote p, .et_pb_column_3_8 .et_quote_content blockquote p, .et_pb_column_1_4 .et_quote_content blockquote p, .et_pb_blog_grid .et_quote_content blockquote p, .et_pb_column_1_3 .et_link_content h2, .et_pb_column_3_8 .et_link_content h2, .et_pb_column_1_4 .et_link_content h2, .et_pb_blog_grid .et_link_content h2, .et_pb_column_1_3 .et_audio_content h2, .et_pb_column_3_8 .et_audio_content h2, .et_pb_column_1_4 .et_audio_content h2, .et_pb_blog_grid .et_audio_content h2, .et_pb_column_3_8 .et_pb_audio_module_content h2, .et_pb_column_1_3 .et_pb_audio_module_content h2, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2 { font-size: <?php 
        echo esc_html(intval($phone_header_font_size * 0.6));
        ?>
px; }
				.et_pb_slide_description .et_pb_slide_title { font-size: <?php 
        echo esc_html(intval($phone_header_font_size * 1.53));
        ?>
px; }
				.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3, .et_pb_gallery_grid .et_pb_gallery_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2, .et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2, .et_pb_column_1_4 .et_pb_audio_module_content h2 { font-size: <?php 
        echo esc_html(intval($phone_header_font_size * 0.53));
        ?>
px; }
			<?php 
    }
    ?>
			<?php 
    if (50 !== $phone_section_height && $tablet_section_height !== $phone_section_height) {
        ?>
				.et_pb_section { padding: <?php 
        echo esc_html($phone_section_height);
        ?>
px 0; }
				.et_pb_section.et_pb_section_first { padding-top: inherit; }
				.et_pb_section.et_pb_fullwidth_section { padding: 0; }
			<?php 
    }
    ?>
			<?php 
    if (30 !== $phone_row_height && $tablet_row_height !== $phone_row_height) {
        ?>
				.et_pb_row, .et_pb_column .et_pb_row_inner { padding: <?php 
        echo esc_html($phone_row_height);
        ?>
px 0 !important; }
			<?php 
    }
    ?>
		}
	</style>

	<?php 
    $et_gf_heading_font = sanitize_text_field(et_get_option('heading_font', 'none'));
    $et_gf_body_font = sanitize_text_field(et_get_option('body_font', 'none'));
    $et_gf_buttons_font = sanitize_text_field(et_get_option('all_buttons_font', 'none'));
    $et_gf_primary_nav_font = sanitize_text_field(et_get_option('primary_nav_font', 'none'));
    $et_gf_secondary_nav_font = sanitize_text_field(et_get_option('secondary_nav_font', 'none'));
    $et_gf_slide_nav_font = sanitize_text_field(et_get_option('slide_nav_font', 'none'));
    $site_domain = get_locale();
    $et_one_font_languages = et_get_one_font_languages();
    if (isset($et_one_font_languages[$site_domain])) {
        printf('<style class="et_one_font_languages">%s { font-family: %s; }</style>', 'h1, h2, h3, h4, h5, h6, body, input, textarea, select', sanitize_text_field($et_one_font_languages[$site_domain]['font_family']));
    } else {
        if (!in_array($et_gf_heading_font, array('', 'none')) || !in_array($et_gf_body_font, array('', 'none')) || !in_array($et_gf_buttons_font, array('', 'none')) || !in_array($et_gf_primary_nav_font, array('', 'none')) || !in_array($et_gf_secondary_nav_font, array('', 'none')) || !in_array($et_gf_slide_nav_font, array('', 'none'))) {
            if (!in_array($et_gf_heading_font, array('', 'none'))) {
                ?>
				<style class="et_heading_font">
				h1, h2, h3, h4, h5, h6 {
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_heading_font));
                ?>
				}
				</style>
			<?php 
            }
            if (!in_array($et_gf_body_font, array('', 'none'))) {
                ?>
				<style class="et_body_font">
				body, input, textarea, select {
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_body_font));
                ?>
				}
				</style>
			<?php 
            }
            if (!in_array($et_gf_buttons_font, array('', 'none'))) {
                ?>
				<style class="et_all_buttons_font">
				.et_pb_button {
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_buttons_font));
                ?>
				}
				</style>
			<?php 
            }
            if (!in_array($et_gf_primary_nav_font, array('', 'none'))) {
                ?>
				<style class="et_primary_nav_font">
				#main-header,
				#et-top-navigation {
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_primary_nav_font));
                ?>
				}
				</style>
			<?php 
            }
            if (!in_array($et_gf_secondary_nav_font, array('', 'none'))) {
                ?>
				<style class="et_secondary_nav_font">
				#top-header .container{
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_secondary_nav_font));
                ?>
				}
				</style>
			<?php 
            }
            if (!in_array($et_gf_slide_nav_font, array('', 'none'))) {
                ?>
				<style class="et_slide_nav_font">
				.et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field{
					<?php 
                echo sanitize_text_field(et_builder_get_font_family($et_gf_slide_nav_font));
                ?>
				}
				</style>
			<?php 
            }
        }
    }
    ?>

	<?php 
    /**
     * use_sidebar_width might invalidate the use of sidebar_width.
     * It is placed outside other customizer style so live preview
     * can invalidate and revalidate it for smoother experience
     */
    if ($use_sidebar_width && 21 !== $sidebar_width && 19 <= $sidebar_width && 33 >= $sidebar_width) {
        ?>
	<style id="theme-customizer-sidebar-width-css">
		<?php 
        $content_width = 100 - $sidebar_width;
        $content_width_percentage = $content_width . '%';
        $sidebar_width_percentage = $sidebar_width . '%';
        printf('body #page-container #sidebar { width:%2$s; }
				body #page-container #left-area { width:%1$s; }
				.et_right_sidebar #main-content .container:before { right:%2$s !important; }
				.et_left_sidebar #main-content .container:before { left:%2$s !important; }', esc_html($content_width_percentage), esc_html($sidebar_width_percentage));
        ?>
	</style>
	<?php 
    }
    ?>

	<style id="module-customizer-css">
		<?php 
    /* Gallery */
    et_pb_print_module_styles_css('et_pb_gallery', array(array('type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_gallery_image .et_overlay:before', 'important' => true), array('type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_gallery_image .et_overlay'), array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title'), array('type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_gallery .et_pb_gallery_item .et_pb_gallery_caption'), array('type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_gallery .et_pb_gallery_item .et_pb_gallery_caption')));
    /* Blurb */
    et_pb_print_module_styles_css('et_pb_blurb', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_blurb h4')));
    /* Tabs */
    et_pb_print_module_styles_css('et_pb_tabs', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_tabs_controls li'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_tabs_controls li'), array('type' => 'padding-tabs', 'key' => 'padding', 'selector' => '')));
    /* Slider */
    et_pb_print_module_styles_css('et_pb_slider', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description .et_pb_slide_title'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description .et_pb_slide_title'), array('type' => 'font-size', 'key' => 'body_font_size', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_content'), array('type' => 'font-style', 'key' => 'body_font_style', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_content'), array('type' => 'padding-slider', 'key' => 'padding', 'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description')));
    /* Testimonial */
    et_pb_print_module_styles_css('et_pb_testimonial', array(array('type' => 'border-radius', 'key' => 'portrait_border_radius', 'selector' => '.et_pb_testimonial_portrait, .et_pb_testimonial_portrait:before'), array('type' => 'width', 'key' => 'portrait_width', 'selector' => '.et_pb_testimonial_portrait'), array('type' => 'height', 'key' => 'portrait_height', 'selector' => '.et_pb_testimonial_portrait'), array('type' => 'font-style', 'key' => 'author_name_font_style', 'selector' => '.et_pb_testimonial_author'), array('type' => 'font-style', 'key' => 'author_details_font_style', 'selector' => 'p.et_pb_testimonial_meta')));
    /* Pricing Table */
    et_pb_print_module_styles_css('et_pb_pricing_tables', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_pricing_heading h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_pricing_heading h2'), array('type' => 'font-size', 'key' => 'subheader_font_size', 'selector' => '.et_pb_best_value'), array('type' => 'font-style', 'key' => 'subheader_font_style', 'selector' => '.et_pb_best_value'), array('type' => 'font-size', 'key' => 'price_font_size', 'selector' => '.et_pb_sum'), array('type' => 'font-style', 'key' => 'price_font_style', 'selector' => '.et_pb_sum')));
    /* Call to Action */
    et_pb_print_module_styles_css('et_pb_cta', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_promo h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_promo h2, .et_pb_promo h1'), array('type' => 'padding-call-to-action', 'key' => 'custom_padding', 'selector' => '', 'important' => true)));
    /* Audio */
    et_pb_print_module_styles_css('et_pb_audio', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_audio_module_content h2'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_audio_module_content h2'), array('type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_audio_module p'), array('type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_audio_module p')));
    /* Email Optin */
    et_pb_print_module_styles_css('et_pb_signup', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_subscribe h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_subscribe h2'), array('type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_subscribe')));
    /* Login */
    et_pb_print_module_styles_css('et_pb_login', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_login h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_login h2'), array('type' => 'padding-top-bottom', 'key' => 'custom_padding', 'selector' => '.et_pb_login')));
    /* Portfolio */
    et_pb_print_module_styles_css('et_pb_portfolio', array(array('type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_portfolio .et_overlay:before, .et_pb_fullwidth_portfolio .et_overlay:before, .et_pb_portfolio_grid .et_overlay:before', 'important' => true), array('type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_portfolio .et_overlay, .et_pb_fullwidth_portfolio .et_overlay, .et_pb_portfolio_grid .et_overlay'), array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2'), array('type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta'), array('type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta')));
    /* Filterable Portfolio */
    et_pb_print_module_styles_css('et_pb_filterable_portfolio', array(array('type' => 'color', 'key' => 'zoom_icon_color', 'selector' => '.et_pb_filterable_portfolio .et_overlay:before'), array('type' => 'background-color', 'key' => 'hover_overlay_color', 'selector' => '.et_pb_filterable_portfolio .et_overlay'), array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2'), array('type' => 'font-size', 'key' => 'caption_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta'), array('type' => 'font-style', 'key' => 'caption_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta'), array('type' => 'font-size', 'key' => 'filter_font_size', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li'), array('type' => 'font-style', 'key' => 'filter_font_style', 'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li')));
    /* Bar Counter */
    et_pb_print_module_styles_css('et_pb_counters', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_counters .et_pb_counter_title'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_counters .et_pb_counter_title'), array('type' => 'font-size', 'key' => 'percent_font_size', 'selector' => '.et_pb_counters .et_pb_counter_amount'), array('type' => 'font-style', 'key' => 'percent_font_style', 'selector' => '.et_pb_counters .et_pb_counter_amount'), array('type' => 'border-radius', 'key' => 'border_radius', 'selector' => '.et_pb_counters .et_pb_counter_amount, .et_pb_counters .et_pb_counter_container'), array('type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_counter_amount')));
    /* Circle Counter */
    et_pb_print_module_styles_css('et_pb_circle_counter', array(array('type' => 'font-size', 'key' => 'number_font_size', 'selector' => '.et_pb_circle_counter .percent p'), array('type' => 'font-style', 'key' => 'number_font_style', 'selector' => '.et_pb_circle_counter .percent p'), array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_circle_counter h3'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_circle_counter h3')));
    /* Number Counter */
    et_pb_print_module_styles_css('et_pb_number_counter', array(array('type' => 'font-size', 'key' => 'number_font_size', 'selector' => '.et_pb_number_counter .percent p'), array('type' => 'font-style', 'key' => 'number_font_style', 'selector' => '.et_pb_number_counter .percent p'), array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_number_counter h3'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_number_counter h3')));
    /* Accordion */
    et_pb_print_module_styles_css('et_pb_accordion', array(array('type' => 'font-size', 'key' => 'toggle_font_size', 'selector' => '.et_pb_accordion .et_pb_toggle_title'), array('type' => 'font-style', 'key' => 'toggle_font_style', 'selector' => '.et_pb_accordion .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title'), array('type' => 'font-style', 'key' => 'inactive_toggle_font_style', 'selector' => '.et_pb_accordion .et_pb_toggle.et_pb_toggle_close .et_pb_toggle_title'), array('type' => 'font-size', 'key' => 'toggle_icon_size', 'selector' => '.et_pb_accordion .et_pb_toggle_title:before'), array('type' => 'padding', 'key' => 'custom_padding', 'selector' => '.et_pb_accordion .et_pb_toggle_open, .et_pb_accordion .et_pb_toggle_close')));
    /* Toggle */
    et_pb_print_module_styles_css('et_pb_toggle', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_toggle.et_pb_toggle_item h5'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_toggle.et_pb_toggle_item.et_pb_toggle_open h5'), array('type' => 'font-style', 'key' => 'inactive_title_font_style', 'selector' => '.et_pb_toggle.et_pb_toggle_item.et_pb_toggle_close h5'), array('type' => 'font-size', 'key' => 'toggle_icon_size', 'selector' => '.et_pb_toggle.et_pb_toggle_item .et_pb_toggle_title:before'), array('type' => 'padding', 'key' => 'custom_padding', 'selector' => '.et_pb_toggle.et_pb_toggle_item')));
    /* Contact Form */
    et_pb_print_module_styles_css('et_pb_contact_form', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title'), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title'), array('type' => 'font-size', 'key' => 'form_field_font_size', 'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea'), array('type' => 'font-style', 'key' => 'form_field_font_style', 'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea'), array('type' => 'font-size', 'key' => 'captcha_font_size', 'selector' => '.et_pb_contact_captcha_question'), array('type' => 'font-style', 'key' => 'captcha_font_style', 'selector' => '.et_pb_contact_captcha_question'), array('type' => 'padding', 'key' => 'padding', 'selector' => '.et_pb_contact p input, .et_pb_contact p textarea')));
    /* Sidebar */
    et_pb_print_module_styles_css('et_pb_sidebar', array(array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_widget_area h4'), array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_widget_area h4')));
    /* Divider */
    et_pb_print_module_styles_css('et_pb_divider', array(array('type' => 'border-top-style', 'key' => 'divider_style', 'selector' => '.et_pb_space:before'), array('type' => 'border-top-width', 'key' => 'divider_weight', 'selector' => '.et_pb_space:before'), array('type' => 'height', 'key' => 'height', 'selector' => '.et_pb_space')));
    /* Person */
    et_pb_print_module_styles_css('et_pb_team_member', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_team_member h4'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_team_member h4'), array('type' => 'font-size', 'key' => 'subheader_font_size', 'selector' => '.et_pb_team_member .et_pb_member_position'), array('type' => 'font-style', 'key' => 'subheader_font_style', 'selector' => '.et_pb_team_member .et_pb_member_position'), array('type' => 'font-size', 'key' => 'social_network_icon_size', 'selector' => '.et_pb_member_social_links a')));
    /* Blog */
    et_pb_print_module_styles_css('et_pb_blog', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_posts .et_pb_post h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_posts .et_pb_post h2'), array('type' => 'font-size', 'key' => 'meta_font_size', 'selector' => '.et_pb_posts .et_pb_post .post-meta'), array('type' => 'font-style', 'key' => 'meta_font_style', 'selector' => '.et_pb_posts .et_pb_post .post-meta')));
    /* Blog Masonry */
    et_pb_print_module_styles_css('et_pb_blog_masonry', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_blog_grid .et_pb_post h2'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_blog_grid .et_pb_post h2'), array('type' => 'font-size', 'key' => 'meta_font_size', 'selector' => '.et_pb_blog_grid .et_pb_post .post-meta'), array('type' => 'font-style', 'key' => 'meta_font_style', 'selector' => '.et_pb_blog_grid .et_pb_post .post-meta')));
    /* Shop */
    et_pb_print_module_styles_css('et_pb_shop', array(array('type' => 'font-size', 'key' => 'title_font_size', 'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3', 'important' => false), array('type' => 'font-style', 'key' => 'title_font_style', 'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3', 'important' => false), array('type' => 'font-size', 'key' => 'sale_badge_font_size', 'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale', 'important' => false), array('type' => 'font-style', 'key' => 'sale_badge_font_style', 'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale', 'important' => true), array('type' => 'font-size', 'key' => 'price_font_size', 'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount', 'important' => false), array('type' => 'font-style', 'key' => 'price_font_style', 'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount', 'important' => true), array('type' => 'font-size', 'key' => 'sale_price_font_size', 'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount', 'important' => false), array('type' => 'font-style', 'key' => 'sale_price_font_style', 'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount', 'important' => true)));
    /* Countdown */
    et_pb_print_module_styles_css('et_pb_countdown_timer', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_countdown_timer .title'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_countdown_timer .title')));
    /* Social */
    et_pb_print_module_styles_css('et_pb_social_media_follow', array(array('type' => 'font-style', 'key' => 'button_font_style', 'selector' => '.et_pb_social_media_follow li a.follow_button'), array('type' => 'social-icon-size', 'key' => 'icon_size', 'selector' => '')));
    /* Fullwidth Slider */
    et_pb_print_module_styles_css('et_pb_fullwidth_slider', array(array('type' => 'font-size', 'key' => 'header_font_size', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title', 'default' => '46'), array('type' => 'font-style', 'key' => 'header_font_style', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title', 'default' => ''), array('type' => 'font-size', 'key' => 'body_font_size', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_content', 'default' => 16), array('type' => 'font-style', 'key' => 'body_font_style', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_content', 'default' => ''), array('type' => 'padding-slider', 'key' => 'padding', 'selector' => '.et_pb_fullwidth_section .et_pb_slide_description', 'default' => '16')));
    ?>
	</style>

	<?php 
}
Example #3
0
 function et_builder_set_element_font($font, $use_important = false)
 {
     $style = '';
     if ('' === $font) {
         return $style;
     }
     $font_values = explode('|', $font);
     if (!empty($font_values)) {
         $font_values = array_map('trim', $font_values);
         $font_name = $font_values[0];
         $is_font_bold = 'on' === $font_values[1] ? true : false;
         $is_font_italic = 'on' === $font_values[2] ? true : false;
         $is_font_uppercase = 'on' === $font_values[3] ? true : false;
         $is_font_underline = 'on' === $font_values[4] ? true : false;
         if ('' !== $font_name) {
             et_builder_enqueue_font($font_name);
             $style .= et_builder_get_font_family($font_name, $use_important) . ' ';
         }
         if ($is_font_bold) {
             $style .= sprintf('font-weight: bold%1$s; ', $use_important ? ' !important' : '');
         }
         if ($is_font_italic) {
             $style .= sprintf('font-style: italic%1$s; ', $use_important ? ' !important' : '');
         }
         if ($is_font_uppercase) {
             $style .= sprintf('text-transform: uppercase%1$s; ', $use_important ? ' !important' : '');
         }
         if ($is_font_underline) {
             $style .= sprintf('text-decoration: underline%1$s; ', $use_important ? ' !important' : '');
         }
         $style = rtrim($style);
     }
     return $style;
 }
Example #4
0
 function et_builder_set_element_font($font, $use_important = false, $default = false)
 {
     $style = '';
     if ('' === $font) {
         return $style;
     }
     $font_values = explode('|', $font);
     $default = !$default ? "||||" : $default;
     $font_values_default = explode('|', $default);
     if (!empty($font_values)) {
         $font_values = array_map('trim', $font_values);
         $font_name = $font_values[0];
         $is_font_bold = 'on' === $font_values[1] ? true : false;
         $is_font_italic = 'on' === $font_values[2] ? true : false;
         $is_font_uppercase = 'on' === $font_values[3] ? true : false;
         $is_font_underline = 'on' === $font_values[4] ? true : false;
         $font_name_default = $font_values_default[0];
         $is_font_bold_default = 'on' === $font_values_default[1] ? true : false;
         $is_font_italic_default = 'on' === $font_values_default[2] ? true : false;
         $is_font_uppercase_default = 'on' === $font_values_default[3] ? true : false;
         $is_font_underline_default = 'on' === $font_values_default[4] ? true : false;
         if ('' !== $font_name && $font_name_default !== $font_name) {
             et_builder_enqueue_font($font_name);
             $style .= et_builder_get_font_family($font_name, $use_important) . ' ';
         }
         $style .= et_builder_set_element_font_style('font-weight', $is_font_bold_default, $is_font_bold, 'normal', 'bold', $use_important);
         $style .= et_builder_set_element_font_style('font-style', $is_font_italic_default, $is_font_italic, 'none', 'italic', $use_important);
         $style .= et_builder_set_element_font_style('text-transform', $is_font_uppercase_default, $is_font_uppercase, 'none', 'uppercase', $use_important);
         $style .= et_builder_set_element_font_style('text-decoration', $is_font_underline_default, $is_font_underline, 'none', 'underline', $use_important);
         $style = rtrim($style);
     }
     return $style;
 }