Version Description
Support route changed
Download this release
Release Info
Developer | galdub |
Plugin | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty |
Version | 2.8.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.1 to 2.8.2
- admin/assets/css/admin-setting.css +1 -1
- admin/class-admin-base.php +99 -74
- cht-icons.php +3 -3
- readme.txt +5 -2
- views/admin/help.php +1 -1
- views/admin/upgrade.php +31 -0
admin/assets/css/admin-setting.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px;position:relative}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.price-table.is-fixed{padding-bottom:140px;position:relative}.price-table.is-fixed .price-table-bottom{position:fixed;left:0;width:100%;border-top:solid 2px #e9e9e9;background:#fff}.bottom-position{position:absolute;left:0;bottom:0;height:1px;width:1px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:21px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}.folders-tabs{max-width:inherit}.basic-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #42b9fa;box-shadow:0 12px 44px rgba(66,182,250,.2)}.basic-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#42b9fa transparent transparent transparent}.plus-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #ef8c6a;box-shadow:0 12px 44px rgba(239,140,106,.2)}.plus-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#ef8c6a transparent transparent transparent}.agency-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.agency-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.basic-feature.price-table.is-fixed .price-table-bottom{border-color:#b9eafd}.plus-feature.price-table.is-fixed .price-table-bottom{border-color:#f9d9bd}.agency-feature.price-table.is-fixed .price-table-bottom{border-color:#cfd3fb}@media (max-width:1320px){.plan-price{font-size:50px;line-height:64px}}@media (max-width:1200px){.plan-price{font-size:40px;line-height:54px}}@media (max-width:1100px){.plan-name{font-size:24px;line-height:36px}}@media (max-width:1024px){.plan-price{font-size:30px;line-height:54px;top:15px}}@media (max-width:920px){.col-md-4{padding-left:5px;padding-right:5px}}@media (max-width:840px){.col-md-4{padding:0;width:auto;margin:0 auto 30px;float:none;padding-left:15px;padding-right:15px}.plan-price{font-size:50px;line-height:64px}.price-table.is-fixed{padding-bottom:15px;position:relative}.price-table.is-fixed .price-table-bottom{position:relative;left:0;width:100%;border-top:none;background:#fff;top:auto!important;left:auto!important;width:100%!important}}
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px;position:relative}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.price-table.is-fixed{padding-bottom:140px;position:relative}.price-table.is-fixed .price-table-bottom{position:fixed;left:0;width:100%;border-top:solid 2px #e9e9e9;background:#fff}.bottom-position{position:absolute;left:0;bottom:0;height:1px;width:1px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:21px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}.folders-tabs{max-width:inherit}.basic-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #42b9fa;box-shadow:0 12px 44px rgba(66,182,250,.2)}.basic-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#42b9fa transparent transparent transparent}.plus-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #ef8c6a;box-shadow:0 12px 44px rgba(239,140,106,.2)}.plus-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#ef8c6a transparent transparent transparent}.agency-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.agency-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.basic-feature.price-table.is-fixed .price-table-bottom{border-color:#b9eafd}.plus-feature.price-table.is-fixed .price-table-bottom{border-color:#f9d9bd}.agency-feature.price-table.is-fixed .price-table-bottom{border-color:#cfd3fb}.html-tooltip{position:relative;display:inline-block;margin:0;padding:0;line-height:1;width:auto;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#1849ab;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:354px}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.dynamic .tooltip-text{height:490px}.html-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0 0}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-15px;border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.html-tooltip.top .tooltip-text{top:auto;bottom:100%;margin-bottom:5px}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text:after{display:none}.pricing-table-body{display:flex;align-items:center}.pricing-table-content{flex:1;text-align:center;background:#f8fafc;min-height:86px;line-height:20px;padding:10px 0;border-bottom:solid 2px #f8fafc;align-items:center;font-size:16px;cursor:pointer;position:relative;transition:all .25s linear}.pricing-table-content:before{left:auto;right:0}.pricing-table-header{width:720px;margin:40px auto 50px}.pricing-discount-col span{display:inline-block;padding:0 8px;background:#94a3b8;font-size:14px;line-height:20px;color:#fff;border-radius:20px;margin:4px 0 0;transition:all .2s linear}.pricing-table-content.active,.pricing-table-content:hover{border-bottom:2px solid #3c85f7;color:#3c85f7;background:#fff}.pricing-table-content.active{box-shadow:0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05)}.pricing-table-content.second{border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1}.pricing-table-content.second.active .pricing-discount-col span,.pricing-table-content.second:hover .pricing-discount-col span{color:#fff;background:#ef8c6a}.pricing-table-content.third.active .pricing-discount-col span,.pricing-table-content.third:hover .pricing-discount-col span{background:#605dec;color:#fff}.pricing-table-content.first{padding:23px 0 0}.year-col{font-weight:700}@media (max-width:1320px){.plan-price{font-size:50px;line-height:64px}}@media (max-width:1200px){.plan-price{font-size:40px;line-height:54px}}@media (max-width:1100px){.plan-name{font-size:24px;line-height:36px}}@media (max-width:1024px){.plan-price{font-size:30px;line-height:54px;top:15px}}@media (max-width:920px){.col-md-4{padding-left:5px;padding-right:5px}}@media (max-width:840px){.col-md-4{padding:0;width:auto;margin:0 auto 30px;float:none;padding-left:15px;padding-right:15px}.plan-price{font-size:50px;line-height:64px}.price-table.is-fixed{padding-bottom:15px;position:relative}.price-table.is-fixed .price-table-bottom{position:relative;left:0;width:100%;border-top:none;background:#fff;top:auto!important;left:auto!important;width:100%!important}}
|
admin/class-admin-base.php
CHANGED
@@ -107,54 +107,69 @@ class CHT_Admin_Base
|
|
107 |
if ($errorCounter == 0) {
|
108 |
global $current_user;
|
109 |
$email = "none@none.none";
|
|
|
110 |
if (isset($postData['email_id']) && !empty($postData['email_id']) && filter_var($postData['email_id'], FILTER_VALIDATE_EMAIL)) {
|
111 |
$email = $postData['email_id'];
|
112 |
}
|
113 |
$domain = site_url();
|
114 |
$user_name = $current_user->first_name . " " . $current_user->last_name;
|
115 |
-
|
116 |
-
$headers = "MIME-Version: 1.0\r\n";
|
117 |
-
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
|
118 |
-
$headers .= 'From: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
|
119 |
-
$headers .= 'Reply-To: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
|
120 |
-
$headers .= 'X-Mailer: PHP/' . phpversion();
|
121 |
-
ob_start();
|
122 |
-
?>
|
123 |
-
<table border="0" cellspacing="0" cellpadding="5">
|
124 |
-
<tr>
|
125 |
-
<th>Plugin</th>
|
126 |
-
<td>Chaty</td>
|
127 |
-
</tr>
|
128 |
-
<tr>
|
129 |
-
<th>Plugin Version</th>
|
130 |
-
<td><?php esc_attr_e(CHT_VERSION, CHT_OPT) ?></td>
|
131 |
-
</tr>
|
132 |
-
<tr>
|
133 |
-
<th>Domain</th>
|
134 |
-
<td><?php echo esc_url($domain) ?></td>
|
135 |
-
</tr>
|
136 |
-
<tr>
|
137 |
-
<th>Email</th>
|
138 |
-
<td><?php esc_attr_e($email, CHT_OPT) ?></td>
|
139 |
-
</tr>
|
140 |
-
<tr>
|
141 |
-
<th>Reason</th>
|
142 |
-
<td><?php esc_attr_e(nl2br($reason), CHT_OPT) ?></td>
|
143 |
-
</tr>
|
144 |
-
<tr>
|
145 |
-
<th>WordPress Version</th>
|
146 |
-
<td><?php esc_attr_e(get_bloginfo('version'), CHT_OPT) ?></td>
|
147 |
-
</tr>
|
148 |
-
<tr>
|
149 |
-
<th>PHP Version</th>
|
150 |
-
<td><?php esc_attr_e(PHP_VERSION, CHT_OPT) ?></td>
|
151 |
-
</tr>
|
152 |
-
</table>
|
153 |
-
<?php
|
154 |
-
$content = ob_get_clean();
|
155 |
-
$email_id = "gal@premio.io, karina@premio.io";
|
156 |
-
wp_mail($email_id, $subject, $content, $headers);
|
157 |
$response['status'] = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
echo json_encode($response);
|
160 |
wp_die();
|
@@ -1824,38 +1839,48 @@ class CHT_Admin_Base
|
|
1824 |
$email = $user_email;
|
1825 |
$domain = site_url();
|
1826 |
$user_name = $current_user->first_name . " " . $current_user->last_name;
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1859 |
} else {
|
1860 |
$response['error'] = 1;
|
1861 |
$response['errors'] = $errorArray;
|
107 |
if ($errorCounter == 0) {
|
108 |
global $current_user;
|
109 |
$email = "none@none.none";
|
110 |
+
|
111 |
if (isset($postData['email_id']) && !empty($postData['email_id']) && filter_var($postData['email_id'], FILTER_VALIDATE_EMAIL)) {
|
112 |
$email = $postData['email_id'];
|
113 |
}
|
114 |
$domain = site_url();
|
115 |
$user_name = $current_user->first_name . " " . $current_user->last_name;
|
116 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
$response['status'] = 1;
|
118 |
+
|
119 |
+
/* sending message to Crisp */
|
120 |
+
$post_message = array();
|
121 |
+
|
122 |
+
$message_data = array();
|
123 |
+
$message_data['key'] = "Plugin";
|
124 |
+
$message_data['value'] = "Chaty";
|
125 |
+
$post_message[] = $message_data;
|
126 |
+
|
127 |
+
$message_data = array();
|
128 |
+
$message_data['key'] = "Plugin Version";
|
129 |
+
$message_data['value'] = CHT_VERSION;
|
130 |
+
$post_message[] = $message_data;
|
131 |
+
|
132 |
+
$message_data = array();
|
133 |
+
$message_data['key'] = "Domain";
|
134 |
+
$message_data['value'] = $domain;
|
135 |
+
$post_message[] = $message_data;
|
136 |
+
|
137 |
+
$message_data = array();
|
138 |
+
$message_data['key'] = "Email";
|
139 |
+
$message_data['value'] = $email;
|
140 |
+
$post_message[] = $message_data;
|
141 |
+
|
142 |
+
$message_data = array();
|
143 |
+
$message_data['key'] = "WordPress Version";
|
144 |
+
$message_data['value'] = esc_attr(get_bloginfo('version'));
|
145 |
+
$post_message[] = $message_data;
|
146 |
+
|
147 |
+
$message_data = array();
|
148 |
+
$message_data['key'] = "PHP Version";
|
149 |
+
$message_data['value'] = PHP_VERSION;
|
150 |
+
$post_message[] = $message_data;
|
151 |
+
|
152 |
+
$message_data = array();
|
153 |
+
$message_data['key'] = "Message";
|
154 |
+
$message_data['value'] = $reason;
|
155 |
+
$post_message[] = $message_data;
|
156 |
+
|
157 |
+
$api_params = array(
|
158 |
+
'domain' => $domain,
|
159 |
+
'email' => $email,
|
160 |
+
'url' => site_url(),
|
161 |
+
'name' => $user_name,
|
162 |
+
'message' => $post_message,
|
163 |
+
'plugin' => "Chaty",
|
164 |
+
'type' => "Uninstall",
|
165 |
+
);
|
166 |
+
|
167 |
+
/* Sending message to Crisp API */
|
168 |
+
$crisp_response = wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => true));
|
169 |
+
|
170 |
+
if (is_wp_error($crisp_response)) {
|
171 |
+
wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => false));
|
172 |
+
}
|
173 |
}
|
174 |
echo json_encode($response);
|
175 |
wp_die();
|
1839 |
$email = $user_email;
|
1840 |
$domain = site_url();
|
1841 |
$user_name = $current_user->first_name . " " . $current_user->last_name;
|
1842 |
+
|
1843 |
+
/* sending message to Crisp */
|
1844 |
+
$post_message = array();
|
1845 |
+
|
1846 |
+
$message_data = array();
|
1847 |
+
$message_data['key'] = "Plugin";
|
1848 |
+
$message_data['value'] = "Chaty";
|
1849 |
+
$post_message[] = $message_data;
|
1850 |
+
|
1851 |
+
$message_data = array();
|
1852 |
+
$message_data['key'] = "Domain";
|
1853 |
+
$message_data['value'] = $domain;
|
1854 |
+
$post_message[] = $message_data;
|
1855 |
+
|
1856 |
+
$message_data = array();
|
1857 |
+
$message_data['key'] = "Email";
|
1858 |
+
$message_data['value'] = $email;
|
1859 |
+
$post_message[] = $message_data;
|
1860 |
+
|
1861 |
+
$message_data = array();
|
1862 |
+
$message_data['key'] = "Message";
|
1863 |
+
$message_data['value'] = $text_message;
|
1864 |
+
$post_message[] = $message_data;
|
1865 |
+
|
1866 |
+
$api_params = array(
|
1867 |
+
'domain' => $domain,
|
1868 |
+
'email' => $email,
|
1869 |
+
'url' => site_url(),
|
1870 |
+
'name' => $user_name,
|
1871 |
+
'message' => $post_message,
|
1872 |
+
'plugin' => "Chaty",
|
1873 |
+
'type' => "Need Help",
|
1874 |
+
);
|
1875 |
+
|
1876 |
+
/* Sending message to Crisp API */
|
1877 |
+
$crisp_response = wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => true));
|
1878 |
+
|
1879 |
+
if (is_wp_error($crisp_response)) {
|
1880 |
+
wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => false));
|
1881 |
+
}
|
1882 |
+
|
1883 |
+
$response['status'] = 1;
|
1884 |
} else {
|
1885 |
$response['error'] = 1;
|
1886 |
$response['errors'] = $errorArray;
|
cht-icons.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/*
|
3 |
Plugin Name: Chaty
|
4 |
Contributors: galdub, tomeraharon
|
5 |
-
Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your
|
6 |
Author: Premio
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
-
Version: 2.8.
|
11 |
License: GPL2
|
12 |
*/
|
13 |
|
@@ -27,7 +27,7 @@ define('CHT_INC', CHT_DIR . '/includes');
|
|
27 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
28 |
define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
|
29 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
30 |
-
define('CHT_VERSION', "2.8.
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
2 |
/*
|
3 |
Plugin Name: Chaty
|
4 |
Contributors: galdub, tomeraharon
|
5 |
+
Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your website visitors.
|
6 |
Author: Premio
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
+
Version: 2.8.2
|
11 |
License: GPL2
|
12 |
*/
|
13 |
|
27 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
28 |
define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
|
29 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
30 |
+
define('CHT_VERSION', "2.8.2");
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.8.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Whatsapp, Facebook Messenger, Telegram, TikTok Viber, Email, Phone call, SMS and more with customizable chat & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
|
@@ -258,6 +258,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
258 |
|
259 |
== Changelog ==
|
260 |
|
|
|
|
|
|
|
261 |
= 2.8.1 =
|
262 |
Some editing bugs were fixed
|
263 |
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
+
Tested up to: 5.8
|
6 |
+
Stable tag: 2.8.2
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Whatsapp, Facebook Messenger, Telegram, TikTok Viber, Email, Phone call, SMS and more with customizable chat & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 2.8.2 =
|
262 |
+
Support route changed
|
263 |
+
|
264 |
= 2.8.1 =
|
265 |
Some editing bugs were fixed
|
266 |
|
views/admin/help.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
jQuery(".chaty-help-content").html("<p class='success-p'><?php esc_attr_e("Your message is sent successfully.", CHT_OPT) ?></p>");
|
53 |
},1000);
|
54 |
} else if(responseArray.status == 0) {
|
55 |
-
jQuery(".
|
56 |
}
|
57 |
}
|
58 |
});
|
52 |
jQuery(".chaty-help-content").html("<p class='success-p'><?php esc_attr_e("Your message is sent successfully.", CHT_OPT) ?></p>");
|
53 |
},1000);
|
54 |
} else if(responseArray.status == 0) {
|
55 |
+
jQuery(".folder-help-content").html("<p class='error-p'><?php printf(esc_html__("There is some problem in sending request. Please send us mail on %s", 'folders'), "<a href='mailto:contact@premio.io'>contact@premio.io</a>"); ?></p>");
|
56 |
}
|
57 |
}
|
58 |
});
|
views/admin/upgrade.php
CHANGED
@@ -8,6 +8,25 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=185&edd_opt
|
|
8 |
<div class="container">
|
9 |
<div class="pricing-table">
|
10 |
<div class="price-title">Unlock All Features</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<div class="price-tables">
|
12 |
<div class="row">
|
13 |
<div class="col-md-4 col-sm-12">
|
@@ -442,6 +461,18 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=185&edd_opt
|
|
442 |
}
|
443 |
};
|
444 |
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
if($(".multiple-options").length) {
|
446 |
$(".multiple-options").select2({
|
447 |
minimumResultsForSearch: -1
|
8 |
<div class="container">
|
9 |
<div class="pricing-table">
|
10 |
<div class="price-title">Unlock All Features</div>
|
11 |
+
<div class="pricing-table-header">
|
12 |
+
<div class="pricing-table-body">
|
13 |
+
<div class="pricing-table-content first active" data-option="1_year">
|
14 |
+
<div class="year-col">1 Year</div>
|
15 |
+
<div class="update-col">Updates & Support</div>
|
16 |
+
<div class="pricing-discount-col"></div>
|
17 |
+
</div>
|
18 |
+
<div class="pricing-table-content second" data-option="2_year">
|
19 |
+
<div class="year-col">2 Years</div>
|
20 |
+
<div class="update-col">Updates & Support</div>
|
21 |
+
<div class="pricing-discount-col"><span>32% off 😎</span></div>
|
22 |
+
</div>
|
23 |
+
<div class="pricing-table-content third" data-option="lifetime">
|
24 |
+
<div class="year-col">Lifetime</div>
|
25 |
+
<div class="update-col">Updates & Support</div>
|
26 |
+
<div class="pricing-discount-col"><span>63% off 🥳</span></div>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
<div class="price-tables">
|
31 |
<div class="row">
|
32 |
<div class="col-md-4 col-sm-12">
|
461 |
}
|
462 |
};
|
463 |
$(document).ready(function(){
|
464 |
+
$(document).on("click", ".pricing-table-content", function(){
|
465 |
+
if(!$(this).hasClass("active")) {
|
466 |
+
$(".pricing-table-content").removeClass("active");
|
467 |
+
$(this).addClass("active");
|
468 |
+
var datFor = $(this).data("option");
|
469 |
+
$(".multiple-options").each(function(){
|
470 |
+
$(this).find("option").prop("selected", false);
|
471 |
+
$(this).find("option[data-option='"+datFor+"']").prop("selected", true);
|
472 |
+
$(this).trigger("change");
|
473 |
+
})
|
474 |
+
}
|
475 |
+
});
|
476 |
if($(".multiple-options").length) {
|
477 |
$(".multiple-options").select2({
|
478 |
minimumResultsForSearch: -1
|