Plugin Directory

Changeset 3730075


Ignore:
Timestamp:
10/06/2026 05:53:09 AM (3 weeks ago)
Author:
raydallas
Message:

Release 1.2.0: block editor support (Yadokko Hotel Card block), setup and review notices

Location:
yadokko-hotel-cards
Files:
20 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • yadokko-hotel-cards/tags/1.2.0/admin/css/admin.css

    r3694318 r3730075  
    630630        color: #1d2327;
    631631}
     632
     633/* 管理画面の案内通知(AdminNotices) */
     634.yad-notice .yad-notice__actions {
     635        display: flex;
     636        flex-wrap: wrap;
     637        align-items: center;
     638        gap: 8px;
     639}
     640.yad-notice .yad-notice__dismiss {
     641        margin-left: 4px;
     642        color: #646970;
     643}
  • yadokko-hotel-cards/tags/1.2.0/readme.txt

    r3728816 r3730075  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.2
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 ホテル予約サイトへのリンクを1枚のカードにまとめ、ショートコードで記事に埋め込めます。Hotel booking affiliate cards, embedded with a shortcode.
     11ホテル予約サイトへのリンクを1枚のカードにまとめ、ブロックまたはショートコードで記事に埋め込めます。Hotel booking affiliate cards, embedded with a block or a shortcode.
    1212
    1313== Description ==
    1414
    15 複数の予約サイトへのリンクを1枚のカードにまとめて、記事にショートコードで埋め込めるプラグインです。旅行・ホテル系ブロガー向けに作られています。
     15複数の予約サイトへのリンクを1枚のカードにまとめて、記事にブロックまたはショートコードで埋め込めるプラグインです。旅行・ホテル系ブロガー向けに作られています。
    1616
    17 Yadokko Hotel Cards lets travel and hotel bloggers create a single, tidy card that links to several hotel booking services at once, and embed it in any post or page with a shortcode.
     17Yadokko Hotel Cards lets travel and hotel bloggers create a single, tidy card that links to several hotel booking services at once, and embed it in any post or page with a block or a shortcode.
    1818
    19 ホテルはカスタム投稿として一度だけ登録すれば、`[yadokko id="123"]` で何度でも呼び出せます。カードにはホテルの写真・名称・住所・口コミ評価・最低価格が表示され、その下に予約サイトへのボタンが並びます。アフィリエイトのラッピング(バリューコマース・A8.net・楽天アフィリエイト)は設定画面で入力したIDから自動で適用され、未入力の場合は各サイトへ直接リンクします。
     19ホテルはカスタム投稿として一度だけ登録すれば、「Yadokko ホテルカード」ブロックや `[yadokko id="123"]` で何度でも呼び出せます。カードにはホテルの写真・名称・住所・口コミ評価・最低価格が表示され、その下に予約サイトへのボタンが並びます。アフィリエイトのラッピング(バリューコマース・A8.net・楽天アフィリエイト)は設定画面で入力したIDから自動で適用され、未入力の場合は各サイトへ直接リンクします。
    2020
    21 You register each hotel once as a custom post, then reuse it anywhere with `[yadokko id="123"]`. The card shows the hotel photo, name, address, review score and lowest price, followed by a row of booking buttons. Affiliate wrapping (ValueCommerce, A8.net, Rakuten Affiliate) is applied automatically from the IDs you enter in the settings; if you leave them blank the buttons link directly to each site.
     21You register each hotel once as a custom post, then reuse it anywhere with the "Yadokko Hotel Card" block or `[yadokko id="123"]`. The card shows the hotel photo, name, address, review score and lowest price, followed by a row of booking buttons. Affiliate wrapping (ValueCommerce, A8.net, Rakuten Affiliate) is applied automatically from the IDs you enter in the settings; if you leave them blank the buttons link directly to each site.
    2222
    2323Yadokko公式サイト: [https://www.yadokko.com/](https://www.yadokko.com/)
    … …  
    3030
    3131* ホテルをカスタム投稿タイプとして登録・管理
     32* ブロックエディタ対応:「Yadokko ホテルカード」ブロックからホテルを検索して挿入し、編集画面でそのままカードをプレビュー(楽天トラベルからその場で新規登録も可能)
    3233* 楽天トラベルでホテル名検索し、写真・住所・口コミ評価・最低価格を自動取得
    3334* 最低価格・口コミ評価を毎日自動更新(WP-Cron)
    … …  
    4142
    4243* Register and manage hotels as a custom post type
     44* Block editor support: search and insert a hotel from the "Yadokko Hotel Card" block and preview the real card in the editor (you can also register a new hotel from Rakuten Travel right there)
    4345* Search Rakuten Travel by hotel name and import the photo, address, review score and lowest price
    4446* Keep the lowest price and review score up to date automatically (daily WP-Cron)
    … …  
    74762. wp-adminの「Yadokko」メニューを開き、ホテルを登録します。 / Open the "Yadokko" menu in wp-admin and register your hotels.
    75773. 「設定」で楽天のアプリID・アフィリエイトIDを入力します。 / In "Settings", enter your Rakuten application ID / access key and your affiliate IDs.
    76 4. 記事やページに `[yadokko id="ホテルの投稿ID"]` を貼り付けます。 / Paste `[yadokko id="THE_HOTEL_POST_ID"]` into a post or page.
     784. ブロックエディタで「Yadokko ホテルカード」ブロックを追加してホテルを選びます。クラシックエディタでは `[yadokko id="ホテルの投稿ID"]` を貼り付けます。 / In the block editor, add the "Yadokko Hotel Card" block and pick a hotel. In the classic editor, paste `[yadokko id="THE_HOTEL_POST_ID"]`.
    7779
    7880== External services ==
    … …  
    151153== Changelog ==
    152154
     155= 1.2.0 =
     156* Added the "Yadokko Hotel Card" block for the block editor. Search your registered hotels and insert one, or search Rakuten Travel and register a new hotel without leaving the editor. The real card is previewed in the editor.
     157* Existing `[yadokko id="…"]` shortcodes can be converted to the block, and back.
     158
    153159= 1.1.2 =
    154160* The IHG official button now also appears when the hotel name includes "by IHG", so brands such as Vignette Collection are recognized even when the Rakuten hotel name omits the brand.
  • yadokko-hotel-cards/tags/1.2.0/src/Plugin.php

    r3694318 r3730075  
    3333                ( new AssetLoader() )->register();
    3434                ( new CardEmbed() )->register();
     35                // ブロックエディタ用ブロック(フロント描画・REST プレビューのため is_admin() の外で登録)。
     36                ( new BlockEmbed() )->register();
    3537
    3638                // クリック記録・カード表示回数の記録(全プラン)。
    … …  
    5759                        ( new HotelRegister() )->register();
    5860                        ( new GlobalConfig() )->register();
     61                        ( new AdminNotices() )->register();
    5962
    6063                        // レポート画面はプレミアム限定(無料版ビルドには ClickReport 本体が存在しない)。
  • yadokko-hotel-cards/tags/1.2.0/yadokko-hotel-cards.php

    r3724661 r3730075  
    44 * Plugin Name:       Yadokko Hotel Cards
    55 * Plugin URI:        https://yadokko.com/
    6  * Description:        ホテル予約アフィリエイトカードを作成・管理するプラグイン。国内・海外・ホテル公式サイトの予約ボタンを1枚のカードにまとめ、記事にショートコードで埋め込めます。
    7  * Version:           1.1.2
     6 * Description:        ホテル予約アフィリエイトカードを作成・管理するプラグイン。国内・海外・ホテル公式サイトの予約ボタンを1枚のカードにまとめ、記事にブロックまたはショートコードで埋め込めます。
     7 * Version:           1.2.0
    88 * Requires at least: 6.2
    99 * Requires PHP:      7.4
    … …  
    2323|--------------------------------------------------------------------------
    2424*/
    25 define( 'YADOKKO_VERSION', '1.1.2' );
     25define( 'YADOKKO_VERSION', '1.2.0' );
    2626define( 'YADOKKO_FILE', __FILE__ );
    2727define( 'YADOKKO_DIR', plugin_dir_path( __FILE__ ) );
  • yadokko-hotel-cards/trunk/admin/css/admin.css

    r3694318 r3730075  
    630630        color: #1d2327;
    631631}
     632
     633/* 管理画面の案内通知(AdminNotices) */
     634.yad-notice .yad-notice__actions {
     635        display: flex;
     636        flex-wrap: wrap;
     637        align-items: center;
     638        gap: 8px;
     639}
     640.yad-notice .yad-notice__dismiss {
     641        margin-left: 4px;
     642        color: #646970;
     643}
  • yadokko-hotel-cards/trunk/readme.txt

    r3728816 r3730075  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.2
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 ホテル予約サイトへのリンクを1枚のカードにまとめ、ショートコードで記事に埋め込めます。Hotel booking affiliate cards, embedded with a shortcode.
     11ホテル予約サイトへのリンクを1枚のカードにまとめ、ブロックまたはショートコードで記事に埋め込めます。Hotel booking affiliate cards, embedded with a block or a shortcode.
    1212
    1313== Description ==
    1414
    15 複数の予約サイトへのリンクを1枚のカードにまとめて、記事にショートコードで埋め込めるプラグインです。旅行・ホテル系ブロガー向けに作られています。
     15複数の予約サイトへのリンクを1枚のカードにまとめて、記事にブロックまたはショートコードで埋め込めるプラグインです。旅行・ホテル系ブロガー向けに作られています。
    1616
    17 Yadokko Hotel Cards lets travel and hotel bloggers create a single, tidy card that links to several hotel booking services at once, and embed it in any post or page with a shortcode.
     17Yadokko Hotel Cards lets travel and hotel bloggers create a single, tidy card that links to several hotel booking services at once, and embed it in any post or page with a block or a shortcode.
    1818
    19 ホテルはカスタム投稿として一度だけ登録すれば、`[yadokko id="123"]` で何度でも呼び出せます。カードにはホテルの写真・名称・住所・口コミ評価・最低価格が表示され、その下に予約サイトへのボタンが並びます。アフィリエイトのラッピング(バリューコマース・A8.net・楽天アフィリエイト)は設定画面で入力したIDから自動で適用され、未入力の場合は各サイトへ直接リンクします。
     19ホテルはカスタム投稿として一度だけ登録すれば、「Yadokko ホテルカード」ブロックや `[yadokko id="123"]` で何度でも呼び出せます。カードにはホテルの写真・名称・住所・口コミ評価・最低価格が表示され、その下に予約サイトへのボタンが並びます。アフィリエイトのラッピング(バリューコマース・A8.net・楽天アフィリエイト)は設定画面で入力したIDから自動で適用され、未入力の場合は各サイトへ直接リンクします。
    2020
    21 You register each hotel once as a custom post, then reuse it anywhere with `[yadokko id="123"]`. The card shows the hotel photo, name, address, review score and lowest price, followed by a row of booking buttons. Affiliate wrapping (ValueCommerce, A8.net, Rakuten Affiliate) is applied automatically from the IDs you enter in the settings; if you leave them blank the buttons link directly to each site.
     21You register each hotel once as a custom post, then reuse it anywhere with the "Yadokko Hotel Card" block or `[yadokko id="123"]`. The card shows the hotel photo, name, address, review score and lowest price, followed by a row of booking buttons. Affiliate wrapping (ValueCommerce, A8.net, Rakuten Affiliate) is applied automatically from the IDs you enter in the settings; if you leave them blank the buttons link directly to each site.
    2222
    2323Yadokko公式サイト: [https://www.yadokko.com/](https://www.yadokko.com/)
    … …  
    3030
    3131* ホテルをカスタム投稿タイプとして登録・管理
     32* ブロックエディタ対応:「Yadokko ホテルカード」ブロックからホテルを検索して挿入し、編集画面でそのままカードをプレビュー(楽天トラベルからその場で新規登録も可能)
    3233* 楽天トラベルでホテル名検索し、写真・住所・口コミ評価・最低価格を自動取得
    3334* 最低価格・口コミ評価を毎日自動更新(WP-Cron)
    … …  
    4142
    4243* Register and manage hotels as a custom post type
     44* Block editor support: search and insert a hotel from the "Yadokko Hotel Card" block and preview the real card in the editor (you can also register a new hotel from Rakuten Travel right there)
    4345* Search Rakuten Travel by hotel name and import the photo, address, review score and lowest price
    4446* Keep the lowest price and review score up to date automatically (daily WP-Cron)
    … …  
    74762. wp-adminの「Yadokko」メニューを開き、ホテルを登録します。 / Open the "Yadokko" menu in wp-admin and register your hotels.
    75773. 「設定」で楽天のアプリID・アフィリエイトIDを入力します。 / In "Settings", enter your Rakuten application ID / access key and your affiliate IDs.
    76 4. 記事やページに `[yadokko id="ホテルの投稿ID"]` を貼り付けます。 / Paste `[yadokko id="THE_HOTEL_POST_ID"]` into a post or page.
     784. ブロックエディタで「Yadokko ホテルカード」ブロックを追加してホテルを選びます。クラシックエディタでは `[yadokko id="ホテルの投稿ID"]` を貼り付けます。 / In the block editor, add the "Yadokko Hotel Card" block and pick a hotel. In the classic editor, paste `[yadokko id="THE_HOTEL_POST_ID"]`.
    7779
    7880== External services ==
    … …  
    151153== Changelog ==
    152154
     155= 1.2.0 =
     156* Added the "Yadokko Hotel Card" block for the block editor. Search your registered hotels and insert one, or search Rakuten Travel and register a new hotel without leaving the editor. The real card is previewed in the editor.
     157* Existing `[yadokko id="…"]` shortcodes can be converted to the block, and back.
     158
    153159= 1.1.2 =
    154160* The IHG official button now also appears when the hotel name includes "by IHG", so brands such as Vignette Collection are recognized even when the Rakuten hotel name omits the brand.
  • yadokko-hotel-cards/trunk/src/Plugin.php

    r3694318 r3730075  
    3333                ( new AssetLoader() )->register();
    3434                ( new CardEmbed() )->register();
     35                // ブロックエディタ用ブロック(フロント描画・REST プレビューのため is_admin() の外で登録)。
     36                ( new BlockEmbed() )->register();
    3537
    3638                // クリック記録・カード表示回数の記録(全プラン)。
    … …  
    5759                        ( new HotelRegister() )->register();
    5860                        ( new GlobalConfig() )->register();
     61                        ( new AdminNotices() )->register();
    5962
    6063                        // レポート画面はプレミアム限定(無料版ビルドには ClickReport 本体が存在しない)。
  • yadokko-hotel-cards/trunk/yadokko-hotel-cards.php

    r3724661 r3730075  
    44 * Plugin Name:       Yadokko Hotel Cards
    55 * Plugin URI:        https://yadokko.com/
    6  * Description:        ホテル予約アフィリエイトカードを作成・管理するプラグイン。国内・海外・ホテル公式サイトの予約ボタンを1枚のカードにまとめ、記事にショートコードで埋め込めます。
    7  * Version:           1.1.2
     6 * Description:        ホテル予約アフィリエイトカードを作成・管理するプラグイン。国内・海外・ホテル公式サイトの予約ボタンを1枚のカードにまとめ、記事にブロックまたはショートコードで埋め込めます。
     7 * Version:           1.2.0
    88 * Requires at least: 6.2
    99 * Requires PHP:      7.4
    … …  
    2323|--------------------------------------------------------------------------
    2424*/
    25 define( 'YADOKKO_VERSION', '1.1.2' );
     25define( 'YADOKKO_VERSION', '1.2.0' );
    2626define( 'YADOKKO_FILE', __FILE__ );
    2727define( 'YADOKKO_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.