PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.8
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.8
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 3.2.8, at includes/Types/Video.php

64 lines 1.8 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 "html"=> __('
55 <span>NotificationX will help you increasing engagement of your YouTube channel and gaining more credibility.</span>
56 <video id="pro_alert_video_popup" type="text/html" allowfullscreen width="450" height="235" autoplay loop muted>
57 <source src="https://notificationx.com/wp-content/uploads/2024/01/How-To-Show-YouTube-Activities-Popup-With-NotificationX.mp4" type="video/mp4">
58 </video>
59 ', 'notificationx')
60 ];
61 }
62
63 }
64