الوصف
This plugin provides shortcodes to show/hide content with an optional accordion behavior:
- New shortcode:
[ma_collapse]...[/ma_collapse](andma_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]
التنصيب
- Upload the plugin folder to
/wp-content/plugins/or install via the Plugins screen. - Activate the plugin through the Plugins menu in WordPress.
- 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“ إلى لغة واحدة. شكراً إلى جميع المُترجمين لمُساهماتهم.
ترجمة ”Show Hide Accordion by MediaArt“ إلى لغتك.
مُهتم بالتطوير؟
تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.
سجل التغييرات
1.0.0
- Initial refactor release (MediaArt fork): new
ma_collapseshortcode, legacy compatibility, settings page, translations.


