[WordPress] 外掛分享: Simple Restaurant Menu Display

首頁外掛目錄 › Simple Restaurant Menu Display
WordPress 外掛 Simple Restaurant Menu Display 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
308 天前
最後更新
問題解決
WordPress 5.0+ v1.0.0 上架:2025-05-12

內容簡介

簡單餐廳菜單顯示外掛讓您可以:
- 使用自訂文章型別和分類來創建和分類菜單項目
- 為項目定義多個數量/價格對(例如大小/份量/體積)
- 使用自定義的標誌將項目標記為“優惠”
- 使用您的佈景主題覆蓋樣式
- 通過古鐵木塊或簡碼輕鬆插入菜單

使用方法:
- 在管理員區域中的「菜單項目」下新增菜單項目。
- 將項目分配給菜單部分(分類)。
- 可選地將其標記為特別或添加價格數量。
- [simple_restaurant_menu_display] — 顯示完整菜單按部分分組。
- [simple_restaurant_menu_display section="breakfast"] — 過濾至"早餐"部分的項目。
- [simple_restaurant_menu_display special="yes"] — 只顯示特別項目。
- [simple_restaurant_menu_display section="lunch" special="yes"] — 顯示特別的午餐項目。
- 通過古鐵木塊編輯器插入菜單區塊。

範本覆蓋:
- 您可以覆蓋用於顯示菜單項目的HTML範本。
- 可以覆蓋的範本文件:
| 外掛文件 | 佈景主題覆蓋位置 |
| 樣板/simpremed-menu-item.php | 你的佈景主題/simple-restaurant-menu-display/simpremed-menu-item.php |
| 樣板/simpremed-menu-loop.php | 你的佈景主題/simple-restaurant-menu-display/simpremed-menu-loop.php |
- 如何覆蓋:
1. 在您的主題中創建此目錄:
/wp-content/themes/your-theme/simple-restaurant-menu-display/
2. 複製外掛範本文件至您的主題目錄。
3. 根據需要在您的主題中編輯範本。

✅ 如果主題中存在範本文件,將使用它而不使用外掛的默認。

過濾:
- simpremed_currency_symbol — 更改貨幣符號。
- simpremed_template_part — 自定義加載模板部分的邏輯。

翻譯:
- 這個外掛支持翻譯並包含在/languages文件夾中的.pot文件。

HTML列表:

<ul>
<li>使用自訂文章型別和分類來創建和分類菜單項目</li>
<li>為項目定義多個數量/價格對(例如大小/份量/體積)</li>
<li>使用自定義的標誌將項目標記為“優惠”</li>
<li>使用您的佈景主題覆蓋樣式</li>
<li>通過古鐵木塊或簡碼輕鬆插入菜單</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Restaurant Menu Display」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Simple Restaurant Menu Display allows you to:

Create and categorize menu items using a custom post type and taxonomy
Define multiple quantity/price pairs for items (like size/portion/volume)
Mark items as “Special” with a custom field badge
Override styles using your theme
Insert menus easily via a Gutenberg block or shortcode

Usage

Add menu items under Menu Items > Add New in the admin.
Assign items to a Menu Section (taxonomy).
Optionally mark as Special or add pricing quantities.
[simple_restaurant_menu_display] — shows full menu grouped by section.
[simple_restaurant_menu_display section=”breakfast”] — filters items to the “breakfast” section.
[simple_restaurant_menu_display special=”yes”] — shows only special items.
[simple_restaurant_menu_display section=”lunch” special=”yes”] — shows special lunch items.
Insert the Menu Block via the Gutenberg editor.

Template Overrides
You can override the HTML templates used to display menu items.
Template Files You Can Override
| Plugin File | Theme Override Location |
|———————————–|———————————————————————-|
| templates/simpremed-menu-item.php | your-theme/simple-restaurant-menu-display/simpremed-menu-item.php |
| templates/simpremed-menu-loop.php | your-theme/simple-restaurant-menu-display/simpremed-menu-loop.php |
How to Override
1. Create this directory in your theme:
/wp-content/themes/your-theme/simple-restaurant-menu-display/

Copy the plugin template file(s) to your theme directory.

Edit the templates in your theme as needed.

✅ If a template file exists in your theme, it will be used instead of the plugin default.

Filters

simpremed_currency_symbol — Change the currency symbol.
simpremed_template_part — Customize the logic for loading template parts.

Translation
This plugin is translation-ready and includes a .pot file in the /languages folder.

延伸相關外掛

文章
Filter
Mastodon