Plugin Directory

Changeset 3296925


Ignore:
Timestamp:
05/20/2025 01:43:34 AM (11 months ago)
Author:
DesignPlus
Message:

Release version 1.2.10

Location:
tcd-classic-editor/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tcd-classic-editor/trunk/assets/css/editor.css

    r3278760 r3296925  
    16611661  overflow: hidden;
    16621662  max-width: 100%;
     1663  width: fit-content;
    16631664  min-width: var(--tcdce-button-size-width-pc) !important;
    16641665  height: var(--tcdce-button-size-height-pc);
     
    17621763    --tcdce-button-size-height-pc: var(--tcdce-button-size-height-sp);
    17631764    --tcdce-button-font-size-pc: var(--tcdce-button-font-size-sp);
     1765  }
     1766
     1767  /* 管理画面のプレビュー時にスマホ用CSS変数が上書きされるのを防ぐ */
     1768  body.wp-admin
     1769    :is(.tcdce-body, .editor-styles-wrapper)
     1770    :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
     1771      .wp-block-button
     1772    ) {
     1773    --tcdce-button-size-width-pc: var(--tcdce-button-size-width-sp) !important;
     1774    --tcdce-button-size-height-pc: var(
     1775      --tcdce-button-size-height-sp
     1776    ) !important;
     1777    --tcdce-button-font-size-pc: var(--tcdce-button-font-size-sp) !important;
    17641778  }
    17651779}
  • tcd-classic-editor/trunk/classes/class-tcdce-editor.php

    r3272441 r3296925  
    259259            }
    260260
     261            // その他タグの登録(ビジュアル/テキスト)
     262
     263            // layout2c
     264            $tcdQuicktagsL10n['post_col-2'] = array(
     265                'display' => __( '2 column', 'tcd-classic-editor' ),
     266                'tag' => '<div class="post_row"><div class="post_col post_col-2">' . __( 'Text and image tags to display in the left column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-2">' . __( 'Text and image tags to display in the right column', 'tcd-classic-editor' ) . '</div></div>'
     267            );
     268            // layout3c
     269            $tcdQuicktagsL10n['post_col-3'] = array(
     270                'display' => __( '3 column', 'tcd-classic-editor' ),
     271                'tag' => '<div class="post_row"><div class="post_col post_col-3">' . __( 'Text and image tags to display in the left column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-3">' . __( 'Text and image tags to display in the center column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-3">' . __( 'Text and image tags to display in the right column', 'tcd-classic-editor' ) . '</div></div>'
     272            );
     273            // tab2
     274            $tcdQuicktagsL10n['tab'] = array(
     275                'display' => __( 'Tab', 'tcd-classic-editor' ),
     276                'tag' => __( '[tcd_tab tab1="Tab1 headline" img1="Tab1 image url" tab2="Tab2 headline" img2="Tab2 image url"]', 'tcd-classic-editor' )
     277            );
     278
    261279            echo '<script id="tcdce-register-quicktag" type="text/javascript">';
    262280
     
    267285
    268286            if ( wp_script_is( 'quicktags' ) ) {
    269 
    270                 // layout2c
    271                 $tcdQuicktagsL10n['post_col-2'] = array(
    272                     'display' => __( '2 column', 'tcd-classic-editor' ),
    273                     'tag' => '<div class="post_row"><div class="post_col post_col-2">' . __( 'Text and image tags to display in the left column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-2">' . __( 'Text and image tags to display in the right column', 'tcd-classic-editor' ) . '</div></div>'
    274                 );
    275                 // layout3c
    276                 $tcdQuicktagsL10n['post_col-3'] = array(
    277                     'display' => __( '3 column', 'tcd-classic-editor' ),
    278                     'tag' => '<div class="post_row"><div class="post_col post_col-3">' . __( 'Text and image tags to display in the left column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-3">' . __( 'Text and image tags to display in the center column', 'tcd-classic-editor' ) . '</div><div class="post_col post_col-3">' . __( 'Text and image tags to display in the right column', 'tcd-classic-editor' ) . '</div></div>'
    279                 );
    280                 // tab2
    281                 $tcdQuicktagsL10n['tab'] = array(
    282                     'display' => __( 'Tab', 'tcd-classic-editor' ),
    283                     'tag' => __( '[tcd_tab tab1="Tab1 headline" img1="Tab1 image url" tab2="Tab2 headline" img2="Tab2 image url"]', 'tcd-classic-editor' )
    284                 );
    285287
    286288                foreach ( $tcdQuicktagsL10n as $key => $value ) {
  • tcd-classic-editor/trunk/readme.txt

    r3278760 r3296925  
    44Requires at least: 6.7
    55Tested up to: 6.8
    6 Stable tag: 1.2.9
     6Stable tag: 1.2.10
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    4747
    4848== Changelog ==
     49= 1.2.10 =
     50* Minor bug fixes and improvements
     51
    4952= 1.2.9 =
    5053* Minor bug fixes and improvements
  • tcd-classic-editor/trunk/tcd-classic-editor.php

    r3278760 r3296925  
    44 * Plugin URI:
    55 * Description: This is a classic editor extension plug-in for TCD users.
    6  * Version: 1.2.9
     6 * Version: 1.2.10
    77 * Author: TCD
    88 * Author URI: https://tcd-theme.com/
  • tcd-classic-editor/trunk/theme-support/tcd.php

    r3274892 r3296925  
    4848
    4949        $image = $dp_options['qt_speech_balloon' . $sb_key . '_user_image'] ?? '';
    50         $image_url = wp_get_attachment_url( $image ) ? wp_get_attachment_url( $image ) : '';
     50        $image_url = wp_get_attachment_url( $image ) ?: '';
    5151        $font_color = $dp_options['qt_speech_balloon' . $sb_key . '_font_color'] ?? '';
    5252        $bg_color = $dp_options['qt_speech_balloon' . $sb_key . '_bg_color'] ?? '';
    5353        $border_color = $dp_options['qt_speech_balloon' . $sb_key . '_border_color'] ?? '';
    5454        $user_name = $dp_options['qt_speech_balloon' . $sb_key . '_user_name'] ?? '';
     55
     56        /**
     57         * TENJIKU以前の吹き出しデータ対策
     58         *
     59         * NOTE: クイックタグの保存データ名が異なる
     60         */
     61        // 画像
     62        if( isset( $dp_options['qt_speech_balloon_user_image' . $sb_key] ) ){
     63          $image_url = wp_get_attachment_url( $dp_options['qt_speech_balloon_user_image' . $sb_key] ) ?: '';
     64        }
     65        // 文字色
     66        if( isset( $dp_options['qt_speech_balloon_font_color' . $sb_key] ) ){
     67          $font_color = $dp_options['qt_speech_balloon_font_color' . $sb_key];
     68        }
     69        // 背景色
     70        if( isset( $dp_options['qt_speech_balloon_bg_color' . $sb_key] ) ){
     71          $bg_color = $dp_options['qt_speech_balloon_bg_color' . $sb_key];
     72        }
     73        // ボーダーカラー
     74        if( isset( $dp_options['qt_speech_balloon_border_color' . $sb_key] ) ){
     75          $border_color = $dp_options['qt_speech_balloon_border_color' . $sb_key];
     76        }
     77        // 名前
     78        if( isset( $dp_options['qt_speech_balloon_user_name' . $sb_key] ) ){
     79          $user_name = $dp_options['qt_speech_balloon_user_name' . $sb_key];
     80        }
    5581
    5682        $style =
Note: See TracChangeset for help on using the changeset viewer.