| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Extension Abstract |
| 5 |
* |
| 6 |
* @package NotificationX\Extensions |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace NotificationX\Types; |
| 10 |
|
| 11 |
use NotificationX\Extensions\GlobalFields; |
| 12 |
use NotificationX\GetInstance; |
| 13 |
|
| 14 |
/** |
| 15 |
* Extension Abstract for all Extension. |
| 16 |
* @method static FlashingTab get_instance($args = null) |
| 17 |
*/ |
| 18 |
class FlashingTab extends Types { |
| 19 |
/** |
| 20 |
* Instance of FlashingTab |
| 21 |
* |
| 22 |
* @var FlashingTab |
| 23 |
*/ |
| 24 |
use GetInstance; |
| 25 |
public $priority = 45; |
| 26 |
public $is_pro = true; |
| 27 |
public $module = ['modules_flashing']; |
| 28 |
public $id = 'flashing_tab'; |
| 29 |
public $default_source = 'flashing_tab'; |
| 30 |
public $link_type = '-1'; |
| 31 |
|
| 32 |
/** |
| 33 |
* Initially Invoked when initialized. |
| 34 |
*/ |
| 35 |
public function __construct() { |
| 36 |
// nx_comment_colored_themes |
| 37 |
parent::__construct(); |
| 38 |
} |
| 39 |
|
| 40 |
public function init() |
| 41 |
{ |
| 42 |
parent::init(); |
| 43 |
$this->title = __('Flashing Tab', 'notificationx'); |
| 44 |
$this->dashboard_title = __('Flashing Tab', 'notificationx'); |
| 45 |
$this->popup = [ |
| 46 |
"denyButtonText" => __("<a href='https://notificationx.com/flashing-tab/' target='_blank'>More Info</a>", "notificationx"), |
| 47 |
"confirmButtonText" => __("<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", "notificationx"), |
| 48 |
// 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. |
| 49 |
"html"=> __(' |
| 50 |
<span>Revive lost visitors and convert them into customers with captivating Flashing Tab alerts.</span> |
| 51 |
<video id="pro_alert_video_popup" type="text/html" allowfullscreen width="450" height="235" autoplay loop muted> |
| 52 |
<source src="https://notificationx.com/wp-content/uploads/2024/01/How-To-Configure-Flashing-Tab-Alert-With-NotificationX.mp4" type="video/mp4"> |
| 53 |
</video> |
| 54 |
', 'notificationx') |
| 55 |
// phpcs:enable PluginCheck.CodeAnalysis.Offloading.OffloadedContent |
| 56 |
]; |
| 57 |
} |
| 58 |
|
| 59 |
} |
| 60 |
|