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

Version Description

Bug fix: - Wordpress 4.9 fix for changing colors. The window closed when you tried to change colors. It should work now. - When it's sunday, the plugin used the opening data of monday. Fixed.

Removed: - Hide label: You can hide it having no text

Added: - Show label on hover - Custom classes for our pro users

Download this release

Release Info

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

Code changes from version 1.0.10 to 1.1

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.0.10
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.0.10');
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.1
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.1');
38
 
39
  # No script kiddies
40
  defined( 'ABSPATH' ) or die('No script kiddies please!');
classes/admin/Buttons.php CHANGED
@@ -250,20 +250,20 @@ class Buttons
250
 
251
  <tr class="settings-row">
252
  <td>
253
- <i class="fa fa-tag setting-icon"></i> Hide label
254
 
255
  <span class="info-class">
256
  <i class="fa fa-info-circle"></i>
257
  <span>
258
- This is the label what the guest on your website will see. Something like 'Contact me!', or 'Like us on Facebook'
259
  </span>
260
  </span>
261
  </td>
262
  <td><?php
263
- echo $this->buttonGetHideLabel( $iButtonId ) ;
264
  ?><label for="button_<?php
265
  echo $iButtonId ;
266
- ?>_hide_label"> Yes</label></td>
267
  </tr>
268
 
269
  <tr>
@@ -288,6 +288,22 @@ class Buttons
288
  </tr>
289
  <?php
290
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  </table>
292
  </div>
293
  </div>
@@ -376,11 +392,11 @@ class Buttons
376
  return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_showwhenopened" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
377
  }
378
 
379
- function buttonGetHideLabel( $iButtonId = 0 )
380
  {
381
- $fieldName = 'button_' . $iButtonId . '_hide_label';
382
  $is_selected = ( isset( $this->aSavedData[$fieldName] ) ? $this->aSavedData[$fieldName] : '' );
383
- return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_hidelabel" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
384
  }
385
 
386
  function buttonGetType( $iButtonId = 0 )
@@ -418,6 +434,7 @@ class Buttons
418
  return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_isnewtab" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
419
  }
420
 
 
421
  function buttonColors( $iButtonId = 0 )
422
  {
423
  // Default button colors
@@ -443,5 +460,17 @@ class Buttons
443
  $sColorPalet .= '<a href="javascript:void(0)" id="reset_colors_' . $iButtonId . '" style="' . (( !$bCustomColors ? 'display: none' : '' )) . '" class="button color_default_btn">Back to default</a>';
444
  return $sColorPalet;
445
  }
 
 
 
 
 
 
 
 
 
 
 
 
446
 
447
  }
250
 
251
  <tr class="settings-row">
252
  <td>
253
+ <i class="fa fa-tag setting-icon"></i> Show label on hover
254
 
255
  <span class="info-class">
256
  <i class="fa fa-info-circle"></i>
257
  <span>
258
+ When you hover over the button, the label will be hided until the user hovers the icon.
259
  </span>
260
  </span>
261
  </td>
262
  <td><?php
263
+ echo $this->buttonShowOnHover( $iButtonId ) ;
264
  ?><label for="button_<?php
265
  echo $iButtonId ;
266
+ ?>_show_label_on_hover"> Yes</label></td>
267
  </tr>
268
 
269
  <tr>
288
  </tr>
289
  <?php
290
  ?>
291
+
292
+ <tr>
293
+ <td>&nbsp;</td>
294
+ <td></td>
295
+ </tr>
296
+
297
+ <tr class="settings-row">
298
+ <td>
299
+ <i class="fa fa-css3 setting-icon"></i> Custom CSS class <?php
300
+ echo $this->showPro() ;
301
+ ?>
302
+ </td>
303
+ <td><?php
304
+ echo $this->buttonCustomClass( $iButtonId ) ;
305
+ ?></td>
306
+ </tr>
307
  </table>
308
  </div>
309
  </div>
