useAssets(); if (!array_key_exists('session', $displayData)) { // get session from cookie $session = (new VBOChatSessionModel)->getFromCookie(); } // sanitize suffix $suffix = preg_replace("/[^a-zA-Z0-9_\-]+/", '', (string) ($suffix ?? '')); ?>
createContext('session', $session->id); // display the chat for the current session echo $chat->render($context, array_merge($options ?? [], [ 'assets' => false, ])); } ?>