內容簡介
WordPress Theme Demo Bar 是 WordPress 的外掛,它能讓使用者在不啟用主題的情況下預覽主題。Demo bar 將顯示在頁面頂部,讓用戶預覽其他主題。Demo bar 在管理面板可定制,也能加載一個以上的額外 CSS 文件。
版本 1.6.1 新增功能:
修正了與新 WordPress 管理工具欄一起使用時的錯誤
版本 1.3 至 1.5 新增功能:
支援子佈景主題
透過 "個別佈景主題設定" 功能,現在可以在 Demo bar 上顯示主題資訊頁面的鏈接、下載/購買頁面的鏈接 (實際演示)
現在可以使用簡碼 [demobar] 顯示主題資訊,例如預覽次數或預覽 URL
為了讓過程更加容易,現在可以使用媒體按鈕添加它(參見截圖:媒體按鈕)
您也可以在模板文件中使用新添加的模板標記函數 wptdb_output() 進行操作
現在您可以在不啟用佈景主題的情況下編輯其他佈景主題的選項(functions.php)
組件以顯示 "選擇佈景主題" 下拉菜單(讓您的訪客預覽非私人佈景主題)
功能:
在不啟用主題的情況下預覽任何 WordPress 主題
Demo bar 將顯示在頁面頂部,讓用戶預覽其他主題。
可在後台管理界面禁用 Demo bar
您可以隱藏私有主題。
您可以加載額外的 CSS 文件(一個以上)
Demo Bar 現在能始終置頂
您可以自定義 Demo Bar 的外觀(使用 CSS)
自動統計每個主題的流行度票數(預覽次數)
持久預覽,所有內部鏈接都將自動編輯,以保持 ?themedemo= 變數
訪客可以通過關閉 Demo bar 以關閉持久預覽(所有鏈接將自動恢復)
新增子佈景主題的支援
新增 "個別佈景主題設定" 功能,現在可以在 Demo bar 上顯示主題資訊頁面的鏈接、下載/購買頁面的鏈接
新增可使用簡碼 [demobar] 顯示主題資訊,例如預覽次數或預覽 URL 的功能
新增媒體按鈕使添加更加容易(參見截圖:媒體按鈕)
新增可以在不啟用佈景主題情況下編輯其他佈景主題的選項(functions.php)
新增 "選擇佈景主題" 下拉菜單的小工具(讓您的訪客預覽非私人佈景主題)
新增一個名為 wptdb_list_themes() 的新模板標記函數,以顯示下拉菜單
使用方法:
要預覽任何主題,只需在您的站點 URL 中添加一個 "themedemo" 變數。例如: myblog.com/?themedemo=the-theme-folder-name (實際演示)
或者,您可以在管理面板>設置>WP佈景主題演示條中獲取所有主題的預覽 URL
要隱藏個別主題的Demo bar,只需在您的站點URL中添加一個 "hidebar" 變數即可。例如..myblog.com/?themedemo=mytheme&hidebar=1 (實際演示)
要加載額外的 CSS,只需在您的站點URL中添加一個名為 "extracss" 的變數,並用逗號分隔。例如:myblog.com/?themedemo=mytheme&extracs
外掛標籤
開發者團隊
原文外掛簡介
WordPress Theme Demo Bar is a plugin for wordpress that allows any wordpress theme to be previewed without activating it. A demo bar would be shown on top of page, allow users to preview another theme. The demo bar is customisable at admin panel. More than 1 extra CSS files can be loaded too.
Whats New in Version 1.6.1
Fixed error when use together with the new wordpress admin bar
Whats New in Version 1.3 to 1.5
Support child themes
With “Individual Theme Settings”, you can now display a link to theme info page and download/buy page at demo bar. (Live in Action)
You can now display theme info, such as number of previews or preview URL using shortcode [demobar]
To make the process easier, you can use media button to add it (see screenshot : Media Button)
You can do that in template files too, using the newly added template tag function wptdb_output()
Now you can edit other theme’s options (functions.php) without activating it
Widget to show “Select Theme” drop-down menu (for your visitor to preview non-private themes)
Features
Preview any wordpress theme without activating it.
A demo bar will be shown on top of the page, allow users to preview another theme.
The demo bar can be deactivated.
You can hide your themes that are private.
You can load extra CSS files (more than one)
Demo Bar can be always on top now
You can cusmotise the look & feel of Demo Bar using CSS
Auto collection of popularity count (number of previews) of each theme.
Persistent preview, all internal links will be auto edited to keep the ?themedemo= variable.
Persistent preview can be turned off by the visitors by closing the demo bar (all links will then be reverted back automatically)
NEW Support child themes
NEW With “Individual Theme Settings”, you can now display a link to theme info page and download/buy page at demo bar
NEW You can now display theme info, such as number of previews or preview URL using shortcode [demobar]
NEW To make the process easier, you can use media button to add it (see screenshot : Media Button)
NEW You can do that in template files too, using the newly added template tag function wptdb_output()
NEW Now you can edit other theme’s options (functions.php) without activating it
NEW Widget available to show “Select Theme” drop-down menu (for your visitor to preview non-private themes)
NEW New template tag function wptdb_list_themes() to display drop-down menu
Usage
To preview any theme, simply add a variable “themedemo” to your site URL. For example: myblog.com/?themedemo=the-theme-folder-name (Live in Action)
Alternatively, you can get the preview URL of all your themes at your Admin Panel > Settings > WP Theme Demo Bar
To hide the demo bar on individual theme, simply add a variable “hidebar” to your site URL. For example: myblog.com/?themedemo=mytheme&hidebar=1 (Live in Action)
To load extra css, simply add a variable “extracss” to your site URL and seperate using comma. For example: myblog.com/?themedemo=mytheme&extracss=blue,twocolumn this loads blue.css and twocolumn.css from the theme’s directory
Documentations
Understanding and Using Shortcode in WordPress Theme Demo Bar Plugin
Using Template Tag Functions in WordPress Theme Demo Bar Plugin
Info & Links
Plugin Info | Plugin Author
