Show Hide Accordion by MediaArt

外掛說明

This plugin provides shortcodes to show/hide content with an optional accordion behavior:

  • New shortcode: [ma_collapse]...[/ma_collapse] (and ma_collapse_level2..7)
  • Legacy compatibility: Keeps legacy bg_collapse* shortcodes functional (where possible without breaking other installed plugins).

The plugin is written to follow WordPress.org best practices:
* No inline JavaScript in PHP templates
* Admin actions protected by capability checks and nonces
* Sanitization/escaping on output
* Translatable strings (EN as base; Czech translation included)

Usage

Basic:
[ma_collapse]Hidden content[/ma_collapse]

With custom label:
[ma_collapse more=”Show more” less=”Show less”]Hidden content[/ma_collapse]

Accordion grouping:
Use the same group attribute on multiple shortcodes.
[ma_collapse group=”faq”]Item 1[/ma_collapse] [ma_collapse group=”faq”]Item 2[/ma_collapse]

Legacy:
[bg_collapse]Hidden content[/bg_collapse]

螢幕擷圖

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/ or install via the Plugins screen.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Configure options under MA Tools Show/Hide Accordion.

常見問題集

Does it work with the original shortcodes?

Yes, the plugin includes compatibility for legacy bg_collapse* shortcodes.

Where are the settings?

In the WordPress admin under MA Tools Show/Hide Accordion.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Show Hide Accordion by MediaArt〉的開發相關工作。

參與者

〈Show Hide Accordion by MediaArt〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Show Hide Accordion by MediaArt〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial refactor release (MediaArt fork): new ma_collapse shortcode, legacy compatibility, settings page, translations.