Plugin Directory

Changeset 2955459


Ignore:
Timestamp:
08/18/2023 04:02:34 PM (3 years ago)
Author:
chatandbot
Message:

Now, when loading a chat, you can specify the desired user language.

Location:
chatandbot/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chatandbot/trunk/chatandbot.php

    r2860394 r2955459  
    66 * Plugin URI:  https://chatandbot.com
    77 * Author:      ChatAndBot
    8  * Version:     1.1
     8 * Version:     1.2
    99 *
    1010 * Text Domain: chatandbot
     
    9494 if(isset($plugin_id_arr[1]) ){
    9595 
    96     echo "<script async='true' type='text/javascript'>(function () { var _id = ". esc_attr($plugin_id_arr[0])."; var _aid = '".esc_attr($plugin_id_arr[1])."'; var d = document;var w = window;var title = d.title; var url = w.location.href;   var _date = Date.now();var width=document.documentElement.clientWidth;  var height=document.documentElement.clientHeight; function l(){ var s = document.createElement('script');s.type = 'text/javascript'; s.async = true;s.src = 'https://chatandbot.com/erl/web333?width='+width+'&height='+height+'&get_fr=1&title='+title+'&sid='+_id+'&aid='+_aid+'&date='+_date+'&url='+url;var ss = document.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s, ss);}if (d.readyState == 'complete') {l();} else {if (w.attachEvent) {w.attachEvent('onload', l);} else { w.addEventListener('load', l, false);}}})()</script>";
     96    echo "<script async='true' type='text/javascript'>(function () { var _id = ". esc_attr($plugin_id_arr[0])."; var _aid = '".esc_attr($plugin_id_arr[1])."'; var d = document;var cab_user_param ='';var w = window;var title = encodeURIComponent(d.title); var url = w.location.origin+w.location.pathname;   var _date = Date.now();var width=document.documentElement.clientWidth;  var height=document.documentElement.clientHeight; function l(){ var s = document.createElement('script');s.type = 'text/javascript'; s.async = true;s.src = 'https://chatandbot.com/erl/web333?width='+width+'&height='+height+cab_user_param+'&get_fr=1&title='+title+'&sid='+_id+'&aid='+_aid+'&date='+_date+'&url='+url;var ss = document.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s, ss);}if (d.readyState == 'complete') {l();} else {if (w.attachEvent) {w.attachEvent('onload', l);} else { w.addEventListener('load', l, false);}}})()</script>";
    9797
    9898 }
  • chatandbot/trunk/readme.txt

    r2861439 r2955459  
    66Tested up to: 6.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.1
     8Stable tag: 1.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393= 1.1 =
    9494* Tags and FAQ.
     95= 1.2 =
     96* Now, when loading a chat, you can specify the desired user language.
    9597
    9698
    9799
    98 
    99 
    100 
Note: See TracChangeset for help on using the changeset viewer.