392
  return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_showwhenopened" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
393
  }
394
 
395
+ function buttonShowOnHover( $iButtonId = 0 )
396
  {
397
+ $fieldName = 'button_' . $iButtonId . '_show_label_on_hover';
398
  $is_selected = ( isset( $this->aSavedData[$fieldName] ) ? $this->aSavedData[$fieldName] : '' );
399
+ return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_showlabelonhover" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
400
  }
401
 
402
  function buttonGetType( $iButtonId = 0 )
434
  return '<input type="checkbox" name="buttonizer_buttons[' . $fieldName . ']" id="' . $fieldName . '" value="1" class="button_isnewtab" ' . (( $is_selected == '1' ? 'checked="checked"' : '' )) . ' />';
435
  }
436
 
437
+ // Button colors
438
  function buttonColors( $iButtonId = 0 )
439
  {
440
  // Default button colors
460
  $sColorPalet .= '<a href="javascript:void(0)" id="reset_colors_' . $iButtonId . '" style="' . (( !$bCustomColors ? 'display: none' : '' )) . '" class="button color_default_btn">Back to default</a>';
461
  return $sColorPalet;
462
  }
463
+
464
+ // Button custom class
465
+ public function buttonCustomClass( $iButtonId )
466
+ {
467
+ return '<input type="text" class="buttonizer-click-to-pro" value="Use PRO for custom classes" readonly>';
468
+ }
469
+
470
+ // Show the pro message
471
+ public function showPro()
472
+ {
473
+ return '<span class="buttonizer-pro-feature buttonizer-click-to-pro">PRO</span>';
474
+ }
475
 
476
  }
classes/default/main.php CHANGED
@@ -176,6 +176,12 @@ class Button
176
  }
177
 
178
  $sButtonClasses = 'is_extra bt_' . $this->iAmountOfButtons;
 
 
 
 
 
 
179
  // Custom colors?
180
  if ( isset( $this->aButtons['button_' . $bNmbr . '_using_custom_colors'] ) && $this->aButtons['button_' . $bNmbr . '_using_custom_colors'] == '1' ) {
181
  $this->sButtonCss .= '
@@ -219,6 +225,12 @@ class Button
219
  return '';
220
  }
221
 
 
 
 
 
 
 
222
  // Is the store opened right now?
223
  private function isOpened()
224
  {
@@ -273,7 +285,7 @@ class Button
273
  return 'saturday';
274
  break;
275
  case '7':
276
- return 'monday';
277
  break;
278
  default:
279
  return 'sunday';
176
  }
177
 
178
  $sButtonClasses = 'is_extra bt_' . $this->iAmountOfButtons;
179
+ // Show label on hover
180
+ if ( isset( $this->aButtons['button_' . $bNmbr . '_show_label_on_hover'] ) && $this->aButtons['button_' . $bNmbr . '_show_label_on_hover'] == '1' ) {
181
+ $sButtonClasses .= ' show_on_hover';
182
+ }
183
+ // Custom classes
184
+ $sButtonClasses .= ' ' . $this->getCustomClass( $bNmbr );
185
  // Custom colors?
186
  if ( isset( $this->aButtons['button_' . $bNmbr . '_using_custom_colors'] ) && $this->aButtons['button_' . $bNmbr . '_using_custom_colors'] == '1' ) {
187
  $this->sButtonCss .= '
225
  return '';
226
  }
227
 
228
+ // Custom class
229
+ private function getCustomClass( $iButtonId )
230
+ {
231
+ return '';
232
+ }
233
+
234
  // Is the store opened right now?
235
  private function isOpened()
236
  {
285
  return 'saturday';
286
  break;
287
  case '7':
288
+ return 'sunday';
289
  break;
290
  default:
291
  return 'sunday';
css/buttonizer.css CHANGED
@@ -274,14 +274,6 @@
274
  right: 0px;
275
  }
276
 
