Version Description
Download this release
Release Info
Developer | sakurainternet |
Plugin | TypeSquare Webfonts SAKURA for SAKURA Rental Server |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- readme.txt +3 -2
- ts-webfonts-for-sakura.php +6 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: font
|
5 |
Requires at least: 4.3.1
|
6 |
Tested up to: 4.5.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -76,7 +76,8 @@ UD新ゴ R/UD新ゴ M/UD新ゴ コンデンス90 L/UD新ゴ コンデン
|
|
76 |
0.9.0:テストリリース
|
77 |
1.0.0:正式リリース
|
78 |
1.0.1:軽微なバグ修正
|
|
|
79 |
|
80 |
== Upgrade notice ==
|
81 |
|
82 |
-
== Arbitrary section 1 ==
|
4 |
Tags: font
|
5 |
Requires at least: 4.3.1
|
6 |
Tested up to: 4.5.3
|
7 |
+
Stable tag: 1.0.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
76 |
0.9.0:テストリリース
|
77 |
1.0.0:正式リリース
|
78 |
1.0.1:軽微なバグ修正
|
79 |
+
1.0.2:style挿入位置の修正
|
80 |
|
81 |
== Upgrade notice ==
|
82 |
|
83 |
+
== Arbitrary section 1 ==
|
ts-webfonts-for-sakura.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: TS Webfonts for SAKURA RS
|
4 |
-
Version: 1.0.
|
5 |
Description: さくらのレンタルサーバで株式会社モリサワ提供のWebフォント30書体が無料で利用できるプラグインです。
|
6 |
Author: SAKURA Internet Inc.
|
7 |
Author URI: http://www.sakura.ne.jp/
|
@@ -22,6 +22,7 @@ $admin->add_hook();
|
|
22 |
|
23 |
class TypeSquare_ST {
|
24 |
private static $instance;
|
|
|
25 |
const OPTION_NAME = 'ts_settings';
|
26 |
private function __construct(){}
|
27 |
|
@@ -96,6 +97,9 @@ class TypeSquare_ST {
|
|
96 |
|
97 |
public function load_font_styles() {
|
98 |
if ( is_archive() || is_home() ) {
|
|
|
|
|
|
|
99 |
return;
|
100 |
}
|
101 |
$auth = TypeSquare_ST_Auth::get_instance();
|
@@ -155,8 +159,7 @@ class TypeSquare_ST {
|
|
155 |
endwhile;
|
156 |
|
157 |
if ( $style ) {
|
158 |
-
$
|
159 |
-
echo $html;
|
160 |
}
|
161 |
}
|
162 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: TS Webfonts for SAKURA RS
|
4 |
+
Version: 1.0.2
|
5 |
Description: さくらのレンタルサーバで株式会社モリサワ提供のWebフォント30書体が無料で利用できるプラグインです。
|
6 |
Author: SAKURA Internet Inc.
|
7 |
Author URI: http://www.sakura.ne.jp/
|
22 |
|
23 |
class TypeSquare_ST {
|
24 |
private static $instance;
|
25 |
+
private $styles = false;
|
26 |
const OPTION_NAME = 'ts_settings';
|
27 |
private function __construct(){}
|
28 |
|
97 |
|
98 |
public function load_font_styles() {
|
99 |
if ( is_archive() || is_home() ) {
|
100 |
+
if ( $this->styles ) {
|
101 |
+
echo $this->styles;
|
102 |
+
}
|
103 |
return;
|
104 |
}
|
105 |
$auth = TypeSquare_ST_Auth::get_instance();
|
159 |
endwhile;
|
160 |
|
161 |
if ( $style ) {
|
162 |
+
$this->styles = "<style type='text/css'>{$style}</style>";
|
|
|
163 |
}
|
164 |
}
|
165 |
|