Version Description
Important bug fix: - Multiple people were unable to add a new button. Fixed that! - Fixed another bug - Removed a unused function causing warning
Download this release
Release Info
Developer | buttonizer |
Plugin | Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- buttonizer.php +7 -4
- classes/admin/Buttons.php +3 -3
- classes/admin/IconManager.php +2 -3
- classes/admin/InitializeAdmin.php +0 -1
- js/dashboard.js +5 -5
- readme.txt +8 -2
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.
|
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.
|
38 |
|
39 |
# No script kiddies
|
40 |
defined( 'ABSPATH' ) or die('No script kiddies please!');
|
@@ -114,8 +114,8 @@ else
|
|
114 |
}
|
115 |
|
116 |
/* LAST FEW FUNCTIONS */
|
117 |
-
if(!function_exists("
|
118 |
-
function
|
119 |
$message,
|
120 |
$user_first_name,
|
121 |
$plugin_title,
|
@@ -127,6 +127,7 @@ if(!function_exists("buttonizer_custom_connect_message_on_update")) {
|
|
127 |
__( 'Hey %1$s' ) . ',<br>' .
|
128 |
'<br />' .
|
129 |
__( 'Click on Allow & Continue to start Buttonizing your website :)! Create Floating Action Buttons & Floating Menu\'s. Decide on a number of click actions like start chatting with Whatsapp, click-to-call, open a URL and more.') . '<br />' .
|
|
|
130 |
__('Never miss an important update -- opt-in to our security and feature updates notifications.') . '<br />' .
|
131 |
'<br />' .
|
132 |
__('See you on the other side.')
|
@@ -138,6 +139,8 @@ if(!function_exists("buttonizer_custom_connect_message_on_update")) {
|
|
138 |
$freemius_link
|
139 |
);
|
140 |
}
|
|
|
|
|
141 |
}
|
142 |
|
143 |
$oButtonizer->get()->add_action('after_uninstall', 'buttonizer_uninstall_cleanup');
|
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 |
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!');
|
114 |
}
|
115 |
|
116 |
/* LAST FEW FUNCTIONS */
|
117 |
+
if(!function_exists("buttonizer_custom_connect_message")) {
|
118 |
+
function buttonizer_custom_connect_message(
|
119 |
$message,
|
120 |
$user_first_name,
|
121 |
$plugin_title,
|
127 |
__( 'Hey %1$s' ) . ',<br>' .
|
128 |
'<br />' .
|
129 |
__( 'Click on Allow & Continue to start Buttonizing your website :)! Create Floating Action Buttons & Floating Menu\'s. Decide on a number of click actions like start chatting with Whatsapp, click-to-call, open a URL and more.') . '<br />' .
|
130 |
+
'<br />' .
|
131 |
__('Never miss an important update -- opt-in to our security and feature updates notifications.') . '<br />' .
|
132 |
'<br />' .
|
133 |
__('See you on the other side.')
|
139 |
$freemius_link
|
140 |
);
|
141 |
}
|
142 |
+
|
143 |
+
$oButtonizer->get()->add_filter('connect_message', 'buttonizer_custom_connect_message', 10, 6);
|
144 |
}
|
145 |
|
146 |
$oButtonizer->get()->add_action('after_uninstall', 'buttonizer_uninstall_cleanup');
|
classes/admin/Buttons.php
CHANGED
@@ -421,9 +421,9 @@ class Buttons
|
|
421 |
function buttonColors( $iButtonId = 0 )
|
422 |
{
|
423 |
// Default button colors
|
424 |
-
$sDefaultColor1 = $this->aSystemSettings['button_unpushed'];
|
425 |
-
$sDefaultColor2 = $this->aSystemSettings['button_pushed'];
|
426 |
-
$sDefaultColor3 = $this->aSystemSettings['icon_color'];
|
427 |
// Using custom colors?
|
428 |
$bCustomColors = ( isset( $this->aSavedData['button_' . $iButtonId . '_using_custom_colors'] ) && $this->aSavedData['button_' . $iButtonId . '_using_custom_colors'] == '1' ? true : false );
|
429 |
// Get button colors
|
421 |
function buttonColors( $iButtonId = 0 )
|
422 |
{
|
423 |
// Default button colors
|
424 |
+
$sDefaultColor1 = ( isset( $this->aSystemSettings['button_unpushed'] ) ? $this->aSystemSettings['button_unpushed'] : '#48A4DC' );
|
425 |
+
$sDefaultColor2 = ( isset( $this->aSystemSettings['button_pushed'] ) ? $this->aSystemSettings['button_pushed'] : '#1D9BDB' );
|
426 |
+
$sDefaultColor3 = ( isset( $this->aSystemSettings['icon_color'] ) ? $this->aSystemSettings['icon_color'] : '#fffff' );
|
427 |
// Using custom colors?
|
428 |
$bCustomColors = ( isset( $this->aSavedData['button_' . $iButtonId . '_using_custom_colors'] ) && $this->aSavedData['button_' . $iButtonId . '_using_custom_colors'] == '1' ? true : false );
|
429 |
// Get button colors
|
classes/admin/IconManager.php
CHANGED
@@ -40,13 +40,12 @@ class IconManager
|
|
40 |
|
41 |
private function generator_start( $aData )
|
42 |
{
|
43 |
-
$p = '<div class="icon-or-image" data-type="
|
44 |
-
<div class="icon-placeholder"
|
45 |
<div class="placeholder-choose">
|
46 |
or <span class="buttonizer-click-to-pro" style="color: #0073aa; text-decoration: underline; cursor: pointer;">upload image (PRO ONLY)</span>
|
47 |
</div>';
|
48 |
$p .= '<select name="' . $aData['icon_fieldname'] . '" id="' . $aData['icon_fieldname'] . '" style="font-family: \'FontAwesome\', \'Helvetica\';" class="fa-chooser">';
|
49 |
-
$p .= '<option value="+">+</option>';
|
50 |
foreach ( $this->aFontAwesome as $key => $row ) {
|
51 |
$p .= '<option value="' . $key . '" ' . (( $aData['icon'] == $key ? 'selected="selected"' : '' )) . '>' . $row . " " . $key . '</option>';
|
52 |
}
|
40 |
|
41 |
private function generator_start( $aData )
|
42 |
{
|
43 |
+
$p = '<div class="icon-or-image" data-type="icon">
|
44 |
+
<div class="icon-placeholder">
|
45 |
<div class="placeholder-choose">
|
46 |
or <span class="buttonizer-click-to-pro" style="color: #0073aa; text-decoration: underline; cursor: pointer;">upload image (PRO ONLY)</span>
|
47 |
</div>';
|
48 |
$p .= '<select name="' . $aData['icon_fieldname'] . '" id="' . $aData['icon_fieldname'] . '" style="font-family: \'FontAwesome\', \'Helvetica\';" class="fa-chooser">';
|
|
|
49 |
foreach ( $this->aFontAwesome as $key => $row ) {
|
50 |
$p .= '<option value="' . $key . '" ' . (( $aData['icon'] == $key ? 'selected="selected"' : '' )) . '>' . $row . " " . $key . '</option>';
|
51 |
}
|
classes/admin/InitializeAdmin.php
CHANGED
@@ -170,7 +170,6 @@ class InitializeAdmin {
|
|
170 |
public function plugin_options_tabs() {
|
171 |
$current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'buttonizer_buttons';
|
172 |
|
173 |
-
screen_icon();
|
174 |
|
175 |
echo '<div id="wordpress-plugin-message-spam" style="display: none; visibility: hidden;"><h2 class="nav-tab-wrapper">Sorry, I don\'t want all those plugin-spam from others on my page. This is a fake div where they will be spawned in. Happy life :)</h2></div>';
|
176 |
|
170 |
public function plugin_options_tabs() {
|
171 |
$current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'buttonizer_buttons';
|
172 |
|
|
|
173 |
|
174 |
echo '<div id="wordpress-plugin-message-spam" style="display: none; visibility: hidden;"><h2 class="nav-tab-wrapper">Sorry, I don\'t want all those plugin-spam from others on my page. This is a fake div where they will be spawned in. Happy life :)</h2></div>';
|
175 |
|
js/dashboard.js
CHANGED
@@ -771,10 +771,10 @@ var buttonizer = {
|
|
771 |
newTab.hide();
|
772 |
}
|
773 |
|
774 |
-
if(currentAction == 'url' && currentValueText == '#') {
|
775 |
inputError = true;
|
776 |
rowObj.find(".input_error").html('<p>You only have #... That doesn\'t open anything...</p>');
|
777 |
-
}else if(currentAction == 'url' && !buttonizer.buttonTypeInputController(currentValueText, 'url')) {
|
778 |
inputError = true;
|
779 |
rowObj.find(".input_error").html('<p>This looks like an invalid URL. The button may not work as expected.</p><p> </p><p>Do you miss <b>http://</b> or <b>https://</b>? A space somewhere on the wrong place?</p>');
|
780 |
}
|
@@ -879,10 +879,10 @@ var buttonizer = {
|
|
879 |
|
880 |
// URL
|
881 |
if(action == 'url') {
|
882 |
-
if(
|
883 |
-
return false;
|
884 |
-
} else {
|
885 |
return true;
|
|
|
|
|
886 |
}
|
887 |
}else
|
888 |
|
771 |
newTab.hide();
|
772 |
}
|
773 |
|
774 |
+
if(!isInitializing && currentAction == 'url' && currentValueText == '#') {
|
775 |
inputError = true;
|
776 |
rowObj.find(".input_error").html('<p>You only have #... That doesn\'t open anything...</p>');
|
777 |
+
}else if(!isInitializing && currentAction == 'url' && !buttonizer.buttonTypeInputController(currentValueText, 'url')) {
|
778 |
inputError = true;
|
779 |
rowObj.find(".input_error").html('<p>This looks like an invalid URL. The button may not work as expected.</p><p> </p><p>Do you miss <b>http://</b> or <b>https://</b>? A space somewhere on the wrong place?</p>');
|
780 |
}
|
879 |
|
880 |
// URL
|
881 |
if(action == 'url') {
|
882 |
+
if(websiteUrlPattern.test(inputValue) || inputValue.substring(0, 1) == '#' || inputValue.substring(0, 1) == '/') {
|
|
|
|
|
883 |
return true;
|
884 |
+
} else {
|
885 |
+
return false;
|
886 |
}
|
887 |
}else
|
888 |
|
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.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -116,6 +116,12 @@ 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're website visitors will interact as never before.
|
117 |
|
118 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= 1.0.9 =
|
120 |
A new cool update! We added for our new users a tour (of course, if you are already using Buttonizer, feel free to take the tour!). If someone has some feedback, about the tour, contact us through the plugin! :)
|
121 |
|
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 |
In fact the Buttonizer is an addiction to use. You'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!
|
122 |
+
- Fixed another bug
|
123 |
+
- Removed a unused function causing warning
|
124 |
+
|
125 |
= 1.0.9 =
|
126 |
A new cool update! We added for our new users a tour (of course, if you are already using Buttonizer, feel free to take the tour!). If someone has some feedback, about the tour, contact us through the plugin! :)
|
127 |
|