function options_typography_styles()
{
    // It's helpful to include an option to disable styles.  If this is selected
    // no inline styles will be outputted into the <head>
    if (!of_get_option('disable_styles')) {
        $output = '';
        $input = '';
        if (of_get_option('body_font')) {
            $output .= options_typography_font_styles(of_get_option('body_font'), 'body');
        }
        if (of_get_option('site_title_font')) {
            $output .= options_typography_font_styles(of_get_option('site_title_font'), '#site-title');
        }
        if (of_get_option('header_font')) {
            $output .= options_typography_font_styles(of_get_option('header_font'), 'h1,h2,h3,h4,h5,h6');
        }
        if (of_get_option('link_color')) {
            $output .= 'a {color:' . of_get_option('link_color') . '}';
        }
        if (of_get_option('link_hover_color')) {
            $output .= 'a:hover {color:' . of_get_option('link_hover_color') . '}';
        }
        if (of_get_option('google_font')) {
            $input = of_get_option('google_font');
            $output .= options_typography_font_styles(of_get_option('google_font'), '.google-font');
        }
        if (of_get_option('google_mixed')) {
            $input = of_get_option('google_mixed');
            $output .= options_typography_font_styles(of_get_option('google_mixed'), '.google-mixed');
        }
        if (of_get_option('google_mixed_2')) {
            $input = of_get_option('google_mixed_2');
            $output .= options_typography_font_styles(of_get_option('google_mixed_2'), '.google-mixed-2');
        }
        if ($output != '') {
            $output = "\n<style>\n" . $output . "</style>\n";
            echo $output;
        }
    }
}
 $all_google_fonts = array_keys(options_typography_get_google_fonts());
 // Define all the options that possibly have a unique Google font
 $google_font = of_get_option('google_font', 'Rokkitt, serif');
 $google_mixed = of_get_option('google_mixed', false);
 $google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
 // Get the font face for each option and put it in an array
 $selected_fonts = array($google_font['face'], $google_mixed['face'], $google_mixed_2['face']);
 // Remove any duplicates in the list
 $selected_fonts = array_unique($selected_fonts);
 // Check each of the unique fonts against the defined Google fonts
 // If it is a Google font, go ahead and call the function to enqueue it
 foreach ($selected_fonts as $font) {
function options_typography_styles()
{
    $output = '';
    $input = '';
    if (of_get_option('h1_heading')) {
        $input = of_get_option('h1_heading');
        $output .= options_typography_font_styles(of_get_option('h1_heading'), 'h1');
    }
    if (of_get_option('h2_heading')) {
        $input = of_get_option('h2_heading');
        $output .= options_typography_font_styles(of_get_option('h2_heading'), 'h2');
    }
    if (of_get_option('h3_heading')) {
        $input = of_get_option('h3_heading');
        $output .= options_typography_font_styles(of_get_option('h3_heading'), 'h3');
    }
    if (of_get_option('h4_heading')) {
        $input = of_get_option('h4_heading');
        $output .= options_typography_font_styles(of_get_option('h4_heading'), 'h4');
    }
    if (of_get_option('h5_heading')) {
        $input = of_get_option('h5_heading');
        $output .= options_typography_font_styles(of_get_option('h5_heading'), 'h5');
    }
    if (of_get_option('h6_heading')) {
        $input = of_get_option('h6_heading');
        $output .= options_typography_font_styles(of_get_option('h6_heading'), 'h6');
    }
    if (of_get_option('google_mixed_3')) {
        $input = of_get_option('google_mixed_3');
        $output .= options_typography_font_styles_body($input, 'body');
    }
    if (of_get_option('logo_typography')) {
        $input = of_get_option('logo_typography');
        $output .= options_typography_font_styles(of_get_option('logo_typography'), '.logo_h__txt, .logo_link');
    }
    if (of_get_option('menu_typography')) {
        $input = of_get_option('menu_typography');
        $output .= options_typography_font_styles(of_get_option('menu_typography'), '.sf-menu > li > a');
    }
    if (of_get_option('footer_menu_typography')) {
        $input = of_get_option('footer_menu_typography');
        $output .= options_typography_font_styles(of_get_option('footer_menu_typography'), '.nav.footer-nav a');
    }
    if ($output != '') {
        $output = "\n<style type='text/css'>\n" . $output . "</style>\n";
        echo $output;
    }
}
示例#4
0
文件: custom-css.php 项目: sytzec/wp
    function organizedthemes_custom_css_hook()
    {
        ?>
 
<style type='text/css'>
	
	<?php 
        if (of_get_option('disable_fonts', $single = true) != "") {
            $output = '';
            $input = '';
            if (of_get_option('body_font')) {
                $output .= options_typography_font_styles(of_get_option('body_font'), 'body');
            }
            if (of_get_option('site_title_font')) {
                $output .= options_typography_font_styles(of_get_option('site_title_font'), 'h1.text-logo');
            }
            if (of_get_option('heading_font')) {
                $output .= options_typography_font_styles(of_get_option('heading_font'), 'h1, h2, h3, h4, h5, h6');
            }
            if (of_get_option('navigation')) {
                $output .= options_typography_font_styles(of_get_option('navigation'), 'nav#main-menu ul li');
            }
            if (of_get_option('widget_title_font')) {
                $output .= options_typography_font_styles(of_get_option('widget_title_font'), 'h3.widget-title');
            }
            if ($output != '') {
                $output = $output;
                echo $output;
            }
        }
        ?>
	    

	<?php 
        if (of_get_option('logo_color', $single = true) != "") {
            ?>
		.text-logo a, .text-logo a:visited { color: <?php 
            echo of_get_option('logo_color', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('logo_color_hover', $single = true) != "") {
            ?>
		.text-logo a:hover { color: <?php 
            echo of_get_option('logo_color_hover', '');
            ?>
; }
	<?php 
        }
        ?>

	<?php 
        if (of_get_option('link_color', $single = true) != "") {
            ?>
		a, a:visited {color: <?php 
            echo of_get_option('link_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('link_color_hover', $single = true) != "") {
            ?>
		a:hover {color: <?php 
            echo of_get_option('link_color_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_background_color', $single = true) != "") {
            ?>
		#header,
		nav#main-menu li.current-menu-item li a,
		nav#main-menu li ul { background-color: <?php 
            echo of_get_option('navigation_background_color', '');
            ?>
 }
	<?php 
        }
        ?>
	
	<?php 
        if (of_get_option('navigation_link_color', $single = true) != "") {
            ?>
		nav#main-menu ul li a,
		nav#main-menu ul li a:visited { color: <?php 
            echo of_get_option('navigation_link_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_link_color_hover', $single = true) != "") {
            ?>
		nav#main-menu ul li.current-menu-item a,
		nav#main-menu ul li.current-menu-item a:visited,
		nav#main-menu li:hover,
		nav#main-menu ul li a:hover,
		nav#main-menu li:hover.current-menu-item,
		nav#main-menu ul li.current-menu-item li a:hover { color: <?php 
            echo of_get_option('navigation_link_color_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_link_color_hover_background', $single = true) != "") {
            ?>
		nav#main-menu li.current-menu-item a,
		nav#main-menu li:hover,
		nav#main-menu li a:hover,
		nav#main-menu li:hover.current-menu-item,
		nav#main-menu li.current-menu-item li a:hover { background-color: <?php 
            echo of_get_option('navigation_link_color_hover_background', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('heading_color', $single = true) != "") {
            ?>
		h1, h2, h3, h4, h5, h6 { color: <?php 
            echo of_get_option('heading_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('content_background', $single = true) != "") {
            ?>
		#content { background-color: <?php 
            echo of_get_option('content_background', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('content_text', $single = true) != "") {
            ?>
		#content { color: <?php 
            echo of_get_option('content_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button', $single = true) != "") {
            ?>
		a.button,
		input.button,
		input[type="button"],
		input[type="submit"] { color: <?php 
            echo of_get_option('button', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_background', $single = true) != "") {
            ?>
		a.button,
		input.button,
		input[type="button"],
		input[type="submit"] { background-color: <?php 
            echo of_get_option('button_background', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_hover', $single = true) != "") {
            ?>
		a:hover.button,
		input:hover.button,
		input:hover[type="button"],
		input:hover[type="submit"]  { color: <?php 
            echo of_get_option('button_hover', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_background_hover', $single = true) != "") {
            ?>
		a:hover.button,
		input:hover.button,
		input:hover[type="button"],
		input:hover[type="submit"]  { background-color: <?php 
            echo of_get_option('button_background_hover', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_title', $single = true) != "") {
            ?>
		h3.widget-title { color: <?php 
            echo of_get_option('widget_title', '');
            ?>
; border-color: <?php 
            echo of_get_option('widget_title', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_text', $single = true) != "") {
            ?>
		.widget { color: <?php 
            echo of_get_option('widget_text', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_background', $single = true) != "") {
            ?>
		aside.widget { background-color: <?php 
            echo of_get_option('widget_background', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_color', $single = true) != "") {
            ?>
		footer#primary, footer#primary p, footer#primary a, footer#primary a:visited { color: <?php 
            echo of_get_option('footer_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_background', $single = true) != "") {
            ?>
		footer#primary { background-color: <?php 
            echo of_get_option('footer_background', '');
            ?>
 }
	<?php 
        }
        ?>
	
	<?php 
        if (of_get_option('custom_css', $single = true) != "") {
            ?>
		<?php 
            echo of_get_option('custom_css', '');
            ?>
	<?php 
        }
        ?>

</style>
 
<?php 
    }
function options_typography_styles()
{
    $output = '';
    $input = '';
    if (of_get_option('typography_body')) {
        $input = of_get_option('typography_body');
        $output .= options_typography_font_base(of_get_option('typography_body'), 'body');
    }
    if (of_get_option('typography_menu')) {
        $input = of_get_option('typography_menu');
        $output .= options_typography_font_base(of_get_option('typography_menu'), '.sf-menu > li > a');
    }
    if (of_get_option('typography_h1')) {
        $input = of_get_option('typography_h1');
        $output .= options_typography_font_styles(of_get_option('typography_h1'), 'h1');
    }
    if (of_get_option('typography_h2')) {
        $input = of_get_option('typography_h2');
        $output .= options_typography_font_styles(of_get_option('typography_h2'), 'h2');
    }
    if (of_get_option('typography_h3')) {
        $input = of_get_option('typography_h3');
        $output .= options_typography_font_styles(of_get_option('typography_h3'), 'h3');
    }
    if (of_get_option('typography_h4')) {
        $input = of_get_option('typography_h4');
        $output .= options_typography_font_styles(of_get_option('typography_h4'), 'h4');
    }
    if (of_get_option('typography_h5')) {
        $input = of_get_option('typography_h5');
        $output .= options_typography_font_styles(of_get_option('typography_h5'), 'h5');
    }
    if (of_get_option('typography_h6')) {
        $input = of_get_option('typography_h6');
        $output .= options_typography_font_styles(of_get_option('typography_h6'), 'h6');
    }
    if (of_get_option('typography_heading')) {
        $input = of_get_option('typography_heading');
        $output .= options_typography_font_styles(of_get_option('typography_heading'), '.page-title h1');
    }
    if ($output != '') {
        $output = "\n<style>\n" . $output . "</style>\n";
        echo $output;
    }
}
示例#6
0
function options_typography_styles()
{
    $output = '';
    $input = '';
    if (of_get_option('h1_heading')) {
        $input = of_get_option('h1_heading');
        $output .= options_typography_font_styles(of_get_option('h1_heading'), 'h1');
    }
    if (of_get_option('h2_heading')) {
        $input = of_get_option('h2_heading');
        $output .= options_typography_font_styles(of_get_option('h2_heading'), 'h2');
    }
    if (of_get_option('h3_heading')) {
        $input = of_get_option('h3_heading');
        $output .= options_typography_font_styles(of_get_option('h3_heading'), 'h3');
    }
    if (of_get_option('h4_heading')) {
        $input = of_get_option('h4_heading');
        $output .= options_typography_font_styles(of_get_option('h4_heading'), 'h4');
    }
    if (of_get_option('h5_heading')) {
        $input = of_get_option('h5_heading');
        $output .= options_typography_font_styles(of_get_option('h5_heading'), 'h5');
    }
    if (of_get_option('h6_heading')) {
        $input = of_get_option('h6_heading');
        $output .= options_typography_font_styles(of_get_option('h6_heading'), 'h6');
    }
    if (of_get_option('google_mixed_3')) {
        $input = of_get_option('google_mixed_3');
        $output .= options_typography_font_styles_body(of_get_option('google_mixed_3'), '.main-holder, .mfp-wrap');
    }
    if (of_get_option('logo_typography')) {
        $input = of_get_option('logo_typography');
        $output .= options_typography_font_styles(of_get_option('logo_typography'), '.logo_h__txt, .logo_link');
    }
    if (of_get_option('menu_typography')) {
        $input = of_get_option('menu_typography');
        $output .= options_typography_font_styles(of_get_option('menu_typography'), '.flexnav > li > a');
    }
    if (of_get_option('footer_menu_typography')) {
        $input = of_get_option('footer_menu_typography');
        $output .= options_typography_font_styles(of_get_option('footer_menu_typography'), '.nav.footer-nav a');
    }
    if ($output != '') {
        $output = "\n<style type='text/css'>\n" . $output . "</style>\n";
        echo $output;
    } else {
        $output = "\n<style type='text/css'>\n h1 { font-weight: 400; font-style: normal; font-size: 60px; line-height: 60px; font-family: playfair_displayregular;  color:#222222; }\nh2 { font-weight: 400; font-style: normal; font-size: 40px; line-height: 40px; font-family: playfair_displayregular;  color:#222222; }\nh3 { font-weight: 400; font-style: normal; font-size: 34px; line-height: 34px; font-family: playfair_displayregular;  color:#222222; }\nh4 { font-weight: 400; font-style: normal; font-size: 24px; line-height: 28px; font-family: playfair_displayregular;  color:#222222; }\nh5 { font-weight: 400; font-style: normal; font-size: 21px; line-height: 32px; font-family: playfair_displayregular;  color:#222222; }\nh6 { font-weight: 400; font-style: normal; font-size: 18px; line-height: 24px; font-family: playfair_displayregular;  color:#222222; }\n.main-holder, .mfp-wrap { font-weight: 400; font-style: normal; font-size: 20px; line-height: 31px; font-family: playfair_displayregular;  color:#525252; }\n.logo_h__txt, .logo_link { font-weight: 400; font-style: normal; font-size: 73px; line-height: 45px; font-family: playfair_displayregular;  color:#222222; }\n.flexnav > li > a { font-weight: 400; font-style: normal; font-size: 18px; line-height: 21px; font-family: playfair_displayregular;  color:#222222; }\n.nav.footer-nav a { font-weight: 400; font-style: normal; font-size: 13px; line-height: 22px; font-family: playfair_displayregular;  color:#667078; }</style>\n";
        echo $output;
    }
}
示例#7
0
    function organizedthemes_custom_css_hook()
    {
        ?>
 
<style type='text/css'>
	
	<?php 
        if (!of_get_option('disable_fonts')) {
            $output = '';
            $input = '';
            if (of_get_option('body_font')) {
                $output .= options_typography_font_styles(of_get_option('body_font'), 'body');
            }
            if (of_get_option('site_title_font')) {
                $output .= options_typography_font_styles(of_get_option('site_title_font'), '#text-logo p, #text-logo h1');
            }
            if (of_get_option('heading_font')) {
                $output .= options_typography_font_styles(of_get_option('heading_font'), 'h1, h2, h3, h4, h5, h6');
            }
            if (of_get_option('navigation_font')) {
                $output .= options_typography_font_styles(of_get_option('navigation_font'), 'nav#top-menu li, .slicknav_nav li, .slicknav_menu  .slicknav_menutxt');
            }
            if (of_get_option('hero_title_font')) {
                $output .= options_typography_font_styles(of_get_option('hero_title_font'), 'h2.hero-title');
            }
            if (of_get_option('hero_text_font')) {
                $output .= options_typography_font_styles(of_get_option('hero_text_font'), '.hero-copy p');
            }
            if (of_get_option('widget_title_font')) {
                $output .= options_typography_font_styles(of_get_option('widget_title_font'), 'h3.widget-title, #sidebar .testimony-block h3.widget-title');
            }
            if ($output != '') {
                $output = $output;
                echo $output;
            }
        }
        ?>
	
	body { background: <?php 
        if (of_get_option('background_image', $single = true) != "") {
            ?>
url(<?php 
            echo of_get_option('background_image', '');
            ?>
)<?php 
        }
        ?>
 <?php 
        echo of_get_option('background_color', '');
        ?>
 <?php 
        echo of_get_option('background_repeat', '');
        ?>
 <?php 
        echo of_get_option('background_attachment', '');
        ?>
 <?php 
        echo of_get_option('background_position_horizontal', '');
        ?>
 <?php 
        echo of_get_option('background_position_vertical', '');
        ?>
; 
		<?php 
        if (of_get_option('background_size', $single = true) != "") {
            ?>
			-moz-background-size: <?php 
            echo of_get_option('background_size', '');
            ?>
; 
			-webkit-background-size: <?php 
            echo of_get_option('background_size', '');
            ?>
; 
			background-size: <?php 
            echo of_get_option('background_size', '');
            ?>
; <?php 
        }
        ?>
 }
			
	<?php 
        if (of_get_option('logo_color', $single = true) != "") {
            ?>
		#text-logo a, #text-logo a:visited { color: <?php 
            echo of_get_option('logo_color', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('logo_color_hover', $single = true) != "") {
            ?>
		#text-logo a:hover { color: <?php 
            echo of_get_option('logo_color_hover', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_bar', $single = true) != "") {
            ?>
		#header.scroll-background,
		body.standard #header,
		body.blog #header,
		body.archive #header,
		body.error404 #header,
		body.single-product #header,
		body.search #header { background-color: <?php 
            echo of_get_option('navigation_bar', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_item', $single = true) != "") {
            ?>
		nav#top-menu li a,
		nav#top-menu li a:visited { color: <?php 
            echo of_get_option('navigation_item', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_item_hover', $single = true) != "") {
            ?>
		nav#top-menu li a:hover { color: <?php 
            echo of_get_option('navigation_item_hover', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_drop_down_background', $single = true) != "") {
            ?>
		nav#top-menu ul li:hover > ul { background-color: <?php 
            echo of_get_option('navigation_drop_down_background', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_drop_down_color', $single = true) != "") {
            ?>
		nav#top-menu ul li:hover > ul a,
		nav#top-menu ul ul li.current-menu-item a { color: <?php 
            echo of_get_option('navigation_drop_down_color', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_drop_down_color_hover', $single = true) != "") {
            ?>
		nav#top-menu ul li:hover > ul a:hover,
		nav#top-menu ul ul li.current-menu-item a:hover { color: <?php 
            echo of_get_option('navigation_drop_down_color_hover', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('navigation_top_margin', $single = true) != "") {
            ?>
		nav#top-menu ul li:hover > ul { margin-top: <?php 
            echo of_get_option('navigation_top_margin', '');
            ?>
px; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_1', $single = true) != "") {
            ?>
		#home-one { background-color: <?php 
            echo of_get_option('home_1', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_1_text', $single = true) != "") {
            ?>
		#home-one,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_1_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_2', $single = true) != "") {
            ?>
		#home-two { background-color: <?php 
            echo of_get_option('home_2', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_2_text', $single = true) != "") {
            ?>
		#home-two,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_2_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_3', $single = true) != "") {
            ?>
		#home-three { background-color: <?php 
            echo of_get_option('home_3', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_3_text', $single = true) != "") {
            ?>
		#home-three,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_3_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_4', $single = true) != "") {
            ?>
		#home-four { background-color: <?php 
            echo of_get_option('home_4', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_4_text', $single = true) != "") {
            ?>
		#home-four,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_4_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_5', $single = true) != "") {
            ?>
		#home-five { background-color: <?php 
            echo of_get_option('home_5', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_5_text', $single = true) != "") {
            ?>
		#home-five,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_5_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_6', $single = true) != "") {
            ?>
		#home-six { background-color: <?php 
            echo of_get_option('home_6', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_6_text', $single = true) != "") {
            ?>
		#home-six,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_6_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_7', $single = true) != "") {
            ?>
		#home-seven { background-color: <?php 
            echo of_get_option('home_7', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_7_text', $single = true) != "") {
            ?>
		#home-seven,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_7_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_8', $single = true) != "") {
            ?>
		#home-eight { background-color: <?php 
            echo of_get_option('home_8', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_8_text', $single = true) != "") {
            ?>
		#home-eight,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_8_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_9', $single = true) != "") {
            ?>
		#home-nine { background-color: <?php 
            echo of_get_option('home_9', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_9_text', $single = true) != "") {
            ?>
		#home-nine,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_9_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_10', $single = true) != "") {
            ?>
		#home-ten { background-color: <?php 
            echo of_get_option('home_10', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('home_10_text', $single = true) != "") {
            ?>
		#home-ten,
		#home-one h3.widget-title { color: <?php 
            echo of_get_option('home_10_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('content_text', $single = true) != "") {
            ?>
		#content { color: <?php 
            echo of_get_option('content_text', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('content_background', $single = true) != "") {
            ?>
		#content { background-color: <?php 
            echo of_get_option('content_background', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('heading_color', $single = true) != "") {
            ?>
		h1,h2,h3,h4,h5,h6 { color: <?php 
            echo of_get_option('heading_color', '');
            ?>
; }
	<?php 
        }
        ?>
	
	<?php 
        if (of_get_option('link_color', $single = true) != "") {
            ?>
		a, a:visited { color: <?php 
            echo of_get_option('link_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('link_color_hover', $single = true) != "") {
            ?>
		a:hover { color: <?php 
            echo of_get_option('link_color_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('product_text', $single = true) != "") {
            ?>
		.home-product-block li,
		.woocommerce #content ul.products li.product,
		.woocommerce-page #content ul.products li.product { color: <?php 
            echo of_get_option('product_text', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('product_background', $single = true) != "") {
            ?>
		.home-product-block li,
		.woocommerce #content ul.products li.product,
		.woocommerce-page #content ul.products li.product { background-color: <?php 
            echo of_get_option('product_background', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_color', $single = true) != "") {
            ?>
		#footer,
		#footer .widget,
		#footer input#search-submit,
		#footer form.searchform,
		#footer h3.widget-title { color: <?php 
            echo of_get_option('footer_color', '');
            ?>
; border-color: <?php 
            echo of_get_option('footer_color', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_background_color', $single = true) != "") {
            ?>
		#footer { background-color: <?php 
            echo of_get_option('footer_background_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_link_color', $single = true) != "") {
            ?>
		#footer a,
		#footer a:visited { color: <?php 
            echo of_get_option('footer_link_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_link_color_hover', $single = true) != "") {
            ?>
		#footer a:hover { color: <?php 
            echo of_get_option('footer_link_color_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('footer_line', $single = true) != "") {
            ?>
		ul#footer-menu li, ul#footer-menu li { border-color: <?php 
            echo of_get_option('footer_line', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_title', $single = true) != "") {
            ?>
		h3.widget-title { color: <?php 
            echo of_get_option('widget_title', '');
            ?>
; border-color: <?php 
            echo of_get_option('widget_title', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_text', $single = true) != "") {
            ?>
		.widget,
		#sidebar input#search-submit,
		#sidebar form#searchform,
		#sidebar input#searchsubmit { color: <?php 
            echo of_get_option('widget_text', '');
            ?>
; border-color: <?php 
            echo of_get_option('widget_text', '');
            ?>
; }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('widget_background', $single = true) != "") {
            ?>
		.widget { background-color: <?php 
            echo of_get_option('widget_background', '');
            ?>
 }
	<?php 
        }
        ?>
	
	<?php 
        if (of_get_option('button', $single = true) != "") {
            ?>
		a.button,
		input.button,
		input[type="button"],
		input[type="submit"] { color: <?php 
            echo of_get_option('button', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_background', $single = true) != "") {
            ?>
		a.button,
		input.button,
		input[type="button"],
		input[type="submit"] { background-color: <?php 
            echo of_get_option('button_background', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_hover', $single = true) != "") {
            ?>
		a:hover.button,
		input:hover.button,
		input:hover[type="button"],
		input:hover[type="submit"] { color: <?php 
            echo of_get_option('button_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('button_background_hover', $single = true) != "") {
            ?>
		a:hover.button,
		input:hover.button,
		input:hover[type="button"],
		input:hover[type="submit"] { background-color: <?php 
            echo of_get_option('button_background_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	
	
	<?php 
        if (of_get_option('social_color', $single = true) != "") {
            ?>
		ul.network-icons li a:before { color: <?php 
            echo of_get_option('social_color', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('social_color_background', $single = true) != "") {
            ?>
		ul.network-icons li a:before { background-color: <?php 
            echo of_get_option('social_color_background', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('social_color_hover', $single = true) != "") {
            ?>
		ul.network-icons li:hover a:before { color: <?php 
            echo of_get_option('social_color_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	<?php 
        if (of_get_option('social_color_background_hover', $single = true) != "") {
            ?>
		ul.network-icons li:hover a:before { background-color: <?php 
            echo of_get_option('social_color_background_hover', '');
            ?>
 }
	<?php 
        }
        ?>
	
	<?php 
        if (of_get_option('custom_css', $single = true) != "") {
            ?>
		<?php 
            echo of_get_option('custom_css', '');
            ?>
	<?php 
        }
        ?>

</style>
 
<?php 
    }
function options_typography_styles()
{
    $output = '';
    $input = '';
    if (of_get_option('google_font')) {
        $input = of_get_option('google_font');
        $output .= options_typography_font_styles(of_get_option('google_font'), '.google-font');
    }
    if ($output != '') {
        $output = "\n<style>\n" . $output . "</style>\n";
        echo $output;
    }
}