內容簡介
WP CHOOSE YOUR THEME(選擇您的主題),可以讓您的訪客選擇可用的主題。在您的模板中,例如在sidebar.php中插入:<?php wp_chooseyourtheme(); ?>,這會顯示可用的主題下拉式選單清單。當您的訪客點擊某一項時,將更改主題。
預設會顯示所有主題。使用管理員配置外觀-> WP選擇您的主題來隱藏某些主題。
參數
您可以設置以下參數:mode
下拉式選單
<?php wp_chooseyourtheme(); ?> 用於下拉式選單或
<?php wp_chooseyourtheme("mode=menu"); ?>
<select class="wpcyt_combo">
<option>主題名稱1</option>
<option>主題名稱2</option>
<option>主題名稱...</option>
</select>
清單
<?php wp_chooseyourtheme("mode=list"); ?> 用於清單。
<ul class="wpcyt_list">
<li class="theme-name-1"><a href="..."><span>主題名稱1</span></a></li>
<li class="theme-name-2 selected"><a href="..."><span>主題名稱2</span></a></li>
<li class="theme-name-..."><a href="..."><span>主題名稱...</span></a></li>
</ul>
滾動
<?php wp_chooseyourtheme("mode=roll"); ?> 用於滾動。
<div class="wpcyt_roll">
<a class="next-theme" href="#"><span>下一個主題</span></a>
</div>
相關鏈接
Saidmade
Undolog
致謝
外掛標籤
開發者團隊
原文外掛簡介
WP CHOOSE YOUR THEME, let to select an avaiable theme to your visitors. In your template, for example in sidebar.php, insert: and a combo menu list shows the themes avaiable. When a your visitor click on item, the theme is changed.
For defautl all themes are shows. Use Admin configuration Appearance -> WP Choose Your Theme to hidden some themes.
Arguments
You can set args mode in:
COMBO MENU
for combo menu or
LIST
for list.
ROLL
for roll.
Related Links
Saidmade
Undolog
Thanks
