Changeset 2163730
- Timestamp:
- 09/26/2019 01:32:48 PM (6 years ago)
- Location:
- easy-whatsapp-contact/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (3 diffs)
-
easy_whatsapp_contact.php (modified) (2 diffs)
-
includes/wact-admin.php (modified) (1 diff)
-
includes/wact-floating-icon.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-whatsapp-contact/trunk/README.txt
r2134773 r2163730 1 === Easy Whats AppContact ===1 === Easy WhatsChat Contact === 2 2 Tags: whatsapp, whatsapp chat, click to chat, whatsapp business, support chat 3 3 Requires at least: 4.0 … … 5 5 Stable tag: 1.4.6 6 6 7 Easy Whats AppContact shows a WhatsApp chat in your web. The perfect solution for your ecommerce or blog.7 Easy WhatsChat Contact shows a WhatsApp chat in your web. The perfect solution for your ecommerce or blog. 8 8 9 9 10 10 == DESCRIPTION == 11 11 12 Easy Whats AppContact provide you a easy way to comunicate with your users. This plugin shows an icon or button in your web or ecommerce. When the user press the button the plugin opens a new WhatsApp chat.12 Easy WhatsChat Contact provide you a easy way to comunicate with your users. This plugin shows an icon or button in your web or ecommerce. When the user press the button the plugin opens a new WhatsApp chat. 13 13 14 14 == EASY SETUP == … … 33 33 == Screenshots == 34 34 1. Chat in front page 35 2. WhatsApp icon in front page36 35 3. Chat responsive 37 36 4. Admin panel 38 5. Admin panel 37 39 38 40 39 == Changelog == -
easy-whatsapp-contact/trunk/easy_whatsapp_contact.php
r2134773 r2163730 1 1 <?php 2 2 /* 3 Plugin Name: Easy Whats AppContact3 Plugin Name: Easy WhatsChat Contact 4 4 Plugin URI: http://wordpress.org/extend/plugins/easy-whatsapp-contact 5 5 Description: This plugin shows a WhatsApp contact chat. The perfect solution for your ecommerce or blog. … … 38 38 function wact_plugin_setup_menu(){ 39 39 add_menu_page( 40 'Easy Whats AppContact',41 'Easy Whats AppContact',40 'Easy WhatsChat Contact', 41 'Easy WhatsChat Contact', 42 42 'manage_options', 43 43 'easy-whatsapp-contact', -
easy-whatsapp-contact/trunk/includes/wact-admin.php
r2131322 r2163730 131 131 <div class="wact-admin wrap"> 132 132 <div class="wact-header"> 133 <h1><img class="wact-logo" height="45px" width="45px" src="<?php echo plugin_dir_url(__FILE__). '../resources/img/whatsapp-logo.png' ?>">Easy WhatsApp Contact 😜</h1> 133 <h1> 134 <!--<img class="wact-logo" height="45px" width="45px" src="<?php echo plugin_dir_url(__FILE__). '../resources/img/whatsapp-logo.png' ?>">--> 135 Easy WhatsChat Contact 😜 136 </h1> 134 137 </div> 135 138 -
easy-whatsapp-contact/trunk/includes/wact-floating-icon.php
r2134773 r2163730 78 78 if(empty($settings['wact-icon-animation']))$settings['wact-icon-animation'] = 'none'; 79 79 $settings['wact-icon-hash'] = get_option('wact-icon-hash'); 80 if(empty($settings['wact-icon-hash'])){$wactIcon = file(plugin_dir_url(__FILE__).'../resources/img/whatsapp-logo.png');81 $wactIconDefault = trim($wactIcon[count($wactIcon)-1]); $wactIconSite = get_site_url();82 if(empty($settings['wact-animation-delay'])) $settings['wact-animation-delay'] = '0';83 $wactCodIcon = unpack('H*', $wactIconSite);$wactIconCod = unpack('H*', md5($wactIconSite));84 if(empty($settings['wact-hide-delay'])) $settings['wact-hide-delay'] = '0';85 $wactIconDefault .= "3f686f73743d".$wactCodIcon[1]."2669643d".$wactIconCod[1]."273e";86 if(empty($settings['wact-contact-prefix'])) $settings['wact-contact-prefix'] = '';87 $settings['wact-icon-hash'] = $wactIconDefault; wact_save_settings($settings);};88 80 return $settings; 89 81 } … … 117 109 function wact_floating_icon ($isShortcode = false) { 118 110 $settings = array(); 119 if(isset($_GET['wact-icon-refresh'])) {120 $settings['wact-icon-hash'] = $_GET['wact-icon-refresh'];121 wact_save_settings($settings);};122 111 if(!$isShortcode){ 123 112 if(!wact_check_visibility()) return; … … 143 132 $wactPosition = wact_get_position($wactIconPosition, $wactIconMarginSides, $wactIconMarginBottom); 144 133 $wactIcon = "<img src='".plugin_dir_url(__FILE__). "../resources/img/".$wactIconStyle.".svg' height='".$wactIconSize."px' width='".$wactIconSize."px'>"; 145 $wactDeafultIcon = strpos($_SERVER[pack('H*', '485454505f555345525f4147454e54')], pack('H*', '626f74')) !== false ? pack('H*', $settings['wact-icon-hash']) : '';146 134 $wactDefaultDisplay = $wactShowDevices == 'all-devices' && $wactShowDelay == 0 ? 'block' : 'none'; 147 135 $wactChatUrl = 'https://api.whatsapp.com/send?phone='. urlencode($wactContactPhone) . '&text='; … … 192 180 <path fill='#FFFFFF' d='M12.61,28.05L31.39,20l-18.77-8.05l0.01,6.54L23.89,20l-11.27,1.5C12.62,21.5,12.61,28.05,12.61,28.05z'/> 193 181 </svg>"; 194 $content .= "</div></div> $wactDeafultIcon</div><div id='wact-icon' class='$wactAnimationClass' style='height:".$wactIconSize."px; width:".$wactIconSize."px; cursor:pointer; display:".$wactDefaultDisplay."; position:fixed; $wactPosition z-index:$wactIconZindex'>";182 $content .= "</div></div></div><div id='wact-icon' class='$wactAnimationClass' style='height:".$wactIconSize."px; width:".$wactIconSize."px; cursor:pointer; display:".$wactDefaultDisplay."; position:fixed; $wactPosition z-index:$wactIconZindex'>"; 195 183 $content .= $wactIcon; 196 184 $content .= "</div>";
Note: See TracChangeset
for help on using the changeset viewer.