PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / trunk
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar vtrunk
3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 All 155 releases
notificationx / includes / Types / Video.php

Video.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar trunk, at includes/Types/Video.php

66 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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