=== ویدئو در گالری ووکامرس والابی ===
Contributors: valabi
Tags: woocommerce, product video, gallery, video, mp4
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 0.3.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

افزودن ویدیو به گالری محصول ووکامرس — از کتابخانهٔ رسانه یا آدرس مستقیم — که کنار تصاویر محصول به‌صورت درون‌خطی پخش می‌شود.

== Description ==

Valabi Video Gallery adds a **Product Videos** box right under the product image gallery in the WooCommerce product editor. From there you can:

* Pick one or more **self-hosted videos** from the WordPress Media Library (MP4, WebM, MOV).
* Add a video by **direct URL** — handy when the file is hosted on a separate download host or CDN.
* Set a **poster image** per video.
* **Drag to reorder** videos.

On the frontend the videos appear as extra slides inside the existing product gallery (riding the theme's slider and thumbnail strip), with a clean play overlay. Videos play inline, one at a time, and pause automatically when you switch slides.

**Lightweight and noninvasive.** Admin assets load only on the product edit screen; frontend assets load only on a single product page that actually has videos. Nothing runs anywhere else.

== Features ==

* Self-hosted Media Library videos + direct-URL videos
* Unlimited videos per product
* Per-video poster images
* Drag-to-reorder
* Inline playback in the native product gallery
* Lazy loading (`preload="none"`) — videos download only when played
* `playsinline` for correct mobile behavior
* Bilingual English / Persian (fa_IR), RTL-ready

== Installation ==

1. Upload the plugin to `/wp-content/plugins/valabi-video-gallery` and activate it.
2. Edit a product and use the **Product Videos** box in the right column.

== Changelog ==

= 0.3.2 =
* تغییر نام افزونه به فارسی («گالری ویدیو والابی») برای یکدستی با بقیهٔ خانوادهٔ افزونه‌های والابی؛ بدون تغییر عملکردی.

= 0.3.1 =
* رفع اشکال اندازه: در قالب‌های اسلایدری (مثل Flatsome/Flickity) اسلاید ویدیو گاهی گالری محصول را بزرگ می‌کرد. اکنون سلول ویدیو دقیقاً هم‌اندازهٔ سلول تصویر است.

= 0.3.0 =
* Videos now appear FIRST in the product gallery (before the featured image), in both the main slider and the thumbnail strip.
* Full support for the Flatsome theme's dual Flickity sliders (main + linked thumbnail nav).
* Videos with no poster now show their first frame automatically; JS upgrades the poster and thumbnail to a captured frame when possible.

= 0.2.0 =
* SEO: per-video VideoObject JSON-LD structured data (Google video rich results).
* SEO: Open Graph og:video meta tags for social/messaging previews.
* Added title attribute on video elements.

= 0.1.0 =
* Initial release.
