Plugin Directory

Changeset 1453901


Ignore:
Timestamp:
07/13/2016 07:36:11 AM (10 years ago)
Author:
morisawa
Message:

check post-font-theme param

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

Legend:

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

    r1450998 r1453901  
    44Requires at least: 4.3.1
    55Tested up to: 4.3.1
    6 Stable tag: 2.0.1
     6Stable tag: 2.0.2
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5050== Changelog ==
    5151
     52= 2.0.2 =
     53* 軽微な不具合の修正
     54
    5255= 2.0.1 =
    5356* style挿入位置の修正
  • ts-webfonts-for-standard-plan/trunk/typesquare.php

    r1450998 r1453901  
    22/*
    33Plugin Name: TS Webfonts for Standard Plan
    4 Version: 2.0.1
     4Version: 2.0.2
    55Description: このプラグインを利用することで、あなたのサイトにTypeSquareのWebフォントを簡単に設定できます。
    66Author: Morisawa Inc.
     
    164164            return;
    165165        }
     166        $font_param = $fonts->get_fonttheme_params();
    166167        $use_font = $fonts->load_font_data( $fonttheme['font_theme'] );
    167168
     
    176177        while ( $the_query->have_posts() ) : $the_query->the_post();
    177178            $id = get_the_ID();
    178             $post_theme = $fonts->get_selected_post_fonttheme( $id );
    179             $post_theme = $fonts->load_font_data( $post_theme );
    180             if ( $post_theme ) {
    181                 $use_font = $post_theme;
     179            if ( isset( $font_param['typesquare_themes']['show_post_form'] ) && 'false' != $font_param['typesquare_themes']['show_post_form']  ) {
     180                $post_theme = $fonts->get_selected_post_fonttheme( $id );
     181                $post_theme = $fonts->load_font_data( $post_theme );
     182                if ( $post_theme ) {
     183                    $use_font = $post_theme;
     184                }
    182185            }
    183186            $style .= $this->_get_font_styles( $use_font, $fonttheme, $id );
Note: See TracChangeset for help on using the changeset viewer.