| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Video Popup – Video Lightbox for YouTube, Vimeo & MP4 |
| 4 |
* Version: 2.0.4 |
| 5 |
* Description: Video Popup plugin lets you create unlimited, responsive Video Lightbox and Popup for YouTube, Vimeo, MP4 & WebM. Smart, flexible, and made for easy control. Supports on click and On-Page Load. |
| 6 |
* Author: Alobaidi |
| 7 |
* Author URI: https://wp-time.com/video-popup-plugin-for-wordpress/ |
| 8 |
* Plugin URI: https://wp-time.com/video-popup-plugin-for-wordpress/ |
| 9 |
* Text Domain: video-popup |
| 10 |
* Requires at least: 5.8 |
| 11 |
* Requires PHP: 7.4 |
| 12 |
* License: GPLv2 or later |
| 13 |
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
| 14 |
* |
| 15 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
| 16 |
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume |
| 17 |
* that you can use any other version of the GPL. |
| 18 |
* |
| 19 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without |
| 20 |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 21 |
*/ |
| 22 |
|
| 23 |
if ( !defined('ABSPATH') ) { |
| 24 |
exit; // Exit if accessed directly |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
// Define plugin constants |
| 29 |
define('VIDEO_POPUP_PLUGIN_ID', 'video_popup'); |
| 30 |
define('VIDEO_POPUP_PLUGIN_VERSION', '2.0.4'); |
| 31 |
define('VIDEO_POPUP_PLUGIN_PATH', plugin_dir_path(__FILE__)); |
| 32 |
define('VIDEO_POPUP_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 33 |
define('VIDEO_POPUP_PLUGIN_BASENAME', plugin_basename(__FILE__)); |
| 34 |
|
| 35 |
|
| 36 |
// Plugin initialization |
| 37 |
if ( !class_exists('Video_Popup_Core') ) { |
| 38 |
require_once plugin_dir_path(__FILE__) . 'includes/class-core.php'; |
| 39 |
$Video_Popup_Core = Video_Popup_Core::get_instance(); |
| 40 |
$Video_Popup_Core->initialize(); |
| 41 |
} |