Drift - Version 1.4

Version Description

  • Clean up code.
  • Better checking of user capabilities.
Download this release

Release Info

Developer driftcom
Plugin Icon Drift
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (3) hide show
  1. drift.php +3 -20
  2. readme.txt +9 -6
  3. screenshot-5.png +0 -0
drift.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
- * Version: 1.3
5
  * Plugin URI: https://www.drift.com/?ref=wordpress
6
  * Description: Adds Drift free live chat to your website. Designed for internet businesses like yours to increase sales, conversions and better support your customers.
7
  * Author: Drift
@@ -25,7 +25,6 @@ add_action( 'admin_init', 'Drift_register_settings' );
25
 
26
  // Create a option page for settings
27
  add_action('admin_menu', 'add_drift_option_page');
28
- // add_action('admin_menu', 'add_drift_menu_items');
29
 
30
  // Add top-level admin bar link
31
  add_action('admin_bar_menu', 'add_drift_link_to_admin_bar', 999);
@@ -53,25 +52,9 @@ function add_drift_link_to_admin_bar()
53
  // Hook in the options page functionå
54
  function add_drift_option_page()
55
  {
56
- add_options_page('Drift Options', 'Drift', 8, basename(__FILE__), 'drift_options_page');
57
  }
58
 
59
- // Adds Drift menu to /wp-admin sidebar
60
- /*
61
- function add_drift_menu_items()
62
- {
63
- global $submenu;
64
- global $wp_version;
65
-
66
- $drift_icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHRpdGxlPgogICAgSWNvbiBPbmx5IFdoaXRlCiAgPC90aXRsZT4KICA8cGF0aCBkPSJNMTQ5LjkwOCA1LjQ5NkM3MC4yNCA1LjQ5NiA1LjY2IDcwLjA3OCA1LjY2IDE0OS43NDhjMCA3OS42NjcgNjQuNTggMTQ0LjI1IDE0NC4yNDggMTQ0LjI1IDc5LjY2NSAwIDE0NC4yNS02NC41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kzIDQuMjAzLTEuMDkzIDYuMDg3IDBsNjYuODUyIDM4Ljk1NmMxLjU5My45MyAxLjYyMiAzLjIxNy4wMjQgNC4xNC05LjQ0OCA1LjQ4LTM1LjA4NSAyMC4zOTYtNDQuNjEgMjUuOTM4LTEuNjE1Ljk0LTMuNjI2LS4yMzUtMy42MjYtMi4xMDhWMTExLjU4YzAtLjE0OC0uMDc4LS4yOS0uMjA4LS4zNjNsLTI0LjUyLTE0LjI5MmMtMS44ODYtMS4wOTctMy4wNDctMy4xMjYtMy4wNDctNS4zMlY2Ny43MnptODkuOTggNzIuODk1YzAgMi4xOTQtMS4xNiA0LjIyMi0zLjA0NCA1LjMybC0yNC43MyAxNC40MXY2Mi41MTZjMCAyLjE5LTEuMTYgNC4yMi0zLjA0NSA1LjMxN2wtMTUuMyA4LjkyYy0uOTQ2LjU0Mi0xLjk5NC44Mi0zLjA0NS44Mi0xLjA1IDAtMi4xLS4yNzgtMy4wNC0uODItMS44ODgtMS4xLTMuMDQ1LTMuMTMtMy4wNDUtNS4zMjV2LTU1LjQxbC0yNS41OTggMTQuOTJjLS4wMTguMDEtLjA0LjAxOC0uMDUzLjAyOC0xLjg3NyAxLjA2Ni00LjE2NiAxLjA2Mi02LjAzMy0uMDI0LTEuODg2LTEuMDk3LTMuMDQ3LTMuMTI2LTMuMDQ3LTUuMzJ2LTIzLjkwMmMwLTIuMTk0IDEuMTYtNC4yMjYgMy4wNDgtNS4zMjdsNzcuOC00NS4zMjZjMS44ODQtMS4xIDQuMjA1LTEuMSA2LjA5IDAgMS44ODMgMS4wOTQgMy4wNDQgMy4xMjMgMy4wNDQgNS4zMTd2MjMuODg4eiIgZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJldmVub2RkIi8+Cjwvc3ZnPgo=';
67
-
68
- add_menu_page('Drift', 'Drift', 'activate_plugins', 'drift', array($this, 'drift_options_page'), $drift_icon, '25.100713');
69
- add_submenu_page('drift', 'Settings', 'Settings', 'activate_plugins', basename(__FILE__), array($this, 'drift_options_page'));
70
-
71
- $submenu['drift'][0][0] = 'Dashboard';
72
- }
73
- */
74
-
75
  // Output the options page
76
  function drift_options_page()
