Plugin Directory

Changeset 1450998


Ignore:
Timestamp:
07/08/2016 05:40:59 AM (10 years ago)
Author:
morisawa
Message:

change style position

Location:
ts-webfonts-for-standard-plan/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ts-webfonts-for-standard-plan/trunk/readme.txt

    r1431142 r1450998  
    44Requires at least: 4.3.1
    55Tested up to: 4.3.1
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5050== Changelog ==
    5151
     52= 2.0.1 =
     53* style挿入位置の修正
     54
    5255= 2.0.0 =
    5356* フォント個別設定機能の削除
  • ts-webfonts-for-standard-plan/trunk/typesquare.php

    r1427985 r1450998  
    22/*
    33Plugin Name: TS Webfonts for Standard Plan
    4 Version: 2.0.0
     4Version: 2.0.1
    55Description: このプラグインを利用することで、あなたのサイトにTypeSquareのWebフォントを簡単に設定できます。
    66Author: Morisawa Inc.
     
    2424class TypeSquare_ST {
    2525    private static $instance;
     26    private $styles = false;
    2627    const OPTION_NAME = 'ts_settings';
    2728    private function __construct(){}
     
    113114    public function load_font_styles() {
    114115        if ( is_archive() || is_home() ) {
     116            if ( $this->styles ) {
     117                echo $this->styles;
     118            }
    115119            return;
    116120        }
     
    181185
    182186        if ( $style ) {
    183             $html = "<style type='text/css'>{$style}</style>";
    184             echo $html;
     187            $this->styles = "<style type='text/css'>{$style}</style>";
    185188        }
    186189    }
Note: See TracChangeset for help on using the changeset viewer.