PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.7
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.7
3.3.1 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 All 156 releases
notificationx / includes / Types / Popup.php

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

62 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Popup Notification Type
5 *
6 * @package NotificationX\Types
7 */
8
9 namespace NotificationX\Types;
10
11 use NotificationX\Extensions\GlobalFields;
12 use NotificationX\GetInstance;
13
14 /**
15 * Popup notification type for displaying modal-style notifications
16 * @method static Popup get_instance($args = null)
17 */
18 class Popup extends Types {
19 /**
20 * Instance of Popup
21 *
22 * @var Popup
23 */
24 use GetInstance;
25
26 public $priority = 16; // After NotificationBar (15) but before Reviews (20)
27 public $themes = [];
28 public $module = [];
29 public $default_source = 'popup_notification';
30 public $id = 'popup';
31 public $default_theme = 'popup_theme-one';
32 public $link_type = 'popup_url';
33
34 /**
35 * Initially Invoked when initialized.
36 */
37 public function __construct() {
38 parent::__construct();
39 }
40
41 /**
42 * Runs when modules is enabled.
43 *
44 * @return void
45 */
46 public function init() {
47 parent::init();
48 $this->title = __('Announcement', 'notificationx');
49 $this->dashboard_title = __('Announcement', 'notificationx');
50 }
51
52 /**
53 * Initialize popup-specific fields
54 *
55 * @return void
56 */
57 public function init_fields() {
58 parent::init_fields();
59 // Additional field initialization can be added here
60 }
61 }
62