Drift - Version 1.8

Version Description

Download this release

Release Info

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

Code changes from version 1.7.1 to 1.8

Files changed (4) hide show
  1. drift.php +1 -1
  2. includes/admin.php +10 -0
  3. includes/embed.php +4 -1
  4. readme.txt +1 -1
drift.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
- * Version: 1.7.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
1
  <?php
2
  /*
3
  * Plugin Name: Drift
4
+ * Version: 1.8
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
@@ -5,6 +5,7 @@ function drift_options_page()
5
  {
6
  // Get options
7
  $options = get_option('Drift_settings');
 
8
 
9
  // Check to see if Drift is enabled
10
  $drift_activated = false;
@@ -13,6 +14,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 +56,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;">
5
  {
6
  // Get options
7
  $options = get_option('Drift_settings');
8
+ var_dump( esc_attr( $options['drift_identify'] ) );
9
 
10
  // Check to see if Drift is enabled
11
  $drift_activated = false;
14
  wp_cache_flush();
15
  }
16
 
17
+ // Check to see if Drift is enabled
18
+ $drift_identify = false;
19
+ if ( esc_attr( $options['drift_identify'] ) == "on" ) {
20
+ $drift_identify = true;
21
+ wp_cache_flush();
22
+ }
23
+
24
  ?>
25
  <div class="wrap">
26
  <form name="Drift-form" action="options.php" method="post" enctype="multipart/form-data">
56
  </td>
57
  </tr>
58
  </table>
59
+ <label for="drift_identify">Drift Identify:</label>
60
+ <input type="checkbox" name="Drift_settings[drift_identify]" <?php if($drift_identify) { echo " checked='checked'"; } ?> />
61
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
62
  <tr>
63
  <th valign="top" style="padding-top: 10px;">
includes/embed.php CHANGED
@@ -60,7 +60,10 @@ function add_drift()
60
  echo"<!-- end: Drift Code. -->\n";
61
 
62
  // Optional
63
- get_drift_identify();
 
 
 
64
  }
65
  }
66
  }
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
  }
69
  }
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.7.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
7
 
8
  Requires at least: 3.4
9
  Tested up to: 4.6.1
10
+ Stable tag: 1.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13