PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.3
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.3
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
← All changes | includes/Extensions/Zapier/ZapierEmailSubscription.php +75 -0 0.2.5.5 → 3.3.3 View file →
@@ -1,0 +1,75 @@
1 +<?php
2 +/**
3 + * Zapier Extension
4 + *
5 + * @package NotificationX\Extensions
6 + */
7 +
8 +namespace NotificationX\Extensions\Zapier;
9 +
10 +use NotificationX\GetInstance;
11 +use NotificationX\Extensions\Extension;
12 +
13 +/**
14 + * Zapier Extension
15 + * @method static ZapierEmailSubscription get_instance($args = null)
16 + */
17 +class ZapierEmailSubscription extends Extension {
18 + /**
19 + * Instance of Zapier
20 + *
21 + * @var Zapier
22 + */
23 + use GetInstance;
24 + use Zapier;
25 +
26 + public $priority = 15;
27 + public $id = 'zapier_email_subscription';
28 + public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/zapier.png';
29 + public $doc_link = 'https://notificationx.com/docs/zapier-notification-alert/';
30 + public $types = 'email_subscription';
31 + public $module = 'modules_zapier';
32 + public $is_pro = true;
33 + public $module_priority = 16;
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 = __('Zapier', 'notificationx');
45 + $this->module_title = __('Zapier', 'notificationx');
46 + }
47 +
48 + /**
49 + * Get data for Zapier Extension.
50 + *
51 + * @param array $args Settings arguments.
52 + * @return array
53 + */
54 + public function get_data( $args = array() ){
55 + return 'Hello From Zapier';
56 + }
57 +
58 + public function _doc(){
59 + return '
60 + <ul class="email_subscription nx-template-keys">
61 + <li><span>' . __('Field Name:', 'notificationx') . '</span> <strong>' . __('Field Key', 'notificationx') . '</strong></li>
62 + <li><span>' . __('Full Name:', 'notificationx') . '</span> <strong>name</strong></li>
63 + <li><span>' . __('First Name:', 'notificationx') . '</span> <strong>first_name</strong></li>
64 + <li><span>' . __('Last Name:', 'notificationx') . '</span> <strong>last_name</strong></li>
65 + <li><span>' . __('Email:', 'notificationx') . '</span> <strong>email</strong></li>
66 + <li><span>' . __('Title, Product Title:', 'notificationx') . '</span> <strong>title</strong></li>
67 + <li><span>' . __('Anonymous Title:', 'notificationx') . '</span> <strong>anonymous_title</strong></li>
68 + <li><span>' . __('Definite Time:', 'notificationx') . '</span> <strong>timestamp</strong></li>
69 + <li><span>' . __('Some time ago:', 'notificationx') . '</span> <strong>sometime</strong></li>
70 + <li><span>' . __('City:', 'notificationx') . '</span> <strong>city</strong></li>
71 + <li><span>' . __('Country:', 'notificationx') . '</span> <strong>country</strong></li>
72 + <li><span>' . __('City,Country:', 'notificationx') . '</span> <strong>city_country</strong></li>
73 + </ul>';
74 + }
75 +}