Version Description
Download this release
Release Info
Developer | sakurainternet |
Plugin | TypeSquare Webfonts SAKURA for SAKURA Rental Server |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- readme.txt +6 -1
- ts-webfonts-for-sakura.php +8 -5
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 |
|
@@ -74,10 +74,15 @@ UD新ゴ R/UD新ゴ M/UD新ゴ コンデンス90 L/UD新ゴ コンデン
|
|
74 |
|
75 |
== Changelog ==
|
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 ==
|
4 |
Tags: font
|
5 |
Requires at least: 4.3.1
|
6 |
Tested up to: 4.5.3
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
74 |
|
75 |
== Changelog ==
|
76 |
0.9.0:テストリリース
|
77 |
+
|
78 |
1.0.0:正式リリース
|
79 |
+
|
80 |
1.0.1:軽微なバグ修正
|
81 |
+
|
82 |
1.0.2:style挿入位置の修正
|
83 |
|
84 |
+
1.0.3:一覧ページで個別に設定されたテーマを解除できない場合がある不具合を修正
|
85 |
+
|
86 |
== Upgrade notice ==
|
87 |
|
88 |
== 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/
|
@@ -138,6 +138,7 @@ class TypeSquare_ST {
|
|
138 |
if ( ! isset( $fonttheme ) && ! $fonttheme ) {
|
139 |
return;
|
140 |
}
|
|
|
141 |
$use_font = $fonts->load_font_data( $fonttheme['font_theme'] );
|
142 |
|
143 |
|
@@ -150,10 +151,12 @@ class TypeSquare_ST {
|
|
150 |
$style = false;
|
151 |
while ( $the_query->have_posts() ) : $the_query->the_post();
|
152 |
$id = get_the_ID();
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
|
|
157 |
}
|
158 |
$style .= $this->_get_font_styles( $use_font, $fonttheme, $id );
|
159 |
endwhile;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: TS Webfonts for SAKURA RS
|
4 |
+
Version: 1.0.3
|
5 |
Description: さくらのレンタルサーバで株式会社モリサワ提供のWebフォント30書体が無料で利用できるプラグインです。
|
6 |
Author: SAKURA Internet Inc.
|
7 |
Author URI: http://www.sakura.ne.jp/
|
138 |
if ( ! isset( $fonttheme ) && ! $fonttheme ) {
|
139 |
return;
|
140 |
}
|
141 |
+
$font_param = $fonts->get_fonttheme_params();
|
142 |
$use_font = $fonts->load_font_data( $fonttheme['font_theme'] );
|
143 |
|
144 |
|
151 |
$style = false;
|
152 |
while ( $the_query->have_posts() ) : $the_query->the_post();
|
153 |
$id = get_the_ID();
|
154 |
+
if ( isset( $font_param['typesquare_themes']['show_post_form'] ) && 'false' != $font_param['typesquare_themes']['show_post_form'] ) {
|
155 |
+
$post_theme = $fonts->get_selected_post_fonttheme( $id );
|
156 |
+
$post_theme = $fonts->load_font_data( $post_theme );
|
157 |
+
if ( $post_theme ) {
|
158 |
+
$use_font = $post_theme;
|
159 |
+
}
|
160 |
}
|
161 |
$style .= $this->_get_font_styles( $use_font, $fonttheme, $id );
|
162 |
endwhile;
|