Changeset 1450998
- Timestamp:
- 07/08/2016 05:40:59 AM (10 years ago)
- Location:
- ts-webfonts-for-standard-plan/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
typesquare.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ts-webfonts-for-standard-plan/trunk/readme.txt
r1431142 r1450998 4 4 Requires at least: 4.3.1 5 5 Tested up to: 4.3.1 6 Stable tag: 2.0. 06 Stable tag: 2.0.1 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 50 50 == Changelog == 51 51 52 = 2.0.1 = 53 * style挿入位置の修正 54 52 55 = 2.0.0 = 53 56 * フォント個別設定機能の削除 -
ts-webfonts-for-standard-plan/trunk/typesquare.php
r1427985 r1450998 2 2 /* 3 3 Plugin Name: TS Webfonts for Standard Plan 4 Version: 2.0. 04 Version: 2.0.1 5 5 Description: このプラグインを利用することで、あなたのサイトにTypeSquareのWebフォントを簡単に設定できます。 6 6 Author: Morisawa Inc. … … 24 24 class TypeSquare_ST { 25 25 private static $instance; 26 private $styles = false; 26 27 const OPTION_NAME = 'ts_settings'; 27 28 private function __construct(){} … … 113 114 public function load_font_styles() { 114 115 if ( is_archive() || is_home() ) { 116 if ( $this->styles ) { 117 echo $this->styles; 118 } 115 119 return; 116 120 } … … 181 185 182 186 if ( $style ) { 183 $html = "<style type='text/css'>{$style}</style>"; 184 echo $html; 187 $this->styles = "<style type='text/css'>{$style}</style>"; 185 188 } 186 189 }
Note: See TracChangeset
for help on using the changeset viewer.