Plugin Directory

Changeset 2014661


Ignore:
Timestamp:
01/18/2019 08:34:21 AM (7 years ago)
Author:
zcomjp
Message:

update version 1.0.1.
bug fixed.

Location:
ts-webfonts-for-z-com
Files:
23 added
3 edited

Legend:

Unmodified
Added
Removed
  • ts-webfonts-for-z-com/trunk/inc/class/class.font.data.php

    r1672951 r2014661  
    7979        $default_param = array(
    8080            'font_theme'        => false,
    81             'title_target'  => 'h1,h2,h3,.entry-title',
    82             'lead_target'   => 'h4,h5,h6',
    83             'text_target'   => '.hentry',
    84             'bold_target'   => 'strong,b',
     81            'title_target'      => 'h1,h2,h3,.entry-title,h1 *,h2 *,h3 *,.entry-title *,.entry-content h2,.entry-content h2,.entry-content h3',
     82            'lead_target'       => '.entry-content h4,.entry-content h5,.entry-content h6,.entry-content h4 *,.entry-content h5 *,.entry-content h6 *',
     83            'text_target'       => '.entry-content *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)',
     84            'bold_target'       => 'strong,b',
    8585            'show_post_form'    => false,
    8686        );
  • ts-webfonts-for-z-com/trunk/readme.txt

    r1685405 r2014661  
    33Tags: fonts,Webfonts
    44Requires at least: 4.3.1
    5 Tested up to: 4.7.5
    6 Stable tag: 1.0.0
     5Tested up to: 5.0.3
     6Stable tag: 1.0.1
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7878
    7979== Changelog ==
     80= 1.0.1 =
     81* Gutenbergテーマ対応
     82
    8083= 1.0.0 =
    8184* 初期リリース
  • ts-webfonts-for-z-com/trunk/ts-webfonts-for-z-com.php

    r1672974 r2014661  
    22/*
    33Plugin Name: TypeSquare Webfonts for Z.com
    4 Version: 1.0.0
     4Version: 1.0.1
    55Description: Z.comのWordPress専用サーバー「Z.com WP」で株式会社モリサワが提供するWebフォントサービス「TypeSquare」を利用できるプラグインです。
    66Author: GMO Internet, Inc.
     
    120120        }
    121121
    122         $style = $this->_get_font_styles( $use_font, $fonttheme );
     122        $style = $this->_get_font_styles( $use_font, $fonttheme, get_the_ID());
    123123        if ( $style ) {
    124124            $html = "<style type='text/css'>{$style}</style>";
     
    212212
    213213        if ( $title_target && $title_font ) {
    214             $style .= "{$title_target}{ font-family: {$title_font};}";
     214            $style .= "{$title_target}{ font-family: {$title_font} !important;}";
    215215        }
    216216        if ( $lead_target && $lead_font ) {
    217             $style .= "{$lead_target}{ font-family: {$lead_font};}";
     217            $style .= "{$lead_target}{ font-family: {$lead_font} !important;}";
    218218        }
    219219        if ( $text_target && $text_font ) {
    220             $style .= "{$text_target}{ font-family: {$text_font};}";
     220            $style .= "{$text_target}{ font-family: {$text_font} !important;}";
    221221        }
    222222        if ( $bold_target && $bold_font ) {
    223             $style .= "{$bold_target}{ font-family: {$bold_font};}";
     223            $style .= "{$bold_target}{ font-family: {$bold_font} !important;}";
    224224        }
    225225        return $style;
Note: See TracChangeset for help on using the changeset viewer.