[WordPress] 外掛分享: Collapsible Widget Area

首頁外掛目錄 › Collapsible Widget Area
WordPress 外掛 Collapsible Widget Area 的封面圖片
100+
安裝啟用
★★★★
4.6/5 分(8 則評價)
2905 天前
最後更新
問題解決
WordPress 4.0+ v1.0 上架:2012-01-19

內容簡介

此外掛允許您在您的佈景主題中將多個小工具結合成一個標籤式/手風琴式介面。

使用方法

要使用此外掛,只需在您的管理區中外觀 -> 小工具中將小工具拖到"可折疊的小工具區"小工具區域中。完成後,重新載入外觀 -> 小工具頁面,並將可折疊小工具拖到您想要它出現的側邊欄中。請勿將"可折疊小工具"拖到任何現有的"可折疊小工具區"側邊欄中。

選項

在可折疊小工具內部,您可以指定使用標籤介面或手風琴介面。
在設置 -> 可折疊小工具選項下,您可以選擇要應用於可折疊小工具容器的jQueryUI主題。所有包含的jQueryUI主題都托管在Google的CDN上。如果您已經在您的WordPress主題中包含了一個jQueryUI主題,您可以從選項選擇器中選擇"無",這樣就不會為此小工具包含額外的樣式表。如果想要包含自己的jQueryUI主題,您可以有兩種方式實現:

使用可折疊小工具UI主題過濾器來指定要包含的樣式表的確切URI。
使用可折疊小工具主題列表過濾器添加或刪除可用主題列表中的項目。通過此過濾器傳遞的參數是可用主題的關聯數組。如果該主題托管在Google的CDN上,則關鍵字只是需要作為數組鍵(例如,"UI Lightness"主題的關鍵字為"ui-lightness","Base"主題的關鍵字為" base ")。如果該主題托管在其他地方,則應將整個到樣式表的URI用作數組鍵。該數組值應為主題的易讀名稱。

在設置 -> 可折疊小工具選項下,您可以指定應在外觀 -> 小工具中提供多少個不同的可折疊小工具區域。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin allows you to combine multiple widgets into a single tabbed/accordion-style interface in your theme.
Usage
To use this plugin, simply drag widgets into the “Collapsible Widget Area” widget area in Appearance -> Widgets within your admin area. Once you’ve done that, reload the Appearance -> Widgets page and drag the Collapsible Widget into the sidebar in which you want it to appear. Do not drag a “Collapsible Widget” into any of the existing “Collapsible Widget Area” sidebars.
Options

Within the Collapsible Widget itself, you can specify whether you want to use a Tab interface or an Accordion interface.
Under Settings -> Collapsible Widget Options, you can choose the jQueryUI theme you want to apply to the collapsible widget container. All of the included jQueryUI themes are hosted on Google’s CDN. If you already have a jQueryUI theme included in your WordPress theme, you can choose “None” from the option selector, and no extra stylesheet will be included for this widget. If you want to include your own jQueryUI theme, there are two ways you can do so:

Use the collapsible-widget-ui-theme filter to specify the exact URI of the stylesheet you want to include.
Use the collapsible-widget-theme-list filter to add or remove items from the list of available themes. The parameter sent through this filter is an associative array of the available themes. If the theme is hosted on Google’s CDN, just the keyword is needed as the array key (for instance, the keyword for the “UI Lightness” theme is “ui-lightness” and the keyword for the “Base” theme is “base”). If the theme is hosted elsewhere, the entire URI to the stylesheet should be used as the array key. The array value should be the human-readable name of the theme.

Under Settings -> Collapsible Widget Options, you can specify how many separate Collapsible Widget Areas should be available within Appearance -> Widgets.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon