[WordPress] 外掛分享: Genesis Widget Column Classes

首頁外掛目錄 › Genesis Widget Column Classes
WordPress 外掛 Genesis Widget Column Classes 的封面圖片
6,000+
安裝啟用
★★★★
4.5/5 分(8 則評價)
491 天前
最後更新
問題解決
WordPress 3.1+ PHP 5.2.4+ v1.3.1 上架:2015-08-02

內容簡介

使用起來非常簡單。您可以透過下拉式選單為小工具新增欄位類別,並檢查小工具是否為第一個,最後儲存即可!

我針對 Genesis Framework 建立了這個外掛程式,雖然它也可以與任何使用(舊版)Bootstrap 欄位類別的佈景主題一同使用。

您也可以透過各種篩選器新增您自己的類別,以使用此外掛程式與您佈景主題的網格框架。

相容性(重要!)

此外掛程式並不會為這些欄位新增 CSS。它只會為您的小工具新增欄位類別。實際的 CSS 應該加入您的佈景主題內。

篩選器:`genesis_widget_column_classes`

允許您變更可用的欄位類別

參數:array 預設欄位類別。
回傳值:array 欄位類別陣列。

篩選器:`genesis_widget_column_classes_capability`

變更修改欄位類別所需的權限。
自 1.2.2 版以後

預設值:edit_theme_options
參數:string 預設的權限。
回傳值:string 新的權限。

篩選器:`genesis_widget_column_classes_select_multiple`

允許選擇多個類別。
自 1.3 版以後
回傳值:boolean。

您可以在您的佈景主題 functions.php 檔案或外掛程式中使用這些篩選器。
您可以在以下位置找到我:

Keraweb
GitHub
LinkedIn

外掛標籤

開發者團隊

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

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

原文外掛簡介

As easy as it gets. Add column classes to widgets with a select box, check whether the widget is the first, and save!
I’ve built this plugin for the Genesis Framework, though it will work with any theme that uses the (old) Bootstrap column classes.
You can also add your own classes through various filters to use this plugin with your theme’s grid framework.
Compatibility (IMPORTANT!)
This plugin does NOT add CSS for these columns. It ONLY adds the column classes to your widgets. The actual CSS should be added in your theme.
Filter: `genesis_widget_column_classes`
Allows you to change the available column classes
Parameters: array Default column classes.
Return: array Array of column classes.
Filter: `genesis_widget_column_classes_capability`
Change the capability required to modify column classes.
Since 1.2.2
Default: edit_theme_options
Parameters: string The default capability.
Return: string The new capability.
Filter `genesis_widget_column_classes_select_multiple`
Allow multiple classes to be selected.
Since 1.3
Return: boolean.
You can use these filters inside your theme functions.php file or in a plugin.
You can find me here:

Keraweb
GitHub
LinkedIn

延伸相關外掛

文章
Filter
Apply Filters
Mastodon