<?php
/**
* Load Josefin Sans typeface
*/
if ( ! function_exists( 'blaskan_font_face' ) ):
function blaskan_font_face() {
if ( BLASKAN_TYPEFACE_TITLE == 'default' ) {
echo "
<style type='text/css'>
/**
* Bulletproof syntax:
* http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax
* Font files generated by Font Squirrel:
* http://www.fontsquirrel.com
* License: Open Font License. See " . get_template_directory_uri() . "/OFL.txt.
*/
@font-face {
font-family: 'JosefinSansStdLight';
src: url('" . get_template_directory_uri() . "/fonts/JosefinSansStd-Light-webfont.eot'); /* IE9 Compat Modes */
src: url('" . get_template_directory_uri() . "/fonts/JosefinSansStd-Light-webfont.eot?#iefix') format('eot'), /* IE6-IE8 */
url('" . get_template_directory_uri() . "/fonts/JosefinSansStd-Light-webfont.woff') format('woff'), /* Modern Browsers */
url('" . get_template_directory_uri() . "/fonts/JosefinSansStd-Light-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('" . get_template_directory_uri() . "/fonts/JosefinSansStd-Light-webfont.svg#JosefinSansStdLight') format('svg'); /* Legacy iOS */
}
</style>
";
}
}
endif;
add_action( 'wp_head', 'blaskan_font_face', 1 );
/**
* Load Lora typeface
*/
if ( ! function_exists( 'blaskan_font_face' ) ):
function blaskan_font_face() {
if ( BLASKAN_TYPEFACE_TITLE == 'default' ) {
echo "
<style type='text/css'>
/**
* Bulletproof syntax:
* http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax
* Font files generated by Font Squirrel:
* http://www.fontsquirrel.com
* License: Open Font License. See " . get_template_directory_uri() . "/OFL.txt.
*/
@font-face {
font-family: 'LoraRegular';
src: url('" . get_template_directory_uri() . "/fonts/Lora-Regular-webfont.eot'); /* IE9 Compat Modes */
src: url('" . get_template_directory_uri() . "/fonts/Lora-Regular-webfont.eot?#iefix') format('eot'), /* IE6-IE8 */
url('" . get_template_directory_uri() . "/fonts/Lora-Regular-webfont.woff') format('woff'), /* Modern Browsers */
url('" . get_template_directory_uri() . "/fonts/Lora-Regular-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('" . get_template_directory_uri() . "/fonts/Lora-Regular-webfont.svg#LoraRegular') format('svg'); /* Legacy iOS */
}
</style>
";
}
}
endif;
add_action( 'wp_head', 'blaskan_font_face', 1 );
?>