| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Extension Abstract |
| 5 |
* |
| 6 |
* @package NotificationX\Extensions |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace NotificationX\Types; |
| 10 |
|
| 11 |
use NotificationX\Core\Rules; |
| 12 |
use NotificationX\Extensions\GlobalFields; |
| 13 |
use NotificationX\GetInstance; |
| 14 |
use NotificationX\Modules; |
| 15 |
|
| 16 |
/** |
| 17 |
* Extension Abstract for all Extension. |
| 18 |
* @method static Video get_instance($args = null) |
| 19 |
*/ |
| 20 |
class Video extends Types { |
| 21 |
/** |
| 22 |
* Instance of Video |
| 23 |
* |
| 24 |
* @var Video |
| 25 |
*/ |
| 26 |
use GetInstance; |
| 27 |
|
| 28 |
public $priority = 60; |
| 29 |
public $themes = []; |
| 30 |
public $module = [ |
| 31 |
'modules_google_youtube', |
| 32 |
]; |
| 33 |
public $default_source = 'youtube'; |
| 34 |
public $is_pro = true; |
| 35 |
// public $default_theme = ''; |
| 36 |
// public $link_type = ''; |
| 37 |
|
| 38 |
|
| 39 |
/** |
| 40 |
* Initially Invoked when initialized. |
| 41 |
*/ |
| 42 |
public function __construct() { |
| 43 |
parent::__construct(); |
| 44 |
$this->id = 'video'; |
| 45 |
} |
| 46 |
|
| 47 |
public function init() |
| 48 |
{ |
| 49 |
parent::init(); |
| 50 |
$this->title = __('Video', 'notificationx'); |
| 51 |
$this->popup = [ |
| 52 |
"denyButtonText" => __("<a href='https://notificationx.com/docs/youtube-video-activities-popups/' target='_blank'>More Info</a>", "notificationx"), |
| 53 |
"confirmButtonText" => __("<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", "notificationx"), |
| 54 |
// phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False positive for this context: these are HTML email bodies and remote documentation/tutorial links in admin help text, not offloaded plugin assets. Audited 2026-07-16. |
| 55 |
"html"=> __(' |
| 56 |
<span>NotificationX will help you increasing engagement of your YouTube channel and gaining more credibility.</span> |
| 57 |
<video id="pro_alert_video_popup" type="text/html" allowfullscreen width="450" height="235" autoplay loop muted> |
| 58 |
<source src="https://notificationx.com/wp-content/uploads/2024/01/How-To-Show-YouTube-Activities-Popup-With-NotificationX.mp4" type="video/mp4"> |
| 59 |
</video> |
| 60 |
', 'notificationx') |
| 61 |
// phpcs:enable PluginCheck.CodeAnalysis.Offloading.OffloadedContent |
| 62 |
]; |
| 63 |
} |
| 64 |
|
| 65 |
} |
| 66 |
|