components/com_gantry/features/webfonts.php
<SNIP>
$font_family = $gantry->get('font-family');
// Added to setect whether to use HTTP or HTTPS:
$mode = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
// Only Google at this point
if ($this->get('source') == "google" && in_array($font_family,$this->_google_fonts)) {
// Modified to use the HTTP/HTTPS $mode defined earlier:
$gantry->addStyle($mode.'://fonts.googleapis.com/css?family='.str_replace(" ","+",$font_family));
$gantry->addInlineStyle("h1, h2 { font-family: '".$font_family."', 'Helvetica', arial, serif; }");
}
<SNIP>
The following users have thanked you: starterfirm
Time to create page: 0.069 seconds