Version Description
= * Fix for conflict with certain 3rd party plugins
Download this release
Release Info
Developer | jgrietveld |
Plugin | Call Now Button |
Version | 0.2.1 |
Comparing to | |
See all releases |
Code changes from version 0.2.0 to 0.2.1
- call-now-button.css +2 -2
- call-now-button.js +4 -4
- call-now-button.php +46 -46
- readme.txt +5 -2
call-now-button.css
CHANGED
@@ -30,10 +30,10 @@
|
|
30 |
margin: 10px 0;
|
31 |
}
|
32 |
p.submit,
|
33 |
-
|
34 |
display: inline-block;
|
35 |
}
|
36 |
-
|
37 |
margin-left: 25px;
|
38 |
cursor: pointer;
|
39 |
}
|
30 |
margin: 10px 0;
|
31 |
}
|
32 |
p.submit,
|
33 |
+
#cnb_settings {
|
34 |
display: inline-block;
|
35 |
}
|
36 |
+
#cnb_settings {
|
37 |
margin-left: 25px;
|
38 |
cursor: pointer;
|
39 |
}
|
call-now-button.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
jQuery(document).ready(function($){
|
2 |
$('.cnb-color-field').wpColorPicker();
|
3 |
-
$("
|
4 |
$("#settings").slideDown();
|
5 |
-
$("
|
6 |
});
|
7 |
$("span.check-settings").click(function() {
|
8 |
if($("#settings").is(":hidden")) {
|
9 |
$("#settings").slideDown('fast');
|
10 |
-
$("div
|
11 |
}
|
12 |
$("tr.appearance input").addClass("red-background").focus();
|
13 |
$('html, body').animate({
|
@@ -18,7 +18,7 @@ jQuery(document).ready(function($){
|
|
18 |
$(".cnb-switch-back").click(function() {
|
19 |
if($("#settings").is(":hidden")) {
|
20 |
$("#settings").slideDown('fast');
|
21 |
-
$("div
|
22 |
}
|
23 |
$("tr.classic ").addClass("red-background").focus();
|
24 |
$('html, body').animate({
|
1 |
jQuery(document).ready(function($){
|
2 |
$('.cnb-color-field').wpColorPicker();
|
3 |
+
$("#cnb_settings").click(function() {
|
4 |
$("#settings").slideDown();
|
5 |
+
$("#cnb_settings").remove();
|
6 |
});
|
7 |
$("span.check-settings").click(function() {
|
8 |
if($("#settings").is(":hidden")) {
|
9 |
$("#settings").slideDown('fast');
|
10 |
+
$("div#cnb_settings").remove();
|
11 |
}
|
12 |
$("tr.appearance input").addClass("red-background").focus();
|
13 |
$('html, body').animate({
|
18 |
$(".cnb-switch-back").click(function() {
|
19 |
if($("#settings").is(":hidden")) {
|
20 |
$("#settings").slideDown('fast');
|
21 |
+
$("div#cnb_settings").remove();
|
22 |
}
|
23 |
$("tr.classic ").addClass("red-background").focus();
|
24 |
$('html, body').animate({
|
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.2.
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
License: GPL2
|
@@ -26,14 +26,14 @@ License: GPL2
|
|
26 |
*/
|
27 |
?>
|
28 |
<?php
|
29 |
-
define('CNB_VERSION','0.2.
|
30 |
add_action('admin_menu', 'register_cnb_page');
|
31 |
add_action('admin_init', 'cnb_options_init');
|
32 |
|
33 |
-
$
|
34 |
|
35 |
-
$
|
36 |
-
$
|
37 |
|
38 |
$plugin_title = apply_filters( 'cnb_plugin_title', 'Call Now Button');
|
39 |
|
@@ -58,7 +58,7 @@ function cnb_options_init() {
|
|
58 |
wp_register_style( 'cnb_styling', plugins_url('call-now-button.css', __FILE__), false, CNB_VERSION, 'all' );
|
59 |
}
|
60 |
function call_now_settings_page() {
|
61 |
-
global $
|
62 |
global $plugin_title;
|
63 |
global $cnb_updated;
|
64 |
?>
|
@@ -68,12 +68,12 @@ function call_now_settings_page() {
|
|
68 |
<!--## NOTIFICATION BARS ## -->
|
69 |
<?php
|
70 |
// Display notification that the button is active or inactive
|
71 |
-
if(!$
|
72 |
echo '<div class="notice-error notice"><p>The Call Now Button is currently <b>inactive</b>.</p></div>';
|
73 |
}
|
74 |
|
75 |
// Display notification that the button is limited to a number of posts/pages
|
76 |
-
if($
|
77 |
echo '<div class="notice-error notice">'.
|
78 |
'<p><span>Appearance of the Button is <b>limited</b><span class="hide-on-mobile"> to specific Posts or Pages</span>. <span class="check-settings">Review settings »</span></p></div>';
|
79 |
}
|
@@ -94,34 +94,34 @@ function call_now_settings_page() {
|
|
94 |
<tr valign="top">
|
95 |
<th scope="row">Button status:</th>
|
96 |
<td class="activated">
|
97 |
-
<input id="activated" name="cnb[active]" type="checkbox" value="1" <?php checked('1', $
|
98 |
</td>
|
99 |
</tr>
|
100 |
<tr valign="top"><th scope="row">Phone number:</th>
|
101 |
-
<td><input type="text" name="cnb[number]" value="<?php echo $
|
102 |
</tr>
|
103 |
</table>
|
104 |
<div id="settings">
|
105 |
<table class="form-table">
|
106 |
<tr valign="top"><th scope="row">Button color:</th>
|
107 |
-
<td><input name="cnb[color]" type="text" value="<?php echo $
|
108 |
</tr>
|
109 |
<tr valign="top"><th scope="row">Position</th>
|
110 |
<td class="appearance">
|
111 |
<div class="radio-item">
|
112 |
-
<input type="radio" id="appearance1" name="cnb[appearance]" value="right" <?php checked('right', $
|
113 |
<label title="right" for="appearance1">Right corner</label>
|
114 |
</div>
|
115 |
<div class="radio-item">
|
116 |
-
<input type="radio" id="appearance2" name="cnb[appearance]" value="left" <?php checked('left', $
|
117 |
<label title="left" for="appearance2">Left corner</label>
|
118 |
</div>
|
119 |
<div class="radio-item">
|
120 |
-
<input type="radio" id="appearance3" name="cnb[appearance]" value="middle" <?php checked('middle', $
|
121 |
<label title="middle" for="appearance3">Center bottom</label>
|
122 |
</div>
|
123 |
<div class="radio-item">
|
124 |
-
<input type="radio" id="appearance4" name="cnb[appearance]" value="full" <?php checked('full', $
|
125 |
<label title="full" for="appearance4">Full bottom</label>
|
126 |
</div>
|
127 |
</td>
|
@@ -130,15 +130,15 @@ function call_now_settings_page() {
|
|
130 |
<th scope="row">Click tracking:</th>
|
131 |
<td>
|
132 |
<div class="radio-item">
|
133 |
-
<input id="tracking3" type="radio" name="cnb[tracking]" value="0" <?php checked('0', $
|
134 |
<label for="tracking3">Disabled</label><br />
|
135 |
</div>
|
136 |
<div class="radio-item">
|
137 |
-
<input id="tracking1" type="radio" name="cnb[tracking]" value="2" <?php checked('2', $
|
138 |
<label for="tracking1">Google Universal Analytics (analytics.js)</label><br />
|
139 |
</div>
|
140 |
<div class="radio-item">
|
141 |
-
<input id="tracking2" type="radio" name="cnb[tracking]" value="1" <?php checked('1', $
|
142 |
<label for="tracking2">Google Classic Analytics (ga.js)</label>
|
143 |
</div>
|
144 |
<p class="description">Click tracking turned on? Wait for about a day then log into your Google Analytics accunt and click in the <strong>Behavior</strong> section on <strong>Events</strong>. <span class="whatsThis">(<a href="https://support.google.com/analytics/answer/1033068#SeeAlerts" target="_blank">What's this?</a>)</span></p>
|
@@ -147,21 +147,21 @@ function call_now_settings_page() {
|
|
147 |
<tr valign="top" class="appearance">
|
148 |
<th scope="row">Limit appearance:</th>
|
149 |
<td>
|
150 |
-
<input type="text" name="cnb[show]" value="<?php echo $
|
151 |
<p class="description">Enter IDs of the posts & pages the Call Now Button should appear on (leave blank for all).</p>
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr valign="top" class="classic">
|
155 |
<th scope="row">Back to old button design:</th>
|
156 |
<td>
|
157 |
-
<input id="classic" name="cnb[classic]" type="checkbox" value="1" <?php checked('1', $
|
158 |
</td>
|
159 |
</tr>
|
160 |
</table>
|
161 |
</div><!--#settings-->
|
162 |
<input type="hidden" name="cnb[version]" value="<?php echo CNB_VERSION; ?>" />
|
163 |
<p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /></p>
|
164 |
-
<div
|
165 |
</form>
|
166 |
|
167 |
<div class="feedback-collection">
|
@@ -210,44 +210,44 @@ if(get_option('cnb') && !is_admin()) {
|
|
210 |
}
|
211 |
|
212 |
|
213 |
-
$
|
214 |
-
if(isset($
|
215 |
if($enabled == '1') {
|
216 |
// it's enabled so put footer stuff here
|
217 |
function cnb_head() {
|
218 |
-
$
|
219 |
-
if(isset($
|
220 |
$credits = "\n<!-- Call Now Button ".CNB_VERSION." by Jerry Rietveld (callnowbutton.com) -->\n";
|
221 |
$ButtonExtra = "";
|
222 |
if($classic == 1) {
|
223 |
|
224 |
// OLD BUTTON DESIGN
|
225 |
-
if($
|
226 |
$ButtonAppearance = "width:100%;left:0;";
|
227 |
$ButtonExtra = "body {padding-bottom:60px;}";
|
228 |
}
|
229 |
-
elseif($
|
230 |
else { $ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;"; }
|
231 |
|
232 |
-
$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($
|
233 |
|
234 |
} else {
|
235 |
|
236 |
// NEW BUTTON DESIGN
|
237 |
$credits = "\n<!-- Call Now Button ".CNB_VERSION." by Jerry Rietveld (callnowbutton.com) -->\n";
|
238 |
$ButtonShape = "width:65px; height:65px; border-radius:80px; border:2px solid #fff; bottom:15px;";
|
239 |
-
if($
|
240 |
-
$ButtonAppearance = "width:100%;left:0;bottom:0;height:60px;border-top:1px solid ".changeColor($
|
241 |
$ButtonExtra = "body {padding-bottom:60px;}";
|
242 |
}
|
243 |
-
elseif($
|
244 |
-
elseif($
|
245 |
else { $ButtonAppearance = $ButtonShape . "right:20px;"; }
|
246 |
|
247 |
$credits = $credits ."<style>";
|
248 |
$credits .= "#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton {display:block; position:fixed; text-decoration:none; z-index:9999;";
|
249 |
$credits .= $ButtonAppearance;
|
250 |
-
$credits .= "background:url(data:image/svg+xml;base64,".svg(changeColor($
|
251 |
$credits .= "}" . $ButtonExtra . "}";
|
252 |
$credits .= "</style>\n";
|
253 |
}
|
@@ -299,24 +299,24 @@ function cnb_get_options() { // Checking and setting the default options
|
|
299 |
'version' => CNB_VERSION
|
300 |
);
|
301 |
add_option('cnb',$default_options);
|
302 |
-
$
|
303 |
}
|
304 |
|
305 |
-
$
|
306 |
|
307 |
-
return $
|
308 |
}
|
309 |
function set_basic_options() {
|
310 |
if(!array_key_exists('version', get_option('cnb'))) {
|
311 |
-
$
|
312 |
-
$
|
313 |
$default_options = array(
|
314 |
-
'active' => $
|
315 |
-
'number' => $
|
316 |
-
'color' => $
|
317 |
-
'appearance' => $
|
318 |
-
'tracking' => $
|
319 |
-
'show' => $
|
320 |
'version' => CNB_VERSION
|
321 |
);
|
322 |
update_option('cnb',$default_options);
|
@@ -331,8 +331,8 @@ function svg($color2) {
|
|
331 |
return base64_encode($svg);
|
332 |
}
|
333 |
function buttonActive() {
|
334 |
-
$
|
335 |
-
if(isset($
|
336 |
return $output;
|
337 |
}
|
338 |
?>
|
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.2.1
|
7 |
Author: Jerry Rietveld
|
8 |
Author URI: http://www.jgrietveld.com
|
9 |
License: GPL2
|
26 |
*/
|
27 |
?>
|
28 |
<?php
|
29 |
+
define('CNB_VERSION','0.2.1');
|
30 |
add_action('admin_menu', 'register_cnb_page');
|
31 |
add_action('admin_init', 'cnb_options_init');
|
32 |
|
33 |
+
$cnb_options = cnb_get_options();
|
34 |
|
35 |
+
$cnb_options['active'] = isset($cnb_options['active']) ? 1 : 0;
|
36 |
+
$cnb_options['classic'] = isset($cnb_options['classic']) ? 1 : 0;
|
37 |
|
38 |
$plugin_title = apply_filters( 'cnb_plugin_title', 'Call Now Button');
|
39 |
|
58 |
wp_register_style( 'cnb_styling', plugins_url('call-now-button.css', __FILE__), false, CNB_VERSION, 'all' );
|
59 |
}
|
60 |
function call_now_settings_page() {
|
61 |
+
global $cnb_options;
|
62 |
global $plugin_title;
|
63 |
global $cnb_updated;
|
64 |
?>
|
68 |
<!--## NOTIFICATION BARS ## -->
|
69 |
<?php
|
70 |
// Display notification that the button is active or inactive
|
71 |
+
if(!$cnb_options['active']==1) {
|
72 |
echo '<div class="notice-error notice"><p>The Call Now Button is currently <b>inactive</b>.</p></div>';
|
73 |
}
|
74 |
|
75 |
// Display notification that the button is limited to a number of posts/pages
|
76 |
+
if($cnb_options['active']==1 && $cnb_options['show'] != "") {
|
77 |
echo '<div class="notice-error notice">'.
|
78 |
'<p><span>Appearance of the Button is <b>limited</b><span class="hide-on-mobile"> to specific Posts or Pages</span>. <span class="check-settings">Review settings »</span></p></div>';
|
79 |
}
|
94 |
<tr valign="top">
|
95 |
<th scope="row">Button status:</th>
|
96 |
<td class="activated">
|
97 |
+
<input id="activated" name="cnb[active]" type="checkbox" value="1" <?php checked('1', $cnb_options['active']); ?> /> <label title="Enable" for="activated">Enabled</label>
|
98 |
</td>
|
99 |
</tr>
|
100 |
<tr valign="top"><th scope="row">Phone number:</th>
|
101 |
+
<td><input type="text" name="cnb[number]" value="<?php echo $cnb_options['number']; ?>" /></td>
|
102 |
</tr>
|
103 |
</table>
|
104 |
<div id="settings">
|
105 |
<table class="form-table">
|
106 |
<tr valign="top"><th scope="row">Button color:</th>
|
107 |
+
<td><input name="cnb[color]" type="text" value="<?php echo $cnb_options['color']; ?>" class="cnb-color-field" data-default-color="#009900" /></td>
|
108 |
</tr>
|
109 |
<tr valign="top"><th scope="row">Position</th>
|
110 |
<td class="appearance">
|
111 |
<div class="radio-item">
|
112 |
+
<input type="radio" id="appearance1" name="cnb[appearance]" value="right" <?php checked('right', $cnb_options['appearance']); ?>>
|
113 |
<label title="right" for="appearance1">Right corner</label>
|
114 |
</div>
|
115 |
<div class="radio-item">
|
116 |
+
<input type="radio" id="appearance2" name="cnb[appearance]" value="left" <?php checked('left', $cnb_options['appearance']); ?>>
|
117 |
<label title="left" for="appearance2">Left corner</label>
|
118 |
</div>
|
119 |
<div class="radio-item">
|
120 |
+
<input type="radio" id="appearance3" name="cnb[appearance]" value="middle" <?php checked('middle', $cnb_options['appearance']); ?>>
|
121 |
<label title="middle" for="appearance3">Center bottom</label>
|
122 |
</div>
|
123 |
<div class="radio-item">
|
124 |
+
<input type="radio" id="appearance4" name="cnb[appearance]" value="full" <?php checked('full', $cnb_options['appearance']); ?>>
|
125 |
<label title="full" for="appearance4">Full bottom</label>
|
126 |
</div>
|
127 |
</td>
|
130 |
<th scope="row">Click tracking:</th>
|
131 |
<td>
|
132 |
<div class="radio-item">
|
133 |
+
<input id="tracking3" type="radio" name="cnb[tracking]" value="0" <?php checked('0', $cnb_options['tracking']); ?> />
|
134 |
<label for="tracking3">Disabled</label><br />
|
135 |
</div>
|
136 |
<div class="radio-item">
|
137 |
+
<input id="tracking1" type="radio" name="cnb[tracking]" value="2" <?php checked('2', $cnb_options['tracking']); ?> />
|
138 |
<label for="tracking1">Google Universal Analytics (analytics.js)</label><br />
|
139 |
</div>
|
140 |
<div class="radio-item">
|
141 |
+
<input id="tracking2" type="radio" name="cnb[tracking]" value="1" <?php checked('1', $cnb_options['tracking']); ?> />
|
142 |
<label for="tracking2">Google Classic Analytics (ga.js)</label>
|
143 |
</div>
|
144 |
<p class="description">Click tracking turned on? Wait for about a day then log into your Google Analytics accunt and click in the <strong>Behavior</strong> section on <strong>Events</strong>. <span class="whatsThis">(<a href="https://support.google.com/analytics/answer/1033068#SeeAlerts" target="_blank">What's this?</a>)</span></p>
|
147 |
<tr valign="top" class="appearance">
|
148 |
<th scope="row">Limit appearance:</th>
|
149 |
<td>
|
150 |
+
<input type="text" name="cnb[show]" value="<?php echo $cnb_options['show']; ?>" />
|
151 |
<p class="description">Enter IDs of the posts & pages the Call Now Button should appear on (leave blank for all).</p>
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr valign="top" class="classic">
|
155 |
<th scope="row">Back to old button design:</th>
|
156 |
<td>
|
157 |
+
<input id="classic" name="cnb[classic]" type="checkbox" value="1" <?php checked('1', $cnb_options['classic']); ?> /> <label title="Enable" for="classic">Old button <span class="inline-helper">- <a href="http://callnowbutton.com/new-button-design/" target="_blank" class="cnb-normal"><i>What's the difference?</i></a></span></label>
|
158 |
</td>
|
159 |
</tr>
|
160 |
</table>
|
161 |
</div><!--#settings-->
|
162 |
<input type="hidden" name="cnb[version]" value="<?php echo CNB_VERSION; ?>" />
|
163 |
<p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /></p>
|
164 |
+
<div id="cnb_settings">+ Advanced settings</div>
|
165 |
</form>
|
166 |
|
167 |
<div class="feedback-collection">
|
210 |
}
|
211 |
|
212 |
|
213 |
+
$cnb_options = get_option('cnb');
|
214 |
+
if(isset($cnb_options['active'])) $enabled = $cnb_options['active']; else $enabled = 0;
|
215 |
if($enabled == '1') {
|
216 |
// it's enabled so put footer stuff here
|
217 |
function cnb_head() {
|
218 |
+
$cnb_options = get_option('cnb');
|
219 |
+
if(isset($cnb_options['classic'])) $classic = $cnb_options['classic']; else $classic = 0;
|
220 |
$credits = "\n<!-- Call Now Button ".CNB_VERSION." by Jerry Rietveld (callnowbutton.com) -->\n";
|
221 |
$ButtonExtra = "";
|
222 |
if($classic == 1) {
|
223 |
|
224 |
// OLD BUTTON DESIGN
|
225 |
+
if($cnb_options['appearance'] == 'full' || $cnb_options['appearance'] == 'middle') {
|
226 |
$ButtonAppearance = "width:100%;left:0;";
|
227 |
$ButtonExtra = "body {padding-bottom:60px;}";
|
228 |
}
|
229 |
+
elseif($cnb_options['appearance'] == 'left') { $ButtonAppearance = "width:100px;left:0;border-bottom-right-radius:40px; border-top-right-radius:40px;"; }
|
230 |
else { $ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;"; }
|
231 |
|
232 |
+
$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:9999;background-size:58px 58px}".$ButtonExtra."}</style>\n";
|
233 |
|
234 |
} else {
|
235 |
|
236 |
// NEW BUTTON DESIGN
|
237 |
$credits = "\n<!-- Call Now Button ".CNB_VERSION." by Jerry Rietveld (callnowbutton.com) -->\n";
|
238 |
$ButtonShape = "width:65px; height:65px; border-radius:80px; border:2px solid #fff; bottom:15px;";
|
239 |
+
if($cnb_options['appearance'] == 'full') {
|
240 |
+
$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').";";
|
241 |
$ButtonExtra = "body {padding-bottom:60px;}";
|
242 |
}
|
243 |
+
elseif($cnb_options['appearance'] == 'left' ) { $ButtonAppearance = $ButtonShape . "left:20px;"; }
|
244 |
+
elseif($cnb_options['appearance'] == 'middle') { $ButtonAppearance = $ButtonShape . "left:50%; margin-left:-33px;"; }
|
245 |
else { $ButtonAppearance = $ButtonShape . "right:20px;"; }
|
246 |
|
247 |
$credits = $credits ."<style>";
|
248 |
$credits .= "#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton {display:block; position:fixed; text-decoration:none; z-index:9999;";
|
249 |
$credits .= $ButtonAppearance;
|
250 |
+
$credits .= "background:url(data:image/svg+xml;base64,".svg(changeColor($cnb_options['color'], 'darker') ).") center/50px 50px no-repeat ".$cnb_options['color'].";";
|
251 |
$credits .= "}" . $ButtonExtra . "}";
|
252 |
$credits .= "</style>\n";
|
253 |
}
|
299 |
'version' => CNB_VERSION
|
300 |
);
|
301 |
add_option('cnb',$default_options);
|
302 |
+
$cnb_options = get_option('cnb');
|
303 |
}
|
304 |
|
305 |
+
$cnb_options = get_option('cnb');
|
306 |
|
307 |
+
return $cnb_options;
|
308 |
}
|
309 |
function set_basic_options() {
|
310 |
if(!array_key_exists('version', get_option('cnb'))) {
|
311 |
+
$cnb_options = get_option('cnb');
|
312 |
+
$cnb_options['active'] = isset($cnb_options['active']) ? 1 : 0;
|
313 |
$default_options = array(
|
314 |
+
'active' => $cnb_options['active'],
|
315 |
+
'number' => $cnb_options['number'],
|
316 |
+
'color' => $cnb_options['color'],
|
317 |
+
'appearance' => $cnb_options['appearance'],
|
318 |
+
'tracking' => $cnb_options['tracking'],
|
319 |
+
'show' => $cnb_options['show'],
|
320 |
'version' => CNB_VERSION
|
321 |
);
|
322 |
update_option('cnb',$default_options);
|
331 |
return base64_encode($svg);
|
332 |
}
|
333 |
function buttonActive() {
|
334 |
+
$cnb_options = get_option('cnb');
|
335 |
+
if(isset($cnb_options['active'])) { $output = true; } else { $output = false; }
|
336 |
return $output;
|
337 |
}
|
338 |
?>
|
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
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -79,6 +79,9 @@ Yes, this is coming soon. We're currently looking for testers so if you want to
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
82 |
= 0.2.0 =
|
83 |
* New circular button design
|
84 |
* Option to revert to the old button design
|
3 |
Donate link: http://callnowbutton.com/donate/
|
4 |
Tags: call, contact, customers, sell, sales, leads, convert, conversions
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 0.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 0.2.1 =
|
83 |
+
* Fix for conflict with certain 3rd party plugins
|
84 |
+
|
85 |
= 0.2.0 =
|
86 |
* New circular button design
|
87 |
* Option to revert to the old button design
|