Changeset 1868043
- Timestamp:
- 05/03/2018 10:46:25 AM (8 years ago)
- File:
-
- 1 edited
-
cometchat/trunk/includes/cometchat_cloud.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cometchat/trunk/includes/cometchat_cloud.php
r1859636 r1868043 1 1 <?php 2 3 4 /** 5 * createCometChatBaseData 6 * Return object 7 * @param (type) no param 8 * @return (object) 9 */ 10 function createCometChatBaseData(){ 11 global $cc_clientid; 12 global $cc_base; 13 14 if(!empty($cc_base)) { 15 wp_enqueue_script( 'cc_base', plugin_dir_url( __DIR__ ).'js/scripttag.js'); 16 wp_add_inline_script( 'cc_base', 'var cc_base = '.$cc_base.';' ); 17 } 18 } 2 19 3 20 /** … … 10 27 global $cc_clientid; 11 28 global $cc_base; 12 13 if(!empty($cc_base)) {14 wp_enqueue_script( 'cc_base', plugin_dir_url( __DIR__ ).'js/scripttag.js' );15 wp_add_inline_script( 'cc_base', 'var cc_base = '.$cc_base.';' );16 }17 29 18 30 wp_enqueue_style("cc_corecss", "//fast.cometondemand.net/".$cc_clientid."x_x".substr(md5($cc_clientid),0,5).".css"); … … 212 224 } 213 225 226 add_action('wp_head', 'createCometChatBaseData',1); 214 227 add_action('wp_head', 'getCometChatCloudDockedLayoutCode'); 215 228 add_action('init','cometchatUserDetails');
Note: See TracChangeset
for help on using the changeset viewer.