Skip to content
Permalink
Browse files
Fix for elusive webfonts for blogs with CDN
  • Loading branch information
mhawksey committed Jan 10, 2014
1 parent 609d43b commit fccd91cad82c1cbb5c8b95dc9184e3211957e005
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
@@ -1,10 +1,14 @@
<?php header("Content-type: text/css"); ?>
<?php
$ur = urldecode($_GET['url']);
?>
@font-face {
font-family: 'Elusive-Icons';
src:url('../inc/fonts/Elusive-Icons.eot');
src:url('../inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
url('../inc/fonts/Elusive-Icons.woff') format('woff'),
url('../inc/fonts/Elusive-Icons.ttf') format('truetype'),
url('../inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot');
src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.woff') format('woff'),
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.ttf') format('truetype'),
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
font-weight: normal;
font-style: normal;
}
@@ -356,7 +356,7 @@ function tinyforge_scripts_styles() {
$wp_styles->add_data( 'tinyforge-ie', 'conditional', 'lt IE 9' );

// 5.7 - Add CSS file of the Elusive-icon font.
wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.css',
wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.php?url='.urlencode(get_template_directory_uri()),
array(),
'1.0',
'all' );

0 comments on commit fccd91c

Please sign in to comment.