$options = get_option('sf_flexform_options'); $custom_fonts = $google_font_one = $google_font_two = $google_font_three = ""; $body_font_option = $options['body_font_option']; if (isset($options['google_standard_font'])) { $google_standard_font = explode(':', $options['google_standard_font']); $google_font_one = str_replace("+", " ", $google_standard_font[0]); } $headings_font_option = $options['headings_font_option']; if (isset($options['google_heading_font'])) { $google_heading_font = explode(':', $options['google_heading_font']); $google_font_two = str_replace("+", " ", $google_heading_font[0]); } $menu_font_option = $options['menu_font_option']; if (isset($options['google_menu_font'])) { $google_menu_font = explode(':', $options['google_menu_font']); $google_font_three = str_replace("+", " ", $google_menu_font[0]); } if ($body_font_option == "google" && $google_font_one != "") { $custom_fonts .= "'".$google_font_one."', "; } if ($headings_font_option == "google" && $google_font_two != "") { $custom_fonts .= "'".$google_font_two."', "; } if ($menu_font_option == "google" && $google_font_three != "") { $custom_fonts .= "'".$google_font_three."', "; } $fontdeck_js = $options['fontdeck_js']; ?>