=== Ariade Demo ===
Contributors: anblik
Donate link: https://ananyoo.com
Tags: demo content, starter content, accessibility, woocommerce, wcag
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.56.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

One-click demo content for the Ariade accessible block theme — home page, menu, blog page and WooCommerce demo products.

== Description ==

**Ariade Demo** sets up a fresh WordPress site to match the demo of the [Ariade theme](https://ananyoo.com/accessible-theme/), the WCAG 2.2 AA accessible Full Site Editing block theme. See the result on the [live demo](https://showcase.ananyoo.com/).

From **Appearance → Ariade Demo**, one click:

1. Creates a Home page using the theme's own homepage pattern and sets it as the static front page.
1. Creates the full demo page set: Themes overview, About, Portfolio (listing and case study), Services (listing and detail), Contact, Pricing, FAQ, Testimonials, Events (listing and detail), Layout Examples, Coming Soon and, with WooCommerce, Order Tracking — plus three sample blog posts with photographs.
2. Creates a Blog page for your posts.
3. Builds the primary menu (Home, Features, Plugins, Blog, Contact) and assigns it to the theme's Primary location.
4. If WooCommerce is active, imports the demo products with their categories, prices and descriptions.
5. If the Ananyoo Accessible Forms plugin is active, links its contact form into the home page automatically. You can also enter a specific form ID.
6. Optionally attaches the theme's four bundled product photographs as product images.
7. Sets the Ariade "ad" logo as the site logo and the bundled Ariade favicon as the site icon — only if you have not set your own; existing branding is never overwritten.
8. Sets the site title and tagline to match the demo (editable any time under Settings → General).
9. Switches permalinks to "Post name" when the site is still on the WordPress default Plain style, so every demo URL resolves — a permalink structure you chose yourself is never changed.
10. Fills an empty author biography with a short sample, so the theme's post author box appears under the demo posts. Your own biography is never overwritten, and clearing the sample hides the box again.

The import is **idempotent** — safe to run more than once. It never duplicates pages, menus or products that already exist.

Demo content lives in this plugin rather than inside the theme, so your imported pages, menu and products remain yours even if you switch themes later.

= Why a separate plugin? =

WordPress.org theme guidelines rightly keep content creation out of themes. This companion plugin follows that principle: the Ariade theme handles presentation, this plugin handles the one-time demo content.

= A note on product images =

The optional "product images" step copies the theme's own four bundled product photographs (WebP, created by the theme author with Adobe Firefly, released under CC0) into the media library from a strict allow-list. No SVG files are involved, no upload settings are changed, and no other file can be inserted through this plugin.

= Privacy =

This plugin does not collect, store or transmit any personal information. It makes no remote requests of any kind — all demo content, including images, comes from the theme files already on your server. No telemetry, no phone-home.

Developed by [Ananyoo](https://ananyoo.com), an accessibility solutions provider from India.

== Installation ==

1. Install and activate the [Ariade theme](https://ananyoo.com/accessible-theme/) first.
2. Install this plugin via Plugins → Add New, or upload the `ariade-demo` folder to `/wp-content/plugins/`.
3. Activate the plugin through the **Plugins** menu.
4. Go to **Appearance → Ariade Demo** and click **Import Ariade demo**.
5. For the complete demo look, also activate WooCommerce, Ananyoo Accessible Forms, Ananyoo Accessible Carousel and Ananyoo Accessible Login — the theme's dashboard recommends and links each one.

== Frequently Asked Questions ==

= Does this work with themes other than Ariade? =

No. It reads the homepage pattern that the Ariade theme registers, so the Ariade theme must be active. With any other theme the importer stops safely and tells you.

= Is it safe to run the import twice? =

Yes. The importer checks for the existing Home page, Blog page, menu and products (by SKU) and only creates what is missing.

= What happens to the demo content if I deactivate or delete this plugin? =

Nothing — the pages, menu and products it created are normal WordPress content and stay on your site. Deleting the plugin only removes the plugin's own single stored option.

= The contact form did not appear on the home page. What do I do? =

Activate the Ananyoo Accessible Forms plugin, open its Forms list, note the form ID, enter that ID in the "Contact form ID" field on the Ariade Demo page, and run the import again.

= Will it replace my existing logo or site icon? =

No. The importer sets the site logo and site icon only when none is set. If you already have your own, they are kept untouched, and the import log tells you so.

= Does it upload SVG files or change my upload settings? =

No. No site-wide settings are touched. Only the theme's own four bundled product photographs (WebP) can be inserted, from a fixed allow-list, and only when you tick the product-images option.

== Changelog ==

= 1.56.2 =
* The twelve sample blog posts now get 1600x900 (16:9) covers bundled with the plugin instead of the theme's 1344x588 and 1024x1024 photographs. Ariade shows post covers in a 16:9 box (blog cards, and the aurora post header from theme 1.6.11), so the old shapes were cropped: the wide photos lost the sides and the square product photos lost the top and bottom. The new covers are the same pictures, built to the recommended cover size, so nothing is cut. Each cover also carries alternative text that describes the picture instead of repeating the post title.
* Re-running the import on an existing site swaps the old cover of each sample post for the 16:9 one, but only when the post still carries the cover the demo attached; a cover chosen by the site owner is left alone.

= 1.56.1 =
* Fix: the shop grid is no longer forced from this plugin. A permanent filter set WooCommerce to 8 products a page on any site where Ariade Demo was merely active - even without running the import - and the layout reverted the moment the plugin was removed. The import now writes the real Product Catalog setting instead (4 columns, 2 rows), only when the shop owner has not already chosen a layout, so the setting belongs to the site and stays after the plugin is deleted. Editable under Appearance > Customize > WooCommerce > Product Catalog.

= 1.56.0 =
* The demo no longer saves its own "home" template on Ariade 1.5.6 and newer. That version added the theme's home/posts-page router, which shows the blog listing on a dedicated Posts page by itself, so a saved template is no longer needed - and a saved template is permanent: it overrides the theme file for good and freezes the listing at the markup of import day, which is how a site ends up on /blog/ without the category filter and grid/list switch added in Ariade 1.6.2. On import the plugin now also retires the template it saved in earlier versions (moved to the Trash, so it can be restored), and the blog page follows the theme again. Older Ariade versions keep the previous behaviour.
* The Accessible Carousel demo page is back on the theme's "page-no-header" template, matching the live showcase. Ariade did not ship that template when 1.55.22 worked around its absence; the demo now checks whether the template really exists and falls back to the default one when it does not.
* The import fills an empty author biography with a short sample, so the post author box added in Ariade 1.6.0 actually appears under the demo posts - the theme hides the box when the author has no biography, so a fresh demo silently lost the feature. An existing biography is never overwritten, and the sample text says where it came from so it is easy to replace or clear.
* Verified every bundled showcase page against the live showcase: home, plugins hub, Carousel, Forms, Login, Portfolio, Events and the events listing are all in sync, so no page content changed in this release. Tested up to WordPress 7.1.
* Plugin Check is clean again: the two escaping errors on the fallback favicon tags are gone. The URL was already escaped once into a variable, which the sniff cannot follow, so it is now escaped at the point of output instead.

= 1.55.27 =
* The Accessible Login and Accessible Forms demo pages now carry their own page excerpt, so the hero lead reads as a proper sentence. Without one WordPress builds the lead automatically from the page content, which pulled in the section heading and the in-page navigation links ("Try it More forms Add a form Case study..."). The other bundled showcase pages already had excerpts; these were the last two without.

= 1.55.26 =
* Accessibility fix in the bundled showcase pages: the Accessible Login and Accessible Forms demo pages each carried their own H1 in the content, while the theme's page template already renders the page title as the H1 - so both pages shipped with two H1 elements. Each in-content heading is now an H2 (the Forms hero keeps its exact look; its style rule moved with it), leaving one H1 per page as WCAG best practice expects.
