| 1 |
<?php |
| 2 |
/** |
| 3 |
* ActiveCampaign Extension |
| 4 |
* |
| 5 |
* @package NotificationX\Extensions |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace NotificationX\Extensions\ActiveCampaign; |
| 9 |
|
| 10 |
use NotificationX\GetInstance; |
| 11 |
use NotificationX\Extensions\Extension; |
| 12 |
|
| 13 |
/** |
| 14 |
* ActiveCampaign Extension |
| 15 |
* @method static ActiveCampaign get_instance($args = null) |
| 16 |
*/ |
| 17 |
class ActiveCampaign extends Extension { |
| 18 |
/** |
| 19 |
* Instance of ActiveCampaign |
| 20 |
* |
| 21 |
* @var ActiveCampaign |
| 22 |
*/ |
| 23 |
use GetInstance; |
| 24 |
|
| 25 |
public $priority = 15; |
| 26 |
public $id = 'ActiveCampaign'; |
| 27 |
public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/ActiveCampaign.png'; |
| 28 |
public $doc_link = 'https://notificationx.com/docs/ActiveCampaign-email-subscription-alert/'; |
| 29 |
public $types = 'email_subscription'; |
| 30 |
public $module = 'modules_activecampaign'; |
| 31 |
public $module_priority = 20; |
| 32 |
public $is_pro = true; |
| 33 |
|
| 34 |
/** |
| 35 |
* Initially Invoked when initialized. |
| 36 |
*/ |
| 37 |
public function __construct(){ |
| 38 |
parent::__construct(); |
| 39 |
} |
| 40 |
|
| 41 |
public function init_extension() |
| 42 |
{ |
| 43 |
$this->title = __('ActiveCampaign', 'notificationx'); |
| 44 |
$this->module_title = __('ActiveCampaign', 'notificationx'); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Get data for ActiveCampaign Extension. |
| 49 |
* |
| 50 |
* @param array $args Settings arguments. |
| 51 |
* @return array |
| 52 |
*/ |
| 53 |
public function get_data( $args = array() ){ |
| 54 |
return 'Hello From ActiveCampaign'; |
| 55 |
} |
| 56 |
|
| 57 |
public function doc(){ |
| 58 |
/* translators: %1$s: URL, %2$s: documentation link URL, %3$s: Integration with ActiveCampaign link URL, %4$s: ActiveCampaign Email Subscription Alerts link URL */ |
| 59 |
return sprintf(__('<p>Make sure that you have <a target="_blank" href="%1$s">signed in & retrieved API URL & API key from ActiveCampaign account</a> to use its campaign & email subscriptions data. For further assistance, check out our step by step <a target="_blank" href="%2$s">documentation</a>.</p> |
| 60 |
<p>👉 NotificationX <a target="_blank" href="%3$s">Integration with ActiveCampaign</a></p> |
| 61 |
<p><strong>Recommended Blogs:</strong></p> |
| 62 |
<p>🔥 Boosting Engagement with <a target="_blank" href="%4$s">ActiveCampaign Email Subscription Alerts</a> via NotificationX</p>', 'notificationx'), |
| 63 |
'https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API#getting-started-with-the-api-0-0', |
| 64 |
'https://notificationx.com/docs/activecampaign-email-subscription-alert/', |
| 65 |
'https://notificationx.com/integrations/activecampaign/', |
| 66 |
'https://notificationx.com/blog/activecampaign-email-subscription-alerts/' |
| 67 |
); |
| 68 |
} |
| 69 |
} |
| 70 |
|