=== Sourire Numérique Video Block for PodEduc ===
Contributors: sourirenumerique, mlebrun40
Tags: video, embed, iframe, education, france
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Gutenberg block to embed videos hosted on PodEduc (podeduc.apps.education.fr), the French National Education video platform.

== Description ==

**Sourire Numérique Video Block for PodEduc** adds a Gutenberg block to easily embed videos hosted on [PodEduc](https://podeduc.apps.education.fr), the video portal for French National Education institutions.

> **Note:** This plugin is an unofficial, community project by [Sourire Numérique](https://sourirenumerique.fr). It is not affiliated with, endorsed by, or connected to the French Ministry of Education, Réseau Canopé, or the PodEduc platform.

**Features:**

* One-click embed from a PodEduc URL
* Aspect ratio options: 16:9, 4:3, 1:1
* Customizable title (accessibility)
* Optional caption
* Server-side rendering (dynamic block)
* Supports wide and full alignments

**Usage:**

1. Add the **Sourire Numérique Video Block for PodEduc** block (category: *Embeds*)
2. Paste the video URL (e.g. `https://podeduc.apps.education.fr/video/12345-my-title/`)
3. Click **Embed**

== Installation ==

1. Download the plugin
2. In WordPress: **Plugins > Add New > Upload Plugin**
3. Select the `.zip` file and click **Install Now**
4. Activate the plugin

Or via FTP: upload the `sourirenumerique-video-block-for-podeduc` folder to `/wp-content/plugins/` and activate from the dashboard.

== Frequently Asked Questions ==

= What URL formats are accepted? =

URLs of the form `https://podeduc.apps.education.fr/video/[video-id]/`.

= The video does not display correctly — I see the full PodEduc website. =

Make sure the URL contains the specific video identifier and not a search or listing page.

= The preview in the Gutenberg editor looks incorrect. =

The editor preview may differ from the final output. This does not affect the public-facing rendering, which displays correctly.

== Screenshots ==

1. URL input in the block placeholder
2. Video embedded at full size on the front end

== Changelog ==

= 1.3 =
* Converted to dynamic block (render.php) for reliable rendering
* Fixed block name to match existing database content
* Added readme.txt for WordPress.org
* Renamed plugin to comply with WordPress.org naming guidelines

= 1.2 =
* Fixed Author URI and Plugin URI

= 1.1 =
* Added `?is_iframe=true` parameter for correct video display
* Aspect ratio control (16:9, 4:3, 1:1)
* Optional caption field

= 1.0 =
* Initial release
