Call Now Button - Version 1.1.5

Version Description

  • Fix for W3 Total Cache lazy-loading breaking the button styling
Download this release

Release Info

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

Code changes from version 1.1.4 to 1.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: 1.1.4
7
  Author: Jerry Rietveld
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.1.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: 1.1.5
7
  Author: Jerry Rietveld
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.1.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: 6.0
8
- Stable tag: 1.1.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -111,6 +111,9 @@ Yes, you can upgrade to Premium to enable tons of extra features. Checkout [call
111
 
112
 
113
  == Changelog ==
 
 
 
114
  = 1.1.4 =
115
  * New phone icon on call button
116
  * Sunsetted the original (classic) corner button
5
  Requires at least: 3.9
6
  Requires PHP: 5.4
7
  Tested up to: 6.0
8
+ Stable tag: 1.1.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
111
 
112
 
113
  == Changelog ==
114
+ = 1.1.5 =
115
+ * Fix for W3 Total Cache lazy-loading breaking the button styling
116
+
117
  = 1.1.4 =
118
  * New phone icon on call button
119
  * Sunsetted the original (classic) corner button
resources/style/modern.css CHANGED
@@ -33,6 +33,9 @@
33
  height: 55px;
34
  border-radius: 50%;
35
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
 
 
 
36
  }
37
 
38
  .cnb-single.cnb-middle {
33
  height: 55px;
34
  border-radius: 50%;
35
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
36
+ background-position: center;
37
+ background-size:35px 35px;
38
+ background-repeat: no-repeat;
39
  }
40
 
41
  .cnb-single.cnb-middle {
src/renderers/modern/class-modernrenderer.php CHANGED
@@ -190,7 +190,7 @@ class ModernRenderer extends Renderer {
190
  private function get_background_css() {
191
  $cnb_options = get_option( 'cnb' );
192
  if ( 'full' === $cnb_options['appearance'] || 'tfull' === $cnb_options['appearance'] ) {
193
- return sprintf( 'background:%1$s;',
194
  esc_attr( $cnb_options['color'] )
195
  );
196
  } else {
@@ -198,7 +198,7 @@ class ModernRenderer extends Renderer {
198
  $cnb_options['iconcolor'] );
199
 
200
  return
201
- sprintf( 'background:url(data:image/svg+xml;base64,%1$s) center/35px 35px no-repeat %2$s;',
202
  esc_attr( $svg ),
203
  esc_attr( $cnb_options['color'] )
204
  );
190
  private function get_background_css() {
191
  $cnb_options = get_option( 'cnb' );
192
  if ( 'full' === $cnb_options['appearance'] || 'tfull' === $cnb_options['appearance'] ) {
193
+ return sprintf( 'background-color:%1$s;',
194
  esc_attr( $cnb_options['color'] )
195
  );
196
  } else {
198
  $cnb_options['iconcolor'] );
199
 
200
  return
201
+ sprintf( 'background-image:url(data:image/svg+xml;base64,%1$s); background-color:%2$s;',
202
  esc_attr( $svg ),
203
  esc_attr( $cnb_options['color'] )
204
  );