Changeset 3296925
- Timestamp:
- 05/20/2025 01:43:34 AM (11 months ago)
- Location:
- tcd-classic-editor/trunk
- Files:
-
- 5 edited
-
assets/css/editor.css (modified) (2 diffs)
-
classes/class-tcdce-editor.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
tcd-classic-editor.php (modified) (1 diff)
-
theme-support/tcd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tcd-classic-editor/trunk/assets/css/editor.css
r3278760 r3296925 1661 1661 overflow: hidden; 1662 1662 max-width: 100%; 1663 width: fit-content; 1663 1664 min-width: var(--tcdce-button-size-width-pc) !important; 1664 1665 height: var(--tcdce-button-size-height-pc); … … 1762 1763 --tcdce-button-size-height-pc: var(--tcdce-button-size-height-sp); 1763 1764 --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; 1764 1778 } 1765 1779 } -
tcd-classic-editor/trunk/classes/class-tcdce-editor.php
r3272441 r3296925 259 259 } 260 260 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 261 279 echo '<script id="tcdce-register-quicktag" type="text/javascript">'; 262 280 … … 267 285 268 286 if ( wp_script_is( 'quicktags' ) ) { 269 270 // layout2c271 $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 // layout3c276 $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 // tab2281 $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 );285 287 286 288 foreach ( $tcdQuicktagsL10n as $key => $value ) { -
tcd-classic-editor/trunk/readme.txt
r3278760 r3296925 4 4 Requires at least: 6.7 5 5 Tested up to: 6.8 6 Stable tag: 1.2. 96 Stable tag: 1.2.10 7 7 Requires PHP: 8.0 8 8 License: GPLv2 or later … … 47 47 48 48 == Changelog == 49 = 1.2.10 = 50 * Minor bug fixes and improvements 51 49 52 = 1.2.9 = 50 53 * Minor bug fixes and improvements -
tcd-classic-editor/trunk/tcd-classic-editor.php
r3278760 r3296925 4 4 * Plugin URI: 5 5 * Description: This is a classic editor extension plug-in for TCD users. 6 * Version: 1.2. 96 * Version: 1.2.10 7 7 * Author: TCD 8 8 * Author URI: https://tcd-theme.com/ -
tcd-classic-editor/trunk/theme-support/tcd.php
r3274892 r3296925 48 48 49 49 $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 ) ?: ''; 51 51 $font_color = $dp_options['qt_speech_balloon' . $sb_key . '_font_color'] ?? ''; 52 52 $bg_color = $dp_options['qt_speech_balloon' . $sb_key . '_bg_color'] ?? ''; 53 53 $border_color = $dp_options['qt_speech_balloon' . $sb_key . '_border_color'] ?? ''; 54 54 $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 } 55 81 56 82 $style =
Note: See TracChangeset
for help on using the changeset viewer.