[WordPress] 外掛分享: EM Beer Manager

首頁外掛目錄 › EM Beer Manager
WordPress 外掛 EM Beer Manager 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100+
安裝啟用
★★★★★
5/5 分(6 則評價)
2630 天前
最後更新
問題解決
WordPress 3.0.1+ PHP 5.3+ v3.2.3 上架:2013-06-20

內容簡介

注意: 本外掛已不再積極開發或維護。

此外掛可讓從家庭釀啤酒者到專業釀酒廠輕鬆管理和顯示他們的啤酒。包括一個全面的啤酒管理部分,有各種選項,包括:

用於分類啤酒類型的自定義啤酒“風格”分類,預填 Untappd 提供的風格
用於分類和分組啤酒的可自定義“組”分類
用於創建和顯示啤酒菜單的“菜單”分類和短插碼
用於顯示所有或特定數量的啤酒的短插碼和模板標記
用於存儲有關每種啤酒的詳細信息(包括ABV、IBU和配料)的自定義元數據框
與 Untappd 的啤酒登記和評分集成
用於在側欄中簡單顯示您的啤酒的“啤酒列表”小工具
用於在 Untappd 上顯示您釀酒廠最近啤酒登記的“最近登錄”小工具
自定義頁面顯示啤酒和風格
[Beta] 直接從 Untappd 導入並同步您的釀酒廠啤酒
[Beta] 從 Untappd for Business 導入和同步您的啤酒和菜單

使用方法

使用以下短插碼在文章中顯示啤酒,或在佈景主題文件中使用模板標記:

單個啤酒顯示

這些將顯示一個單個啤酒結果,給出其 ID 編號(在“啤酒”中管理)。

短插碼:

[beer id={beer id}]

模板標記:

<?php echo EMBM_Output_Shortcodes_Beer_display( $beer_id, $args ); ?>

其中 $beer_id 為必填項,$args 為使用逗號分隔的 PHP 陣列,包含以下內容:

<?php echo EMBM_Output_Shortcodes_Beer_display( 123, array(
'show_profile' => false,
'show_extras' => true,
'show_rating' => false,
'show_checkins' => true,
'checkins_count' => 10
) ); ?>

選項:

適用於短插碼和模板代碼。

show_profile => "true, false"(預設值 = true)

顯示或隱藏“啤酒簡介”信息部分

show_extras => "true, false"(預設值 = true)

顯示或隱藏“更多啤酒信息”部分

show_rating => "true, false"(預設值 = true)

顯示或隱藏 Untappd 啤酒評級

show_checkins => "true, false"(預設值 = true)

顯示或隱藏 Untappd 登錄部分

checkins_count => "number"(預設值 = 5,上限為 15)

要顯示的最新 Untappd 登錄數量

列出所有啤酒

這些將顯示所有啤酒的格式設置列表。

短插碼:

[beer-list]

模板標記:

<?php echo EMBM_Output_Shortcodes_List_display( $args ); ?>

其中 $args 為使用逗號分隔的 PHP 陣列,包含以下內容:

<?php echo EMBM_Output_Shortcodes_List_display( array(
'show_profile' => true,
'show_extras' => true,
'show_rating' => true,
'show_checkins' => true,
'checkins_count' => 5,
'orderby' => 'title',
'order' => 'ASC'
) ); ?>

選項:

適用於預先設置的短插碼和模板代碼。

show_profile => "true, false"(預設值 = true)

顯示或隱藏“啤酒簡介”信息部分

show_extras => "true, false"(預設值 = true)

顯示或隱藏“更多啤酒信息”部分

show_rating => "true, false"(預設值 = true)

顯示或隱藏 Untappd 啤酒評級

show_checkins => "true, false"(預設值 = true)

顯示或隱藏 Untappd 登錄部分

checkins_count => "number"(預設值 = 5,上限為 15)

要顯示的最新 Untappd 登錄數量

orderby => "title, id, date"(預設值 = title)

按哪個屬性排序

order => "ASC, DESC"(預設值 = ASC)

排序的順序

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.3) 或搜尋安裝

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

原文外掛簡介

NOTICE: This plugin is no longer being actively developed or supported.
This plugin allows beer creators from home brewers to professional breweries to easily manage and display their beers. Includes a comprehensive beer management section with a variety of options, including:

