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;
    }
}
Example #2
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;
    }
}