<!--[if IE 8]><link rel="stylesheet" href="<?php 
echo get_template_directory_uri();
?>
/css/ie8-grid-foundation-4.css" /><![endif]-->
	
    <?php 
$bodyFont = isset($alc_options['alc_body_font']) ? $alc_options['alc_body_font'] : 'off';
$headingsFont = isset($alc_options['alc_headings_font']) && $alc_options['alc_headings_font'] !== 'off' ? $alc_options['alc_headings_font'] : 'off';
$menuFont = isset($alc_options['alc_menu_font']) && $alc_options['alc_menu_font'] !== 'off' ? $alc_options['alc_menu_font'] : 'off';
$fonts['body, p, .content_wrapper a, #menu-top-menu a, ol, .content_wrapper li #menu-top-menu li, label, #copyright'] = $bodyFont;
$fonts['h1, h2, h3, h4, h5, h6'] = $headingsFont;
$fonts['#menu-main a'] = $menuFont;
foreach ($fonts as $value => $key) {
    if ($key != 'off' && $key != '') {
        $api_font = str_replace(" ", '+', $key);
        $font_name = font_name($key);
        echo '<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=' . $api_font . '" />';
        echo "<style type=\"text/css\">" . $value . "{ font-family: '" . $key . "' !important; }</style>";
    }
}
?>
<script src='https://www.google.com/recaptcha/api.js'></script><!-- google captcha -->	
	<?php 
wp_head();
?>
</head>
<body <?php 
body_class();
?>
>
 <?php 
Beispiel #2
0
<?php

function font_name($string)
{
    $check = strpos($string, ':');
    if ($check == false) {
        return $string;
    } else {
        preg_match("/([\\w].*):/i", $string, $matches);
        return $matches[1];
    }
}
$font = font_name($_GET['font']);
header("Location: http://www.google.com/webfonts/specimen/{$font}");