A custom beer “style” taxonomy for classifying your beers pre-populated with styles from Untappd
A customizable “group” taxonomy for categorizing and grouping your beers
“Menu” taxonomy and shortcode for creating and displaying beer menus
Shortcodes and template tags for displaying all or a select number of beers
Custom meta boxes to store detailed information about each beer, including ABV, IBU, and ingredients
Beer check-in and rating integration with Untappd
A “Beer List” widget for simply displaying your beers in sidebars
A “Recent Check-Ins” widget for displaying recent beer check-ins for your brewery on Untappd
Custom page display for beers and styles
[Beta] Import and sync your brewery’s beers directly from Untappd
[Beta] Import and sync your beers and menus from Untappd for Business

Usage
Use these shortcodes to display beers in your posts or use the template tags in your theme files:
Single Beer Display
These will display a single beer entry given it’s ID number (found in “Beers” admin).

Shortcode:
[beer id={beer id}]

Template tag:

Where $beer_id is required and $args is a PHP array of comma-separated key => value pairs. For example:
false,
'show_extras' => true,
'show_rating' => false,
'show_checkins' => true,
'checkins_count' => 10
) ); ?>

Options:
For use with both the shortcode and template code.

show_profile => "true, false" (Default = true)
Displays or hides the “Beer Profile” information section

show_extras => "true, false" (Default = true)
Displays or hides the “More Beer Information” section

show_rating => "true, false" (Default = true)
Displays or hides the Untappd beer rating

show_checkins => "true, false" (Default = true)
Displays or hides the Untappd check-ins section

checkins_count => "number" (Default = 5, limit is 15)
The number of recent Untappd check-ins to display

List All Beers
These will display a formatted listing of all beers.

Shortcode:
[beer-list]

Template tag:

Where $args is a PHP array of comma-separated key => value pairs. For example:
false,
'show_rating' => true,
'beers_per_page' => 3,
'orderby' => 'name',
'order' => 'ASC'
) ); ?>

Options:
For use with both the shortcode and template code.

show_profile => "true, false" (Default = true)
Displays or hides the “Beer Profile” information section

show_extras => "true, false" (Default = true)
Displays or hides the “More Beer Information” section

show_rating => "true, false" (Default = true)
Displays or hides the Untappd beer rating

style => "style name" (String e.g. "india-pale-ale, pale-ale")
Displays only beers belonging to specific beer styles

group => "group name" (String e.g. "Seasonal, Barrel-Aged")
Displays only beers belonging to specific groups

exclude => "beer ids" (Comma-separated list of beer IDs e.g. "4,23,24")
Hides listed beers from output

beers_per_page => "number" (Default = -1, shows all beers on one page)
Paginates output and displays the given number of beers per page

offset => "number" (Default = 0, starts at the first beer)
Offsets the output of beers by given number

paginate => "true, false" (Default = true)
Disables/enables pagination

orderby => "string" (Default = date, see this list for options)
Orders output by given paramater

order => "DSC, ASC" (Default = DSC)
Sorts beer list by orderby value in ascending or descending order

Beer Menu Display
These will display a beer menu given it’s Name, Slug, or ID number.

Shortcode:
[beer-menu menu={menu id}]

Template tag:

Where $args is a PHP array of comma-separated key => value pairs. For example:
false,
'show_last_updated' => true,
'show_thumbnail' => true,
'show_description' => false,
)
); ?>

Options:
For use with both the shortcode and template code.

show_rating => "true, false" (Default = true)
Displays or hides the Untappd beer rating

show_last_updated => "true, false" (Default = true)
Displays or hides the menu’s last updated timestamp

show_thumbnail => "true, false" (Default = true)
Displays or hides the beer featured image thumbnails

show_description => "true, false" (Default = true)
Displays or hides the menu section descriptions

Translations
I would love to be able to expand this section – let me know if you are able to contribute!

English
Icelandic (is_IS) – thanks to rodonmanes
Norwegian Bokmål (nb_NO) – thanks to Lars Kvisle
Brazilian Portuguese (pt_BR) – thanks to Lucas Alexandre

延伸相關外掛

文章
Filter
Mastodon