Plugin Directory

Changeset 2344772


Ignore:
Timestamp:
07/22/2020 01:12:48 PM (6 years ago)
Author:
chat2
Message:

New versión of Chat2 by David

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chat2/tags/3.6.0/chat2.php

    r2344708 r2344772  
    1313
    1414define( 'CHAT2_SETTINGS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     15
    1516if(is_admin()){
    1617    include_once CHAT2_SETTINGS_PLUGIN_DIR.'admin/field-configiguration-admin.php';
     
    2223if ( ! class_exists( 'Field_Configuration_Admin_Settings' ) ) :
    2324
    24 class Chat_Field_Settings_Front {
     25class Chat2_Settings_Front {
    2526    public function __construct(){
    2627      add_action( 'wp_footer', array( $this, 'write_chat_field_script' ) );;   
     
    3435            ?>
    3536                <script>var CHAT2_API = CHAT2_API||{};
    36                     var subdomainName = '<?php echo  $subdomain;?>';
    37                 CHAT2_API.args = {mode:'widget',chat2_base_url:'//VAR.chat2.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false,lang:'eng/';};
     37                CHAT2_API.args = {mode:'widget',chat2_base_url:'//<?php echo  $subdomain;?>.chat2.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false,lang:'eng/';};
    3838                (function() {
    3939                var po = document.createElement('script'); po.type = 'text/javascript'; po.setAttribute('crossorigin','anonymous'); po.async = true;
    40                 var date = new Date();po.src = '//VAR.chat2.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
     40                var date = new Date();po.src = '//<?php echo  $subdomain;?>.chat2.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
    4141                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    4242                })();
     
    4848   
    4949endif;
     50
     51return new Chat2_Settings_Front();
Note: See TracChangeset for help on using the changeset viewer.