Version Description
- Style-8 shortcode issue fixed
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.2
- click-to-chat.php +3 -3
- {admin → prev/admin}/admin.php +6 -6
- {admin → prev/admin}/class-ccw-add-styles-scripts-admin.php +6 -6
- {admin → prev/admin}/class-ccw-admin-menu.php +2 -2
- {admin → prev/admin}/class-ccw-admin-page-customize-styles.php +0 -0
- {admin → prev/admin}/class-ccw-admin-page.php +2 -2
- {admin → prev/admin}/commons/admin-sidebar.php +0 -0
- {admin → prev/admin}/commons/class-ht-ccw-admin-lists.php +0 -0
- {admin → prev/admin}/default-values.php +4 -2
- {admin → prev/admin}/settings_page.php +0 -0
- {admin → prev/admin}/sp_customize_styles.php +0 -0
- {assets → prev/assets}/css/admin_main.css +0 -0
- {assets → prev/assets}/css/mainstyles.css +0 -0
- {assets → prev/assets}/css/materialize.min.css +0 -0
- {assets → prev/assets}/css/mdstyle8.css +0 -0
- {assets → prev/assets}/fonts/ccw.eot +0 -0
- {assets → prev/assets}/fonts/ccw.svg +0 -0
- {assets → prev/assets}/fonts/ccw.ttf +0 -0
- {assets → prev/assets}/fonts/ccw.woff +0 -0
- {assets → prev/assets}/img/send.svg +0 -0
- {assets → prev/assets}/img/send_16.svg +0 -0
- {assets → prev/assets}/img/whatsapp-icon-square.svg +0 -0
- {assets → prev/assets}/img/whatsapp-logo-32x32-d.png +0 -0
- {assets → prev/assets}/img/whatsapp-logo-32x32.png +0 -0
- {assets → prev/assets}/img/whatsapp-logo-deprecated.png +0 -0
- {assets → prev/assets}/img/whatsapp-logo.png +0 -0
- {assets → prev/assets}/img/whatsapp-logo.svg +0 -0
- {assets → prev/assets}/img/whatsapp.svg +0 -0
- {assets → prev/assets}/js/admin_app.js +0 -0
- {assets → prev/assets}/js/app.js +0 -0
- {assets → prev/assets}/js/materialize.min.js +0 -0
- {inc → prev/inc}/class-ccw-add-styles-scripts.php +3 -3
- {inc → prev/inc}/class-ccw-shortcode.php +10 -10
- {inc → prev/inc}/class-ht-ccw-chat.php +1 -1
- {inc → prev/inc}/class-ht-ccw-register.php +1 -1
- {inc → prev/inc}/class-ht-ccw.php +10 -10
- {inc → prev/inc}/commons/class-ht-ccw-ismobile.php +0 -0
- {inc → prev/inc}/commons/class-ht-ccw-variables.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-1.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-2.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-3.php +1 -1
- {inc → prev/inc}/commons/styles-list-sc/sc-style-4.1.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-4.php +1 -1
- {inc → prev/inc}/commons/styles-list-sc/sc-style-5.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-6.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-7.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-8.1.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-8.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-9.php +0 -0
- {inc → prev/inc}/commons/styles-list-sc/sc-style-99.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-0.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-1.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-2.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-3.php +1 -1
- {inc → prev/inc}/commons/styles-list/style-4.php +1 -1
- {inc → prev/inc}/commons/styles-list/style-5.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-6.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-7.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-8.php +0 -0
- {inc → prev/inc}/commons/styles-list/style-9.php +1 -1
- {inc → prev/inc}/commons/styles-list/style-99.php +0 -0
- {inc → prev/inc}/commons/styles.php +7 -7
- readme.txt +15 -12
click-to-chat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Click to Chat
|
4 |
Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
|
5 |
Description: Lets make your Web page visitor contact you through WhatsApp with a single click/tap
|
6 |
-
Version: 1.7.
|
7 |
Author: HoliThemes
|
8 |
Author URI: https://holithemes.com/whatsapp-chat/
|
9 |
License: GPL2
|
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
17 |
|
18 |
// define HT_CCW_VERSION
|
19 |
if ( ! defined( 'HT_CCW_VERSION' ) ) {
|
20 |
-
define( 'HT_CCW_VERSION', '1.7.
|
21 |
}
|
22 |
|
23 |
// define HT_CCW_PLUGIN_FILE
|
@@ -26,7 +26,7 @@ if ( ! defined( 'HT_CCW_PLUGIN_FILE' ) ) {
|
|
26 |
}
|
27 |
|
28 |
// include main file
|
29 |
-
require_once 'inc/class-ht-ccw.php';
|
30 |
|
31 |
// create instance for the main file - HT_CCW
|
32 |
function ht_ccw() {
|
3 |
Plugin Name: Click to Chat
|
4 |
Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
|
5 |
Description: Lets make your Web page visitor contact you through WhatsApp with a single click/tap
|
6 |
+
Version: 1.7.2
|
7 |
Author: HoliThemes
|
8 |
Author URI: https://holithemes.com/whatsapp-chat/
|
9 |
License: GPL2
|
17 |
|
18 |
// define HT_CCW_VERSION
|
19 |
if ( ! defined( 'HT_CCW_VERSION' ) ) {
|
20 |
+
define( 'HT_CCW_VERSION', '1.7.2' );
|
21 |
}
|
22 |
|
23 |
// define HT_CCW_PLUGIN_FILE
|
26 |
}
|
27 |
|
28 |
// include main file
|
29 |
+
require_once 'prev/inc/class-ht-ccw.php';
|
30 |
|
31 |
// create instance for the main file - HT_CCW
|
32 |
function ht_ccw() {
|
{admin → prev/admin}/admin.php
RENAMED
@@ -14,18 +14,18 @@
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
/*************** includes ***********/
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
|
26 |
// as translation text added only in admin - so done here
|
27 |
// function load_ht_ccw_textdomain() {
|
28 |
-
// load_plugin_textdomain( 'click-to-chat-for-whatsapp', FALSE, HT_CCW_PLUGIN_BASENAME . '/languages/' );
|
29 |
// }
|
30 |
|
31 |
// add_action( 'plugins_loaded', 'load_ht_ccw_textdomain' );
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
/*************** includes ***********/
|
17 |
+
include_once('class-ccw-add-styles-scripts-admin.php');
|
18 |
|
19 |
+
include_once('commons/class-ht-ccw-admin-lists.php');
|
20 |
|
21 |
+
include_once('class-ccw-admin-menu.php');
|
22 |
+
include_once('class-ccw-admin-page.php');
|
23 |
+
include_once('class-ccw-admin-page-customize-styles.php');
|
24 |
|
25 |
|
26 |
// as translation text added only in admin - so done here
|
27 |
// function load_ht_ccw_textdomain() {
|
28 |
+
// load_plugin_textdomain( 'click-to-chat-for-whatsapp', FALSE, HT_CCW_PLUGIN_BASENAME . 'prev/languages/' );
|
29 |
// }
|
30 |
|
31 |
// add_action( 'plugins_loaded', 'load_ht_ccw_textdomain' );
|
{admin → prev/admin}/class-ccw-add-styles-scripts-admin.php
RENAMED
@@ -23,14 +23,14 @@ class CCW_Add_Styles_Scripts_Admin {
|
|
23 |
|
24 |
wp_enqueue_style( 'wp-color-picker' );
|
25 |
|
26 |
-
wp_enqueue_style('ccw_admin_md_css', plugins_url( 'assets/css/materialize.min.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
27 |
-
wp_enqueue_style('ccw_admin_main_css', plugins_url( 'assets/css/admin_main.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
28 |
|
29 |
|
30 |
-
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'assets/js/admin_app.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
31 |
-
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'assets/js/required/admin_app-works.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
32 |
-
wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'assets/js/materialize.min.js', HT_CCW_PLUGIN_FILE ), array( 'jquery' ), HT_CCW_VERSION, true );
|
33 |
-
wp_enqueue_script( 'ccw_admin_app_js', plugins_url( 'assets/js/admin_app.js', HT_CCW_PLUGIN_FILE ), array( 'ccw_admin_md_js', 'jquery', 'wp-color-picker' ), HT_CCW_VERSION, true );
|
34 |
|
35 |
} else {
|
36 |
return;
|
23 |
|
24 |
wp_enqueue_style( 'wp-color-picker' );
|
25 |
|
26 |
+
wp_enqueue_style('ccw_admin_md_css', plugins_url( 'prev/assets/css/materialize.min.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
27 |
+
wp_enqueue_style('ccw_admin_main_css', plugins_url( 'prev/assets/css/admin_main.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
28 |
|
29 |
|
30 |
+
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'prev/assets/js/admin_app.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
31 |
+
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'prev/assets/js/required/admin_app-works.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
32 |
+
wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'prev/assets/js/materialize.min.js', HT_CCW_PLUGIN_FILE ), array( 'jquery' ), HT_CCW_VERSION, true );
|
33 |
+
wp_enqueue_script( 'ccw_admin_app_js', plugins_url( 'prev/assets/js/admin_app.js', HT_CCW_PLUGIN_FILE ), array( 'ccw_admin_md_js', 'jquery', 'wp-color-picker' ), HT_CCW_VERSION, true );
|
34 |
|
35 |
} else {
|
36 |
return;
|
{admin → prev/admin}/class-ccw-admin-menu.php
RENAMED
@@ -34,7 +34,7 @@ class CCW_Admin_Menu {
|
|
34 |
return;
|
35 |
}
|
36 |
|
37 |
-
|
38 |
}
|
39 |
|
40 |
|
@@ -58,7 +58,7 @@ class CCW_Admin_Menu {
|
|
58 |
return;
|
59 |
}
|
60 |
|
61 |
-
|
62 |
}
|
63 |
|
64 |
|
34 |
return;
|
35 |
}
|
36 |
|
37 |
+
include_once('settings_page.php');
|
38 |
}
|
39 |
|
40 |
|
58 |
return;
|
59 |
}
|
60 |
|
61 |
+
include_once('sp_customize_styles.php');
|
62 |
}
|
63 |
|
64 |
|
{admin → prev/admin}/class-ccw-admin-page-customize-styles.php
RENAMED
File without changes
|
{admin → prev/admin}/class-ccw-admin-page.php
RENAMED
@@ -48,7 +48,7 @@ class CCW_Admin_Page {
|
|
48 |
echo '<h1>Click to Chat For WhatsApp - Global Settings</h1>';
|
49 |
}
|
50 |
|
51 |
-
|
52 |
// enable / disable floating styles
|
53 |
function ccw_enable_cb() {
|
54 |
$ccw_enable = get_option('ccw_options');
|
@@ -193,7 +193,7 @@ class CCW_Admin_Page {
|
|
193 |
<div class="input-field col s12">
|
194 |
<input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
|
195 |
<label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
|
196 |
-
<p class="description">Enter whatsapp Group Id - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/find-whatsapp-group-id/">more info</a>
|
197 |
</div>
|
198 |
</div>
|
199 |
<?php
|
48 |
echo '<h1>Click to Chat For WhatsApp - Global Settings</h1>';
|
49 |
}
|
50 |
|
51 |
+
|
52 |
// enable / disable floating styles
|
53 |
function ccw_enable_cb() {
|
54 |
$ccw_enable = get_option('ccw_options');
|
193 |
<div class="input-field col s12">
|
194 |
<input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
|
195 |
<label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
|
196 |
+
<p class="description">Enter whatsapp Group Id - E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/find-whatsapp-group-id/">more info</a> </p>
|
197 |
</div>
|
198 |
</div>
|
199 |
<?php
|
{admin → prev/admin}/commons/admin-sidebar.php
RENAMED
File without changes
|
{admin → prev/admin}/commons/class-ht-ccw-admin-lists.php
RENAMED
File without changes
|
{admin → prev/admin}/default-values.php
RENAMED
@@ -24,6 +24,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
24 |
* enable, enable_sc - 2 - enable, 1 - disable ..
|
25 |
* new: 919908469612
|
26 |
* prev: 918897606725
|
|
|
|
|
27 |
*/
|
28 |
$values = array(
|
29 |
'enable' => '2',
|
@@ -47,7 +49,7 @@ $values = array(
|
|
47 |
'list_hideon_cat' => '',
|
48 |
'shortcode' => 'chat',
|
49 |
'return_type' => 'chat', // chat or group_chat
|
50 |
-
'group_id' => '
|
51 |
|
52 |
);
|
53 |
|
@@ -234,4 +236,4 @@ function new_options() {
|
|
234 |
|
235 |
}
|
236 |
|
237 |
-
new_options();
|
24 |
* enable, enable_sc - 2 - enable, 1 - disable ..
|
25 |
* new: 919908469612
|
26 |
* prev: 918897606725
|
27 |
+
*
|
28 |
+
* group id: 9EHLsEsOeJk6AVtE8AvXiA
|
29 |
*/
|
30 |
$values = array(
|
31 |
'enable' => '2',
|
49 |
'list_hideon_cat' => '',
|
50 |
'shortcode' => 'chat',
|
51 |
'return_type' => 'chat', // chat or group_chat
|
52 |
+
'group_id' => '',
|
53 |
|
54 |
);
|
55 |
|
236 |
|
237 |
}
|
238 |
|
239 |
+
// new_options();
|
{admin → prev/admin}/settings_page.php
RENAMED
File without changes
|
{admin → prev/admin}/sp_customize_styles.php
RENAMED
File without changes
|
{assets → prev/assets}/css/admin_main.css
RENAMED
File without changes
|
{assets → prev/assets}/css/mainstyles.css
RENAMED
File without changes
|
{assets → prev/assets}/css/materialize.min.css
RENAMED
File without changes
|
{assets → prev/assets}/css/mdstyle8.css
RENAMED
File without changes
|
{assets → prev/assets}/fonts/ccw.eot
RENAMED
File without changes
|
{assets → prev/assets}/fonts/ccw.svg
RENAMED
File without changes
|
{assets → prev/assets}/fonts/ccw.ttf
RENAMED
File without changes
|
{assets → prev/assets}/fonts/ccw.woff
RENAMED
File without changes
|
{assets → prev/assets}/img/send.svg
RENAMED
File without changes
|
{assets → prev/assets}/img/send_16.svg
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-icon-square.svg
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-logo-32x32-d.png
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-logo-32x32.png
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-logo-deprecated.png
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-logo.png
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp-logo.svg
RENAMED
File without changes
|
{assets → prev/assets}/img/whatsapp.svg
RENAMED
File without changes
|
{assets → prev/assets}/js/admin_app.js
RENAMED
File without changes
|
{assets → prev/assets}/js/app.js
RENAMED
File without changes
|
{assets → prev/assets}/js/materialize.min.js
RENAMED
File without changes
|
{inc → prev/inc}/class-ccw-add-styles-scripts.php
RENAMED
@@ -27,15 +27,15 @@ class CCW_Add_Styles_Scripts {
|
|
27 |
*/
|
28 |
function ccw_register_files() {
|
29 |
|
30 |
-
wp_register_style('ccw_main_css', plugins_url( 'assets/css/mainstyles.css', HT_CCW_PLUGIN_FILE ), '', HT_CCW_VERSION );
|
31 |
wp_enqueue_style('ccw_main_css');
|
32 |
|
33 |
|
34 |
-
wp_register_style('ccw_mdstyle8_css', plugins_url( 'assets/css/mdstyle8.css', HT_CCW_PLUGIN_FILE ), '', HT_CCW_VERSION );
|
35 |
// needs - s8
|
36 |
// wp_enqueue_style('ccw_mdstyle8_css');
|
37 |
|
38 |
-
wp_enqueue_script( 'ccw_app', plugins_url( 'assets/js/app.js', HT_CCW_PLUGIN_FILE ), array ( 'jquery' ), HT_CCW_VERSION, true );
|
39 |
|
40 |
// As now - for floating style - enqueue md style added like this
|
41 |
// but for shortcodes enqueue while calling that template file
|
27 |
*/
|
28 |
function ccw_register_files() {
|
29 |
|
30 |
+
wp_register_style('ccw_main_css', plugins_url( 'prev/assets/css/mainstyles.css', HT_CCW_PLUGIN_FILE ), '', HT_CCW_VERSION );
|
31 |
wp_enqueue_style('ccw_main_css');
|
32 |
|
33 |
|
34 |
+
wp_register_style('ccw_mdstyle8_css', plugins_url( 'prev/assets/css/mdstyle8.css', HT_CCW_PLUGIN_FILE ), '', HT_CCW_VERSION );
|
35 |
// needs - s8
|
36 |
// wp_enqueue_style('ccw_mdstyle8_css');
|
37 |
|
38 |
+
wp_enqueue_script( 'ccw_app', plugins_url( 'prev/assets/js/app.js', HT_CCW_PLUGIN_FILE ), array ( 'jquery' ), HT_CCW_VERSION, true );
|
39 |
|
40 |
// As now - for floating style - enqueue md style added like this
|
41 |
// but for shortcodes enqueue while calling that template file
|
{inc → prev/inc}/class-ccw-shortcode.php
RENAMED
@@ -175,11 +175,11 @@ class CCW_Shortcode {
|
|
175 |
}
|
176 |
|
177 |
if ( 'group_chat' == $is_group ) {
|
178 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
179 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
180 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
181 |
} else {
|
182 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
183 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=$is_mobile";
|
184 |
$img_click_link = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
185 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -194,11 +194,11 @@ class CCW_Shortcode {
|
|
194 |
|
195 |
// App First - so mobile based url
|
196 |
if ( 'group_chat' == $is_group ) {
|
197 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
198 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
199 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
200 |
} else {
|
201 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
202 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=1";
|
203 |
$img_click_link = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
204 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -208,11 +208,11 @@ class CCW_Shortcode {
|
|
208 |
|
209 |
// General - Desktop url
|
210 |
if ( 'group_chat' == $is_group ) {
|
211 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
212 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
213 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
214 |
} else {
|
215 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
216 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=0";
|
217 |
$img_click_link = "window.open('https://web.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
218 |
$redirect_a = "https://web.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -223,7 +223,7 @@ class CCW_Shortcode {
|
|
223 |
}
|
224 |
|
225 |
|
226 |
-
// $redirect_page = plugins_url( "/inc/whatsapp-url.php?num=$num", HT_CCW_PLUGIN_FILE );
|
227 |
// $img_click_link = "window.open('https://web.whatsapp.com/send?phone=$num&text=', '_blank')";
|
228 |
|
229 |
$position = $a["position"];
|
@@ -236,7 +236,7 @@ class CCW_Shortcode {
|
|
236 |
|
237 |
|
238 |
// style - 9 - green square
|
239 |
-
$img_link_s9 = plugins_url("./assets/img/whatsapp-icon-square.svg", HT_CCW_PLUGIN_FILE );
|
240 |
|
241 |
|
242 |
$css = '';
|
@@ -282,7 +282,7 @@ class CCW_Shortcode {
|
|
282 |
$o = '';
|
283 |
|
284 |
// shortcode template file path
|
285 |
-
$sc_path = plugin_dir_path( HT_CCW_PLUGIN_FILE ) . 'inc/commons/styles-list-sc/sc-style-' . $style. '.php';
|
286 |
|
287 |
if ( is_file( $sc_path ) ) {
|
288 |
include $sc_path;
|
@@ -290,7 +290,7 @@ class CCW_Shortcode {
|
|
290 |
// this is style-3 - if style added using shortcode not exits
|
291 |
// [chat] default style is what added using plugin settings page
|
292 |
$s3_icon_type = $a['s3_icon_type'];
|
293 |
-
$img_link = plugins_url("./assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE );
|
294 |
$o .= '<div class="ccw_plugin">';
|
295 |
$o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" onclick="'.$img_click_link.'" style="height: 36px; '.$css.' " >';
|
296 |
$o .= '</div>';
|
175 |
}
|
176 |
|
177 |
if ( 'group_chat' == $is_group ) {
|
178 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
179 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
180 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
181 |
} else {
|
182 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
183 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=$is_mobile";
|
184 |
$img_click_link = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
185 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
194 |
|
195 |
// App First - so mobile based url
|
196 |
if ( 'group_chat' == $is_group ) {
|
197 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
198 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
199 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
200 |
} else {
|
201 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
202 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=1";
|
203 |
$img_click_link = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
204 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
208 |
|
209 |
// General - Desktop url
|
210 |
if ( 'group_chat' == $is_group ) {
|
211 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
212 |
$img_click_link = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
213 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
214 |
} else {
|
215 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
216 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=0";
|
217 |
$img_click_link = "window.open('https://web.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
218 |
$redirect_a = "https://web.whatsapp.com/send?phone=$num&text=$initial_text";
|
223 |
}
|
224 |
|
225 |
|
226 |
+
// $redirect_page = plugins_url( "/prev/inc/whatsapp-url.php?num=$num", HT_CCW_PLUGIN_FILE );
|
227 |
// $img_click_link = "window.open('https://web.whatsapp.com/send?phone=$num&text=', '_blank')";
|
228 |
|
229 |
$position = $a["position"];
|
236 |
|
237 |
|
238 |
// style - 9 - green square
|
239 |
+
$img_link_s9 = plugins_url("./prev/assets/img/whatsapp-icon-square.svg", HT_CCW_PLUGIN_FILE );
|
240 |
|
241 |
|
242 |
$css = '';
|
282 |
$o = '';
|
283 |
|
284 |
// shortcode template file path
|
285 |
+
$sc_path = plugin_dir_path( HT_CCW_PLUGIN_FILE ) . 'prev/inc/commons/styles-list-sc/sc-style-' . $style. '.php';
|
286 |
|
287 |
if ( is_file( $sc_path ) ) {
|
288 |
include $sc_path;
|
290 |
// this is style-3 - if style added using shortcode not exits
|
291 |
// [chat] default style is what added using plugin settings page
|
292 |
$s3_icon_type = $a['s3_icon_type'];
|
293 |
+
$img_link = plugins_url("./prev/assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE );
|
294 |
$o .= '<div class="ccw_plugin">';
|
295 |
$o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" onclick="'.$img_click_link.'" style="height: 36px; '.$css.' " >';
|
296 |
$o .= '</div>';
|
{inc → prev/inc}/class-ht-ccw-chat.php
RENAMED
@@ -232,7 +232,7 @@ class HT_CCW_Chat {
|
|
232 |
|
233 |
|
234 |
|
235 |
-
include_once HT_CCW_PLUGIN_DIR .'inc/commons/styles.php';
|
236 |
|
237 |
}
|
238 |
|
232 |
|
233 |
|
234 |
|
235 |
+
include_once HT_CCW_PLUGIN_DIR .'prev/inc/commons/styles.php';
|
236 |
|
237 |
}
|
238 |
|
{inc → prev/inc}/class-ht-ccw-register.php
RENAMED
@@ -25,7 +25,7 @@ class HT_CCW_Register {
|
|
25 |
}
|
26 |
|
27 |
// add default values to options db
|
28 |
-
include_once( HT_CCW_PLUGIN_DIR . '/admin/default-values.php' );
|
29 |
}
|
30 |
|
31 |
// when plugin deactivate
|
25 |
}
|
26 |
|
27 |
// add default values to options db
|
28 |
+
include_once( HT_CCW_PLUGIN_DIR . '/prev/admin/default-values.php' );
|
29 |
}
|
30 |
|
31 |
// when plugin deactivate
|
{inc → prev/inc}/class-ht-ccw.php
RENAMED
@@ -134,8 +134,8 @@ class HT_CCW {
|
|
134 |
*/
|
135 |
private function basic() {
|
136 |
|
137 |
-
include_once HT_CCW_PLUGIN_DIR .'inc/commons/class-ht-ccw-ismobile.php';
|
138 |
-
include_once HT_CCW_PLUGIN_DIR .'inc/commons/class-ht-ccw-variables.php';
|
139 |
|
140 |
$this->device_type = new HT_CCW_IsMobile();
|
141 |
$this->variables = new HT_CCW_Variables();
|
@@ -166,20 +166,20 @@ class HT_CCW {
|
|
166 |
private function includes() {
|
167 |
|
168 |
// include in admin and front pages
|
169 |
-
include_once HT_CCW_PLUGIN_DIR .'inc/class-ht-ccw-register.php';
|
170 |
-
// include_once HT_CCW_PLUGIN_DIR .'inc/commons/class-ht-ccw-variables.php';
|
171 |
-
// include_once HT_CCW_PLUGIN_DIR .'inc/commons/class-ht-ccw-ismobile.php';
|
172 |
|
173 |
|
174 |
// is_admin ? include file to admin area : include files to non-admin area
|
175 |
if ( is_admin() ) {
|
176 |
-
include_once HT_CCW_PLUGIN_DIR . 'admin/admin.php';
|
177 |
} else {
|
178 |
-
include_once HT_CCW_PLUGIN_DIR . 'inc/class-ccw-add-styles-scripts.php';
|
179 |
-
include_once HT_CCW_PLUGIN_DIR . 'inc/class-ccw-shortcode.php';
|
180 |
|
181 |
-
// include_once HT_CCW_PLUGIN_DIR . 'inc/class-ht-ccw-floating-style.php';
|
182 |
-
include_once HT_CCW_PLUGIN_DIR . 'inc/class-ht-ccw-chat.php';
|
183 |
|
184 |
}
|
185 |
}
|
134 |
*/
|
135 |
private function basic() {
|
136 |
|
137 |
+
include_once HT_CCW_PLUGIN_DIR .'prev/inc/commons/class-ht-ccw-ismobile.php';
|
138 |
+
include_once HT_CCW_PLUGIN_DIR .'prev/inc/commons/class-ht-ccw-variables.php';
|
139 |
|
140 |
$this->device_type = new HT_CCW_IsMobile();
|
141 |
$this->variables = new HT_CCW_Variables();
|
166 |
private function includes() {
|
167 |
|
168 |
// include in admin and front pages
|
169 |
+
include_once HT_CCW_PLUGIN_DIR .'prev/inc/class-ht-ccw-register.php';
|
170 |
+
// include_once HT_CCW_PLUGIN_DIR .'prev/inc/commons/class-ht-ccw-variables.php';
|
171 |
+
// include_once HT_CCW_PLUGIN_DIR .'prev/inc/commons/class-ht-ccw-ismobile.php';
|
172 |
|
173 |
|
174 |
// is_admin ? include file to admin area : include files to non-admin area
|
175 |
if ( is_admin() ) {
|
176 |
+
include_once HT_CCW_PLUGIN_DIR . 'prev/admin/admin.php';
|
177 |
} else {
|
178 |
+
include_once HT_CCW_PLUGIN_DIR . 'prev/inc/class-ccw-add-styles-scripts.php';
|
179 |
+
include_once HT_CCW_PLUGIN_DIR . 'prev/inc/class-ccw-shortcode.php';
|
180 |
|
181 |
+
// include_once HT_CCW_PLUGIN_DIR . 'prev/inc/class-ht-ccw-floating-style.php';
|
182 |
+
include_once HT_CCW_PLUGIN_DIR . 'prev/inc/class-ht-ccw-chat.php';
|
183 |
|
184 |
}
|
185 |
}
|
{inc → prev/inc}/commons/class-ht-ccw-ismobile.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/class-ht-ccw-variables.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-1.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-2.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-3.php
RENAMED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
5 |
$s3_icon_size = $a['s3_icon_size'];
|
6 |
$s3_icon_type = $a['s3_icon_type'];
|
7 |
|
8 |
-
$img_link = plugins_url("./assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE );
|
9 |
|
10 |
|
11 |
$s3_icon_size = $s3_icon_size;
|
5 |
$s3_icon_size = $a['s3_icon_size'];
|
6 |
$s3_icon_type = $a['s3_icon_type'];
|
7 |
|
8 |
+
$img_link = plugins_url("./prev/assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE );
|
9 |
|
10 |
|
11 |
$s3_icon_size = $s3_icon_size;
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-4.1.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-4.php
RENAMED
@@ -9,7 +9,7 @@ $s4_background_color = $a['s4_background_color'];
|
|
9 |
$s4_text_color = $s4_text_color;
|
10 |
$s4_background_color = $s4_background_color;
|
11 |
|
12 |
-
$img_link_s4 = plugins_url("./assets/img/whatsapp-logo-32x32.png", HT_CCW_PLUGIN_FILE );
|
13 |
|
14 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
15 |
$o .= '<div class="style-4 chip pointer ccw-analytics" data-ccw="style-4-sc" style=" color: '.$s4_text_color.'; background-color: '.$s4_background_color.' " onclick="'.$img_click_link.'">';
|
9 |
$s4_text_color = $s4_text_color;
|
10 |
$s4_background_color = $s4_background_color;
|
11 |
|
12 |
+
$img_link_s4 = plugins_url("./prev/assets/img/whatsapp-logo-32x32.png", HT_CCW_PLUGIN_FILE );
|
13 |
|
14 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
15 |
$o .= '<div class="style-4 chip pointer ccw-analytics" data-ccw="style-4-sc" style=" color: '.$s4_text_color.'; background-color: '.$s4_background_color.' " onclick="'.$img_click_link.'">';
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-5.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-6.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-7.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-8.1.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-8.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-9.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list-sc/sc-style-99.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-0.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-1.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-2.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-3.php
RENAMED
@@ -11,7 +11,7 @@ $s3_icon_type = esc_attr( $ccw_options_cs['s3_icon_type'] );
|
|
11 |
<!-- style 3 logo -->
|
12 |
<div class="ccw_style3 animated <?php echo $an_on_load .' '. $an_on_hover ?> ">
|
13 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="img-icon-a nofocus">
|
14 |
-
<img class="img-icon ccw-analytics" id="style-3" data-ccw="style-3" style="height: <?php echo $s3_icon_size ?>;" src="<?php echo plugins_url( "./assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
15 |
</a>
|
16 |
</div>
|
17 |
</div>
|
11 |
<!-- style 3 logo -->
|
12 |
<div class="ccw_style3 animated <?php echo $an_on_load .' '. $an_on_hover ?> ">
|
13 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="img-icon-a nofocus">
|
14 |
+
<img class="img-icon ccw-analytics" id="style-3" data-ccw="style-3" style="height: <?php echo $s3_icon_size ?>;" src="<?php echo plugins_url( "./prev/assets/img/whatsapp-logo.$s3_icon_type", HT_CCW_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
15 |
</a>
|
16 |
</div>
|
17 |
</div>
|
{inc → prev/inc}/commons/styles-list/style-4.php
RENAMED
@@ -12,7 +12,7 @@ $s4_background_color = esc_attr( $ccw_options_cs['s4_background_color'] );
|
|
12 |
<div class="style4 animated <?php echo $an_on_load .' '. $an_on_hover ?>">
|
13 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="nofocus">
|
14 |
<div class="chip style-4 ccw-analytics" id="style-4" data-ccw="style-4" style="background-color: <?php echo $s4_background_color ?>; color: <?php echo $s4_text_color ?>">
|
15 |
-
<img src="<?php echo plugins_url( './assets/img/whatsapp-logo-32x32.png', HT_CCW_PLUGIN_FILE ) ?>" class="ccw-analytics" id="s4-icon" data-ccw="style-4" alt="WhatsApp">
|
16 |
<?php echo $val ?>
|
17 |
</div>
|
18 |
</a>
|
12 |
<div class="style4 animated <?php echo $an_on_load .' '. $an_on_hover ?>">
|
13 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="nofocus">
|
14 |
<div class="chip style-4 ccw-analytics" id="style-4" data-ccw="style-4" style="background-color: <?php echo $s4_background_color ?>; color: <?php echo $s4_text_color ?>">
|
15 |
+
<img src="<?php echo plugins_url( './prev/assets/img/whatsapp-logo-32x32.png', HT_CCW_PLUGIN_FILE ) ?>" class="ccw-analytics" id="s4-icon" data-ccw="style-4" alt="WhatsApp">
|
16 |
<?php echo $val ?>
|
17 |
</div>
|
18 |
</a>
|
{inc → prev/inc}/commons/styles-list/style-5.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-6.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-7.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-8.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles-list/style-9.php
RENAMED
@@ -10,7 +10,7 @@ $s9_icon_size = esc_attr( $ccw_options_cs['s9_icon_size'] );
|
|
10 |
<!-- style 9 logo -->
|
11 |
<div class="ccw_style9 animated <?php echo $an_on_load .' '. $an_on_hover ?>">
|
12 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="img-icon-a nofocus">
|
13 |
-
<img class="img-icon ccw-analytics" id="style-9" data-ccw="style-9" style="height: <?php echo $s9_icon_size ?>;" src="<?php echo plugins_url( './assets/img/whatsapp-icon-square.svg', HT_CCW_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
14 |
</a>
|
15 |
</div>
|
16 |
</div>
|
10 |
<!-- style 9 logo -->
|
11 |
<div class="ccw_style9 animated <?php echo $an_on_load .' '. $an_on_hover ?>">
|
12 |
<a target="_blank" href="<?php echo $redirect_a ?>" class="img-icon-a nofocus">
|
13 |
+
<img class="img-icon ccw-analytics" id="style-9" data-ccw="style-9" style="height: <?php echo $s9_icon_size ?>;" src="<?php echo plugins_url( './prev/assets/img/whatsapp-icon-square.svg', HT_CCW_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
14 |
</a>
|
15 |
</div>
|
16 |
</div>
|
{inc → prev/inc}/commons/styles-list/style-99.php
RENAMED
File without changes
|
{inc → prev/inc}/commons/styles.php
RENAMED
@@ -49,11 +49,11 @@ if( 1 == $is_mobile ) {
|
|
49 |
|
50 |
|
51 |
if ( 'group_chat' == $return_type ) {
|
52 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
53 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
54 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
55 |
} else {
|
56 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
57 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=$is_mobile";
|
58 |
$redirect = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
59 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -68,12 +68,12 @@ if( 1 == $is_mobile ) {
|
|
68 |
|
69 |
// App First - so mobile based url
|
70 |
if ( 'group_chat' == $return_type ) {
|
71 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
72 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
73 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
74 |
} else {
|
75 |
// an issue addin another url in plugin_url - in {{url}} https:// - one / is missing is
|
76 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
77 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=1";
|
78 |
$redirect = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
79 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -84,11 +84,11 @@ if( 1 == $is_mobile ) {
|
|
84 |
|
85 |
// General - Desktop url
|
86 |
if ( 'group_chat' == $return_type ) {
|
87 |
-
// $redirect_page = plugins_url( "inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
88 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
89 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
90 |
} else {
|
91 |
-
// $base_url = plugins_url( "inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
92 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=0";
|
93 |
$redirect = "window.open('https://web.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
94 |
$redirect_a = "https://web.whatsapp.com/send?phone=$num&text=$initial_text";
|
@@ -115,7 +115,7 @@ if ( isset ( $_POST['subject'] ) ) {
|
|
115 |
}
|
116 |
|
117 |
// floating style template path
|
118 |
-
$path = plugin_dir_path( HT_CCW_PLUGIN_FILE ) . 'inc/commons/styles-list/style-' . $style. '.php';
|
119 |
|
120 |
if ( is_file( $path ) ) {
|
121 |
include_once $path;
|
49 |
|
50 |
|
51 |
if ( 'group_chat' == $return_type ) {
|
52 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
53 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
54 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
55 |
} else {
|
56 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
57 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=$is_mobile";
|
58 |
$redirect = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
59 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
68 |
|
69 |
// App First - so mobile based url
|
70 |
if ( 'group_chat' == $return_type ) {
|
71 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
72 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
73 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
74 |
} else {
|
75 |
// an issue addin another url in plugin_url - in {{url}} https:// - one / is missing is
|
76 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
77 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=1";
|
78 |
$redirect = "window.open('https://api.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
79 |
$redirect_a = "https://api.whatsapp.com/send?phone=$num&text=$initial_text";
|
84 |
|
85 |
// General - Desktop url
|
86 |
if ( 'group_chat' == $return_type ) {
|
87 |
+
// $redirect_page = plugins_url( "prev/inc/whatsapp-url-group.php?id=$group_id", HT_CCW_PLUGIN_FILE );
|
88 |
$redirect = "window.open('https://chat.whatsapp.com/$group_id', '_blank')";
|
89 |
$redirect_a = "https://chat.whatsapp.com/$group_id";
|
90 |
} else {
|
91 |
+
// $base_url = plugins_url( "prev/inc/whatsapp-url.php", HT_CCW_PLUGIN_FILE );
|
92 |
// $redirect_page = $base_url . "?num=$num&text=$initial_text&m=0";
|
93 |
$redirect = "window.open('https://web.whatsapp.com/send?phone=$num&text=$initial_text', '_blank')";
|
94 |
$redirect_a = "https://web.whatsapp.com/send?phone=$num&text=$initial_text";
|
115 |
}
|
116 |
|
117 |
// floating style template path
|
118 |
+
$path = plugin_dir_path( HT_CCW_PLUGIN_FILE ) . 'prev/inc/commons/styles-list/style-' . $style. '.php';
|
119 |
|
120 |
if ( is_file( $path ) ) {
|
121 |
include_once $path;
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
=== Click to Chat ===
|
2 |
Requires at least: 4.6
|
3 |
-
Tested up to: 5.
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
Stable tag: trunk
|
@@ -8,12 +8,11 @@ Tags: whatsapp, whatsapp chat, whatsapp business, whatsapp personal, click to ch
|
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Let's make your
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Let's make your Web page visitors Contact you through "WhatsApp" with a single Click (WhatsApp
|
16 |
-
|
17 |
|
18 |
**Mobile:** Navigates to WhatsApp App.
|
19 |
|
@@ -73,7 +72,7 @@ or using [Google Tag Manager](https://www.holithemes.com/google-analytics-for-cl
|
|
73 |
|
74 |
= Initial / Pre-filled Message =
|
75 |
|
76 |
-
|
77 |
|
78 |
To add Web page URL in Pre-filled message add {{url}} placeholder - [pre-filled message](https://www.holithemes.com/whatsapp-chat/pre-filled-message/)
|
79 |
|
@@ -102,6 +101,7 @@ Add 'text' or 'HTML' widget in the widget area, and then add shortcode within th
|
|
102 |
|
103 |
== screenshots ==
|
104 |
|
|
|
105 |
1. Global Setting page
|
106 |
1. Global Setting page
|
107 |
1. customize Styles
|
@@ -148,7 +148,7 @@ We can change the position values from the plugin settings page.
|
|
148 |
|
149 |
Add styles at any position of the screen (not fixed to selected positions).
|
150 |
|
151 |
-
e.g.
|
152 |
* bottom-right corner
|
153 |
-> select - bottom-right position
|
154 |
bottom: 10px
|
@@ -159,6 +159,12 @@ right: 10px
|
|
159 |
bottom: 10px
|
160 |
right: 50%
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
= GDPR =
|
163 |
|
164 |
Plugin won't collect your user data and not using cookies.
|
@@ -175,12 +181,6 @@ send us an email: wp@holithemes.com
|
|
175 |
|
176 |
If you like the plugin, please support the developers by giving [5 star rating](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/reviews/#new-post)
|
177 |
|
178 |
-
= In Mobile, If navigates to Web page =
|
179 |
-
|
180 |
-
By default, Plugin Navigates to WhatsApp App on mobile and "web.whatsapp.com" on desktop.
|
181 |
-
|
182 |
-
In mobile devices, If navigates to web.whatsapp instead of App, please check/tick "If cache issue"(last option) from plugin settings.
|
183 |
-
|
184 |
|
185 |
Thanks for showing interest on this plugin.
|
186 |
|
@@ -198,6 +198,9 @@ Thanks for showing interest on this plugin.
|
|
198 |
|
199 |
== Changelog ==
|
200 |
|
|
|
|
|
|
|
201 |
= 1.7.1 =
|
202 |
* Style-8 simplified
|
203 |
|
1 |
=== Click to Chat ===
|
2 |
Requires at least: 4.6
|
3 |
+
Tested up to: 5.3
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
"WhatsApp", "WhatsApp business" Let's make your Website visitors Contact you through "WhatsApp" with a single click
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Let's make your Web page visitors Contact you through "WhatsApp" with a single Click (WhatsApp Chat, WhatsApp Group)
|
|
|
16 |
|
17 |
**Mobile:** Navigates to WhatsApp App.
|
18 |
|
72 |
|
73 |
= Initial / Pre-filled Message =
|
74 |
|
75 |
+
Pre-filled message is the text that appears on the WhatsApp chat window when the user clicks on Image/button. User can start the conversation easily.
|
76 |
|
77 |
To add Web page URL in Pre-filled message add {{url}} placeholder - [pre-filled message](https://www.holithemes.com/whatsapp-chat/pre-filled-message/)
|
78 |
|
101 |
|
102 |
== screenshots ==
|
103 |
|
104 |
+
1. 9 Styles, 1 Add own image / GIF Style
|
105 |
1. Global Setting page
|
106 |
1. Global Setting page
|
107 |
1. customize Styles
|
148 |
|
149 |
Add styles at any position of the screen (not fixed to selected positions).
|
150 |
|
151 |
+
e.g.
|
152 |
* bottom-right corner
|
153 |
-> select - bottom-right position
|
154 |
bottom: 10px
|
159 |
bottom: 10px
|
160 |
right: 50%
|
161 |
|
162 |
+
= In Mobile, If navigates to Web page =
|
163 |
+
|
164 |
+
By default, Plugin Navigates to WhatsApp App on mobile and "web.whatsapp.com" on desktop.
|
165 |
+
|
166 |
+
In mobile devices, If navigates to web.whatsapp instead of App, please check/tick "If cache issue"(last option) from plugin settings.
|
167 |
+
|
168 |
= GDPR =
|
169 |
|
170 |
Plugin won't collect your user data and not using cookies.
|
181 |
|
182 |
If you like the plugin, please support the developers by giving [5 star rating](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/reviews/#new-post)
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
Thanks for showing interest on this plugin.
|
186 |
|
198 |
|
199 |
== Changelog ==
|
200 |
|
201 |
+
= 1.7.2 =
|
202 |
+
* Style-8 shortcode issue fixed
|
203 |
+
|
204 |
= 1.7.1 =
|
205 |
* Style-8 simplified
|
206 |
|