Call Now Button - Version 1.2.2

Version Description

  • UI improvements
Download this release

Release Info

Developer jasperroel
Plugin Icon 128x128 Call Now Button
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

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: 1.2.1
7
  Author: Jerry & Jasper
8
  Author URI: https://www.callnowbutton.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.2.1');
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: 1.2.2
7
  Author: Jerry & Jasper
8
  Author URI: https://www.callnowbutton.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.2.2');
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,11 +5,11 @@ 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.0
8
- Stable tag: 1.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
- The web's #1 click to call button for your website! A simple and powerful plugin that adds a Call Now Button to your website for your mobile visitors.
13
 
14
  == Description ==
15
 
@@ -35,47 +35,26 @@ In the **Settings menu** you'll find a bunch of features such as click tracking
35
  ### Call Now Button CLOUD
36
  Connect the plugin to our Cloud service (which is super easy) enables many extra features. Here's an overview:
37
 
38
- #### 👋 More actions
39
- SMS/Text, Email, Maps, URLs, Scroll to top
40
-
41
- #### 🤗 Social chat
42
- WhatsApp Chat, Messenger, Telegram, Signal
43
-
44
- #### 🆕 Lots of buttons
45
- Multiple buttons for your website, even on a single page
46
-
47
- #### 🗂️ Multi action buttons
48
- Multibutton (expandable) and Buttonbar (full width)
49
-
50
- #### 💬 WhatsApp chat window
51
- A WhatsApp chat window to slide into the screen
52
-
53
- #### 🖥️ All devices
54
- Desktop/laptop and mobile support
55
-
56
- #### 🎯 Advanced page targeting
57
- Create smart rules for your buttons to appear
58
-
59
- #### 🕘 Scheduler
60
- Create a weekly schedule for your buttons
61
-
62
- #### 👋 Animations
63
- Add extra attention grabbing animations
64
-
65
- #### 🎨 Icon picker
66
- Select the right icon for your button
67
-
68
- #### 👽 3rd party integrations
69
- Content Windows, Intercom chat and Tally forms
70
 
71
  ### Call Now Button PRO
72
  We also offer a paid version of the Call Now Button. The PRO plan offers the following extras:
73
 
74
- 📄 Slide-in Content Windows
75
- 📷 Use custom images on buttons
76
- 🌍 Include and exclude countries
77
- ↕️ Set scroll height for buttons to appear
78
- 🔌 Intercom integration
79
 
80
 
81
  == Installation ==
@@ -148,6 +127,9 @@ Yes, you can connect to our Cloud service (for free) to enable tons of extra fea
148
 
149
 
150
  == Changelog ==
 
 
 
151
  = 1.2.1 =
152
  * Couple of UI improvements
153
  * Minor bug fixes
5
  Requires at least: 4.1
6
  Requires PHP: 5.4
7
  Tested up to: 6.0
8
+ Stable tag: 1.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ The web's #1 click to call button for your website! A simple and powerful plugin that adds a Call Now Button to your website for your mobile visitors
13
 
14
  == Description ==
15
 
35
  ### Call Now Button CLOUD
36
  Connect the plugin to our Cloud service (which is super easy) enables many extra features. Here's an overview:
37
 
38
+ * More actions: SMS/Text, Email, Maps, URLs, Scroll to top
39
+ * 🤗 Social chat: WhatsApp Chat, Messenger, Telegram, Signal
40
+ * 🆕Multiple buttons for your website, even on a single page
41
+ * 🗂️ Multi action buttons
42
+ * 💬 WhatsApp chat window
43
+ * 🖥️Desktop/laptop and mobile support
44
+ * 🎯Create smart rules for your buttons to appear
45
+ * 🕘 Scheduler: create a weekly schedule for your buttons
46
+ * 👋Add extra attention grabbing animations
47
+ * 🎨 Icon picker
48
+ * 👽 3rd party integrations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  ### Call Now Button PRO
51
  We also offer a paid version of the Call Now Button. The PRO plan offers the following extras:
52
 
53
+ * Slide-in Content Windows
54
+ * 📷 Use custom images on buttons
55
+ * 🌍 Include and exclude countries
56
+ * ↕️ Set scroll height for buttons to appear
57
+ * 🔌 Intercom integration
58
 
