Version Description
= * Fixed an upgrade regression which forced the position to be FULL in certain scenarios * Removed HTML element that could overlay the label for certain buttons
Download this release
Release Info
Developer | jasperroel |
Plugin | Call Now Button |
Version | 0.4.5 |
Comparing to | |
See all releases |
Code changes from version 0.4.4 to 0.4.5
- call-now-button.php +2 -2
- readme.txt +5 -1
- src/admin/partials/admin-functions.php +4 -0
- src/renderers/classic/wp_foot.php +0 -2
- src/renderers/classic/wp_head.php +1 -1
- src/renderers/modern/wp_head.php +1 -1
- src/utils/utils.php +1 -5
call-now-button.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: https://callnowbutton.com
|
5 |
Description: Mobile visitors will see a <strong>Call Now Button</strong> on your website. Easy to use but flexible to meet more demanding requirements. Change placement and color, hide on specific pages, track how many people click them or conversions of your Google Ads campaigns. It's all optional but possible.
|
6 |
-
Version: 0.4.
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
GitHub Plugin URI: https://github.com/callnowbutton/wp-plugin
|
@@ -26,7 +26,7 @@ License: GPL2
|
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
-
define('CNB_VERSION', '0.4.
|
30 |
define('CNB_NAME', 'Call Now Button');
|
31 |
define('CNB_BASENAME', plugin_basename(__FILE__));
|
32 |
define('CNB_BASEFOLDER', plugin_basename(dirname(__FILE__)));
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: https://callnowbutton.com
|
5 |
Description: Mobile visitors will see a <strong>Call Now Button</strong> on your website. Easy to use but flexible to meet more demanding requirements. Change placement and color, hide on specific pages, track how many people click them or conversions of your Google Ads campaigns. It's all optional but possible.
|
6 |
+
Version: 0.4.5
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
GitHub Plugin URI: https://github.com/callnowbutton/wp-plugin
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
+
define('CNB_VERSION', '0.4.5');
|
30 |
define('CNB_NAME', 'Call Now Button');
|
31 |
define('CNB_BASENAME', plugin_basename(__FILE__));
|
32 |
define('CNB_BASEFOLDER', plugin_basename(dirname(__FILE__)));
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: call button, click to call, convert, call now button, contact button
|
|
5 |
Requires at least: 3.9
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 5.8
|
8 |
-
Stable tag: 0.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -110,6 +110,10 @@ This is coming before the end of this year. We're currently looking for testers
|
|
110 |
|
111 |
|
112 |
== Changelog ==
|
|
|
|
|
|
|
|
|
113 |
= 0.4.4 =
|
114 |
* UI improvements
|
115 |
|
5 |
Requires at least: 3.9
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 0.4.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
110 |
|
111 |
|
112 |
== Changelog ==
|
113 |
+
= 0.4.5 =
|
114 |
+
* Fixed an upgrade regression which forced the position to be FULL in certain scenarios
|
115 |
+
* Removed HTML element that could overlay the label for certain buttons
|
116 |
+
|
117 |
= 0.4.4 =
|
118 |
* UI improvements
|
119 |
|
src/admin/partials/admin-functions.php
CHANGED
@@ -10,6 +10,10 @@ function cnb_is_active_tab($tab_name) {
|
|
10 |
|
11 |
function cnb_get_changelog() {
|
12 |
return array(
|
|
|
|
|
|
|
|
|
13 |
'0.4.4' => 'Small UI improvements',
|
14 |
'0.4.3' => 'Critical fix',
|
15 |
'0.4.2' => 'Button styling adjustments, security improvements',
|
10 |
|
11 |
function cnb_get_changelog() {
|
12 |
return array(
|
13 |
+
'0.4.5' => array(
|
14 |
+
'Fixed an upgrade regression which forced the position to be FULL in certain scenarios',
|
15 |
+
'Removed HTML element that could overlay the label for certain buttons'
|
16 |
+
),
|
17 |
'0.4.4' => 'Small UI improvements',
|
18 |
'0.4.3' => 'Critical fix',
|
19 |
'0.4.2' => 'Button styling adjustments, security improvements',
|
src/renderers/classic/wp_foot.php
CHANGED
@@ -58,8 +58,6 @@ function cnb_footer() {
|
|
58 |
} else {
|
59 |
$cnb_button_text = '<span>' . str_replace(' ', ' ', esc_html($cnb_options['text'])) . '</span>';
|
60 |
}
|
61 |
-
$cnb_button_text .= '<span class="cnb-number cnb-hidden">'.esc_html($cnb_options['number']).'</span>';
|
62 |
-
|
63 |
|
64 |
$cnb_call_link = '<a href="tel:' . esc_attr($cnb_options['number']) . '" id="callnowbutton" ' . $cnb_onclick_events . '>' . $cnb_button_text . '</a>';
|
65 |
|
58 |
} else {
|
59 |
$cnb_button_text = '<span>' . str_replace(' ', ' ', esc_html($cnb_options['text'])) . '</span>';
|
60 |
}
|
|
|
|
|
61 |
|
62 |
$cnb_call_link = '<a href="tel:' . esc_attr($cnb_options['number']) . '" id="callnowbutton" ' . $cnb_onclick_events . '>' . $cnb_button_text . '</a>';
|
63 |
|
src/renderers/classic/wp_head.php
CHANGED
@@ -15,7 +15,7 @@ function cnb_head() {
|
|
15 |
$cnb_button_appearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;";
|
16 |
}
|
17 |
|
18 |
-
$cnb_button_css .= "<style
|
19 |
$cnb_button_appearance .
|
20 |
" height:80px; position:fixed; bottom:-20px; border-top:2px solid " .
|
21 |
changeColor(esc_html($cnb_options['color']), 'lighter') .
|
15 |
$cnb_button_appearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;";
|
16 |
}
|
17 |
|
18 |
+
$cnb_button_css .= "<style>#callnowbutton, #callnowbutton span {display:none;} @media screen and (max-width:650px){#callnowbutton .NoButtonText{display:none;}#callnowbutton {display:block; " .
|
19 |
$cnb_button_appearance .
|
20 |
" height:80px; position:fixed; bottom:-20px; border-top:2px solid " .
|
21 |
changeColor(esc_html($cnb_options['color']), 'lighter') .
|
src/renderers/modern/wp_head.php
CHANGED
@@ -48,7 +48,7 @@ function cnb_head() {
|
|
48 |
}
|
49 |
|
50 |
$cnb_button_css = $cnb_button_css . "<style>";
|
51 |
-
$cnb_button_css .= "
|
52 |
$cnb_button_css .= $cnb_button_appearance;
|
53 |
if ($cnb_is_full_width) {
|
54 |
$cnb_button_css .= "background:" . esc_html($cnb_options['color']) . ";display: flex; justify-content: center; align-items: center;text-shadow: 0 1px 0px rgba(0, 0, 0, 0.18);";
|
48 |
}
|
49 |
|
50 |
$cnb_button_css = $cnb_button_css . "<style>";
|
51 |
+
$cnb_button_css .= "#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton {display:block; position:fixed; text-decoration:none; z-index:" . zindex($cnb_options['z-index']) . ";";
|
52 |
$cnb_button_css .= $cnb_button_appearance;
|
53 |
if ($cnb_is_full_width) {
|
54 |
$cnb_button_css .= "background:" . esc_html($cnb_options['color']) . ";display: flex; justify-content: center; align-items: center;text-shadow: 0 1px 0px rgba(0, 0, 0, 0.18);";
|
src/utils/utils.php
CHANGED
@@ -79,11 +79,7 @@ function cnb_update_options() {
|
|
79 |
$cnb_options['text'] = isset($cnb_options['text']) ? $cnb_options['text'] : $cnb_defaults['text'];
|
80 |
$cnb_options['color'] = !empty($cnb_options['color']) ? $cnb_options['color'] : $cnb_defaults['color'];
|
81 |
$cnb_options['iconcolor'] = isset($cnb_options['iconcolor']) ? $cnb_options['iconcolor'] : $cnb_defaults['iconcolor'];
|
82 |
-
$cnb_options['appearance'] = $cnb_options['
|
83 |
-
? 'full'
|
84 |
-
: (!empty($cnb_options['appearance'])
|
85 |
-
? $cnb_options['appearance']
|
86 |
-
: $cnb_defaults['appearance']);
|
87 |
$cnb_options['hideIcon'] = isset($cnb_options['hideIcon'])
|
88 |
? $cnb_options['hideIcon'] == 1 ? 1 : 0
|
89 |
: $cnb_defaults['hideIcon'];
|
79 |
$cnb_options['text'] = isset($cnb_options['text']) ? $cnb_options['text'] : $cnb_defaults['text'];
|
80 |
$cnb_options['color'] = !empty($cnb_options['color']) ? $cnb_options['color'] : $cnb_defaults['color'];
|
81 |
$cnb_options['iconcolor'] = isset($cnb_options['iconcolor']) ? $cnb_options['iconcolor'] : $cnb_defaults['iconcolor'];
|
82 |
+
$cnb_options['appearance'] = !empty($cnb_options['appearance'] ? $cnb_options['appearance']: $cnb_defaults['appearance']);
|
|
|
|
|
|
|
|
|
83 |
$cnb_options['hideIcon'] = isset($cnb_options['hideIcon'])
|
84 |
? $cnb_options['hideIcon'] == 1 ? 1 : 0
|
85 |
: $cnb_defaults['hideIcon'];
|