'.JAK_base::jakTimesince($row['time'], "", JAK_TIMEFORMAT).'
'.($row['editoid'] ? ' | '.JAK_base::jakTimesince($row['edited'], "", JAK_TIMEFORMAT) : '').''.(!empty(JAK_OPENAI_APIKEY) ? '
' : '').'
';
$wtplsett["clientmsg"] = '
'.($row['quoted'] ? '
'.$quotemsg.'
' : '').stripcslashes($message).'
'.JAK_base::jakTimesince($row['time'], "", JAK_TIMEFORMAT).''.($row['editoid'] ? ' | '.JAK_base::jakTimesince($row['edited'], "", JAK_TIMEFORMAT) : '').'
';
$wtplsett["infomsg"] = '
'.stripcslashes($message).'
'.JAK_base::jakTimesince($row['time'], "", JAK_TIMEFORMAT).'
';
$wtplsett["download"] = '
'.stripcslashes($message).'
'.JAK_base::jakTimesince($row['time'], "", JAK_TIMEFORMAT).'
';
$wtplsett["chatbot"] = '
'.(isset($message) ? stripcslashes($message) : '').'
'.JAK_base::jakTimesince(date('Y-m-d H:i:s'), "", JAK_TIMEFORMAT).'
';
}
// We only load when we have new messages
if (isset($lcdnm) && $lcdnm === true) {
/* Chat Design bot */
$wtplsett["chatbotinsert"] = '
'.(isset($botdisp) ? stripcslashes($botdisp) : '').'
'.JAK_base::jakTimesince(date('Y-m-d H:i:s'), "", JAK_TIMEFORMAT).'
';
/* Chat Design Insert */
$wtplsett["chatinsert"] = '
'.(isset($messagedisp) ? stripcslashes($messagedisp) : '').'
'.JAK_base::jakTimesince(date('Y-m-d H:i:s'), "", JAK_TIMEFORMAT).'
';
/* Chat Design Insert ended */
$wtplsett["chatinsertended"] = '
'.(isset($message) ? stripcslashes($message) : '').'
'.JAK_base::jakTimesince(date('Y-m-d H:i:s'), "", JAK_TIMEFORMAT).'
';
}
// Only for the edit page in the operator panel
if (isset($page) && $page == "widget") {
/* Leave a var empty if not in use or set to false */
$chatsett = array();
$chatsett["previewchat"] = "preview/chat.jpg";
/* Now we need custom input fields */
/* Following options are available:
1. Input
2. Textarea
3. Radio
4. Checkbox
5. Select
***
Title (you can use the lang vars from the operator/lang language files)
***
Options (for radio 3, checkbox 4, select 5) = Green,Red,Blue
Options (for Input) = colour or icon
***
Multiple (0 = No / 1 = Yes)
***
The english language var for the input field
*/
$chatsett["formoptions"] = array("1" => "5:#:".$jkl['cw22'].":#:blue,green,orange,red,pink,grey:#:0:#:chat_colour_theme", "2" => "5:#:".$jkl['cw23'].":#:animate__fadeIn,animate__flash,animate__pulse,animate__headShake,animate__slideInUp,animate__slideInRight:#:0:#:chat_animation");
} else {
// Check the vars for this start
$chat_animate = "animate__fadeIn";
$chat_custom = "";
$chat_logo = '';
// We can have custom online icon
if (isset($widgetsettings['chat_animation']) && !empty($widgetsettings['chat_animation'])) {
$chat_animate = $widgetsettings['chat_animation'];
}
// We can have custom online icon
if (isset($widgetsettings['chat_colour_theme']) && !empty($widgetsettings['chat_colour_theme']) && $widgetsettings['chat_colour_theme'] != "blue") {
$chat_custom = " ".$widgetsettings['chat_colour_theme'];
}
// Let's get the header connecting message
$headermsg = $jkl['g59'];
// We just allow small
$livecode = '