Changeset 2863405
- Timestamp:
- 02/10/2023 06:41:59 PM (2 years ago)
- Location:
- click-to-call-or-chat-buttons/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
click-to-call-or-chat-buttons/trunk/ctcocb.php
r2501312 r2863405 4 4 Plugin URI: https://www.digitalblue.ro/click-to-call-or-chat-buttons/ 5 5 Description: Mobile visitors will see a call or chat button in your website 6 Version: 1. 4.06 Version: 1.5.0 7 7 Author: DIGITALBLUE 8 8 Author URI: https://www.digitalblue.ro … … 30 30 31 31 32 define('CTCOCB_VERSION','1. 4.0');32 define('CTCOCB_VERSION','1.5.0'); 33 33 define('CTCOCB_BASENAME', plugin_basename( __FILE__ ) ); 34 34 define('CTCOCB_BASEFOLDER', plugin_basename( dirname( __FILE__ ) ) ); … … 456 456 if($ctcocb_options['text']!='')$ctcocb_text='<div class="ctcocb-text">'.$ctcocb_options['text'].'</div>'; 457 457 if($ctcocb_options['textWapp']!='')$ctcocb_textWapp='<div class="ctcocb-wapp">'.$ctcocb_options['textWapp'].'</div>'; 458 if($ctcocb_options['displayPhone']) $ButtonPhone= '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a href="tel:'.$ctcocb_options['numberPhone'].'" '.$trackingcode_Phone.'><div class="ctcocb-img" ><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconPhone',$colorsp,100).'"/></div>'.$ctcocb_textPhone.'</a></div>';458 if($ctcocb_options['displayPhone']) $ButtonPhone= '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a href="tel:'.$ctcocb_options['numberPhone'].'" '.$trackingcode_Phone.'><div class="ctcocb-img" ><img alt="Phone icon" src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconPhone',$colorsp,100).'"/></div>'.$ctcocb_textPhone.'</a></div>'; 459 459 if($ctcocb_options['displayText']) $ButtonText= '<div class="ctcocb-cols-'.$ctcocb_cols.'">'.$ctcocb_text.'</div>'; 460 if($ctcocb_options['displayWapp']) $ButtonWapp= '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a href="https://wa.me/'.$ctcocb_options['numberWapp'].'" '.$trackingcode_WApp.'><div class="ctcocb-img" ><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconWapp',$colorsw,100).'"/></div>'.$ctcocb_textWapp.'</a></div>';460 if($ctcocb_options['displayWapp']) $ButtonWapp= '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a href="https://wa.me/'.$ctcocb_options['numberWapp'].'" '.$trackingcode_WApp.'><div class="ctcocb-img" ><img alt="WhatsApp icon" src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconWapp',$colorsw,100).'"/></div>'.$ctcocb_textWapp.'</a></div>'; 461 461 $Button=$ButtonPhone.$ButtonText.$ButtonWapp; 462 462 if($ctcocb_options['appearanceOrder']==1)$Button=$ButtonPhone.$ButtonText.$ButtonWapp; … … 566 566 } 567 567 function ctcocb_options_init() { 568 register_setting('ctcocb_options','ctcocb'); 568 register_setting( 569 'ctcocb_options', 570 'ctcocb', 571 'ctcocb_sanitize' 572 ); 573 } 574 575 function ctcocb_sanitize($input) { 576 foreach ($input as $key=>$value) { 577 $input[$key]= esc_html(sanitize_text_field($value)); 578 } 579 return $input; 569 580 } 570 581 -
click-to-call-or-chat-buttons/trunk/readme.txt
r2501312 r2863405 3 3 Tags: click to call chat, call us button, call now button, contact bottom button, phone whatsapp button 4 4 Requires at least: 5.2 5 Tested up to: 5.75 Tested up to: 6.1 6 6 Requires PHP: 7.0 7 Stable tag: 1. 4.07 Stable tag: 1.5.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 = 1.4.0 = 103 103 * Small corrections. 104 105 = 1.5.0 = 106 * SEO improvements for Lighthouse report, 107 * Fix Cross Site Scripting vulnerability in admin (thanks to https://patchstack.com/)
Note: See TracChangeset
for help on using the changeset viewer.