=== FAQ ZYREX ===
Contributors: zyrexpl
Donate link: https://paypal.me/zyrexpl?country.x=PL&locale.x=pl_PL
Tags: faq, frequently asked questions, accordion, schema, seo
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 2.0.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Lightweight FAQ accordion with customizable appearance, 6-language support and FAQPage JSON-LD schema for Google rich snippets.

== Description ==

FAQ ZYREX lets you build a simple, fast FAQ accordion section on any page or post using a single shortcode. The plugin is fully translatable and ships with translations for Polish, English, German, French, Spanish and Italian.

Key features:

* Drop-in shortcode `[zxfaq]` — or render only selected entries with `[zxfaq ids="1,3,5"]`.
* Appearance settings panel: colors (question, answer, hover, borders, text), font size, border radius, inner padding, custom CSS.
* FAQPage JSON-LD schema automatically emitted on any page containing the shortcode — improves Google rich snippets and CTR.
* Multi-line answers with basic HTML (links, bold, italic, lists, line breaks).
* Drag-free ordering via up/down buttons.
* CSRF protection via WordPress nonces on every admin form.
* No external dependencies, no tracking, no CDN — 100% self-hosted.
* Pure-CSS accordion (no JavaScript needed).
* 6 built-in languages: Polski, English, Deutsch, Français, Español, Italiano.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` directory, or install through the WordPress plugins screen.
2. Activate the plugin through the `Plugins` screen.
3. Go to `FAQ Zyrex` in the admin menu to add questions and answers.
4. Adjust colors and typography under `FAQ Zyrex → Appearance`.
5. Place `[zxfaq]` in any post, page or widget.

== Frequently Asked Questions ==

= How do I display the FAQ? =

Place the shortcode `[zxfaq]` where you want the accordion to appear.

= How do I show only specific entries? =

Use the `ids` attribute: `[zxfaq ids="1,3,5"]`. IDs are shown in the admin table.

= How do I change the colors or font size? =

Go to `FAQ Zyrex → Appearance` in the admin menu.

= Does the plugin add SEO schema? =

Yes. When the shortcode is rendered, the plugin automatically outputs FAQPage JSON-LD in the page footer. You can disable this in the appearance settings.

= Can I translate it into my language? =

Yes. Ready translations: Polish, English, German, French, Spanish, Italian. For other languages, use the included `faq-zyrex.pot` template with Poedit.

== Screenshots ==

1. Admin list of FAQ entries.
2. Appearance settings panel (colors, font size, padding, custom CSS).
3. Frontend accordion example.

== Changelog ==

= 2.0.0 =
* New: Appearance settings panel — colors, font size, border radius, padding, custom CSS.
* New: Built-in translations for Polish, English, German, French, Spanish, Italian.
* New: FAQPage JSON-LD structured data (Google rich snippets) — optional.
* New: Multi-line answers with basic HTML support.
* New: Order entries using up/down buttons.
* New: `ids` shortcode attribute to display specific entries only.
* New: Replaced Font Awesome CDN with inline SVG (faster, GDPR-friendly, no external dependency).
* Security: Added WordPress nonces and capability checks to all admin forms.
* Security: Switched from `manage_options` capability check (was only checking role name).
* Tested with WordPress 6.7.

= 1.1 =
* Initial public release.

== Upgrade Notice ==

= 2.0.0 =
Major update: new appearance settings, 6 languages, JSON-LD schema, security hardening. Your existing questions and answers are preserved.
