Plugin Directory

Changeset 2827934


Ignore:
Timestamp:
12/02/2022 09:42:32 PM (3 years ago)
Author:
anychat
Message:

v 1.0.2

  • Pass current location to the widget param
  • Fix default config
Location:
anychat-widget
Files:
53 added
5 edited

Legend:

Unmodified
Added
Removed
  • anychat-widget/trunk/anychat.php

    r2827746 r2827934  
    66Plugin Name: AnyChat widget
    77Description: Display contact us button with menu on every page. Callback request, reCaptcha V3 protection and many customizations!
    8 Version: 1.0.0
     8Version: 1.0.2
    99Author: AnyChat
    1010Author URI: https://anychat.one/
     
    2121define('ANYCHAT_PLUGIN_FILE', __FILE__);
    2222define('ANYCHAT_PLUGIN_NAME', 'anychat');
    23 define('ANYCHAT_VERSION', '1.0.1');
     23define('ANYCHAT_VERSION', '1.0.2');
    2424define('ANYCHAT_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2525define('ANYCHAT_PLUGIN_URL', plugin_dir_url(__FILE__));
  • anychat-widget/trunk/classes/AnyChat.php

    r2684942 r2827934  
    2727            $generalConfig = new AnyChatConfigGeneral('anychat_');
    2828            $generalConfig->loadDefaults();
    29             $generalConfig->saveToConfig();
     29            $generalConfig->saveToConfig(false);
    3030           
    3131            $admin = new AnyChatAdmin();
  • anychat-widget/trunk/readme.txt

    r2827746 r2827934  
    66Tested up to: 5.9
    77Requires PHP: 5.6
    8 Stable tag: 1.0.0
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 1.0.2 =
     140* Pass current location to the widget param
     141* Fix default config
     142
    139143= 1.0.1 =
    140144* API key bug fix
     
    145149
    146150== Upgrade Notice ==
     151= 1.0.2 =
     152Pass current location to the widget param
     153Fix default config
     154
    147155= 1.0.1 =
    148156API key bug fix
  • anychat-widget/trunk/res/css/admin.css

    r2684942 r2827934  
    11#anychat-menu.ui.vertical.menu .item.hidden{
    22    display: none;
     3}
     4.field_integration_type.has-error .integration-type-option div{
     5    color: #9f3a38;
     6}
     7.field_integration_type.has-error .integration-type-option{
     8    background: #fff6f6;
    39}
    410.arcu-icon-svg{
  • anychat-widget/trunk/views/front/button.php

    r2684942 r2827934  
    44  if (d.getElementById(id)) {return;}
    55  js = d.createElement(s); js.id = id;
    6   js.src = 'https://api.anychat.one/widget/<?php echo AnyChatTools::escJsString($generalConfig->widget_id) ?>';
     6  js.src = 'https://api.anychat.one/widget/<?php echo AnyChatTools::escJsString($generalConfig->widget_id) ?>?r=' + encodeURIComponent(window.location);
    77  fjs.parentNode.insertBefore(js, fjs);
    88}(document, 'script', 'contactus-jssdk'));</script>
     
    1212  if (d.getElementById(id)) {return;}
    1313  js = d.createElement(s); js.id = id;
    14   js.src = 'https://api.anychat.one/widget/<?php echo AnyChatTools::escJsString($generalConfig->widget_id) ?>/livechat-js';
     14  js.src = 'https://api.anychat.one/widget/<?php echo AnyChatTools::escJsString($generalConfig->widget_id) ?>/livechat-js?r=' + encodeURIComponent(window.location);
    1515  fjs.parentNode.insertBefore(js, fjs);
    1616}(document, 'script', 'contactus-jssdk'));</script>
Note: See TracChangeset for help on using the changeset viewer.