77
  {
@@ -124,7 +107,7 @@ function drift_options_page()
124
  </th>
125
  <td>
126
  <textarea rows="8" cols="100" placeholder="<!-- Insert the Drift tag here -->" name="Drift_settings[drift_widget_code]"><?php echo esc_attr( $options['drift_widget_code'] ); ?></textarea>
127
- <p style="margin: 5px 10px;">Enter your Drift JS code snippet. You can find your <a href="https://app.driftt.com/settings/configure" target="_blank" title="Open Drift Settings">Drift JS here</a>. A Free Drift account is required to use this plugin.</p>
128
  </td>
129
  </tr>
130
  </table>
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
+ * Version: 1.4
5
  * Plugin URI: https://www.drift.com/?ref=wordpress
6
  * Description: Adds Drift free live chat to your website. Designed for internet businesses like yours to increase sales, conversions and better support your customers.
7
  * Author: Drift
25
 
26
  // Create a option page for settings
27
  add_action('admin_menu', 'add_drift_option_page');
 
28
 
29
  // Add top-level admin bar link
30
  add_action('admin_bar_menu', 'add_drift_link_to_admin_bar', 999);
52
  // Hook in the options page functionå
53
  function add_drift_option_page()
54
  {
55
+ add_options_page('Drift Options', 'Drift', 'activate_plugins', basename(__FILE__), 'drift_options_page');
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  // Output the options page
59
  function drift_options_page()
60
  {
107
  </th>
108
  <td>
109
  <textarea rows="8" cols="100" placeholder="<!-- Insert the Drift tag here -->" name="Drift_settings[drift_widget_code]"><?php echo esc_attr( $options['drift_widget_code'] ); ?></textarea>
110
+ <p style="margin: 5px 10px;">Enter your Drift JS code snippet. You can find your <a href="https://app.driftt.com/settings/configure" target="_blank" title="Open Drift Settings">Drift JS code snippet here</a>. A Free Drift account is required to use this plugin.</p>
111
  </td>
112
  </tr>
113
  </table>
readme.txt CHANGED
@@ -7,13 +7,11 @@ Drift enables you to chat with your website visitors, increase sales and collect
7
 
8
  Requires at least: 4.0.1
9
  Tested up to: 4.5.1
10
- Stable tag: 1.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
- The 100% free way to chat with leads and customers.
15
-
16
- Drift lets you monitor and chat with visitors to your store and website in real-time.
17
 
18
  == Description ==
19
 
@@ -68,7 +66,7 @@ Start closing more sales and getting better customer feedback today. Get started
68
  **Key Features**
69
 
70
  * Talk to your website visitors and customers in real-time, right from Slack.
71
- * Integrates seamlessly with HubSpot, Marketo, Mailchimp, Intercom, Salesforce, Segment and 100s more.
72
  * If a `$current_user` is present, we use their email as an identifier in the widget.
73
  Otherwise the widget operates in [aquisition mode](https://www.drift.com/live-chat) and prompts anonymous users for their email address. This allows you to talk with anonymous visitors on your WordPress site.
74
 
@@ -78,7 +76,8 @@ Otherwise the widget operates in [aquisition mode](https://www.drift.com/live-ch
78
  1. Chat window - minimized
79
  2. Chat widget - maximized
80
  3. Wordpress settings
81
- 4. Drift targeted announcement messages
 
82
 
83
  == Frequently Asked Questions ==
84
 
@@ -124,6 +123,10 @@ Step-by-step Guide:
124
 
125
  == Changelog ==
126
 
 
 
 
 
127
  = 1.3 =
128
  * Update naming, readme, and added a 256x256 icon file.
129
 
7
 
8
  Requires at least: 4.0.1
9
  Tested up to: 4.5.1
10
+ Stable tag: 1.4
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
+ Drift allows you to talk to your website visitors and customers in real-time, from anywhere.
 
 
15
 
16
  == Description ==
17
 
66
  **Key Features**
67
 
68
  * Talk to your website visitors and customers in real-time, right from Slack.
69
+ * Integrates seamlessly with HubSpot, Marketo, Mailchimp, Zapier, Intercom, Salesforce, Segment and 100s more.
70
  * If a `$current_user` is present, we use their email as an identifier in the widget.
71
  Otherwise the widget operates in [aquisition mode](https://www.drift.com/live-chat) and prompts anonymous users for their email address. This allows you to talk with anonymous visitors on your WordPress site.
72
 
76
  1. Chat window - minimized
77
  2. Chat widget - maximized
78
  3. Wordpress settings
79
+ 4. Announcement messages
80
+ 5. Overlay messages
81
 
82
  == Frequently Asked Questions ==
83
 
123
 
124
  == Changelog ==
125
 
126
+ = 1.4 =
127
+ * Clean up code.
128
+ * Better checking of user capabilities.
129
+
130
  = 1.3 =
131
  * Update naming, readme, and added a 256x256 icon file.
132
 
screenshot-5.png ADDED
Binary file