'; echo "parent.chat_message.location.href='chat_whoisonline.php?".api_get_cidreq()."';"; echo ''; } /* * Choose CSS style (platform's, user's, or course's) */ $my_style = api_get_visual_theme(); $chat_size_old = isset($chat_size_old) ? $chat_size_old : null; $chat_size_new = isset($chat_size_new) ? $chat_size_new : null; $connected_new = isset($connected_new) ? $connected_new : null; $connected_old = isset($connected_old) ? $connected_old : null; $icons = Emojione\Emojione::$shortcode_replace; $iconList = array(); $iconNameToInclude = array( ':bowtie:', ':smile:', ':laughing:', ':blush:', ':smiley:', ':relaxed:', ':smirk:', ':heart_eyes:', ':kissing_heart:', ':kissing_closed_eyes:', ':flushed:', ':relieved:', ':satisfied:', ':grin:', ':wink:', ':stuck_out_tongue_winking_eye:', ':stuck_out_tongue_closed_eyes:', ':grinning:', ':kissing:', ':kissing_smiling_eyes:', ':stuck_out_tongue:', ':sleeping:', ':worried:', ':frowning:', ':anguished:', ':open_mouth:', ':grimacing:', ':confused:', ':hushed:', ':expressionless:', ':unamused:', ':sweat_smile:', ':sweat:', ':disappointed_relieved:', ':weary:', ':pensive:', ':disappointed:', ':confounded:', ':fearful:', ':cold_sweat:', ':persevere:', ':cry:', ':sob:', ':joy:', ':astonished:', ':scream:', ':neckbeard:', ':tired_face:', ':angry:', ':rage:', ':triumph:', ':sleepy:', ':yum:', ':mask:', ':sunglasses:', ':dizzy_face:', ':imp:', ':smiling_imp:', ':neutral_face:', ':no_mouth:', ':innocent:', ':alien:', ); foreach ($icons as $key => $icon) { if (in_array($key, $iconNameToInclude)) { $iconList[$key] = strtoupper($icon) . '.png'; } } $icons = json_encode($iconList); $ajax = api_get_path(WEB_AJAX_PATH).'chat.ajax.php?action=preview&'.api_get_cidreq(); header('Content-Type: text/html; charset=UTF-8'); ?>