| @@ -1,0 +1,71 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * ConvertKit Extension | |
| 4 | + * | |
| 5 | + * @package NotificationX\Extensions | |
| 6 | + */ | |
| 7 | + | |
| 8 | +namespace NotificationX\Extensions\ConvertKit; | |
| 9 | + | |
| 10 | +use NotificationX\GetInstance; | |
| 11 | +use NotificationX\Extensions\Extension; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * ConvertKit Extension | |
| 15 | + * @method static ConvertKit get_instance($args = null) | |
| 16 | + */ | |
| 17 | +class ConvertKit extends Extension { | |
| 18 | + /** | |
| 19 | + * Instance of ConvertKit | |
| 20 | + * | |
| 21 | + * @var ConvertKit | |
| 22 | + */ | |
| 23 | + use GetInstance; | |
| 24 | + | |
| 25 | + public $priority = 10; | |
| 26 | + public $id = 'convertkit'; | |
| 27 | + public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/convertkit.png'; | |
| 28 | + public $doc_link = 'https://notificationx.com/docs/convertkit-alert/'; | |
| 29 | + public $types = 'email_subscription'; | |
| 30 | + public $module = 'modules_convertkit'; | |
| 31 | + public $module_priority = 15; | |
| 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 = __('ConvertKit', 'notificationx'); | |
| 44 | + $this->module_title = __('ConvertKit', 'notificationx'); | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * Get data for ConvertKit Extension. | |
| 49 | + * | |
| 50 | + * @param array $args Settings arguments. | |
| 51 | + * @return array | |
| 52 | + */ | |
| 53 | + public function get_data( $args = array() ){ | |
| 54 | + return 'Hello From ConvertKit'; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public function doc(){ | |
| 58 | + /* translators: %1$s: signed in & retrieved your API key from ConvertKit account link URL, %2$s: documentation link URL, %3$s: Watch video tutorial link URL, %4$s: Integration with ConvertKit link URL, %5$s: NotificationX With ConvertKit link URL */ | |
| 59 | + return sprintf(__('<p>Make sure that you have <a target="_blank" href="%1$s">signed in & retrieved your API key from ConvertKit 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 ConvertKit</a></p> | |
| 62 | + <p><strong>Recommended Blog:</strong></p> | |
| 63 | + <p>🔥 Connect <a target="_blank" href="%5$s">NotificationX With ConvertKit</a>: Grow Your Audience By Leveraging Social Proof</p>', 'notificationx'), | |
| 64 | + 'https://app.convertkit.com/users/login', | |
| 65 | + 'https://notificationx.com/docs/convertkit-alert/', | |
| 66 | + 'https://youtu.be/lk_KMSBkEbY', | |
| 67 | + 'https://notificationx.com/integrations/convertkit/', | |
| 68 | + 'https://wpdeveloper.com/convertkit-social-proof/' | |
| 69 | + ); | |
| 70 | + } | |
| 71 | +} | |