277
- .buttonizer-button[button-animation="circle"] .buttonizer_inner a.is_extra .text {
278
- opacity: 0;
279
- }
280
-
281
- .buttonizer-button[button-animation="circle"] .buttonizer_inner a.is_extra:hover .text {
282
- opacity: 1;
283
- }
284
-
285
  .buttonizer-button[button-animation="circle"] .buttonizer_inner.opened .bt_0 {
286
  opacity: 1;
287
  top: -49px;
@@ -348,14 +340,23 @@
348
  transition-delay: 300ms;
349
  }
350
 
 
 
 
 
 
 
 
351
  .buttonizer-button.show_labels_on_hover a > .text,
352
- .buttonizer-button.show_labels_on_hover .buttonizer_head.onlyone > .text {
 
353
  opacity: 0;
354
  visibility: hidden;
355
  }
356
 
357
  .buttonizer-button.show_labels_on_hover a:hover > .text,
358
- .buttonizer-button.show_labels_on_hover .buttonizer_head.onlyone:hover > .text {
 
359
  opacity: 1;
360
  visibility: visible;
361
  }
274
  right: 0px;
275
  }
276
 
 
 
 
 
 
 
 
 
277
  .buttonizer-button[button-animation="circle"] .buttonizer_inner.opened .bt_0 {
278
  opacity: 1;
279
  top: -49px;
340
  transition-delay: 300ms;
341
  }
342
 
343
+ .buttonizer-button[button-animation="circle"] .buttonizer_inner.opened .share_1 .text,
344
+ .buttonizer-button[button-animation="circle"] .buttonizer_inner.opened .share_2 .text,
345
+ .buttonizer-button[button-animation="circle"] .buttonizer_inner.opened .share_3 .text {
346
+ top: 7px;
347
+ right: 48px;
348
+ }
349
+
350
  .buttonizer-button.show_labels_on_hover a > .text,
351
+ .buttonizer-button.show_labels_on_hover .buttonizer_head.onlyone > .text,
352
+ .buttonizer-button .buttonizer_inner a.show_on_hover .text {
353
  opacity: 0;
354
  visibility: hidden;
355
  }
356
 
357
  .buttonizer-button.show_labels_on_hover a:hover > .text,
358
+ .buttonizer-button.show_labels_on_hover .buttonizer_head.onlyone:hover > .text,
359
+ .buttonizer-button .buttonizer_inner a.show_on_hover:hover .text {
360
  opacity: 1;
361
  visibility: visible;
362
  }
