Commit 25a091c5 authored by lucha's avatar lucha Committed by lechuck

Removing Google Font Api from TwentyTwelve

parent ff1966cc
......@@ -95,30 +95,32 @@ require( get_template_directory() . '/inc/custom-header.php' );
function twentytwelve_get_font_url() {
$font_url = '';
/* REMOVED GoogleApis*/
/* translators: If there are characters in your language that are not supported
* by Open Sans, translate this to 'off'. Do not translate into your own language.
*/
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
$subsets = 'latin,latin-ext';
/* translators: To add an additional Open Sans character subset specific to your language,
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
*/
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
if ( 'cyrillic' == $subset )
$subsets .= ',cyrillic,cyrillic-ext';
elseif ( 'greek' == $subset )
$subsets .= ',greek,greek-ext';
elseif ( 'vietnamese' == $subset )
$subsets .= ',vietnamese';
$query_args = array(
'family' => 'Open+Sans:400italic,700italic,400,700',
'subset' => $subsets,
);
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
}
// if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
// $subsets = 'latin,latin-ext';
// /* translators: To add an additional Open Sans character subset specific to your language,
// * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
// */
// $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
// if ( 'cyrillic' == $subset )
// $subsets .= ',cyrillic,cyrillic-ext';
// elseif ( 'greek' == $subset )
// $subsets .= ',greek,greek-ext';
// elseif ( 'vietnamese' == $subset )
// $subsets .= ',vietnamese';
// $query_args = array(
// 'family' => 'Open+Sans:400italic,700italic,400,700',
// 'subset' => $subsets,
// );
// $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
// }
return $font_url;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment