=== Codip Aparat Widget ===
Contributors: codip
Donate link: https://codip.ir
Tags: elementor, aparat, video, widget, responsive
Requires at least: 5.6
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Elementor widget to embed Aparat videos with full mobile responsive support.

== Description ==

**Codip Aparat Widget** is a lightweight Elementor widget that lets you embed Aparat videos anywhere on your site — with full responsive support on all devices including mobile.

= Features =

* Paste any Aparat video URL and embed instantly
* Set start time (minutes + seconds)
* Autoplay toggle
* Mute toggle
* Show/hide video title
* Control related video suggestions (none or own channel only)
* Border radius and box shadow controls from the Style panel
* Fully responsive — fixes the well-known Aparat iframe height-zero bug on mobile

= Mobile Responsive Fix =

Aparat iframes have a known issue where the height collapses to zero on mobile devices when no fixed height is set. This widget solves it by combining CSS `aspect-ratio` with a `min-height` fallback, ensuring the video always displays correctly on every screen size.

= Requirements =

* WordPress 5.6 or higher
* Elementor (free version is enough)
* PHP 7.4 or higher

== Installation ==

1. Go to **Plugins > Add New > Upload Plugin** in your WordPress dashboard.
2. Upload the `codip-aparat-widget.zip` file and click **Install Now**.
3. Activate the plugin.
4. Make sure Elementor is installed and active.
5. The **"ویجت آپارات کدیپ"** widget will appear in the **General** section of the Elementor widget panel.

== Frequently Asked Questions ==

= Does this plugin require the Pro version of Elementor? =

No. The free version of Elementor is sufficient.

= Why is the video not showing on mobile? =

Make sure you are using this widget instead of a plain HTML embed. This widget includes a responsive fix specifically for Aparat iframes.

= What URL formats are supported? =

The widget accepts standard Aparat share links such as `https://www.aparat.com/v/XXXXX`.

= Is this plugin affiliated with Aparat? =

No. This is an independent third-party widget. Aparat is a video hosting platform at aparat.com.

== Screenshots ==

1. Widget settings panel in Elementor editor.
2. Video displayed correctly on mobile.

== Changelog ==

= 1.0.0 =
* Initial release.
* Full Aparat embed support.
* Mobile responsive fix for Aparat iframe height collapse.
* Autoplay, mute, title, and related video controls.

== Upgrade Notice ==

= 1.0.0 =
Initial release. No upgrade needed.
