PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.8
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.8
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 / BitIntegrationsConversions.php

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

105 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 BitIntegrationsConversions get_instance($args = null)
17 */
18 class BitIntegrationsConversions extends Extension {
19 /**
20 * Instance of BitIntegrations
21 *
22 * @var BitIntegrations
23 */
24 use GetInstance;
25
26 public $priority = 12;
27 public $id = 'bitintegrations_conversions';
28 public $img = NOTIFICATIONX_ADMIN_URL . 'images/extensions/sources/bit-integrations.png';
29 // public $doc_link = 'https://notificationx.com/docs/bitintegrations-notification-alert/';
30 public $types = 'conversions';
31 public $module = 'modules_bitintegrations';
32 public $module_priority = 16;
33 public $class = 'BitApps\Integrations\Config';
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 = __('Bit Integrations', 'notificationx');
45 $this->module_title = __('Bit Integrations', 'notificationx');
46 }
47
48 /**
49 * Get data for BitIntegrations Extension.
50 *
51 * @param array $args Settings arguments.
52 * @return array
53 */
54 public function get_data( $args = array() ){
55 return 'Hello From Bit Integrations';
56 }
57
58 /**
59 * Error message if BitIntegrations is disabled.
60 *
61 * @param array $messages
62 * @return array
63 */
64 public function source_error_message($messages) {
65 if (!$this->class_exists()) {
66 $url = admin_url('plugin-install.php?s=bit+integrations&tab=search&type=term');
67 $messages[$this->id] = [
68 'message' => sprintf(
69 '%s <a href="%s" target="_blank">%s</a> %s',
70 __('You have to install', 'notificationx'),
71 $url,
72 __('Bit Integrations', 'notificationx'),
73 __('plugin first.', 'notificationx')
74 ),
75 'html' => true,
76 'type' => 'error',
77 'rules' => Rules::is('source', $this->id),
78 ];
79 }
80 return $messages;
81 }
82
83 public function doc(){
84 return '
85 <ul class="conversions nx-template-keys">
86 <li><span>' . __('Field Name:', 'notificationx') . '</span> <strong>' . __('Field Key', 'notificationx') . '</strong></li>
87 <li><span>' . __('Full Name:', 'notificationx') . '</span> <strong>name</strong></li>
88 <li><span>' . __('First Name:', 'notificationx') . '</span> <strong>first_name</strong></li>
89 <li><span>' . __('Last Name:', 'notificationx') . '</span> <strong>last_name</strong></li>
90 <li><span>' . __('Sales Count:', 'notificationx') . '</span> <strong>sales_count</strong></li>
91 <li><span>' . __('Customer Email:', 'notificationx') . '</span> <strong>email</strong></li>
92 <li><span>' . __('Title, Product Title:', 'notificationx') . '</span> <strong>title</strong></li>
93 <li><span>' . __('Anonymous Title, Product:', 'notificationx') . '</span> <strong>anonymous_title</strong></li>
94 <li><span>' . __('Definite Time:', 'notificationx') . '</span> <strong>timestamp</strong></li>
95 <li><span>' . __('Sometime:', 'notificationx') . '</span> <strong>sometime</strong></li>
96 <li><span>' . __('In last 1 day:', 'notificationx') . '</span> <strong>1day</strong></li>
97 <li><span>' . __('In last 7 days:', 'notificationx') . '</span> <strong>7days</strong></li>
98 <li><span>' . __('In last 30 days:', 'notificationx') . '</span> <strong>30days</strong></li>
99 <li><span>' . __('City:', 'notificationx') . '</span> <strong>city</strong></li>
100 <li><span>' . __('Country:', 'notificationx') . '</span> <strong>country</strong></li>
101 <li><span>' . __('City,Country:', 'notificationx') . '</span> <strong>city_country</strong></li>
102 </ul>';
103 }
104 }
105