Plugin Directory

Changeset 3305735


Ignore:
Timestamp:
06/03/2025 12:14:06 PM (10 months ago)
Author:
DesignPlus
Message:

Release version 1.2.11

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

Legend:

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

    r3255965 r3305735  
    11901190  background-color: var(--tcdce-main-color);
    11911191  border-color: var(--tcdce-main-color);
     1192}
     1193
     1194/* クイックタグ未登録 */
     1195.tcdce-repeater-unregistered {
     1196  font-size: 14px;
     1197  margin-bottom: 50px;
     1198}
     1199
     1200/* アイテムが存在する場合は非表示 */
     1201.tcdce-repeater:has(.tcdce-repeater__item) + .tcdce-repeater-unregistered {
     1202  display: none;
    11921203}
    11931204
  • tcd-classic-editor/trunk/assets/css/editor.css

    r3296925 r3305735  
    4848  --tcdce-h1-text-align: center;
    4949  --tcdce-h1-font-weight: 600;
    50   --tcdce-h1-font-color: #000000;
    51   --tcdce-h1-font-family: var(--tcdce-opt-font-type-sans-serif);
     50  --tcdce-h1-font-color: var(--tcdce-base-font-color);
     51  --tcdce-h1-font-family: var(--tcdce-base-font-family);
    5252  --tcdce-h1-content-width: 100%;
    5353  /* 背景 */
     
    9999  --tcdce-h2-text-align: center;
    100100  --tcdce-h2-font-weight: 600;
    101   --tcdce-h2-font-color: #000000;
    102   --tcdce-h2-font-family: var(--tcdce-opt-font-type-sans-serif);
     101  --tcdce-h2-font-color: var(--tcdce-base-font-color);
     102  --tcdce-h2-font-family: var(--tcdce-base-font-family);
    103103  --tcdce-h2-content-width: 100%;
    104104  /* 背景 */
     
    150150  --tcdce-h3-text-align: left;
    151151  --tcdce-h3-font-weight: 600;
    152   --tcdce-h3-font-color: #000000;
    153   --tcdce-h3-font-family: var(--tcdce-opt-font-type-sans-serif);
     152  --tcdce-h3-font-color: var(--tcdce-base-font-color);
     153  --tcdce-h3-font-family: var(--tcdce-base-font-family);
    154154  --tcdce-h3-content-width: 100%;
    155155  /* 背景 */
     
    201201  --tcdce-h4-text-align: left;
    202202  --tcdce-h4-font-weight: 600;
    203   --tcdce-h4-font-color: #000000;
    204   --tcdce-h4-font-family: var(--tcdce-opt-font-type-sans-serif);
     203  --tcdce-h4-font-color: var(--tcdce-base-font-color);
     204  --tcdce-h4-font-family: var(--tcdce-base-font-family);
    205205  --tcdce-h4-content-width: 100%;
    206206  /* 背景 */
     
    252252  --tcdce-h5-text-align: left;
    253253  --tcdce-h5-font-weight: 600;
    254   --tcdce-h5-font-color: #000000;
    255   --tcdce-h5-font-family: var(--tcdce-opt-font-type-sans-serif);
     254  --tcdce-h5-font-color: var(--tcdce-base-font-color);
     255  --tcdce-h5-font-family: var(--tcdce-base-font-family);
    256256  --tcdce-h5-content-width: 100%;
    257257  /* 背景 */
     
    303303  --tcdce-h6-text-align: left;
    304304  --tcdce-h6-font-weight: 600;
    305   --tcdce-h6-font-color: #000000;
    306   --tcdce-h6-font-family: var(--tcdce-opt-font-type-sans-serif);
     305  --tcdce-h6-font-color: var(--tcdce-base-font-color);
     306  --tcdce-h6-font-family: var(--tcdce-base-font-family);
    307307  --tcdce-h6-content-width: 100%;
    308308  /* 背景 */
     
    351351  --tcdce-ul-font-size-sp: 14px;
    352352  --tcdce-ul-font-weight: normal;
    353   --tcdce-ul-font-color: #000000;
     353  --tcdce-ul-font-color: var(--tcdce-base-font-color);
    354354  /* 背景 */
    355355  --tcdce-ul-background: initial;
     
    383383  --tcdce-ol-font-size-sp: 14px;
    384384  --tcdce-ol-font-weight: normal;
    385   --tcdce-ol-font-color: #000000;
     385  --tcdce-ol-font-color: var(--tcdce-base-font-color);
    386386  /* 背景 */
    387387  --tcdce-ol-background: initial;
     
    13331333  margin: 0;
    13341334  line-height: revert;
     1335  list-style-type: inherit;
    13351336}
    13361337
     
    14331434  margin: 0;
    14341435  line-height: revert;
     1436  list-style-type: inherit;
    14351437}
    14361438
     
    16481650
    16491651:is(.tcdce-body, .editor-styles-wrapper)
    1650   :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1651     .wp-block-button
    1652   ) {
     1652  :is(
     1653    .tcdce-button,
     1654    .q_custom_button,
     1655    .q_custom_button1,
     1656    .q_custom_button2,
     1657    .q_custom_button3,
     1658    .q_button,
     1659    .wp-block-button__link
     1660  ):not(.wp-block-button) {
    16531661  --tcdce-base-link-decoration: none;
    16541662  text-decoration: none;
     
    16771685
    16781686:is(.tcdce-body, .editor-styles-wrapper)
    1679   :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1680     .wp-block-button
    1681   ):before {
     1687  :is(
     1688    .tcdce-button,
     1689    .q_custom_button,
     1690    .q_custom_button1,
     1691    .q_custom_button2,
     1692    .q_custom_button3,
     1693    .q_button,
     1694    .wp-block-button__link
     1695  ):not(.wp-block-button):before {
    16821696  content: "";
    16831697  display: block;
     
    16961710
    16971711:is(.tcdce-body, .editor-styles-wrapper)
    1698   :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1699     .wp-block-button
    1700   ):after {
     1712  :is(
     1713    .tcdce-button,
     1714    .q_custom_button,
     1715    .q_custom_button1,
     1716    .q_custom_button2,
     1717    .q_custom_button3,
     1718    .q_button,
     1719    .wp-block-button__link
     1720  ):not(.wp-block-button):after {
    17011721  content: var(--tcdce-button-overlay);
    17021722  display: block;
     
    17151735@media (any-hover: hover) {
    17161736  :is(.tcdce-body, .editor-styles-wrapper)
    1717     :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1718       .wp-block-button
    1719     ):hover {
     1737    :is(
     1738      .tcdce-button,
     1739      .q_custom_button,
     1740      .q_custom_button1,
     1741      .q_custom_button2,
     1742      .q_custom_button3,
     1743      .q_button,
     1744      .wp-block-button__link
     1745    ):not(.wp-block-button):hover {
    17201746    color: var(--tcdce-button-font-color-hover);
    17211747    border: var(--tcdce-button-border-hover);
     
    17241750
    17251751  :is(.tcdce-body, .editor-styles-wrapper)
    1726     :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1727       .wp-block-button
    1728     ):hover:before {
     1752    :is(
     1753      .tcdce-button,
     1754      .q_custom_button,
     1755      .q_custom_button1,
     1756      .q_custom_button2,
     1757      .q_custom_button3,
     1758      .q_button,
     1759      .wp-block-button__link
     1760    ):not(.wp-block-button):hover:before {
    17291761    background: var(--tcdce-button-background-hover);
    17301762    transform: var(--tcdce-button-transform-hover);
     
    17321764
    17331765  :is(.tcdce-body, .editor-styles-wrapper)
    1734     :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1735       .wp-block-button
    1736     ):hover:after {
     1766    :is(
     1767      .tcdce-button,
     1768      .q_custom_button,
     1769      .q_custom_button1,
     1770      .q_custom_button2,
     1771      .q_custom_button3,
     1772      .q_button,
     1773      .wp-block-button__link
     1774    ):not(.wp-block-button):hover:after {
    17371775    background: rgb(0 0 0 / 30%);
    17381776  }
     
    17571795
    17581796  :is(.tcdce-body, .editor-styles-wrapper)
    1759     :is(.tcdce-button, .q_custom_button, .q_button, .wp-block-button__link):not(
    1760       .wp-block-button
    1761     ) {
     1797    :is(
     1798      .tcdce-button,
     1799      .q_custom_button,
     1800      .q_custom_button1,
     1801      .q_custom_button2,
     1802      .q_custom_button3,
     1803      .q_button,
     1804      .wp-block-button__link
     1805    ):not(.wp-block-button) {
    17621806    --tcdce-button-size-width-pc: var(--tcdce-button-size-width-sp);
    17631807    --tcdce-button-size-height-pc: var(--tcdce-button-size-height-sp);
     
    17681812  body.wp-admin
    17691813    :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     ) {
     1814    :is(
     1815      .tcdce-button,
     1816      .q_custom_button,
     1817      .q_custom_button1,
     1818      .q_custom_button2,
     1819      .q_custom_button3,
     1820      .q_button,
     1821      .wp-block-button__link
     1822    ):not(.wp-block-button) {
    17731823    --tcdce-button-size-width-pc: var(--tcdce-button-size-width-sp) !important;
    17741824    --tcdce-button-size-height-pc: var(
     
    22262276  width: 100%;
    22272277  height: auto;
     2278}
     2279
     2280:is(.tcdce-body, .editor-styles-wrapper)
     2281  .wp-block-embed:has(iframe[src*="youtube.com"]) {
     2282  display: block;
    22282283}
    22292284
     
    25012556  width: 50px;
    25022557  height: 50px;
     2558  color: #000;
    25032559  background: #fff;
    25042560  border: 1px solid #ddd;
  • tcd-classic-editor/trunk/assets/js/admin-ui.js

    r3248450 r3305735  
    4646  // リセットボタンのEnter対策としてjsで送信
    4747  $(document).on("click", "#js-tcdce-reset-button", function () {
    48     $(this).attr("type", "submit").closest("form").submit();
     48    $(this).attr("type", "submit");
    4949  });
    5050
  • tcd-classic-editor/trunk/assets/js/editor.js

    r3250078 r3305735  
    88        // pタグじゃなければ終了
    99        if (!el || el.tagName?.toLowerCase() !== "p") return false;
     10
     11        // 囲み枠の場合は終了
     12        if (el.classList.contains("tcdce-box")) {
     13          return false;
     14        }
     15
     16        // ボタンを含む場合は終了
     17        if (el.querySelector(".tcdce-button")) {
     18          return false;
     19        }
    1020
    1121        // 画像を含む場合は終了
  • tcd-classic-editor/trunk/classes/class-tcdce-editor.php

    r3296925 r3305735  
    159159
    160160            // エディター(過去テーマ対応)
    161             wp_enqueue_style( 'tcdce-old-style', TCDCE_URL . 'assets/css/old-style.css', array(), filemtime( TCDCE_PATH . 'assets/css/old-style.css' ) );
     161            // wp_enqueue_style( 'tcdce-old-style', TCDCE_URL . 'assets/css/old-style.css', array(), filemtime( TCDCE_PATH . 'assets/css/old-style.css' ) );
    162162
    163163            // TCDテーマに組み込まれているスタイル
  • tcd-classic-editor/trunk/helper.php

    r3278760 r3305735  
    192192
    193193  // ファイルの中身を読み取り
    194   $uploaded_file_path = sanitize_text_field( wp_unslash( $_FILES['tcdce_import_file']['tmp_name'] ) );
     194  $uploaded_file_path = $_FILES['tcdce_import_file']['tmp_name'];
    195195  $json_string = file_get_contents( $uploaded_file_path );
    196196  if (! $json_string) {
     
    250250  $option_data = get_option( $setting );
    251251
    252   // JSON 化
    253   try {
    254     $json_data = json_encode(
    255       $option_data,
    256       JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE
    257     );
    258   } catch (\JsonException $e) {
    259       // JSONエンコード失敗時
    260     wp_die( esc_html__( 'Failed to create JSON data for export.', 'tcd-classic-editor' ) );
    261   }
    262 
    263252  // 日付文字列 (例: 20250218)
    264253  $date_str = wp_date( 'Ymd' );
     
    273262  header( 'Expires: 0' );
    274263
    275   // JSON を出力して終了
    276   // echo $json_data;
    277   echo wp_kses( $json_data, wp_kses_allowed_html( 'tcdce' ) );
     264  // JSON化して出力
     265  echo wp_json_encode(
     266    $option_data,
     267    JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE
     268  );
    278269  exit;
    279270}
  • tcd-classic-editor/trunk/languages/tcd-classic-editor-ja.po

    r3278760 r3305735  
    33"Project-Id-Version: design-plus\n"
    44"Report-Msgid-Bugs-To: https://core.trac.wordpress.org/\n"
    5 "POT-Creation-Date: 2025-04-22 13:44+0900\n"
    6 "PO-Revision-Date: 2025-04-22 13:44+0900\n"
     5"POT-Creation-Date: 2025-05-20 11:52+0900\n"
     6"PO-Revision-Date: 2025-05-20 11:52+0900\n"
    77"Last-Translator: Design Plus <support@wp-dp.com>\n"
    88"Language-Team: design plus\n"
     
    7777msgstr "クイックタグ"
    7878
    79 #: classes/class-tcdce-editor.php:272
     79#: classes/class-tcdce-editor.php:265
    8080msgid "2 column"
    8181msgstr "2カラム"
    8282
    83 #: classes/class-tcdce-editor.php:273 classes/class-tcdce-editor.php:278
     83#: classes/class-tcdce-editor.php:266 classes/class-tcdce-editor.php:271
    8484msgid "Text and image tags to display in the left column"
    8585msgstr "ここに左カラムに表示させたい任意のテキストや画像タグを入力します"
    8686
    87 #: classes/class-tcdce-editor.php:273 classes/class-tcdce-editor.php:278
     87#: classes/class-tcdce-editor.php:266 classes/class-tcdce-editor.php:271
    8888msgid "Text and image tags to display in the right column"
    8989msgstr "ここに右カラムに表示させたい任意のテキストや画像タグを入力します"
    9090
    91 #: classes/class-tcdce-editor.php:277
     91#: classes/class-tcdce-editor.php:270
    9292msgid "3 column"
    9393msgstr "3カラム"
    9494
    95 #: classes/class-tcdce-editor.php:278
     95#: classes/class-tcdce-editor.php:271
    9696msgid "Text and image tags to display in the center column"
    9797msgstr "ここに真ん中カラムに表示させたい任意のテキストや画像タグを入力します"
    9898
    99 #: classes/class-tcdce-editor.php:282
     99#: classes/class-tcdce-editor.php:275
    100100msgid "Tab"
    101101msgstr "タブ"
    102102
    103 #: classes/class-tcdce-editor.php:283
     103#: classes/class-tcdce-editor.php:276
    104104msgid ""
    105105"[tcd_tab tab1=\"Tab1 headline\" img1=\"Tab1 image url\" tab2=\"Tab2 "
     
    109109"\" img2=\"タブ2の画像URL\"]"
    110110
    111 #: classes/class-tcdce-editor.php:436
     111#: classes/class-tcdce-editor.php:438
    112112msgid "Please enter the correct URL."
    113113msgstr "正しいURLを入力してください。"
    114114
    115 #: classes/class-tcdce-editor.php:534
     115#: classes/class-tcdce-editor.php:536
    116116msgid "The address has not been entered."
    117117msgstr "住所が入力されておりません。"
    118118
    119 #: classes/class-tcdce-editor.php:541
     119#: classes/class-tcdce-editor.php:543
    120120msgid "Google Maps Platform API key not entered."
    121121msgstr "Google Maps Platform APIキーが入力されておりません。"
     
    384384"ください。"
    385385
    386 #: helper.php:260
    387 msgid "Failed to create JSON data for export."
    388 msgstr "エクスポート用 JSON データ作成に失敗しました。"
    389 
    390386#: setting/basic.php:17 setting/start-guide.php:28
    391387msgid "Basic settings"
     
    527523msgstr "登録済みクイックタグ"
    528524
    529 #: setting/quicktag.php:175
     525#: setting/quicktag.php:169
     526msgid "Add an item."
     527msgstr "アイテムを追加してください。"
     528
     529#: setting/quicktag.php:180
    530530msgid "Quicktags you can add"
    531531msgstr "追加できるクイックタグ"
    532532
    533 #: setting/quicktag.php:214
     533#: setting/quicktag.php:219
    534534#, php-format
    535535msgid "%s Presets"
    536536msgstr "%sプリセット"
    537537
    538 #: setting/quicktag.php:217
     538#: setting/quicktag.php:222
    539539msgid "Close"
    540540msgstr "閉じる"
    541541
    542 #: setting/quicktag.php:222
     542#: setting/quicktag.php:227
    543543msgid "Hover the mouse cursor over the button to see the hover animation."
    544544msgstr "ボタンにマウスカーソルをあてると、ホバーアニメーションを確認できます。"
    545545
    546 #: setting/quicktag.php:249
     546#: setting/quicktag.php:254
    547547msgid "Load Preset"
    548548msgstr "プリセットを読み込む"
     
    11541154msgstr "TCDユーザー向けのクラシックエディタ拡張プラグインです。"
    11551155
    1156 #: theme-support/tcd.php:116
     1156#: theme-support/tcd.php:142
    11571157msgid ""
    11581158"The \"Quick Tags\" feature of the TCD theme is not available while this "
     
    11621162"せん。"
    11631163
    1164 #: theme-support/tcd.php:129
     1164#: theme-support/tcd.php:155
    11651165msgid "Basic settings are not available for this theme."
    11661166msgstr "このテーマでは、基本設定はお使いいただけません。"
    11671167
    1168 #: theme-support/tcd.php:130
     1168#: theme-support/tcd.php:156
    11691169msgid "The settings in the TCD theme options will be applied."
    11701170msgstr "TCDテーマオプションの設定が反映されます。"
    11711171
    1172 #: theme-support/tcd.php:144
     1172#: theme-support/tcd.php:170
    11731173msgid ""
    11741174"Since this theme already has a table of contents feature, the plugin's table "
     
    11781178"きません。"
    11791179
    1180 #: theme-support/tcd.php:158
     1180#: theme-support/tcd.php:184
    11811181msgid "This theme cannot display a table of contents in the sidebar."
    11821182msgstr "このテーマでは、サイドバーに目次を表示できません。"
     1183
     1184#~ msgid "Failed to create JSON data for export."
     1185#~ msgstr "エクスポート用 JSON データ作成に失敗しました。"
    11831186
    11841187#~ msgid ""
  • tcd-classic-editor/trunk/readme.txt

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

    r3248450 r3305735  
    152152<?php
    153153
    154   foreach( $tcdce_quicktag as $key => $tcdce_qt ) {
    155     $tcdce_qt_fields->repeater(
    156       $tcdce_qt['item'],
    157       $key,
    158       'tcdce_quicktag[' . $key . ']',
    159       $tcdce_qt
    160     );
     154  if( ! empty( $tcdce_quicktag ) ){
     155    foreach( $tcdce_quicktag as $key => $tcdce_qt ) {
     156      $tcdce_qt_fields->repeater(
     157        $tcdce_qt['item'],
     158        $key,
     159        'tcdce_quicktag[' . $key . ']',
     160        $tcdce_qt
     161      );
     162    }
    161163  }
    162164
    163165?>
    164166        </div>
     167      </div>
     168      <div class="tcdce-repeater-unregistered">
     169        <?php esc_html_e( 'Add an item.', 'tcd-classic-editor' ); ?>
    165170      </div>
    166171<?php
  • tcd-classic-editor/trunk/tcd-classic-editor.php

    r3296925 r3305735  
    44 * Plugin URI:
    55 * Description: This is a classic editor extension plug-in for TCD users.
    6  * Version: 1.2.10
     6 * Version: 1.2.11
    77 * Author: TCD
    88 * Author URI: https://tcd-theme.com/
Note: See TracChangeset for help on using the changeset viewer.