← All changes
|
includes/Extensions/Freemius/FreemiusConversions.php
+57
-0
0.2.5.7
→
3.3.3
View file →
| @@ -1,0 +1,57 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Freemius Extension | |
| 4 | + * | |
| 5 | + * @package NotificationX\Extensions | |
| 6 | + */ | |
| 7 | + | |
| 8 | +namespace NotificationX\Extensions\Freemius; | |
| 9 | + | |
| 10 | +use NotificationX\GetInstance; | |
| 11 | +use NotificationX\Extensions\Extension; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * Freemius Extension | |
| 15 | + * @method static FreemiusConversions get_instance($args = null) | |
| 16 | + */ | |
| 17 | +class FreemiusConversions extends Extension { | |
| 18 | + /** | |
| 19 | + * Instance of Freemius | |
| 20 | + * | |
| 21 | + * @var Freemius | |
| 22 | + */ | |
| 23 | + use GetInstance; | |
| 24 | + use Freemius; | |
| 25 | + | |
| 26 | + public $priority = 15; | |
| 27 | + public $id = 'freemius_conversions'; | |
| 28 | + public $types = 'conversions'; | |
| 29 | + public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/freemius.png'; | |
| 30 | + public $doc_link = 'https://notificationx.com/docs/freemius-sales-notification/'; | |
| 31 | + public $module = 'modules_freemius'; | |
| 32 | + public $is_pro = true; | |
| 33 | + public $module_priority = 12; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * Initially Invoked when initialized. | |
| 37 | + */ | |
| 38 | + public function __construct(){ | |
| 39 | + parent::__construct(); | |
| 40 | + } | |
| 41 | + | |
| 42 | + public function init_extension() | |
| 43 | + { | |
| 44 | + $this->title = __('Freemius', 'notificationx'); | |
| 45 | + $this->module_title = __('Freemius', 'notificationx'); | |
| 46 | + $this->popup = [ | |
| 47 | + "denyButtonText" => __("<a href='https://notificationx.com/docs/freemius-sales-notification/' target='_blank'>More Info</a>", "notificationx"), | |
| 48 | + "confirmButtonText" => __("<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", "notificationx"), | |
| 49 | + "html"=> __(' | |
| 50 | + <span>Fantastic platform for WordPress users to sell their items all around the world.</span> | |
| 51 | + <iframe id="email_subscription_video" type="text/html" allowfullscreen width="450" height="235" | |
| 52 | + src="https://www.youtube.com/embed/0uANsOSFmtw"> | |
| 53 | + </iframe> | |
| 54 | + ', 'notificationx') | |
| 55 | + ]; | |
| 56 | + } | |
| 57 | +} | |