function jeg_font_setup() { $fontarray = array(); // style schema $style = get_theme_mod('switch_style'); switch ($style) { case 'flat': // flat $fontarray[0] = array('fontname' => 'Open Sans', 'fontstyle' => array('normal'), 'fontweight' => array('300', '400', '700')); $fontarray[1] = array('fontname' => 'Raleway', 'fontstyle' => array('normal', 'italic'), 'fontweight' => array('300', '400', '700')); break; case 'dark': // dark break; case 'hotel': case 'normal': default: $fontarray[0] = array('fontname' => 'Open Sans', 'fontstyle' => array('normal'), 'fontweight' => array('300', '400', '700')); $fontarray[1] = array('fontname' => 'Lato', 'fontstyle' => array('normal'), 'fontweight' => array('400', '700')); $fontarray[2] = array('fontname' => 'Playfair Display', 'fontstyle' => array('normal, italic'), 'fontweight' => array('400')); break; } if (!jeg_check_use_font_uploader('additional_font_1')) { $firstfont = get_theme_mod('first_font'); if (!empty($firstfont)) { $fontarray[0] = array('fontname' => $firstfont, 'fontstyle' => jeg_extract_value(vp_get_gwf_style($firstfont)), 'fontweight' => jeg_extract_value(vp_get_gwf_weight($firstfont))); } } if (!jeg_check_use_font_uploader('additional_font_2')) { $secondfont = get_theme_mod('second_font'); if (!empty($secondfont)) { $fontarray[1] = array('fontname' => $secondfont, 'fontstyle' => jeg_extract_value(vp_get_gwf_style($secondfont)), 'fontweight' => jeg_extract_value(vp_get_gwf_weight($secondfont))); } } if (!jeg_check_use_font_uploader('additional_font_3')) { $thirdfont = get_theme_mod('third_font'); if (!empty($thirdfont)) { $fontarray[2] = array('fontname' => $thirdfont, 'fontstyle' => jeg_extract_value(vp_get_gwf_style($thirdfont)), 'fontweight' => jeg_extract_value(vp_get_gwf_weight($thirdfont))); } } jeg_build_font($fontarray); }
.highlight, .jnpslider h2, .item .text1, .item .text3, .iosSlider .slider .item .text1, .iosSlider .slider .item .text2, .iosSlider .slider .item .text3, .kenburntextcontent.item .text1, .kenburntextcontent.item .text2, .kenburntextcontent.item .text3, .section-blog-list .note-title { font-family : "<?php echo $secondfont; ?> "; } <?php } // third font $thirdfont = get_theme_mod('third_font'); if (jeg_check_use_font_uploader('additional_font_3')) { $thirdfont = vp_option('joption.additional_font_3_fontname'); } if (!empty($thirdfont)) { ?> .mainnav .childmenu .childmenu h2, .additionalblock p, .filterfloatbutton, .filterfloatlist h3, .blogfilter h3, .portfoliofilterbutton, .blogfilterbutton, .portfolio-date, .portfolio-meta-desc, .portfolio-link > span, .portfolio-single-nav > span, .portfolioitem .info p, .productitem .pinfo > small,