59
 
60
  == Installation ==
127
 
128
 
129
  == Changelog ==
130
+ = 1.2.2 =
131
+ * UI improvements
132
+
133
  = 1.2.1 =
134
  * Couple of UI improvements
135
  * Minor bug fixes
resources/js/action-edit.js CHANGED
@@ -105,6 +105,7 @@ function cnb_init_image_select() {
105
  if (!selected) return
106
 
107
  jQuery('#cnb_action_icon_background_image').val('url(' + selected.url + ')').trigger('change')
 
108
  });
109
 
110
  image_frame.open();
105
  if (!selected) return
106
 
107
  jQuery('#cnb_action_icon_background_image').val('url(' + selected.url + ')').trigger('change')
108
+ jQuery('#cnb_selected_action_background_image').css({backgroundImage: 'url(' + selected.url + ')', display: "flex" })
109
  });
110
 
111
  image_frame.open();
resources/js/action-type-to-icon-text.js CHANGED
@@ -164,6 +164,7 @@ function cnb_remove_all_icon_highlights() {
164
  function cnb_remove_icon_background_image() {
165
  jQuery('#cnb_action_icon_background_image').val('')
166
  jQuery('#cnb_action_icon_background_image').attr('value', '')
 
167
  }
168
 
169
  function initUpdateIconText() {
164
  function cnb_remove_icon_background_image() {
165
  jQuery('#cnb_action_icon_background_image').val('')
166
  jQuery('#cnb_action_icon_background_image').attr('value', '')
167
+ jQuery('#cnb_selected_action_background_image').css({backgroundImage: '', display: "none" })
168
  }
169
 
170
  function initUpdateIconText() {
resources/style/call-now-button.css CHANGED
@@ -387,9 +387,10 @@ h1.cnb-upgrade-title {
387
  .cnb-price-plans .plan-amount {
388
  margin:20px 0;
389
  font-weight:700;
 
390
  }
391
  .cnb-price-plans .euros {
392
- font-size:4em;
393
  }
394
  .cnb-price-plans .billingprice,
395
  .cnb-price-plans .timeframe {
@@ -1211,13 +1212,19 @@ span.cnb_check_email_message {
1211
  background-color: #ddd;
1212
  color: #555;
1213
  }
 
 
 
 
 
 
1214
  .cnb-button-icon.cnb_icon_active {
1215
  background-color: #2271b1;
1216
  color: #fff;
1217
  }
1218
  .cnb-button-icon:not(.cnb_icon_active):hover {
1219
  color: #2271b1;
1220
- background: #d6e0e8;
1221
  }
1222
  .cnb-button-icon i {
1223
  cursor: pointer;
387
  .cnb-price-plans .plan-amount {
388
  margin:20px 0;
389
  font-weight:700;
390
+ font-size:16px;
391
  }
392
  .cnb-price-plans .euros {
393
+ font-size:3em;
394
  }
395
  .cnb-price-plans .billingprice,
396
  .cnb-price-plans .timeframe {
1212
  background-color: #ddd;
1213
  color: #555;
1214
  }
1215
+ .cnb-button-icon.cnb-button-image {
1216
+ border:2px solid #2271b1;
1217
+ background-size:cover;
1218
+ background-color:transparent;
1219
+ box-sizing: border-box;
1220
+ }
1221
  .cnb-button-icon.cnb_icon_active {
1222
  background-color: #2271b1;
1223
  color: #fff;
1224
  }
1225
  .cnb-button-icon:not(.cnb_icon_active):hover {
1226
  color: #2271b1;
1227
+ background-color: #d6e0e8;
1228
  }
1229
  .cnb-button-icon i {
1230
  cursor: pointer;
src/admin/action/CnbActionViewEdit.php CHANGED
@@ -173,7 +173,7 @@ class CnbActionViewEdit {
173
  </th>
174
  </tr>
175
  <?php } ?>
176
-
177
  <tr class="cnb_hide_on_modal">
178
  <th scope="row"><label for="cnb_action_type">Button type</label></th>
179
  <td>
@@ -415,6 +415,9 @@ class CnbActionViewEdit {
415
  </div>
416
  </div>
417
 
 
 
 
418
  <input
419
  type="hidden"
420
  name="actions[<?php echo esc_attr( $action->id ) ?>][iconBackgroundImage]"
173
  </th>
174
  </tr>
175
  <?php } ?>
176
+
177
  <tr class="cnb_hide_on_modal">
178
  <th scope="row"><label for="cnb_action_type">Button type</label></th>
179
  <td>
415
  </div>
416
  </div>
417
 
418
+ <div class="cnb-button-icon cnb-button-image cnb_icon_active" id="cnb_selected_action_background_image" style="background-image:<?php echo esc_attr( $action->iconBackgroundImage ) ?>">
419
+
420
+ </div>
421
  <input
422
  type="hidden"
423
  name="actions[<?php echo esc_attr( $action->id ) ?>][iconBackgroundImage]"
src/admin/button/CnbButtonView.php CHANGED
@@ -160,15 +160,19 @@ class CnbButtonView {
160
  } else {
161
  ( new CnbAdminFunctions() )->cnb_promobox(
162
  'purple',
163
- 'Remove "Powered by"',
164
- '<p>✨ Remove the <em>Powered by</em> notice</p>
165
- <p><strong>Plus enable extra features:</strong><br>
166
- 📄 Slide-in content windows<br>
 
167
  📷 Use custom images on buttons<br>
168
  🌍 Include and exclude countries<br>
169
  ↕️ Set scroll height for buttons to appear<br>
170
- 🔌 Intercom Chat integration</p>',
171
- 'flag',
 
 
 
172
  '<strong>&euro;<span class="eur-per-month"></span>/$<span class="usd-per-month"></span> per month</strong>',
173
  'Upgrade',
174
  $upgrade_url
160
  } else {
161
  ( new CnbAdminFunctions() )->cnb_promobox(
162
  'purple',
163
+ 'Professional features',
164
+ '<p>
165
+ Slide-in Content Windows<a
166
+ href="' . esc_url( $cnb_utils->get_website_url( 'integrations/#iframes', 'pro-upgrade', 'content-windows' ) ) . '"
167
+ target="_blank" class="cnb-nounderscore"><span class="dashicons dashicons-editor-help"></span></a><br>
168
  📷 Use custom images on buttons<br>
169
  🌍 Include and exclude countries<br>
170
  ↕️ Set scroll height for buttons to appear<br>
171
+ 🔌 Intercom Chat integration<a
172
+ href="' . esc_url( $cnb_utils->get_website_url( 'integrations/#intercom', 'pro-upgrade', 'intercom' ) ) . '"
173
+ target="_blank" class="cnb-nounderscore"><span class="dashicons dashicons-editor-help"></span></a><br>
174
+ ✨ Remove the <em>Powered by</em> notice</p>',
175
+ 'performance',
176
  '<strong>&euro;<span class="eur-per-month"></span>/$<span class="usd-per-month"></span> per month</strong>',
177
  'Upgrade',
178
  $upgrade_url
src/admin/domain/CnbDomain.php CHANGED
@@ -60,6 +60,7 @@ class CnbDomain implements JsonSerializable {
60
  $domain->trackGA = CnbUtils::getPropertyOrNull( $object, 'trackGA' );
61
  $domain->trackConversion = CnbUtils::getPropertyOrNull( $object, 'trackConversion' );
62
  $domain->renew = CnbUtils::getPropertyOrNull( $object, 'renew' );
 
63
 
64
  // Convert into booleans
65
  $domain->trackGA = filter_var( $domain->trackGA, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE );
60
  $domain->trackGA = CnbUtils::getPropertyOrNull( $object, 'trackGA' );
61
  $domain->trackConversion = CnbUtils::getPropertyOrNull( $object, 'trackConversion' );
62
  $domain->renew = CnbUtils::getPropertyOrNull( $object, 'renew' );
63
+ $domain->expires = CnbUtils::getPropertyOrNull( $object, 'expires' );
64
 
65
  // Convert into booleans
66
  $domain->trackGA = filter_var( $domain->trackGA, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE );
src/admin/domain/partials/CnbDomainViewUpgradeFinished.php CHANGED
@@ -112,9 +112,11 @@ class CnbDomainViewUpgradeFinished {
112
  echo '</div>';
113
  echo '<div class="cnb-pricebox">';
114
  echo '<div class="cnb-benefit">✨ All "Powered by" notices are removed! ✨</div>';
 
115
  echo '<div class="cnb-benefit">📷 Use custom images on buttons 📷</div>';
116
  echo '<div class="cnb-benefit">🌍 You can include and exclude countries 🌍</div>';
117
- echo '<div class="cnb-benefit">↕️ Set a scroll height for buttons to appear ↕️</div>';
 
118
  echo '</div>';
119
 
120
  $this->renderLetsGo();
112
  echo '</div>';
113
  echo '<div class="cnb-pricebox">';
114
  echo '<div class="cnb-benefit">✨ All "Powered by" notices are removed! ✨</div>';
115
+ echo '<div class="cnb-benefit">⚡ Create slide-in Content Windows ⚡</div>';
116
  echo '<div class="cnb-benefit">📷 Use custom images on buttons 📷</div>';
117
  echo '<div class="cnb-benefit">🌍 You can include and exclude countries 🌍</div>';
118
+ echo '<div class="cnb-benefit">↕️ Set scroll depth (buttons appear after scrolling) ↕️</div>';
119
+ echo '<div class="cnb-benefit">🔌 Include Intercom Chat via our integration 🔌</div>';
120
  echo '</div>';
121
 
122
  $this->renderLetsGo();
src/admin/domain/partials/CnbDomainViewUpgradeOverview.php CHANGED
@@ -9,6 +9,7 @@ use cnb\admin\api\CnbAppRemotePayment;
9
  use cnb\admin\api\CnbAppRemotePromotionCodes;
10
  use cnb\admin\models\CnbPlan;
11
  use cnb\admin\models\CnbUser;
 
12
 
13
  class CnbDomainViewUpgradeOverview {
14
 
@@ -34,6 +35,7 @@ class CnbDomainViewUpgradeOverview {
34
  * @return void
35
  */
36
  function render( $domain ) {
 
37
  if ( $domain->type !== 'FREE' ) { ?><p>Your domain is currently on the
38
  <code><?php echo esc_html( $domain->type ) ?></code> plan.</p>
39
  <?php } ?>
@@ -60,16 +62,20 @@ class CnbDomainViewUpgradeOverview {
60
  <h1 class="cnb-upgrade-title">Upgrade <?php echo esc_html( $domain->name ) ?> to PRO</h1>
61
  <div class="cnb-pricebox">
62
  <div class="cnb-benefit">🧰 All features from Cloud</div>
63
- <div class="cnb-benefit">📄 Slide-in content windows</div>
 
 
64
  <div class="cnb-benefit">📷 Use custom images on buttons</div>
65
  <div class="cnb-benefit">🌍 Include and exclude countries</div>
66
- <div class="cnb-benefit">↕️ Set scroll height for buttons to appear</div>
67
- <div class="cnb-benefit">🔌 Intercom Chat integration</div>
 
 
68
  <div class="cnb-benefit">✨ "Powered by" notice removed</div>
69
  </div>
70
  <?php
71
  $this->renderUpgradeForm( $domain );
72
- echo '<h3 class="cnb-center cnb-plan-features">All plans contain the following features:</h3>';
73
  $this->renderBenefits();
74
  }
75
 
@@ -93,7 +99,6 @@ class CnbDomainViewUpgradeOverview {
93
  $this->renderJsToHideCurrency( $cnb_user );
94
  $plans = CnbAppRemotePayment::cnb_remote_get_plans();
95
  $active_currency = $this->getActiveCurrency( $cnb_user );
96
- $domain_controller = new CnbDomainController();
97
  ?>
98
  <form id="wp_domain_upgrade" method="post">
99
  <input type="hidden" name="cnb_domain_id" id="cnb_domain_id" value="<?php echo esc_attr( $domain->id ) ?>">
@@ -106,52 +111,49 @@ class CnbDomainViewUpgradeOverview {
106
  cnb-flexbox
107
  ">
108
  <?php
109
- $plan_year = $this->get_plan( $plans, 'powered-by-eur-yearly' );
110
- $plan_month = $this->get_plan( $plans, 'powered-by-eur-monthly' );
111
- $annual_discount = $domain_controller->get_discount_percentage($plan_year, $plan_month);
112
- $plan_x = floor( $plan_month->price );
113
- $plan_y = round( ( $plan_month->price ) - floor( $plan_month->price ), 2 ) * 100;
114
  ?>
115
 
116
  <div class="cnb-pricebox cnb-currency-box
117
  <?php if ( $active_currency !== 'usd' ) { ?>currency-box-active<?php } ?>">
118
- <h3 class="cnb-price-eur">PRO &euro;</h3>
119
 
120
  <div class="plan-amount"><span class="currency">€</span><span
121
  class="euros"><?php echo esc_html( $plan_x ) ?></span><span
122
- class="cents">.<?php echo esc_html( $plan_y ) ?></span><span class="timeframe">/monthly</span>
123
  </div>
124
  <div class="billingprice">
125
- <span class="">Pay yearly and save <?php echo esc_html( $annual_discount ); ?>%!</span>
126
  </div>
127
- <a class="button button-secondary button-upgrade powered-by-eur-monthly" href="#"
128
- onclick="cnb_get_checkout('<?php echo esc_js( $plan_month->id ) ?>')">Pay monthly</a>
129
  <a class="button button-primary button-upgrade powered-by-eur-yearly" href="#"
130
- onclick="cnb_get_checkout('<?php echo esc_js( $plan_year->id ) ?>')">Pay yearly</a>
131
  </div>
132
 
133
  <?php
134
  $plan_year = $this->get_plan( $plans, 'powered-by-usd-yearly' );
135
- $plan_month = $this->get_plan( $plans, 'powered-by-usd-monthly' );
136
- $plan_x = floor( $plan_month->price );
137
- $plan_y = round( ( $plan_month->price ) - floor( $plan_month->price ), 2 ) * 100;
138
- $annual_discount = $domain_controller->get_discount_percentage($plan_year, $plan_month);
139
  ?>
140
  <div class="cnb-pricebox cnb-currency-box
141
  <?php if ( $active_currency !== 'eur' ) { ?>currency-box-active<?php } ?>">
142
- <h3 class="cnb-price-usd">PRO $</h3>
143
 
144
  <div class="plan-amount"><span class="currency">$</span><span
145
  class="euros"><?php echo esc_html( $plan_x ) ?></span><span
146
  class="cents">.<?php echo esc_html( $plan_y ) ?></span><span class="timeframe">/month</span>
147
  </div>
148
  <div class="billingprice">
149
- <span class="">Pay yearly and save <?php echo esc_html( $annual_discount ); ?>%!</span>
150
  </div>
151
- <a class="button button-secondary button-upgrade powered-by-eur-monthly" href="#"
152
- onclick="cnb_get_checkout('<?php echo esc_js( $plan_month->id ) ?>')">Pay monthly</a>
153
  <a class="button button-primary button-upgrade powered-by-eur-yearly" href="#"
154
- onclick="cnb_get_checkout('<?php echo esc_js( $plan_year->id ) ?>')">Pay yearly</a>
155
  </div>
156
 
157
  </div>
@@ -181,9 +183,8 @@ class CnbDomainViewUpgradeOverview {
181
  <li><strong>Multi action buttons</strong><br>Multibutton&trade; (expandable single button)<br>Buttonbar&trade;
182
  (Add up to 5 actions to a full width button)
183
  </li>
184
- <li><strong>WhatsApp modal</strong><br>A chat-like modal to kickstart the conversation</li>
185
- <li><strong>Iframe pop-up</strong><br>Slide in a window with any url to keep people on the page.</li>
186
- <li><strong>Intercom integration</strong><br>Fire Intercom from a matching style button.</li>
187
  </ul>
188
  <ul class="cnb-checklist">
189
  <li><strong>Button animations</strong><br>Draw more attention to your buttons with subtle
9
  use cnb\admin\api\CnbAppRemotePromotionCodes;
10
  use cnb\admin\models\CnbPlan;
11
  use cnb\admin\models\CnbUser;
12
+ use cnb\utils\CnbUtils;
13
 
14
  class CnbDomainViewUpgradeOverview {
15
 
35
  * @return void
36
  */
37
  function render( $domain ) {
38
+ $cnb_utils = new CnbUtils();
39
  if ( $domain->type !== 'FREE' ) { ?><p>Your domain is currently on the
40
  <code><?php echo esc_html( $domain->type ) ?></code> plan.</p>
41
  <?php } ?>
62
  <h1 class="cnb-upgrade-title">Upgrade <?php echo esc_html( $domain->name ) ?> to PRO</h1>
63
  <div class="cnb-pricebox">
64
  <div class="cnb-benefit">🧰 All features from Cloud</div>
65
+ <div class="cnb-benefit">⚡ Slide-in Content Windows<a
66
+ href="<?php echo esc_url( $cnb_utils->get_website_url( 'integrations/#iframes', 'pro-upgrade', 'content-windows' ) ) ?>"
67
+ target="_blank" class="cnb-nounderscore"><span class="dashicons dashicons-editor-help"></span></a></div>
68
  <div class="cnb-benefit">📷 Use custom images on buttons</div>
69
  <div class="cnb-benefit">🌍 Include and exclude countries</div>
70
+ <div class="cnb-benefit">↕️ Set scroll depth (buttons appear after scrolling)</div>
71
+ <div class="cnb-benefit">🔌 Intercom Chat integration<a
72
+ href="<?php echo esc_url( $cnb_utils->get_website_url( 'integrations/#intercom', 'pro-upgrade', 'intercom' ) ) ?>"
73
+ target="_blank" class="cnb-nounderscore"><span class="dashicons dashicons-editor-help"></span></a></div>
74
  <div class="cnb-benefit">✨ "Powered by" notice removed</div>
75
  </div>
76
  <?php
77
  $this->renderUpgradeForm( $domain );
78
+ echo '<h2 class="cnb-center cnb-plan-features">The PRO plan also includes the following Cloud features:</h2>';
79
  $this->renderBenefits();
80
  }
81
 
99
  $this->renderJsToHideCurrency( $cnb_user );
100
  $plans = CnbAppRemotePayment::cnb_remote_get_plans();
101
  $active_currency = $this->getActiveCurrency( $cnb_user );
 
102
  ?>
103
  <form id="wp_domain_upgrade" method="post">
104
  <input type="hidden" name="cnb_domain_id" id="cnb_domain_id" value="<?php echo esc_attr( $domain->id ) ?>">
111
  cnb-flexbox
112
  ">
113
  <?php
114
+ $plan_year = $this->get_plan( $plans, 'powered-by-eur-yearly' );
115
+ $plan_year_monthly = $plan_year->price / 12;
116
+ $plan_x = floor( $plan_year_monthly );
117
+ $plan_y = round( ( $plan_year_monthly ) - floor( $plan_year_monthly ), 2 ) * 100;
 
118
  ?>
119
 
120
  <div class="cnb-pricebox cnb-currency-box
121
  <?php if ( $active_currency !== 'usd' ) { ?>currency-box-active<?php } ?>">
122
+ <h3 class="cnb-price-eur">PRO EURO</h3>
123
 
124
  <div class="plan-amount"><span class="currency">€</span><span
125
  class="euros"><?php echo esc_html( $plan_x ) ?></span><span
126
+ class="cents">.<?php echo esc_html( $plan_y ) ?></span><span class="timeframe">/month</span>
127
  </div>
128
  <div class="billingprice">
129
+ <span class="">Billed &euro;<?php echo esc_html(number_format($plan_year->price,2,'.',''));?> every 12 months.<br>VAT may apply</span>
130
  </div>
131
+
 
132
  <a class="button button-primary button-upgrade powered-by-eur-yearly" href="#"
133
+ onclick="cnb_get_checkout('<?php echo esc_js( $plan_year->id ) ?>')">Upgrade Now</a>
134
  </div>
135
 
136
  <?php
137
  $plan_year = $this->get_plan( $plans, 'powered-by-usd-yearly' );
138
+ $plan_year_monthly = $plan_year->price / 12;
139
+ $plan_x = floor( $plan_year_monthly );
140
+ $plan_y = round( ( $plan_year_monthly ) - floor( $plan_year_monthly ), 2 ) * 100;
141
+
142
  ?>
143
  <div class="cnb-pricebox cnb-currency-box
144
  <?php if ( $active_currency !== 'eur' ) { ?>currency-box-active<?php } ?>">
145
+ <h3 class="cnb-price-usd">PRO USD</h3>
146
 
147
  <div class="plan-amount"><span class="currency">$</span><span
148
  class="euros"><?php echo esc_html( $plan_x ) ?></span><span
149
  class="cents">.<?php echo esc_html( $plan_y ) ?></span><span class="timeframe">/month</span>
150
  </div>
151
  <div class="billingprice">
152
+ <span class="">Billed $<?php echo esc_html(number_format($plan_year->price,2,'.',''));?> every 12 months.<br>VAT may apply</span>
153
  </div>
154
+
 
155
  <a class="button button-primary button-upgrade powered-by-eur-yearly" href="#"
156
+ onclick="cnb_get_checkout('<?php echo esc_js( $plan_year->id ) ?>')">Upgrade Now</a>
157
  </div>
158
 
159
  </div>
183
  <li><strong>Multi action buttons</strong><br>Multibutton&trade; (expandable single button)<br>Buttonbar&trade;
184
  (Add up to 5 actions to a full width button)
185
  </li>
186
+ <li><strong>WhatsApp Chat window</strong><br>A chat window to kickstart the conversation</li>
187
+ <li><strong>Tally Form window</strong><br>Easily embed a Tally form in our Content Window</li>
 
188
  </ul>
189
  <ul class="cnb-checklist">
190
  <li><strong>Button animations</strong><br>Draw more attention to your buttons with subtle
src/admin/legacy/CnbLegacyEdit.php CHANGED
@@ -449,7 +449,7 @@ class CnbLegacyEdit {
449
  'Unlock extra power',
450
  '<p><span class="cnb-purple">&check;</span> More buttons<br>
451
  <span class="cnb-purple">&check;</span> Text/SMS, Email, Links, Directions<br>
452
- <span class="cnb-purple">&check;</span> Signal, Telegram, FB Messenger<br>
453
  <span class="cnb-purple">&check;</span> WhatsApp with Chat modal<br>
454
  <span class="cnb-purple">&check;</span> Scheduling<br>
455
  <span class="cnb-purple">&check;</span> Multi action buttons<br>
449
  'Unlock extra power',
450
  '<p><span class="cnb-purple">&check;</span> More buttons<br>
451
  <span class="cnb-purple">&check;</span> Text/SMS, Email, Links, Directions<br>
452
+ <span class="cnb-purple">&check;</span> Signal, Telegram, Messenger<br>
453
  <span class="cnb-purple">&check;</span> WhatsApp with Chat modal<br>
454
  <span class="cnb-purple">&check;</span> Scheduling<br>
455
  <span class="cnb-purple">&check;</span> Multi action buttons<br>
src/admin/settings/CnbSettingsViewEdit.php CHANGED
@@ -387,16 +387,15 @@ class CnbSettingsViewEdit {
387
  } else {
388
  ( new CnbAdminFunctions() )->cnb_promobox(
389
  'green',
390
- 'Remove Branding with PRO',
391
- '<p>✨ Remove the <em>Powered by</em> notice</p>
392
- <p><strong>Plus enable extra features:</strong><br>
393
- 📄 Slide-in content windows<br>
394
  📷 Use custom images on buttons<br>
395
  🌍 Include and exclude countries<br>
396
  ↕️ Set scroll height for buttons to appear<br>
397
  🔌 Intercom Chat integration</p>',
398
  'flag',
399
- '<strong>From $<span class="usd-per-month"></span> monthly</strong>',
400
  'Upgrade now',
401
  ( new CnbUtils() )->get_cnb_domain_upgrade( $cnb_cloud_domain )
402
  );
387
  } else {
388
  ( new CnbAdminFunctions() )->cnb_promobox(
389
  'green',
390
+ 'Business features',
391
+ '<p>✨ Remove the <em>Powered by</em> notice<br>
392
+ Slide-in content windows<br>
 
393
  📷 Use custom images on buttons<br>
394
  🌍 Include and exclude countries<br>
395
  ↕️ Set scroll height for buttons to appear<br>
396
  🔌 Intercom Chat integration</p>',
397
  'flag',
398
+ '<strong>$<span class="usd-per-month"></span> or &euro;<span class="eur-per-month"></span> monthly</strong>',
399
  'Upgrade now',
400
  ( new CnbUtils() )->get_cnb_domain_upgrade( $cnb_cloud_domain )
401
  );