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
notificationx / includes / Extensions / Zapier / ZapierReviews.php

ZapierReviews.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.3.3, at includes/Extensions/Zapier/ZapierReviews.php

82 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 ZapierReviews get_instance($args = null)
16 */
17 class ZapierReviews extends Extension {
18 /**
19 * Instance of Zapier
20 *
21 * @var Zapier
22 */
23 use GetInstance;
24 use Zapier;
25
26 public $priority = 25;
27 public $id = 'zapier_reviews';
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 = 'reviews';
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 $this->popup = [
47 "denyButtonText" => __("<a href='https://notificationx.com/docs/zapier-notification-alert/' 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>Display review alerts from popular social media networks & encourage visitors to place trust in your business.</span>
51 ', 'notificationx')
52 ];
53 }
54
55 /**
56 * Get data for Zapier Extension.
57 *
58 * @param array $args Settings arguments.
59 * @return array
60 */
61 public function get_data( $args = array() ){
62 return 'Hello From Zapier';
63 }
64
65 public function _doc(){
66 return '
67 <ul class="reviews nx-template-keys">
68 <li><span>' . __('Field Name:', 'notificationx') . '</span> <strong>' . __('Field Key', 'notificationx') . '</strong></li>
69 <li><span>' . __('Username:', 'notificationx') . '</span> <strong>username</strong></li>
70 <li><span>' . __('Email:', 'notificationx') . '</span> <strong>email</strong></li>
71 <li><span>' . __('Rated:', 'notificationx') . '</span> <strong>rated</strong></li>
72 <li><span>' . __('Plugin Name:', 'notificationx') . '</span> <strong>plugin_name</strong></li>
73 <li><span>' . __('Plugin Review:', 'notificationx') . '</span> <strong>plugin_review</strong></li>
74 <li><span>' . __('Review Title:', 'notificationx') . '</span> <strong>title</strong></li>
75 <li><span>' . __('Anonymous Title:', 'notificationx') . '</span> <strong>anonymous_title</strong></li>
76 <li><span>' . __('Rating:', 'notificationx') . '</span> <strong>rating</strong></li>
77 <li><span>' . __('Definite Time:', 'notificationx') . '</span> <strong>timestamp</strong></li>
78 <li><span>' . __('Some time ago:', 'notificationx') . '</span> <strong>sometime</strong></li>
79 </ul>';
80 }
81 }
82