Version Description
= * Validation fixes * Zoom controls icon size in Full Width buttons
Download this release
Release Info
Developer | jgrietveld |
Plugin | Call Now Button |
Version | 0.3.6 |
Comparing to | |
See all releases |
Code changes from version 0.3.5 to 0.3.6
- call-now-button.php +9 -7
- readme.txt +6 -2
call-now-button.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: http://callnowbutton.com
|
5 |
Description: Mobile visitors will see a call now button fixed at the bottom of your site
|
6 |
-
Version: 0.3.
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
License: GPL2
|
@@ -26,7 +26,7 @@ License: GPL2
|
|
26 |
*/
|
27 |
?>
|
28 |
<?php
|
29 |
-
define('CNB_VERSION','0.3.
|
30 |
define('CNB_BASENAME', plugin_basename( __FILE__ ) );
|
31 |
define('CNB_BASEFOLDER', plugin_basename( dirname( __FILE__ ) ) );
|
32 |
define('CNB_FILENAME', str_replace( CNB_BASEFOLDER.'/', '', CNB_BASENAME ) );
|
@@ -36,6 +36,7 @@ add_action('admin_init', 'cnb_options_init');
|
|
36 |
$cnb_changelog =
|
37 |
array(
|
38 |
array(
|
|
|
39 |
'3.5' => 'Small JS fix',
|
40 |
'3.4' => 'Option to resize your button and change where it sits in the stack order (z-index).',
|
41 |
'3.3' => 'Some small improvements.',
|
@@ -317,7 +318,7 @@ if(get_option('cnb') && !is_admin()) {
|
|
317 |
$ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;";
|
318 |
}
|
319 |
|
320 |
-
$credits .= "<style>#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton {display:block; ".$ButtonAppearance." height:80px; position:fixed; bottom:-20px; border-top:2px solid ".changeColor($cnb_options['color'],'lighter')."; background:url(data:image/svg+xml;base64,".svg(changeColor($cnb_options['color'], 'darker') ).") center 2px no-repeat ".$cnb_options['color']."; text-decoration:none; box-shadow:0 0 5px #888; z-index:".zindex($cnb_options['z-index']).";background-size:58px 58px}".$ButtonExtra."}</style>\n";
|
321 |
|
322 |
} else {
|
323 |
// NEWEST BUTTON DESIGN
|
@@ -327,7 +328,7 @@ if(get_option('cnb') && !is_admin()) {
|
|
327 |
|
328 |
if($cnb_options['appearance'] == 'full' || $showTextButton) {
|
329 |
$ButtonAppearance = "width:100%;left:0;bottom:0;height:60px;border-top:1px solid ".changeColor($cnb_options['color'], 'lighter')."; border-bottom:1px solid ".changeColor($cnb_options['color'], 'darker').";";
|
330 |
-
$ButtonExtra = "body {padding-bottom:60px;}";
|
331 |
if($showTextButton) {
|
332 |
$ButtonAppearance .= "text-shadow: 0 1px ".changeColor($cnb_options['color'], 'darker')."; text-align:center;color:#fff; font-weight:600; font-size:120%; overflow: hidden;";
|
333 |
if(!isset($cnb_options['hideIcon'])) {
|
@@ -353,7 +354,7 @@ if(get_option('cnb') && !is_admin()) {
|
|
353 |
} else {
|
354 |
$credits .= "background:".$cnb_options['color'].";display: flex; justify-content: center; align-items: center;";
|
355 |
}
|
356 |
-
$credits .= "}" . $ButtonExtra . "}";
|
357 |
$credits .= "</style>\n";
|
358 |
}
|
359 |
echo $credits;
|
@@ -382,11 +383,11 @@ if(get_option('cnb') && !is_admin()) {
|
|
382 |
}
|
383 |
|
384 |
if($cnb_options['text'] == '') {
|
385 |
-
$buttonText = '';
|
386 |
} elseif(isset($cnb_options['hideIcon'])) {
|
387 |
$buttonText = $cnb_options['text'];
|
388 |
} else {
|
389 |
-
$buttonText = '<img src="data:image/svg+xml;base64,'.svg(changeColor($cnb_options['color'], 'darker')).'" width="40">'. $cnb_options['text'];
|
390 |
}
|
391 |
|
392 |
$callLink = '<a href="tel:'.$cnb_options['number'].'" id="callnowbutton" '.$tracking.'>'.$buttonText.'</a>';
|
@@ -504,6 +505,7 @@ function buttonActive() {
|
|
504 |
if(isset($cnb_options['active'])) { $output = true; } else { $output = false; }
|
505 |
return $output;
|
506 |
}
|
|
|
507 |
function zindex($value) {
|
508 |
$zindex = array(
|
509 |
10 => 2147483647,
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: http://callnowbutton.com
|
5 |
Description: Mobile visitors will see a call now button fixed at the bottom of your site
|
6 |
+
Version: 0.3.6
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
License: GPL2
|
26 |
*/
|
27 |
?>
|
28 |
<?php
|
29 |
+
define('CNB_VERSION','0.3.6');
|
30 |
define('CNB_BASENAME', plugin_basename( __FILE__ ) );
|
31 |
define('CNB_BASEFOLDER', plugin_basename( dirname( __FILE__ ) ) );
|
32 |
define('CNB_FILENAME', str_replace( CNB_BASEFOLDER.'/', '', CNB_BASENAME ) );
|
36 |
$cnb_changelog =
|
37 |
array(
|
38 |
array(
|
39 |
+
'3.6' => 'Small validation fixes and zoom now controls icon size in full width buttons.',
|
40 |
'3.5' => 'Small JS fix',
|
41 |
'3.4' => 'Option to resize your button and change where it sits in the stack order (z-index).',
|
42 |
'3.3' => 'Some small improvements.',
|
318 |
$ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;";
|
319 |
}
|
320 |
|
321 |
+
$credits .= "<style>#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton .NoButtonText{display:none;}#callnowbutton {display:block; ".$ButtonAppearance." height:80px; position:fixed; bottom:-20px; border-top:2px solid ".changeColor($cnb_options['color'],'lighter')."; background:url(data:image/svg+xml;base64,".svg(changeColor($cnb_options['color'], 'darker') ).") center 2px no-repeat ".$cnb_options['color']."; text-decoration:none; box-shadow:0 0 5px #888; z-index:".zindex($cnb_options['z-index']).";background-size:58px 58px}".$ButtonExtra."}</style>\n";
|
322 |
|
323 |
} else {
|
324 |
// NEWEST BUTTON DESIGN
|
328 |
|
329 |
if($cnb_options['appearance'] == 'full' || $showTextButton) {
|
330 |
$ButtonAppearance = "width:100%;left:0;bottom:0;height:60px;border-top:1px solid ".changeColor($cnb_options['color'], 'lighter')."; border-bottom:1px solid ".changeColor($cnb_options['color'], 'darker').";";
|
331 |
+
$ButtonExtra = "body {padding-bottom:60px;}#callnowbutton img {transform: scale(" . $cnb_options['zoom'] . ");}";
|
332 |
if($showTextButton) {
|
333 |
$ButtonAppearance .= "text-shadow: 0 1px ".changeColor($cnb_options['color'], 'darker')."; text-align:center;color:#fff; font-weight:600; font-size:120%; overflow: hidden;";
|
334 |
if(!isset($cnb_options['hideIcon'])) {
|
354 |
} else {
|
355 |
$credits .= "background:".$cnb_options['color'].";display: flex; justify-content: center; align-items: center;";
|
356 |
}
|
357 |
+
$credits .= "}" . $ButtonExtra . "}#callnowbutton .NoButtonText{display:none;}";
|
358 |
$credits .= "</style>\n";
|
359 |
}
|
360 |
echo $credits;
|
383 |
}
|
384 |
|
385 |
if($cnb_options['text'] == '') {
|
386 |
+
$buttonText = '<span class="NoButtonText">Call Now Button</span>';
|
387 |
} elseif(isset($cnb_options['hideIcon'])) {
|
388 |
$buttonText = $cnb_options['text'];
|
389 |
} else {
|
390 |
+
$buttonText = '<img alt="Call Now Button" src="data:image/svg+xml;base64,'.svg(changeColor($cnb_options['color'], 'darker')).'" width="40">'. $cnb_options['text'];
|
391 |
}
|
392 |
|
393 |
$callLink = '<a href="tel:'.$cnb_options['number'].'" id="callnowbutton" '.$tracking.'>'.$buttonText.'</a>';
|
505 |
if(isset($cnb_options['active'])) { $output = true; } else { $output = false; }
|
506 |
return $output;
|
507 |
}
|
508 |
+
|
509 |
function zindex($value) {
|
510 |
$zindex = array(
|
511 |
10 => 2147483647,
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: jgrietveld
|
|
3 |
Donate link: http://callnowbutton.com/donate/
|
4 |
Tags: call, contact, customers, sell, sales, leads, convert, conversions, call now button
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 0.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -98,6 +98,10 @@ Yes, this is coming soon. We're currently looking for testers so if you want to
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
|
|
101 |
= 0.3.5 =
|
102 |
* Small JS fix
|
103 |
|
3 |
Donate link: http://callnowbutton.com/donate/
|
4 |
Tags: call, contact, customers, sell, sales, leads, convert, conversions, call now button
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 5.2
|
7 |
+
Stable tag: 0.3.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 0.3.6 =
|
102 |
+
* Validation fixes
|
103 |
+
* Zoom controls icon size in Full Width buttons
|
104 |
+
|
105 |
= 0.3.5 =
|
106 |
* Small JS fix
|
107 |
|