Changeset 2344772
- Timestamp:
- 07/22/2020 01:12:48 PM (6 years ago)
- File:
-
- 1 edited
-
chat2/tags/3.6.0/chat2.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chat2/tags/3.6.0/chat2.php
r2344708 r2344772 13 13 14 14 define( 'CHAT2_SETTINGS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 15 15 16 if(is_admin()){ 16 17 include_once CHAT2_SETTINGS_PLUGIN_DIR.'admin/field-configiguration-admin.php'; … … 22 23 if ( ! class_exists( 'Field_Configuration_Admin_Settings' ) ) : 23 24 24 class Chat _Field_Settings_Front {25 class Chat2_Settings_Front { 25 26 public function __construct(){ 26 27 add_action( 'wp_footer', array( $this, 'write_chat_field_script' ) );; … … 34 35 ?> 35 36 <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/';}; 38 38 (function() { 39 39 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()); 41 41 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 42 42 })(); … … 48 48 49 49 endif; 50 51 return new Chat2_Settings_Front();
Note: See TracChangeset
for help on using the changeset viewer.