| @@ -1,0 +1,73 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * MailChimp Extension | |
| 4 | + * | |
| 5 | + * @package NotificationX\Extensions | |
| 6 | + */ | |
| 7 | + | |
| 8 | +namespace NotificationX\Extensions\MailChimp; | |
| 9 | + | |
| 10 | +use NotificationX\GetInstance; | |
| 11 | +use NotificationX\Extensions\Extension; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * MailChimp Extension | |
| 15 | + * @method static MailChimp get_instance($args = null) | |
| 16 | + */ | |
| 17 | +class MailChimp extends Extension { | |
| 18 | + /** | |
| 19 | + * Instance of MailChimp | |
| 20 | + * | |
| 21 | + * @var MailChimp | |
| 22 | + */ | |
| 23 | + use GetInstance; | |
| 24 | + | |
| 25 | + public $priority = 5; | |
| 26 | + public $id = 'mailchimp'; | |
| 27 | + public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/mailchimp.png'; | |
| 28 | + public $doc_link = 'https://notificationx.com/docs/mailchimp-email-subscription-alert/'; | |
| 29 | + public $types = 'email_subscription'; | |
| 30 | + public $module = 'modules_mailchimp'; | |
| 31 | + public $module_priority = 14; | |
| 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 = __('MailChimp', 'notificationx'); | |
| 44 | + $this->module_title = __('MailChimp', 'notificationx'); | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * Get data for MailChimp Extension. | |
| 49 | + * | |
| 50 | + * @param array $args Settings arguments. | |
| 51 | + * @return array | |
| 52 | + */ | |
| 53 | + public function get_data( $args = array() ){ | |
| 54 | + return 'Hello From MailChimp'; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public function doc(){ | |
| 58 | + /* translators: %1$s: signed in & retrieved API key from MailChimp account link URL, %2$s: documentation link URL, %3$s: Watch video tutorial link URL, %4$s: Integration with MailChimp link URL, %5$s: Email Marketing Strategy link URL, %6$s: Email Subscription List link URL */ | |
| 59 | + return sprintf(__('<p>Make sure that you have <a target="_blank" href="%1$s">signed in & retrieved API key from MailChimp 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>🎦 <a target="_blank" href="%3$s">Watch video tutorial</a> to learn quickly</p> | |
| 61 | + <p>👉 NotificationX <a target="_blank" href="%4$s">Integration with MailChimp</a></p> | |
| 62 | + <p><strong>Recommended Blogs:</strong></p> | |
| 63 | + <p>🔥 How To Improve Your <a target="_blank" href="%5$s">Email Marketing Strategy</a> With Social Proof</p> | |
| 64 | + <p>🚀 Hacks To Grow Your <a target="_blank" href="%6$s">Email Subscription List</a> On WordPress Website</p>', 'notificationx'), | |
| 65 | + 'https://mailchimp.com/help/about-api-keys/', | |
| 66 | + 'https://notificationx.com/docs/mailchimp-email-subscription-alert/', | |
| 67 | + 'https://youtu.be/WvX8feM5DBw', | |
| 68 | + 'https://notificationx.com/integrations/mailchimp/', | |
| 69 | + 'https://wpdeveloper.com/email-marketing-social-proof/', | |
| 70 | + 'https://wpdeveloper.com/email-subscription-list-wordpress/' | |
| 71 | + ); | |
| 72 | + } | |
| 73 | +} | |