內容簡介
Daniel's Dropdowns 擴充了標準 WordPress 分類和存檔模板標籤。它提供了一個分類下拉選單,使用標準 WordPress 鏈接標籤作為其目標,因此它將與標準永久鏈接或任何形式的「漂亮」永久鏈接一起使用。存檔下拉選單則簡單得多,因為該模板標籤將創建具有正確鏈接的選項項目。
下拉選單也可以包括按鈕或鏈接,以啟動當前選擇,或者(自版本 2 起)呈現為自動導航的選擇框。此外,從版本 2 開始,您還可以指定出現在鏈接或按鈕上的文本。
注意 1.0 版本用戶 - 從版本 2 開始,已經刪除了 CSS 參數,因為每個項目均可以唯一標識而不需要它,如果沒有指定,則將使用主題的 CSS。插件中有關於如何編寫 CSS 以處理這些元素的說明,還解釋了每個標籤的(現在有 2 個)參數。
2.0.1 新增功能 - 分類下拉選單中現在有一個「選擇分類」選項,且為默認選項。這允許自動導航正確地運作於列表中的第一個分類。
2.1 新增功能 - 「選擇分類」選項在 2.5 系列中未正確顯示,原因是在分類下拉選單輸出中多了一個空格。
外掛標籤
開發者團隊
原文外掛簡介
Daniel’s DropDowns extends the standard WordPress category and archive template
tags. It provides a category dropdown that uses the standard WordPress link
tags for its targets, so it will work with the standard permalinks, or any
form of “pretty” permalinks. The archive dropdown is a lot simpler, as that
template tag will create option entries with the proper links.
Dropdowns can also include buttons or links to activate the current selection,
or (as of version 2) be rendered as auto-navigating select boxes. Also, as of
version 2, you can specify the text that will appear in the link or on the
button.
NOTE FOR 1.0 USERS – As of version 2, the CSS parameters have been removed, as
each item can be uniquely identified without it, and will use the CSS of the
theme if none is specified. There are notes in the plug-in that explain how to
write CSS to address these elements, and also explain the (now 2) parameters for
each tag.
NEW FOR 2.0.1 – There is now a “Select Category” option in the category
dropdown, and it is the default. This allows the auto-navigation to work
properly for the first category in the list.
NEW FOR 2.1 – The “Select Category” option was not correctly displayed in the
2.5-series, due to an extra space in the category dropdown output.
