diff --git a/wp-content/themes/constructor/admin/settings/fonts.php b/wp-content/themes/constructor/admin/settings/fonts.php index fafd3dafe1700bd3c29375a0a535239056da3af5..fde7c97e08c4686eee9f1e36a7595a4cfe0fa90a 100644 --- a/wp-content/themes/constructor/admin/settings/fonts.php +++ b/wp-content/themes/constructor/admin/settings/fonts.php @@ -36,15 +36,15 @@ $(document).ready(function(){ }); })(jQuery); -var loaded = new Array(); -function loadFont(font) { - if (loaded.indexOf(font) >= 0) return true; - loaded.push(font); - font = font.replace(/\"/gi, ''); - font = font.replace(/ /gi, '+'); +/* var loaded = new Array(); */ +/* function loadFont(font) { */ +/* if (loaded.indexOf(font) >= 0) return true; */ +/* loaded.push(font); */ +/* font = font.replace(/\"/gi, ''); */ +/* font = font.replace(/ /gi, '+'); */ - jQuery('head').append("<link href='http://fonts.googleapis.com/css?family="+font+"' rel='stylesheet' type='text/css'>"); -} +/* jQuery('head').append("<link href='http://fonts.googleapis.com/css?family="+font+"' rel='stylesheet' type='text/css'>"); */ +/* } */ /* ]]> */ </script> <table class="form-table"> @@ -76,8 +76,7 @@ function loadFont(font) { </p> </td> <td rowspan="5" valign="top" class="updated quick-links" width="320px"> - <h3><?php _e('Google Web Fonts', 'constructor') ?></h3> - <p><a href="http://www.google.com/webfonts"><?php _e('Google Web Fonts lets you browse all the fonts available via the Google Web Fonts API. All fonts in the directory are available for use on your website under an open source license and are served by Google servers.', 'constructor') ?></a></p> + <h3><?php _e('Font Weight', 'constructor') ?></h3> <p><?php _e('Defines from thin to thick characters. 400 is the same as "normal", and 700 is the same as "bold"', 'constructor') ?> </p> diff --git a/wp-content/themes/constructor/css-editor.php b/wp-content/themes/constructor/css-editor.php index aab74426d7b277acf8e2f5989fee6f1c61cc7ba9..793d0e886ece79b1df629fbc49736b4a69f8ce78 100644 --- a/wp-content/themes/constructor/css-editor.php +++ b/wp-content/themes/constructor/css-editor.php @@ -82,11 +82,11 @@ if (array_search($constructor['fonts']['content']['family'], $font_face) !== fal array_push($include_fonts, $font); } } -if (!empty($include_fonts)) { - $font_face = '@import url(http://fonts.googleapis.com/css?family='.join('|',$include_fonts).');'."\n"; -} else { - $font_face = ''; -} +/* if (!empty($include_fonts)) { */ +/* $font_face = '@import url(http://fonts.googleapis.com/css?family='.join('|',$include_fonts).');'."\n"; */ +/* } else { */ +/* $font_face = ''; */ +/* } */ $title_font = <<<CSS font-family:{$constructor['fonts']['title']['family']}; diff --git a/wp-content/themes/constructor/css.php b/wp-content/themes/constructor/css.php index 266ff34379e14b2bd3dd5cccc1ef61c3b953d72b..0a89de64accfe71d528d57f8b4aae0ca50e1c5ae 100644 --- a/wp-content/themes/constructor/css.php +++ b/wp-content/themes/constructor/css.php @@ -82,11 +82,11 @@ if (array_search($options['fonts']['content']['family'], $font_face) !== false) array_push($include_fonts, $font); } } -if (!empty($include_fonts)) { - $font_face = '@import url(http://fonts.googleapis.com/css?family='.join('|',$include_fonts).');'."\n"; +/*if (!empty($include_fonts)) { + $font_face = '@import url(http://fonts.googleapis.com/css?family='.join('|',$include_fonts).');'."\n"; } else { $font_face = ''; -} + }*/ $title_font = <<<CSS font-family:{$options['fonts']['title']['family']}; diff --git a/wp-content/themes/constructor/libs/Constructor/Admin.php b/wp-content/themes/constructor/libs/Constructor/Admin.php index 47d0b41a6b392acd1ae45f71da90db516478604f..0a7e2c48c99fad95325b869a753e57416eef1e48 100644 --- a/wp-content/themes/constructor/libs/Constructor/Admin.php +++ b/wp-content/themes/constructor/libs/Constructor/Admin.php @@ -557,8 +557,8 @@ Author URI: $author_uri <?php endforeach; $k++; // start from this is font - $font_face = require CONSTRUCTOR_DIRECTORY . '/admin/font-face.php'; - echo "<optgroup label='".__('Google Fonts', 'constructor')."'>"; + /*$font_face = require CONSTRUCTOR_DIRECTORY . '/admin/font-face.php'; + echo "<optgroup label='".__('Google Fonts', 'constructor')."'>"; foreach ($font_face as $i => $font) : if ($font == $constructor['fonts'][$key]['family']) : $loadFont = $font; @@ -571,7 +571,7 @@ Author URI: $author_uri <?php endif; endforeach; - echo "</optgroup>"; + echo "</optgroup>";*/ echo "</select>"; if (isset($loadFont)) { ?>