[WordPress] 外掛分享: Post UI Tabs

首頁外掛目錄 › Post UI Tabs
WordPress 外掛 Post UI Tabs 的封面圖片
500+
安裝啟用
★★★★★
5/5 分(14 則評價)
4731 天前
最後更新
問題解決
WordPress 3.1.0+ v1.1.0 上架:2011-04-05

內容簡介

使用 24 種不同的 jQuery UI 主題之一或包含自己的自訂樣式表,在時尚的 jQuery 引動的標籤內展示帖子內容。

篩選器

該外掛程序提供各種過濾器,以幫助使用者,如下所示:

put_decide_has_tabs:(布林值) 取決於是否運行標籤腳本 (在the_content中運行的過濾器)。
put_theme_dir:(字符串) 傳遞主題目錄 URI。
put_stylesheet:(字符串) 傳遞用於標籤 CSS 的樣式表名稱。
put_skins:(數組)傳回該外掛可用的皮膚數組。
put_stylesheet_uri:(字符串) 使用的完整樣式表 URI(用於自定義樣式表的更簡單鉤子)。
put_prev_text:(字符串) 用於上一個標籤導航的文本(默認情況下不顯示文本)。
put_next_text:(字符串) 用於下一個標籤導航的文本(默認情況下不顯示文本)。
put_nav_class:(字符串) 應用於上一個和下一個導航的類(第二個參數表示上一個或下一個文本)。
put_trailing_linebreak:(布林值) 用於決定是否在每個標籤集之後添加尾部 <br /> (換行)。

當您只想關閉外掛程序的皮膚並關聯自己的樣式表時,還可用幾種操作。

put_enqueue_css:啟用時運行於具有標籤集的前端頁面上,當禁用皮膚時運行。
put_admin_enqueue_css:啟用時在插件設置頁面上運行,當禁用皮膚時運行。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Show off your post content inside stylish jQuery powered tabs using one of 24 different jQuery UI themes or include your own custom stylesheet.
Filters
The plugin provides various filters to aid users, they are as follows

put_decide_has_tabs: (bool) true/false value that determines whether to run the tabs script(runs inside a filter on the_content)
put_theme_dir: (string) passes the theme directory uri
put_stylesheet: (string) name of the stylesheet to use for tabs CSS
put_skins: (array) passes the array of skins available to the plugin
put_stylesheet_uri: (string) the full stylesheet uri used (easier hook for custom stylesheets)
put_prev_text: (string) the text used for previous tab navigation(text not shown by default)
put_next_text: (string) the text used for next tab navigation(text not shown by default)
put_nav_class: (string) the classes applied to the prev and next navigation(second arg indicates prev or next text)
put_trailing_linebreak: (bool) true/false value to determine whether or not to add a trailing
(linebreak) after each tab set

A couple of actions are also available for when you’d rather just turn off skins and enqueue your own stylesheet

put_enqueue_css: runs on front facing pages with tab sets when the Disable skins is enabled
put_admin_enqueue_css: runs on the plugin settings page when the Disable skins is enabled

延伸相關外掛

文章
Filter
Apply Filters
Mastodon