"1:#:".$jkl['cw24'].":#:0:#:0:#:start_custom_logo", "2" => "1:#:".$jkl['cw40'].":#:0:#:0:#:whatsapp_message", "3" => "5:#:".$jkl['cw22'].":#:blue,green,orange,red,pink,grey:#:0:#:start_colour_theme", "4" => "5:#:".$jkl['cw23'].":#:animate__fadeIn,animate__flash,animate__pulse,animate__headShake,animate__slideInUp,animate__slideInRight:#:0:#:start_animation");
} else {
// Check the vars for this start
$start_animate = "animate__fadeIn";
$start_custom = "";
$start_logo = '';
// We can have custom online icon
if (isset($widgetsettings[$widgetid]['start_animation']) && !empty($widgetsettings[$widgetid]['start_animation'])) {
$start_animate = $widgetsettings[$widgetid]['start_animation'];
}
// We can have custom online icon
if (isset($widgetsettings[$widgetid]['start_colour_theme']) && !empty($widgetsettings[$widgetid]['start_colour_theme']) && $widgetsettings[$widgetid]['start_colour_theme'] != "blue") {
$start_custom = " ".$widgetsettings[$widgetid]['start_colour_theme'];
}
// We can have custom online icon
if (isset($widgetsettings[$widgetid]['start_custom_logo']) && !empty($widgetsettings[$widgetid]['start_custom_logo'])) {
$start_logo = '';
}
// Let's get the header welcome message
$headermsg = '';
if (empty($headermsg)) {
if (!empty($HD_ANSWERS) && is_array($HD_ANSWERS)) foreach ($HD_ANSWERS as $v) {
$msgtype = 26;
if ($v["msgtype"] == $msgtype && $v["lang"] == $BT_LANGUAGE && $v["department"] == 0) {
$phold = array("%operator%","%client%","%email%");
$replace = array("", "", JAK_EMAIL);
$headermsg = str_replace($phold, $replace, $v["message"]);
}
}
}
// Get all Operators that have WhatsApp
$online_oplist_whatsapp = online_operator_list_whatsapp($opcacheid, $HD_DEPARTMENTS, $jakwidget[$widgetid]['depid'], $jakwidget[$widgetid]['singleopid']);
$op_wame = "";
if (isset($online_oplist_whatsapp) && !empty($online_oplist_whatsapp)) foreach ($online_oplist_whatsapp as $o) {
$op_wame .= '
'.$o["aboutme"].'
'.($o["title"] ? sprintf($jkl["g63"], $o["title"]) : $jkl["g88"]).'