=== Smartupworld Video Modal ===
Contributors: smartupworld
Tags: video, modal, shortcode
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display videos in a responsive modal via shortcode. Supports self-hosted MP4 files and YouTube videos.

== Description ==
Smartupworld Video Modal provides a simple shortcode to open videos in a responsive modal window. It is lightweight, fully responsive, and works with self-hosted MP4 files as well as YouTube videos.

**Usage examples:**

* **Self-hosted MP4 video:**
[smartupworld_video_modal url="https://example.com/video.mp4" button="Watch Video" type="video"]

* **YouTube video:**
[smartupworld_video_modal url="https://www.youtube.com/embed/j_g1BAU_Xyw" button="Watch YouTube" type="youtube"]

**Features:**
* Lightweight and fast modal window
* Fully responsive video container
* Autoplay enabled when modal opens
* Shortcode accepts video URL, button label, and video type
* Works with self-hosted MP4 files
* Supports YouTube videos with `type="youtube"`

== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/smartupworld-video-modal/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Use the shortcode `[smartupworld_video_modal url="video.mp4" button="Watch Video" type="video"]` in posts, pages, or widgets.

== Frequently Asked Questions ==
= Can I use YouTube or Vimeo links? =
Yes, YouTube videos are supported by adding `type="youtube"` in the shortcode. Vimeo is not currently supported.

= Can I change the button text? =
Yes, by passing the `button` attribute in the shortcode.

= Can I add multiple modals on the same page? =
Yes, each shortcode generates a unique modal.

== Screenshots ==
1. `screenshots/screenshot-1.jpg` – Video Modal settings page in WordPress admin.
2. Example of the modal with video player open.
3. Example of shortcode usage in a post or page.

== Changelog ==
= 1.1 =
* Renamed plugin to Smartupworld Video Modal
* Separated CSS and JS into separate files
* Added shortcode attributes for video URL, button text, and YouTube support
* Updated usage examples to show both MP4 and YouTube videos

= 1.0 =
* Initial release with inline CSS/JS

== Upgrade Notice ==
= 1.1 =
Please replace any previous version. Clear caches to load the new CSS/JS and use the updated shortcode `[smartupworld_video_modal]`.
