"space_on.png", "btn_image_mobile" => "space-mobile_on.png");
// We only load when we need to receive messages
if (isset($lcdrm) && $lcdrm === true) {
$wtplsett["engagehtml"] = '
'.(isset($engimg) && !empty($engimg) ? '

' : (isset($engicon) && !empty($engicon) ? '
' : '')).(isset($engtitle) && !empty($engtitle) ? '
'.$engtitle.'
' : '').'
'.(isset($engmsg) && !empty($engmsg) ? $engmsg : '').'
'.(isset($engconfirm) && !empty($engconfirm) ? $engconfirm : $jkl['g72']).' '.(isset($engcancel) && !empty($engcancel) ? $engcancel : $jkl['g73']).'
';
}
if (isset($page) && $page == "widget") {
/* Leave a var empty if not in use or set to false */
$btnsett = array();
$btnsett["previewbtn"] = '
';
$btnsett["previewbtnmobile"] = '
![live chat]()
';
/* 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
Options for select = btn
Options for select = slideimg
***
Multiple (0 = No / 1 = Yes)
***
The english language var for the input field
*/
$btnsett["formoptions"] = array("1" => "5:#:".$jkl['cw41'].":#:btn:#:0:#:btn_image", "2" => "5:#:".$jkl['cw42'].":#:btn:#:0:#:btn_image_mobile", "3" => "5:#:".$jkl['cw18'].":#:animate__fadeIn,animate__flash,animate__pulse,animate__headShake,animate__slideInUp,animate__slideInRight:#:0:#:btn_animation", "4" => "5:#:".$jkl['cw19'].":#:animate__fadeIn,animate__flash,animate__pulse,animate__headShake,animate__slideInUp,animate__slideInRight:#:0:#:btn_animation_offline");
}
// Check the vars for this button
$btn_on_icon = "far fa-comments-alt";
$btn_off_icon = "far fa-envelope";
$btn_on_animate = "animate__fadeIn";
$btn_off_animate = "animate__fadeIn";
// Custom Button animation
if (isset($widgetsettings[$widgetid]['btn_animation']) && !empty($widgetsettings[$widgetid]['btn_animation'])) {
$btn_on_animate = $widgetsettings[$widgetid]['btn_animation'];
}
// Custom button animation for offline use
if (isset($widgetsettings[$widgetid]['btn_animation_offline']) && !empty($widgetsettings[$widgetid]['btn_animation_offline'])) {
$btn_off_animate = $widgetsettings[$widgetid]['btn_animation_offline'];
}
// Set the button image
if (isset($widgetsettings[$widgetid]['btn_image']) && !empty($widgetsettings[$widgetid]['btn_image'])) {
$btnimgmodify = $widgetsettings[$widgetid]['btn_image'];
if (isset($_SESSION["clientismobile"]) && isset($widgetsettings[$widgetid]['btn_image_mobile']) && !empty($widgetsettings[$widgetid]['btn_image_mobile'])) {
$btnimgmodify = $widgetsettings[$widgetid]['btn_image_mobile'];
}
// Get image size
if (isset($online_op) && $online_op) {
list($btnwidth, $btnheight) = getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/buttons/'.$btnimgmodify);
$buttonimg = $btnimgmodify;
} else {
list($btnwidth, $btnheight) = getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/buttons/'.str_replace("_on", "_off", $btnimgmodify));
$buttonimg = str_replace("_on", "_off", $btnimgmodify);
}
// Get the width of the button and add 50px for the hover
$btnwidthdiv = 'style="width:'.($btnwidth+20).'px;height:'.($btnheight+20).'px;"';
$btnimg = '
.JAK_FILES_DIRECTORY.'/buttons/'.$buttonimg.')
';
}
$livecode_online = '
'.$btnimg.'
';
$livecode_offline = '
'.$btnimg.'
';
$livecode_hide = '
';
?>