ShortPixel Image Optimizer - Version 4.15.4

Version Description

Release date: 29th January 2020 * Change the Help beacon to V2. * Language 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted

Download this release

Release Info

Developer ShortPixel
Plugin Icon 128x128 ShortPixel Image Optimizer
Version 4.15.4
Comparing to
See all releases

Code changes from version 4.15.3 to 4.15.4

Files changed (3) hide show
  1. class/external/helpscout.php +46 -12
  2. readme.txt +7 -1
  3. wp-shortpixel.php +2 -2
class/external/helpscout.php CHANGED
@@ -15,12 +15,12 @@ class HelpScout
15
  <style>
16
  .shortpixel-hs-blind {
17
  position: fixed;
18
- bottom: 18px;
19
  right: 0;
20
  z-index: 20003;
21
  background-color: white;
22
  width: 87px;
23
- height: 174px;
24
  border-radius: 20px 0 0 20px;
25
  text-align: right;
26
  padding-right: 15px;
@@ -29,6 +29,9 @@ class HelpScout
29
  color: lightgray;
30
  text-decoration: none;
31
  }
 
 
 
32
  .shortpixel-hs-blind .dashicons-minus {
33
  border: 3px solid;
34
  border-radius: 12px;
@@ -87,25 +90,37 @@ class HelpScout
87
  <i class="dashicons dashicons-dismiss" title="<?php _e('Never display again', 'shortpixel-image-optimiser'); ?>"></i>
88
  </a>
89
  </div>
90
- <div id="shortpixel-hs-button-blind" class="shortpixel-hs-button-blind"></div>
91
  <div id="shortpixel-hs-tools" class="shortpixel-hs-tools">
92
  <a href="javascript:shortpixelToggleHS();" class="shortpixel-hs-tools-docs" title="<?php _e('Search through our online documentation.', 'shortpixel-image-optimiser'); ?>">
93
  <img alt="<?php _e('ShortPixel document icon', 'shortpixel-image-optimiser'); ?>" src="<?php echo( wpSPIO()->plugin_url('res/img/notes-sp.png') );?>" style="margin-bottom: 2px;width: 36px;">
94
  </a>
95
  </div>
96
  <script>
97
- window.shortpixelHSOpen = -1;
98
  function shortpixelToggleHS() {
99
- if(window.shortpixelHSOpen == -1) {
100
- HS.beacon.init();
101
- }
102
  if(window.shortpixelHSOpen == 1) {
103
- HS.beacon.close();
104
- jQuery("#shortpixel-hs-button-blind").css('display', 'none');
 
 
 
 
 
 
105
  window.shortpixelHSOpen = 0;
106
  } else {
107
- HS.beacon.open();
108
- jQuery("#shortpixel-hs-button-blind").css('display', 'block');
 
 
 
 
 
 
109
  window.shortpixelHSOpen = 1;
110
  }
111
  }
@@ -134,6 +149,18 @@ class HelpScout
134
  }
135
  }
136
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
137
  !function(e,o,n){ window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={
138
  color: "#1CBECB",
139
  icon: "question",
@@ -151,7 +178,8 @@ class HelpScout
151
  },t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!0,baseUrl:"//shortpixel.helpscoutdocs.com/"},contact:{enabled:!0,formId:"278a7825-fce0-11e7-b466-0ec85169275a"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");
152
  c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r);
153
  }(document,window.HSCW||{},window.HS||{});
154
-
 
155
  window.HS.beacon.ready(function(){
156
  HS.beacon.identify({
157
  email: "<?php $u = wp_get_current_user(); echo($u->user_email); ?>",
@@ -159,6 +187,12 @@ class HelpScout
159
  });
160
  HS.beacon.suggest( <?php echo( $suggestions ) ?> );
161
  });
 
 
 
 
 
 
162
  </script>
163
  <?php
164
  }
15
  <style>
16
  .shortpixel-hs-blind {
17
  position: fixed;
18
+ bottom: 4px;
19
  right: 0;
20
  z-index: 20003;
21
  background-color: white;
22
  width: 87px;
23
+ height: 188px;
24
  border-radius: 20px 0 0 20px;
25
  text-align: right;
26
  padding-right: 15px;
29
  color: lightgray;
30
  text-decoration: none;
31
  }
