| 1 |
<?php |
| 2 |
/** |
| 3 |
* Extension Abstract |
| 4 |
* |
| 5 |
* @package NotificationX\Extensions |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace NotificationX\Types; |
| 9 |
use NotificationX\GetInstance; |
| 10 |
use NotificationX\Modules; |
| 11 |
|
| 12 |
/** |
| 13 |
* Extension Abstract for all Extension. |
| 14 |
* @method static CustomNotification get_instance($args = null) |
| 15 |
*/ |
| 16 |
class CustomNotification extends Types { |
| 17 |
/** |
| 18 |
* Instance of Admin |
| 19 |
* |
| 20 |
* @var Admin |
| 21 |
*/ |
| 22 |
use GetInstance; |
| 23 |
public $priority = 55; |
| 24 |
public $is_pro = true; |
| 25 |
public $themes = 'all'; |
| 26 |
public $module = ['modules_custom_notification']; |
| 27 |
public $default_source = 'custom_notification'; |
| 28 |
// @todo default theme for custom |
| 29 |
// public $default_theme = 'conversions_theme-one'; |
| 30 |
|
| 31 |
/** |
| 32 |
* Initially Invoked when initialized. |
| 33 |
*/ |
| 34 |
public function __construct(){ |
| 35 |
parent::__construct(); |
| 36 |
$this->id = 'custom'; |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* Runs when modules is enabled. |
| 41 |
* |
| 42 |
* @return void |
| 43 |
*/ |
| 44 |
public function init(){ |
| 45 |
parent::init(); |
| 46 |
$this->title = __('Custom Notification', 'notificationx'); |
| 47 |
} |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
} |
| 52 |
|