=== Insight Templates & Elements ===
Contributors: basbuis
Tags: fse, block theme, templates, template assigner, full site editing
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.13
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Assign FSE block theme templates by post type or page/post ID. Unlimited rules for standard Pages and Posts.

== Description ==

**Insight Templates & Elements** assigns block theme (FSE) templates dynamically.

1. Activate a block theme (or create templates under Appearance → Editor).
2. Go to **Settings → Insight Templates & Elements**.
3. Open **FSE template rules** and add a rule.
4. Save — matching Pages and Posts use the assigned template on the front end.

Free includes:

* Unlimited template rules for **Pages** and **Posts**
* Rule type: Specific posts or pages (by ID)
* Rule type: Replace post type (Pages or Posts)
* Copy FSE templates (duplicate, Export, and Import templates and template parts; JSON; never overwrites)
* Guide tab with setup help
* Front-end resolver and editor notice when a rule applies

Option names stay compatible with the Pro add-on, so your rules carry over when you upgrade.

= Need more? =
Archives, other post types, header and footer swaps, and overlay elements are not part of this plugin. They live in the optional [Insight Templates & Elements Pro](https://wpinsight.eu/fse-template-assigner-plugin/) plugin:
* Template rules for archives, categories, tags, the blog index, and the static front page
* Custom post types and WooCommerce views
* Exclusions (post IDs, taxonomy) and visibility (logged-in / logged-out)
* Header and footer template part overrides, with an optional sticky header
* Overlay elements (fixed UI, post content replacement, Woo product content canvas)
* Automatic updates for that plugin

== Installation ==

1. Install from WordPress.org, or upload the `insight-templates-elements` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Settings → Insight Templates & Elements**.
4. Open **FSE template rules** and create your first rule.

Do not activate this free plugin together with **Insight Templates & Elements Pro** (`insight-templates-elements-pro`). Use one or the other.

== Frequently Asked Questions ==

= Do I need a license key? =

No. The free plugin runs fully for Pages and Posts. There is no license key field in Free.

= Can I use custom post types or archives? =

Those options are in the optional [Insight Templates & Elements Pro](https://wpinsight.eu/fse-template-assigner-plugin/) add-on.

= Will my rules transfer if I upgrade to Pro? =

Yes. Rule storage uses the same option names (`fse_ta_rules`, and related keys).

= What happens if Pro is already active? =

The free plugin returns early and shows an admin notice. Deactivate Pro only if you want to run Free alone.

== Screenshots ==

1. FSE template rules settings
2. Guide tab overview
3. Copy FSE templates tab
4. Header and footer overrides
5. Copy header or footer template part [pro]
6. Settings [pro]
7. Elements [pro]

== Changelog ==

= 1.0.13 =
* Specific posts or pages (ID) accepts a comma while you type, same as the other ID fields.

= 1.0.12 =
* Plugin Check: Pro-active helper uses the fse_ta_ prefix, and admin query args are sanitized when read.

= 1.0.11 =
* Internal tested-up-to constant is 7.1.

= 1.0.10 =
* Tested up to WordPress 7.1.
* Plugin Check: prefixed the Pro-active helper, and sanitized admin input that was already nonce-checked.

= 1.0.9 =
* Contributors is basbuis.
* Saving Page and Post rules no longer deletes other stored rules. Header, footer, and Element options are left as saved. No license check turns features off.

= 1.0.8 =
* Readme: Contributors username set to BasBuis.

= 1.0.7 =
* Readme: Pro add-on list notes the optional sticky header for an assigned header (Pro setting, off by default).

= 1.0.6 =
* Rename install slug to `insight-templates-elements` (plural Templates). Detect Pro at `insight-templates-elements-pro/`.

= 1.0.5 =
* Detect Pro at `insight-templates-elements-pro/` (still recognizes old `dynamic-templates-elements/` during transition).

= 1.0.4 =
* Guide tab always visible; default open tab is Guide when settings are missing/empty.

= 1.0.3 =
* Remove “Created by Blessed day” from the FSE template rules hint.

= 1.0.2 =
* Restore always-visible Guide tab (FSE rules + Copy only); keep Open-settings dropdown in sync with visible tabs.

= 1.0.1 =
* Truly unlimited Pages/Posts rules (no soft ID/rule caps in admin UI).
* Slimmed Free product gate: no license option shape, unlock lists, or remote licensing stubs.
* Resolver limited to page/post singular rules; archive/taxonomy/Woo/HF code paths removed from Free.
* Admin i18n limited to Free rule types; Guide/readme Pro add-on promo only (no enter-license UI).

= 1.0.0 =
* Initial free release: FSE template rules for Pages and Posts (by ID or post type), Copy FSE templates, Guide, and resolver. No license key or remote updater.
