Drift - Version 1.8.1

Version Description

  • Cleanup
  • Added support for Drift Identify
Download this release

Release Info

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

Code changes from version 1.8.2 to 1.8.1

Files changed (4) hide show
  1. drift.php +1 -1
  2. includes/admin.php +9 -0
  3. includes/embed.php +5 -3
  4. readme.txt +1 -5
drift.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
- * Version: 1.8.2
5
  * Description: Adds 100% free live chat & targeted messages to your website. Designed for internet businesses like yours to increase sales, conversions and better support your customers.
6
  * Author: Drift
7
  * Author URI: https://www.drift.com/?ref=wordpress
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
+ * Version: 1.8.1
5
  * Description: Adds 100% free live chat & targeted messages to your website. Designed for internet businesses like yours to increase sales, conversions and better support your customers.
6
  * Author: Drift
7
  * Author URI: https://www.drift.com/?ref=wordpress
includes/admin.php CHANGED
@@ -13,6 +13,13 @@ function drift_options_page()
13
  wp_cache_flush();
14
  }
15
 
 
 
 
 
 
 
 
16
  ?>
17
  <div class="wrap">
18
  <form name="Drift-form" action="options.php" method="post" enctype="multipart/form-data">
@@ -48,6 +55,8 @@ function drift_options_page()
48
  </td>
49
  </tr>
50
  </table>
 
 
51
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
52
  <tr>
53
  <th valign="top" style="padding-top: 10px;">
13
  wp_cache_flush();
14
  }
15
 
16
+ // Check to see if Drift identify is checked
17
+ $drift_identify = false;
18
+ if ( esc_attr( $options['drift_identify'] ) == "on" ) {
19
+ $drift_identify = true;
20
+ wp_cache_flush();
21
+ }
22
+
23
  ?>
24
  <div class="wrap">
25
  <form name="Drift-form" action="options.php" method="post" enctype="multipart/form-data">
55
  </td>
56
  </tr>
57
  </table>
58
+ <label for="drift_identify">Drift Identify: &nbsp;</label>
59
+ <input type="checkbox" name="Drift_settings[drift_identify]" <?php if($drift_identify) { echo " checked='checked'"; } ?> />
60
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
61
  <tr>
62
  <th valign="top" style="padding-top: 10px;">
includes/embed.php CHANGED
@@ -51,7 +51,7 @@ function add_drift()
51
  if ( esc_attr( $options['drift_enabled'] ) == "on" )
52
  {
53
  $drift_tag = $options['drift_widget_code'];
54
-
55
  // Insert tracker code
56
  if ( '' != $drift_tag )
57
  {
@@ -59,8 +59,10 @@ function add_drift()
59
  echo $drift_tag;
60
  echo"<!-- end: Drift Code. -->\n";
61
 
62
- // Optional Drift Identify call
63
- get_drift_identify();
 
 
64
 
65
  }
66
  }
51
  if ( esc_attr( $options['drift_enabled'] ) == "on" )
52
  {
53
  $drift_tag = $options['drift_widget_code'];
54
+ var_dump($options);
55
  // Insert tracker code
56
  if ( '' != $drift_tag )
57
  {
59
  echo $drift_tag;
60
  echo"<!-- end: Drift Code. -->\n";
61
 
62
+ // Optional
63
+ if ( esc_attr( $options['drift_identify'] ) == "on" ){
64
+ get_drift_identify();
65
+ }
66
 
67
  }
68
  }
readme.txt CHANGED
@@ -7,7 +7,7 @@ Drift enables you to chat with your website visitors, increase sales and collect
7
 
8
  Requires at least: 3.4
9
  Tested up to: 4.6.1
10
- Stable tag: 1.8.2
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -123,10 +123,6 @@ Step-by-step Guide:
123
 
124
  == Changelog ==
125
 
126
- = 1.8.2 =
127
- * Cleanup
128
- * Rolled back Drift identify feature after it introduced a bug
129
-
130
  = 1.8.1 =
131
  * Cleanup
132
  * Added support for Drift Identify
7
 
8
  Requires at least: 3.4
9
  Tested up to: 4.6.1
10
+ Stable tag: 1.8.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
123
 
124
  == Changelog ==
125
 
 
 
 
 
126
  = 1.8.1 =
127
  * Cleanup
128
  * Added support for Drift Identify