這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Conditional Shortcode

外掛說明

Conditional Shortcode. Adds a shortcode gracias_por_donar that retrieves a text depending on an integer parameter passed as a request

Shortcode attributes:
– text0, text1, text2, text3 are texts to print – range1, range2, range3 are integers (default values 0) – get is the name of the request parameter that can be passed as post or get (default value is “amt”)

usage
[gracias_por_donar text0=”this text is printed if amt value is lower than range1″ text1=”this text is printed if value amt is between range1 and range2″ text2=”this text is printed if value amt is between range2 and range3″ text3=”this text is printed if value amt is greater or equal than range3″ range1=”20″ range2=”50″ range3=”80″ get=”amt”]

for example:

http://mywordpresssite.org/page?amt=30 would print text1 as amt value is between range1 and range2 (based on usage sample)

安裝方式

  1. Unzip plugin files and upload them under your ‘/wp-content/plugins/’ directory.
  2. Resulted names will be: ‘./wp-content/plugins/conditional-shortcode/*’
  3. Activate plugin at “Plugins” administration page.

常見問題集

Does it accept floats as request parameter?

It accepts floats as GET/POST parameters, but not for comparison (range values).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Conditional Shortcode〉的開發相關工作。

參與者

將〈Conditional Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

Initial release