32
+ .shortpixel-hs-blind i.dashicons {
33
+ margin-top: -8px;
34
+ }
35
  .shortpixel-hs-blind .dashicons-minus {
36
  border: 3px solid;
37
  border-radius: 12px;
90
  <i class="dashicons dashicons-dismiss" title="<?php _e('Never display again', 'shortpixel-image-optimiser'); ?>"></i>
91
  </a>
92
  </div>
93
+ <!--<div id="shortpixel-hs-button-blind" class="shortpixel-hs-button-blind"></div>-->
94
  <div id="shortpixel-hs-tools" class="shortpixel-hs-tools">
95
  <a href="javascript:shortpixelToggleHS();" class="shortpixel-hs-tools-docs" title="<?php _e('Search through our online documentation.', 'shortpixel-image-optimiser'); ?>">
96
  <img alt="<?php _e('ShortPixel document icon', 'shortpixel-image-optimiser'); ?>" src="<?php echo( wpSPIO()->plugin_url('res/img/notes-sp.png') );?>" style="margin-bottom: 2px;width: 36px;">
97
  </a>
98
  </div>
99
  <script>
100
+ window.shortpixelHSOpen = 0;//-1;
101
  function shortpixelToggleHS() {
102
+ //if(window.shortpixelHSOpen == -1) {
103
+ // HS.beacon.init();
104
+ //}
105
  if(window.shortpixelHSOpen == 1) {
106
+ //HS.beacon.close();
107
+ window.Beacon('close');
108
+ //jQuery("#shortpixel-hs-button-blind").css('display', 'none');
109
+ jQuery('#botbutton').addClass('show');
110
+ jQuery('div.shortpixel-hs-tools').css('bottom', '116px');
111
+ jQuery('div.shortpixel-hs-blind').css('height', '188px');
112
+ jQuery('div.shortpixel-hs-blind').css('border-radius', '20px 0 0 20px');
113
+ jQuery('div.shortpixel-hs-blind a').css('display', 'inline');
114
  window.shortpixelHSOpen = 0;
115
  } else {
116
+ //HS.beacon.open();
117
+ window.Beacon('open');
118
+ //jQuery("#shortpixel-hs-button-blind").css('display', 'block');
119
+ jQuery('#botbutton').removeClass('show');
120
+ jQuery('div.shortpixel-hs-tools').css('bottom', '40px');
121
+ jQuery('div.shortpixel-hs-blind').css('height', '93px');
122
+ jQuery('div.shortpixel-hs-blind').css('border-radius', '0 0 0 20px');
123
+ jQuery('div.shortpixel-hs-blind a').css('display', 'none');
124
  window.shortpixelHSOpen = 1;
125
  }
126
  }
149
  }
150
  }
151
  ?>
152
+ !function(e,t,n){
153
+ function a(){
154
+ var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)
155
+ }
156
+ if(e.Beacon=n=function(t,n,a){
157
+ e.Beacon.readyQueue.push({method:t,options:n,data:a})
158
+ },n.readyQueue=[],"complete"===t.readyState) return a();
159
+ e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)
160
+ }(window,document,window.Beacon||function(){});
161
+ window.Beacon('init', 'e41d21e0-f3c4-4399-bcfe-358e59a860de');
162
+
163
+ /*
164
  !function(e,o,n){ window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={
165
  color: "#1CBECB",
166
  icon: "question",
178
  },t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!0,baseUrl:"//shortpixel.helpscoutdocs.com/"},contact:{enabled:!0,formId:"278a7825-fce0-11e7-b466-0ec85169275a"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");
179
  c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r);
180
  }(document,window.HSCW||{},window.HS||{});
181
+ */
182
+ /*
183
  window.HS.beacon.ready(function(){
184
  HS.beacon.identify({
185
  email: "<?php $u = wp_get_current_user(); echo($u->user_email); ?>",
187
  });
188
  HS.beacon.suggest( <?php echo( $suggestions ) ?> );
189
  });
190
+ */
191
+ window.Beacon('identify', {
192
+ email: "<?php $u = wp_get_current_user(); echo($u->user_email); ?>",
193
+ apiKey: "<?php echo($apiKey);?>"
194
+ });
195
+ window.Beacon('suggest', <?php echo( $suggestions ) ?>);
196
  </script>
197
  <?php
198
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: compressor, image, compression, optimize, image optimizer, image optimiser
4
  Requires at least: 3.2.0
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
- Stable tag: 4.15.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -261,6 +261,12 @@ define("SHORTPIXEL_EXPERIMENTAL_SECURICACHE", true); // adds timestamps to URLS
261
 
262
  == Changelog ==
263
 
 
 
 
 
 
 
264
  = 4.15.3 =
265
 
266
  Release date: 20th December 2019
4
  Requires at least: 3.2.0
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
+ Stable tag: 4.15.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
261
 
262
  == Changelog ==
263
 
264
+ = 4.15.4 =
265
+
266
+ Release date: 29th January 2020
267
+ * Change the Help beacon to V2.
268
+ * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
269
+
270
  = 4.15.3 =
271
 
272
  Release date: 20th December 2019
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel-settings" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
- * Version: 4.15.3
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
@@ -19,7 +19,7 @@ define('SHORTPIXEL_PLUGIN_DIR', __DIR__);
19
 
20
  //define('SHORTPIXEL_AFFILIATE_CODE', '');
21
 
22
- define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.15.3");
23
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
24
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
25
  define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel-settings" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
+ * Version: 4.15.4
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
19
 
20
  //define('SHORTPIXEL_AFFILIATE_CODE', '');
21
 
22
+ define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.15.4");
23
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
24
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
25
  define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');