Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 1.5.3

Version Description

Release date: 17 September 2018

Fixing a bug in the admin dashboard that was loading scripts outside the Buttonizer admin pages.

By the way, you may like to know we're working very hard on Buttonizer 2.0, big improvements are coming, stay tuned! :)

Bug fix for Buttonizer PRO users: We have fixed the timezone for some users that are using the opening hours, sometimes Buttonizer took the wrong timezone to show the buttons even when you set it up right. It must be correct now. Let us know if you have any more trouble with it!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

Files changed (4) hide show
  1. buttonizer.php +2 -2
  2. classes/Admin/Admin.php +2 -0
  3. classes/Button.php +5 -2
  4. readme.txt +13 -3
buttonizer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Buttonizer - Smart Floating Action Button
4
  Plugin URI: https://buttonizer.pro
5
  Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
- Version: 1.5.2
7
  Author: Buttonizer
8
  Author URI: https://buttonizer.pro
9
  License: GPL2
@@ -34,7 +34,7 @@ define('BUTTONIZER_NAME', 'buttonizer');
34
  define('BUTTONIZER_DIR', dirname(__FILE__));
35
  define('BUTTONIZER_SLUG', basename(BUTTONIZER_DIR));
36
  define('BUTTONIZER_PLUGIN_DIR', __FILE__ );
37
- define('BUTTONIZER_VERSION','1.5.2');
38
 
39
  # No script kiddies
40
  defined( 'ABSPATH' ) or die('No script kiddies please!');
3
  Plugin Name: Buttonizer - Smart Floating Action Button
4
  Plugin URI: https://buttonizer.pro
5
  Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
+ Version: 1.5.3
7
  Author: Buttonizer
8
  Author URI: https://buttonizer.pro
9
  License: GPL2
34
  define('BUTTONIZER_DIR', dirname(__FILE__));
35
  define('BUTTONIZER_SLUG', basename(BUTTONIZER_DIR));
36
  define('BUTTONIZER_PLUGIN_DIR', __FILE__ );
37
+ define('BUTTONIZER_VERSION','1.5.3');
38
 
39
  # No script kiddies
40
  defined( 'ABSPATH' ) or die('No script kiddies please!');
