PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / trunk
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar vtrunk
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 / GRVF / GravityForms.php

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

94 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * GravityForms Extension
4 *
5 * @package NotificationX\Extensions
6 */
7
8 namespace NotificationX\Extensions\GRVF;
9
10 use NotificationX\Core\Rules;
11 use NotificationX\GetInstance;
12 use NotificationX\Extensions\Extension;
13
14 /**
15 * GravityForms Extension
16 * @method static GravityForms get_instance($args = null)
17 */
18 class GravityForms extends Extension {
19 /**
20 * Instance of GravityForms
21 *
22 * @var GravityForms
23 */
24 use GetInstance;
25
26 public $priority = 20;
27 public $id = 'grvf';
28 public $img = '';
29 public $doc_link = 'https://notificationx.com/docs/contact-form-submission-alert/';
30 public $types = 'form';
31 public $module = 'modules_grvf';
32 public $module_priority = 11;
33 public $is_pro = true;
34 public $version = '1.4.4';
35 public $class = '\GFForms';
36
37 /**
38 * Initially Invoked when initialized.
39 */
40 public function __construct(){
41 parent::__construct();
42 }
43
44 public function init_extension()
45 {
46 $this->title = __('Gravity Forms', 'notificationx');
47 $this->module_title = __('Gravity Forms', 'notificationx');
48 $this->popup = [
49 "denyButtonText" => __("<a href='https://notificationx.com/docs/gravity-forms/' target='_blank'>More Info</a>", "notificationx"),
50 "confirmButtonText" => __("<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", "notificationx"),
51 "html"=> __('
52 <span>A WordPress contact forms plugin that can help you keep important leads and stay in touch with your customers.</span>
53 <iframe id="email_subscription_video" type="text/html" allowfullscreen width="450" height="235"
54 src="https://www.youtube.com/embed/1Gl3XRd1TxY">
55 </iframe>
56 ', 'notificationx')
57 ];
58 }
59
60 public function source_error_message($messages) {
61 if (!$this->class_exists()) {
62 $url = "https://www.gravityforms.com/";
63 $messages[$this->id] = [
64 'message' => sprintf( '%s <a href="%s" target="_blank">%s</a> %s',
65 __( 'You have to install', 'notificationx' ),
66 $url,
67 __( 'Gravity Forms', 'notificationx' ),
68 __( 'plugin first.', 'notificationx' )
69 ),
70 'html' => true,
71 'type' => 'error',
72 'rules' => Rules::is('source', $this->id),
73 ];
74 }
75 return $messages;
76 }
77
78 public function doc(){
79 /* translators: %1$s: Gravity Forms installed & configured link URL, %2$s: documentation link URL, %3$s: Watch video tutorial link URL, %4$s: Integration with Ninja Forms link URL, %5$s: WordPress Contact Forms Submission Rate link URL */
80 return sprintf(__('<p>Make sure that you have <a target="_blank" href="%1$s">Gravity Forms installed & configured</a>, to use its campaign & form subscriptions data. For further assistance, check out our step by step <a target="_blank" href="%2$s">documentation</a>.</p>
81 <p>🎦 <a target="_blank" href="%3$s">Watch video tutorial</a> to learn quickly</p>
82 <p>👉NotificationX <a target="_blank" href="%4$s">Integration with Ninja Forms</a></p>
83 <p><strong>Recommended Blog:</strong></p>
84 <p>🔥Hacks to Increase Your <a target="_blank" href="%5$s">WordPress Contact Forms Submission Rate</a> Using NotificationX</p>', 'notificationx'),
85 'https://www.gravityforms.com/',
86 'https://notificationx.com/docs/gravity-forms/',
87 'https://www.youtube.com/watch?v=1Gl3XRd1TxY',
88 'https://notificationx.com/integrations/gravity-forms/',
89 'https://notificationx.com/blog/wordpress-contact-forms/'
90 );
91 }
92
93 }
94