js/buttonizer.js CHANGED
@@ -50,7 +50,7 @@ var buttonizer = {
50
  document.getElementById("buttonizer-sys").className = 'buttonizer_inner';
51
  buttonizer.settings.buttonizerOpened = false;
52
 
53
- if(document.querySelector("#buttonizer-sys .buttonizer_head .text") != null) {
54
  if(document.querySelector("#buttonizer-sys .buttonizer_head .text").hasClass('noremove')) {
55
  document.querySelector("#buttonizer-sys .buttonizer_head .text").remove();
56
  }
50
  document.getElementById("buttonizer-sys").className = 'buttonizer_inner';
51
  buttonizer.settings.buttonizerOpened = false;
52
 
53
+ if(document.querySelector("#buttonizer-sys .buttonizer_head .text") != null && typeof document.querySelector("#buttonizer-sys .buttonizer_head .text").hasClass != 'undefined') {
54
  if(document.querySelector("#buttonizer-sys .buttonizer_head .text").hasClass('noremove')) {
55
  document.querySelector("#buttonizer-sys .buttonizer_head .text").remove();
56
  }
js/dashboard.js CHANGED
@@ -707,11 +707,18 @@ var buttonizer = {
707
  jQuery("label[for='button_"+ -1 +"_show_when_opened']").attr("for", "button_"+ buttonId +"_show_when_opened");
708
 
709
  // Show only on opening hours
710
- jQuery("#btn_row_"+ buttonId + " .button_hidelabel")
711
- .attr("name", buttonizer.settings.wpButtonSaveKey + "[button_"+ buttonId +"_hide_label]")
712
- .attr("id", "button_"+ buttonId +"_hide_label");
713
 
714
- jQuery("label[for='button_"+ -1 +"_hide_label']").attr("for", "button_"+ buttonId +"_hide_label");
 
 
 
 
 
 
 
715
 
716
  /*
717
  * Link fixes
@@ -952,7 +959,7 @@ var buttonizer = {
952
 
953
  jQuery(document).ready(data.afterInit);
954
 
955
- jQuery("#buttonizer-window-"+ currentWindow + " .fs-close, #buttonizer-window-"+ currentWindow + " button").click(function(e) {
956
  e.preventDefault();
957
  jQuery("#buttonizer-window-"+ currentWindow).fadeOut();
958
 
707
  jQuery("label[for='button_"+ -1 +"_show_when_opened']").attr("for", "button_"+ buttonId +"_show_when_opened");
708
 
709
  // Show only on opening hours
710
+ jQuery("#btn_row_"+ buttonId + " .button_showlabelonhover")
711
+ .attr("name", buttonizer.settings.wpButtonSaveKey + "[button_"+ buttonId +"_show_label_on_hover]")
712
+ .attr("id", "button_"+ buttonId +"_show_label_on_hover");
713
 
714
+ jQuery("label[for='button_"+ -1 +"_show_label_on_hover']").attr("for", "button_"+ buttonId +"_show_label_on_hover");
715
+
716
+ // Custom class
717
+ jQuery("#btn_row_"+ buttonId + " .button_custom_class")
718
+ .attr("name", buttonizer.settings.wpButtonSaveKey + "[button_"+ buttonId +"_custom_class]")
719
+ .attr("id", "button_"+ buttonId +"_custom_class");
720
+
721
+ jQuery("label[for='button_"+ -1 +"_custom_class']").attr("for", "button_"+ buttonId +"_custom_class");
722
 
723
  /*
724
  * Link fixes
959
 
960
  jQuery(document).ready(data.afterInit);
961
 
962
+ jQuery("#buttonizer-window-"+ currentWindow + " .fs-close, #buttonizer-window-"+ currentWindow + " .fs-modal-footer button").click(function(e) {
963
  e.preventDefault();
964
  jQuery("#buttonizer-window-"+ currentWindow).fadeOut();
965
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Buttonizer, freemius
3
  Buy plugin: https://buttonizer.pro
4
  Tags: floating menu, action button, call button, floating action button, Social Sharing button
5
  Requires at least: 4.2
6
- Tested up to: 4.9
7
- Stable tag: 1.0.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -116,6 +116,18 @@ And the beauty of all: All actions are hidden in one button. The moment a visito
116
  In fact the Buttonizer is an addiction to use. You&#39;re website visitors will interact as never before.
117
 
118
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
119
  = 1.0.10 =
120
  Important bug fix:
121
  - Multiple people were unable to add a new button. Fixed that!
3
  Buy plugin: https://buttonizer.pro
4
  Tags: floating menu, action button, call button, floating action button, Social Sharing button
5
  Requires at least: 4.2
6
+ Tested up to: 4.9.1
7
+ Stable tag: 1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
116
  In fact the Buttonizer is an addiction to use. You&#39;re website visitors will interact as never before.
117
 
118
  == Changelog ==
119
+ = 1.1 =
120
+ Bug fix:
121
+ - Wordpress 4.9 fix for changing colors. The window closed when you tried to change colors. It should work now.
122
+ - When it's sunday, the plugin used the opening data of monday. Fixed.
123
+
124
+ Removed:
125
+ - Hide label: You can hide it having no text
126
+
127
+ Added:
128
+ - Show label on hover
129
+ - Custom classes for our pro users
130
+
131
  = 1.0.10 =
132
  Important bug fix:
133
  - Multiple people were unable to add a new button. Fixed that!