classes/Admin/Admin.php CHANGED
@@ -118,6 +118,8 @@ class Admin {
118
  * Get media and add scripts/styles that Buttonizer uses
119
  */
120
  public function getPluginScripts() {
 
 
121
  wp_enqueue_media();
122
  wp_enqueue_style(array('wp-color-picker'));
123
  wp_enqueue_script(
118
  * Get media and add scripts/styles that Buttonizer uses
119
  */
120
  public function getPluginScripts() {
121
+ if($_GET["page"] !== "Buttonizer") return;
122
+
123
  wp_enqueue_media();
124
  wp_enqueue_style(array('wp-color-picker'));
125
  wp_enqueue_script(
classes/Button.php CHANGED
@@ -23,6 +23,7 @@ namespace Buttonizer;
23
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
24
  class Button
25
  {
 
26
  // Saved settings
27
  private $aButtons ;
28
  private $pageCategories ;
@@ -73,6 +74,7 @@ class Button
73
  {
74
  // Timezone
75
  // date_default_timezone_set(get_option('timezone_string') != '' ? get_option('timezone_string') : "Europe/Amsterdam");
 
76
  // Get options
77
  $this->aButtons = (array) get_option( 'buttonizer_buttons' );
78
  $this->pageCategories = (array) get_option( 'buttonizer_page_categories' );
@@ -368,8 +370,9 @@ class Button
368
  $bIsOpened = false;
369
  } else {
370
  // Get the time right now
371
- $sCurentHour = date( "G" );
372
- $sCurrentMinute = date( "i" );
 
373
  // Get the opening and closing time from today.
374
  $hourOpening = explode( ':', ( isset( $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_opened_from'] ) ? $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_opened_from'] : '10:00' ) );
375
  $hourClosing = explode( ':', ( isset( $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_closing_on'] ) ? $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_closing_on'] : '17:00' ) );
23
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
24
  class Button
25
  {
26
+ private $timezone ;
27
  // Saved settings
28
  private $aButtons ;
29
  private $pageCategories ;
74
  {
75
  // Timezone
76
  // date_default_timezone_set(get_option('timezone_string') != '' ? get_option('timezone_string') : "Europe/Amsterdam");
77
+ $this->timezone = new \DateTimeZone( ( get_option( 'timezone_string' ) != '' ? get_option( 'timezone_string' ) : "Europe/Amsterdam" ) );
78
  // Get options
79
  $this->aButtons = (array) get_option( 'buttonizer_buttons' );
80
  $this->pageCategories = (array) get_option( 'buttonizer_page_categories' );
370
  $bIsOpened = false;
371
  } else {
372
  // Get the time right now
373
+ $currentTime = new \DateTime( "G", $this->timezone );
374
+ $sCurentHour = $currentTime->format( "G" );
375
+ $sCurrentMinute = $currentTime->format( "i" );
376
  // Get the opening and closing time from today.
377
  $hourOpening = explode( ':', ( isset( $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_opened_from'] ) ? $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_opened_from'] : '10:00' ) );
378
  $hourClosing = explode( ':', ( isset( $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_closing_on'] ) ? $this->aOpeningData['buttonizer_' . $sDayOfWeek . '_closing_on'] : '17:00' ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Buy plugin: https://buttonizer.pro
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.2
6
  Tested up to: 4.9.4
7
- Stable tag: 1.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -28,13 +28,13 @@ Download the Buttonizer for free and make your first Smart Conversion Button in
28
  * **Styling options** - Style your button by choosing your color with an easy color-picker;
29
  * **Positioning** - Easily choose the position of your button;
30
  * **Font-Awesome** - Choose your favorite icon with our icon picker;
31
- * **Mobile and/or dekstop** - Show your Floating Action Buttons on mobile and/or desktop;
32
  * **Event tracking Google Analytics** - Each Button is automatically tracked in Google Analytics so you can track how your visitors interact with your buttons are;
33
  * **Social Sharing** - Add Social Sharing Buttons;
 
34
  * PRO: **Opening hours** - Choose to show your button only between, or outside opening hours;
35
  * PRO: **Page categories & Rules** - Add page categories so you can choose to show buttons on specific pages;
36
  * PRO: **Webvisitor behaviour** - Let your buttons show on your webvisitors behaviour (show you button on scroll depth of session duration);
37
- * **Button animations** - Give your Action Buttons small animations to convince web visitors to click on it;
38
  * PRO: **Add your own** - Image, logo or moving icon to your button.
39
 
40
  Download the free version or go premium and get to add an infinite number of buttons and page rules.
@@ -121,6 +121,16 @@ And the beauty of all: All actions are hidden in one button. The moment a visito
121
  In fact the Buttonizer is an addiction to use. You're website visitors will interact as never before.
122
 
123
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
124
  = 1.5.1 =
125
  Release date: 22 April 2018
126
 
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.2
6
  Tested up to: 4.9.4
7
+ Stable tag: 1.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
28
  * **Styling options** - Style your button by choosing your color with an easy color-picker;
29
  * **Positioning** - Easily choose the position of your button;
30
  * **Font-Awesome** - Choose your favorite icon with our icon picker;
31
+ * **Mobile and/or desktop** - Show your Floating Action Buttons on mobile and/or desktop;
32
  * **Event tracking Google Analytics** - Each Button is automatically tracked in Google Analytics so you can track how your visitors interact with your buttons are;
33
  * **Social Sharing** - Add Social Sharing Buttons;
34
+ * **Button animations** - Give your Action Buttons small animations to convince web visitors to click on it;
35
  * PRO: **Opening hours** - Choose to show your button only between, or outside opening hours;
36
  * PRO: **Page categories & Rules** - Add page categories so you can choose to show buttons on specific pages;
37
  * PRO: **Webvisitor behaviour** - Let your buttons show on your webvisitors behaviour (show you button on scroll depth of session duration);
 
38
  * PRO: **Add your own** - Image, logo or moving icon to your button.
39
 
40
  Download the free version or go premium and get to add an infinite number of buttons and page rules.
121
  In fact the Buttonizer is an addiction to use. You're website visitors will interact as never before.
122
 
123
  == Changelog ==
124
+ = 1.5.3 =
125
+ Release date: 17 September 2018
126
+
127
+ Fixing a bug in the admin dashboard that was loading scripts outside the Buttonizer admin pages.
128
+
129
+ By the way, you may like to know we're working very hard on Buttonizer 2.0, big improvements are coming, stay tuned! :)
130
+
131
+ Bug fix for Buttonizer PRO users:
132
+ We have fixed the timezone for some users that are using the opening hours, sometimes Buttonizer took the wrong timezone to show the buttons even when you set it up right. It must be correct now. Let us know if you have any more trouble with it!
133
+
134
  = 1.5.1 =
135
  Release date: 22 April 2018
136