Version Description
- Minor bugfixes and UI improvements
Download this release
Release Info
Developer | jasperroel |
Plugin | Call Now Button |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
call-now-button.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: https://callnowbutton.com
|
5 |
Description: Shows a <strong>Call Now Button</strong> to your mobile visitors. 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. Create an account to enable extra actions such as <strong>WhatsApp</strong>, <strong>Messenger</strong>, <strong>Telegram</strong>, <strong>Signal</strong>, <strong>Email</strong>, <strong>SMS</strong>, <strong>Maps</strong> and <strong>links</strong>. Also offers additional functionality such as advanced display rules, scheduling, geo rules, appear after scrolling, button animations and much more.
|
6 |
-
Version: 1.3.
|
7 |
Author: NowButtons.com
|
8 |
Author URI: https://nowbuttons.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', '1.3.
|
30 |
define('CNB_NAME', 'Call Now Button');
|
31 |
define('CNB_CLOUD_NAME', 'NowButtons for WordPress');
|
32 |
define('CNB_BASENAME', plugin_basename(__FILE__));
|
3 |
Plugin Name: Call Now Button
|
4 |
Plugin URI: https://callnowbutton.com
|
5 |
Description: Shows a <strong>Call Now Button</strong> to your mobile visitors. 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. Create an account to enable extra actions such as <strong>WhatsApp</strong>, <strong>Messenger</strong>, <strong>Telegram</strong>, <strong>Signal</strong>, <strong>Email</strong>, <strong>SMS</strong>, <strong>Maps</strong> and <strong>links</strong>. Also offers additional functionality such as advanced display rules, scheduling, geo rules, appear after scrolling, button animations and much more.
|
6 |
+
Version: 1.3.3
|
7 |
Author: NowButtons.com
|
8 |
Author URI: https://nowbuttons.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', '1.3.3');
|
30 |
define('CNB_NAME', 'Call Now Button');
|
31 |
define('CNB_CLOUD_NAME', 'NowButtons for WordPress');
|
32 |
define('CNB_BASENAME', plugin_basename(__FILE__));
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: call button, click to call, convert, call now button, contact button
|
|
5 |
Requires at least: 4.1
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 6.1
|
8 |
-
Stable tag: 1.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -132,6 +132,9 @@ Yes, you can connect the plugin to our cloud service NowButton.com. That already
|
|
132 |
|
133 |
|
134 |
== Changelog ==
|
|
|
|
|
|
|
135 |
= 1.3.2 =
|
136 |
* [Multibutton] Icon picker for main button
|
137 |
* [Multibutton] Custom image selector for main button
|
5 |
Requires at least: 4.1
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 6.1
|
8 |
+
Stable tag: 1.3.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
132 |
|
133 |
|
134 |
== Changelog ==
|
135 |
+
= 1.3.3 =
|
136 |
+
* Minor bugfixes and UI improvements
|
137 |
+
|
138 |
= 1.3.2 =
|
139 |
* [Multibutton] Icon picker for main button
|
140 |
* [Multibutton] Custom image selector for main button
|
src/admin/domain/CnbDomainViewEdit.php
CHANGED
@@ -93,6 +93,7 @@ class CnbDomainViewEdit {
|
|
93 |
}
|
94 |
if ( $domain->status === 'TRIALING' && ! empty( $domain->expires ) ) { ?>
|
95 |
<p class="description" id="domain_expires-description">
|
|
|
96 |
<?php
|
97 |
switch ($domain->renew) {
|
98 |
case 1:
|
@@ -116,7 +117,7 @@ class CnbDomainViewEdit {
|
|
116 |
</th>
|
117 |
<td>
|
118 |
<?php
|
119 |
-
if (
|
120 |
<input id="cnb-renew" class="cnb_toggle_checkbox" name="domain[renew]" type="checkbox"
|
121 |
value="true" <?php checked( true, $domain->renew ); ?> />
|
122 |
<label for="cnb-renew" class="cnb_toggle_label">Toggle</label>
|
@@ -125,7 +126,7 @@ class CnbDomainViewEdit {
|
|
125 |
|
126 |
<p class="description" id="domain_expires-description">
|
127 |
Your subscription will
|
128 |
-
<?php echo $domain->renew
|
129 |
on <?php echo esc_html( $this->get_formatted_date( $domain->expires ) ) ?>.
|
130 |
</p>
|
131 |
<?php } ?>
|
93 |
}
|
94 |
if ( $domain->status === 'TRIALING' && ! empty( $domain->expires ) ) { ?>
|
95 |
<p class="description" id="domain_expires-description">
|
96 |
+
<input name="domain[renew]" type="hidden" value="<?php echo $domain->renew ? 'true' : 'false' ?>"/>
|
97 |
<?php
|
98 |
switch ($domain->renew) {
|
99 |
case 1:
|
117 |
</th>
|
118 |
<td>
|
119 |
<?php
|
120 |
+
if ( ! empty( $domain->expires ) ) { ?>
|
121 |
<input id="cnb-renew" class="cnb_toggle_checkbox" name="domain[renew]" type="checkbox"
|
122 |
value="true" <?php checked( true, $domain->renew ); ?> />
|
123 |
<label for="cnb-renew" class="cnb_toggle_label">Toggle</label>
|
126 |
|
127 |
<p class="description" id="domain_expires-description">
|
128 |
Your subscription will
|
129 |
+
<?php echo $domain->renew ? ' renew automatically ' : ' expire '; ?>
|
130 |
on <?php echo esc_html( $this->get_formatted_date( $domain->expires ) ) ?>.
|
131 |
</p>
|
132 |
<?php } ?>
|
src/admin/domain/partials/CnbDomainViewUpgradeOverview.php
CHANGED
@@ -189,18 +189,9 @@ class CnbDomainViewUpgradeOverview {
|
|
189 |
<div class="currency-box currency-box-eur cnb-flexbox" style="<?php if ( $active_currency === 'usd' ) {
|
190 |
echo 'display:none';
|
191 |
} ?>">
|
|
|
192 |
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
193 |
-
<h3 class="cnb-price-
|
194 |
-
<div class="plan-amount"><span class="currency">€</span><span
|
195 |
-
class="euros">499</span><span class="timeframe">/year</span>
|
196 |
-
</div>
|
197 |
-
<div class="billingprice">
|
198 |
-
VAT may apply
|
199 |
-
</div>
|
200 |
-
<a class="button button-primary" href="<?php echo esc_html( $accountProEUR_Y ) ?>">Purchase</a>
|
201 |
-
</div>
|
202 |
-
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
203 |
-
<h3 class="cnb-price-usd">Monthly billing</h3>
|
204 |
|
205 |
<div class="plan-amount"><span class="currency">€</span><span
|
206 |
class="euros">49</span><span
|
@@ -216,21 +207,10 @@ class CnbDomainViewUpgradeOverview {
|
|
216 |
</div>
|
217 |
<div class="currency-box currency-box-usd cnb-flexbox"
|
218 |
style="<?php if ( $active_currency !== 'usd' ) { ?>display:none<?php } ?>">
|
219 |
-
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
220 |
-
<h3 class="cnb-price-eur">Yearly billing</h3>
|
221 |
|
222 |
-
<div class="plan-amount"><span class="currency">$</span><span
|
223 |
-
class="euros">499</span><span class="timeframe">/year</span>
|
224 |
-
</div>
|
225 |
-
<div class="billingprice">
|
226 |
-
VAT may apply
|
227 |
-
</div>
|
228 |
-
|
229 |
-
<a class="button button-primary" href="<?php echo esc_html( $accountProUSD_Y ) ?>">Purchase</a>
|
230 |
-
</div>
|
231 |
|
232 |
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
233 |
-
<h3 class="cnb-price-usd">
|
234 |
|
235 |
<div class="plan-amount"><span class="currency">$</span><span
|
236 |
class="euros">49</span><span
|
@@ -249,7 +229,7 @@ class CnbDomainViewUpgradeOverview {
|
|
249 |
<b>Please allow up to 24 hours for your account to be set up.</b>
|
250 |
</p>
|
251 |
<p class="billingprice">
|
252 |
-
A PRO Account holds up to 20 domains (included in price). The PRO Account subscription enables PRO features
|
253 |
on every domain in the account.
|
254 |
</p>
|
255 |
<?php
|
189 |
<div class="currency-box currency-box-eur cnb-flexbox" style="<?php if ( $active_currency === 'usd' ) {
|
190 |
echo 'display:none';
|
191 |
} ?>">
|
192 |
+
|
193 |
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
194 |
+
<h3 class="cnb-price-usd">PRO Account</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
<div class="plan-amount"><span class="currency">€</span><span
|
197 |
class="euros">49</span><span
|
207 |
</div>
|
208 |
<div class="currency-box currency-box-usd cnb-flexbox"
|
209 |
style="<?php if ( $active_currency !== 'usd' ) { ?>display:none<?php } ?>">
|
|
|
|
|
210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
<div class="cnb-pricebox cnb-currency-box currency-box-active">
|
213 |
+
<h3 class="cnb-price-usd">PRO Account</h3>
|
214 |
|
215 |
<div class="plan-amount"><span class="currency">$</span><span
|
216 |
class="euros">49</span><span
|
229 |
<b>Please allow up to 24 hours for your account to be set up.</b>
|
230 |
</p>
|
231 |
<p class="billingprice">
|
232 |
+
A PRO Account holds up to 20 domains (included in price). <br>The PRO Account subscription enables PRO features
|
233 |
on every domain in the account.
|
234 |
</p>
|
235 |
<?php
|
src/admin/partials/CnbHeaderNotices.php
CHANGED
@@ -82,15 +82,15 @@ class CnbHeaderNotices {
|
|
82 |
$register_url = $cnb_utils->get_app_url( 'register', 'upgrade-to-premium-options', 'callnowbutton.com' );
|
83 |
$url = $cnb_utils->get_app_url( '', 'manual_activation', 'sign-up-for-api' );
|
84 |
|
85 |
-
$message = '<h3 class="title cnb-remove-add-new">Enable cloud features</h3>';
|
86 |
-
$message .= '<p>To enable cloud features, you
|
87 |
$message .= '<h4>Option 1: Email activation (easy and fast!)</h4>';
|
88 |
$message .= self::cnb_settings_email_activation_input();
|
89 |
|
90 |
$message .= '<hr>';
|
91 |
$message .= '<h4>Option 2: Web activation (manual process)</h4>';
|
92 |
$message .= '<ol>';
|
93 |
-
$message .= '<li>Create your account at <a href="' . esc_url( $url ) . '">https://app.
|
94 |
$message .= '<li>Go to your profile info by clicking on the user icon in the top right corner and then click <strong>Create new API key</strong>.</li>';
|
95 |
$message .= '<li>Copy the API key that appears, paste it into the field below and click <strong>Store API key</strong>.</li>';
|
96 |
$message .= '</ol>';
|
@@ -111,7 +111,7 @@ class CnbHeaderNotices {
|
|
111 |
$message .= '<hr>';
|
112 |
$message .= '<h4>Option 2: Web activation (manual process)</h4>';
|
113 |
$message .= '<ol>';
|
114 |
-
$message .= '<li>Create your account at <a href="' . esc_url( $url ) . '">https://app.
|
115 |
$message .= '<li>Go to your profile info by clicking on the user icon in the top right corner and then click <strong>Create new API key</strong>.</li>';
|
116 |
$message .= '<li>Copy the API key that appears, paste it into the field below and click <strong>Store API key</strong>.</li>';
|
117 |
$message .= '</ol>';
|
82 |
$register_url = $cnb_utils->get_app_url( 'register', 'upgrade-to-premium-options', 'callnowbutton.com' );
|
83 |
$url = $cnb_utils->get_app_url( '', 'manual_activation', 'sign-up-for-api' );
|
84 |
|
85 |
+
$message = '<h3 class="title cnb-remove-add-new">Enable NowButton.com cloud features</h3>';
|
86 |
+
$message .= '<p>To enable the cloud features, you need a <a href="' . esc_url( $register_url ) . '" target="_blank">nowbuttons.com</a> account and an API key. There\'s 2 ways to do this:</p>';
|
87 |
$message .= '<h4>Option 1: Email activation (easy and fast!)</h4>';
|
88 |
$message .= self::cnb_settings_email_activation_input();
|
89 |
|
90 |
$message .= '<hr>';
|
91 |
$message .= '<h4>Option 2: Web activation (manual process)</h4>';
|
92 |
$message .= '<ol>';
|
93 |
+
$message .= '<li>Create your account at <a href="' . esc_url( $url ) . '">https://app.nowbuttons.com</a></li>';
|
94 |
$message .= '<li>Go to your profile info by clicking on the user icon in the top right corner and then click <strong>Create new API key</strong>.</li>';
|
95 |
$message .= '<li>Copy the API key that appears, paste it into the field below and click <strong>Store API key</strong>.</li>';
|
96 |
$message .= '</ol>';
|
111 |
$message .= '<hr>';
|
112 |
$message .= '<h4>Option 2: Web activation (manual process)</h4>';
|
113 |
$message .= '<ol>';
|
114 |
+
$message .= '<li>Create your account at <a href="' . esc_url( $url ) . '">https://app.nowbuttons.com</a></li>';
|
115 |
$message .= '<li>Go to your profile info by clicking on the user icon in the top right corner and then click <strong>Create new API key</strong>.</li>';
|
116 |
$message .= '<li>Copy the API key that appears, paste it into the field below and click <strong>Store API key</strong>.</li>';
|
117 |
$message .= '</ol>';
|