PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.1
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.1
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 1.2.0 1.2.1 All 156 releases
notificationx / includes / Extensions / BitIntegrations / BitIntegrationsReviews.php

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

108 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * BitIntegrations Extension
4 *
5 * @package NotificationX\Extensions
6 */
7
8 namespace NotificationX\Extensions\BitIntegrations;
9
10 use NotificationX\Core\Rules;
11 use NotificationX\GetInstance;
12 use NotificationX\Extensions\Extension;
13
14 /**
15 * BitIntegrations Extension
16 * @method static BitIntegrationReviews get_instance($args = null)
17 */
18 class BitIntegrtionsReviews extends Extension {
19 /**
20 * Instance of BitIntegrtions
21 *
22 * @var BitIntegrtions
23 */
24 use GetInstance;
25 use BitIntegrations;
26
27 public $priority = 16;
28 public $id = 'bitintegrations_reviews';
29 public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/bit-integrations.png';
30 public $doc_link = 'https://notificationx.com/docs/bit-integrations-notification-alert/';
31 public $types = 'reviews';
32 public $module = 'modules_bitintegrations';
33 public $module_priority = 16;
34 public $class = 'BitApps\Integrations\Config';
35
36 /**
37 * Initially Invoked when initialized.
38 */
39 public function __construct(){
40 parent::__construct();
41 }
42
43 public function init_extension()
44 {
45 $this->title = __('Bit Integrations', 'notificationx');
46 $this->module_title = __('Bit Integrations', 'notificationx');
47 $this->popup = [
48 "denyButtonText" => __("<a href='https://notificationx.com/docs/bit-integrations-notification-alert/' target='_blank'>More Info</a>", "notificationx"),
49 "confirmButtonText" => __("<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", "notificationx"),
50 "html"=> __('
51 <span>Display review alerts from popular social media networks & encourage visitors to place trust in your business.</span>
52 ', 'notificationx')
53 ];
54 }
55
56 /**
57 * Error message if BitIntegrations is disabled.
58 *
59 * @param array $messages
60 * @return array
61 */
62 public function source_error_message($messages) {
63 if (!$this->class_exists()) {
64 $url = admin_url('plugin-install.php?s=bit+integrations&tab=search&type=term');
65 $messages[$this->id] = [
66 'message' => sprintf(
67 '%s <a href="%s" target="_blank">%s</a> %s',
68 __('You have to install', 'notificationx'),
69 $url,
70 __('Bit Integrations', 'notificationx'),
71 __('plugin first.', 'notificationx')
72 ),
73 'html' => true,
74 'type' => 'error',
75 'rules' => Rules::is('source', $this->id),
76 ];
77 }
78 return $messages;
79 }
80
81 /**
82 * Get data for BitIntegrations Extension.
83 *
84 * @param array $args Settings arguments.
85 * @return array
86 */
87 public function get_data( $args = array() ){
88 return 'Hello From BitIntegrations';
89 }
90
91 public function doc(){
92 return '
93 <ul class="reviews nx-template-keys">
94 <li><span>' . __('Field Name:', 'notificationx') . '</span> <strong>' . __('Field Key', 'notificationx') . '</strong></li>
95 <li><span>' . __('Username:', 'notificationx') . '</span> <strong>username</strong></li>
96 <li><span>' . __('Email:', 'notificationx') . '</span> <strong>email</strong></li>
97 <li><span>' . __('Rated:', 'notificationx') . '</span> <strong>rated</strong></li>
98 <li><span>' . __('Plugin Name:', 'notificationx') . '</span> <strong>plugin_name</strong></li>
99 <li><span>' . __('Plugin Review:', 'notificationx') . '</span> <strong>plugin_review</strong></li>
100 <li><span>' . __('Review Title:', 'notificationx') . '</span> <strong>title</strong></li>
101 <li><span>' . __('Anonymous Title:', 'notificationx') . '</span> <strong>anonymous_title</strong></li>
102 <li><span>' . __('Rating:', 'notificationx') . '</span> <strong>rating</strong></li>
103 <li><span>' . __('Definite Time:', 'notificationx') . '</span> <strong>timestamp</strong></li>
104 <li><span>' . __('Some time ago:', 'notificationx') . '</span> <strong>sometime</strong></li>
105 </ul>';
106 }
107 }
108