getWidgetNames($preload = true); // load current widgets map for this page $current_map = $widgets_helper->getMultitaskingMap($vbo_page); // page active widgets list $active_widgets = []; // check if the notification audio file exists within VCM $notif_audio_path = implode(DIRECTORY_SEPARATOR, [VCM_ADMIN_PATH, 'assets', 'css', 'audio', 'new_notification.mp3']); $notif_audio_url = is_file($notif_audio_path) ? (VCM_ADMIN_URI . implode('/', ['assets', 'css', 'audio', 'new_notification.mp3'])) : null; // theme color preferences $color_scheme = VikBooking::getAppearancePref(); $scheme_name = JText::translate('VBO_APPEARANCE_PREF_AUTO'); $current_mode = 'magic'; if ($color_scheme == 'light') { $scheme_name = JText::translate('VBO_APPEARANCE_PREF_LIGHT'); $current_mode = 'sun'; } elseif ($color_scheme == 'dark') { $scheme_name = JText::translate('VBO_APPEARANCE_PREF_DARK'); $current_mode = 'moon'; } // JS lang vars JText::script('VBO_BROWSER_NOTIFS_ON'); JText::script('VBO_BROWSER_NOTIFS_OFF'); JText::script('VBO_BROWSER_NOTIFS_OFF_HELP'); JText::script('VBO_ADMIN_WIDGET'); JText::script('VBO_CONGRATS'); JText::script('VBO_APPEARANCE_PREF_AUTO'); JText::script('VBO_APPEARANCE_PREF_LIGHT'); JText::script('VBO_APPEARANCE_PREF_DARK'); ?>
$admin_widget) { /** * Add widget container must be focusable with "tabindex=-1" so that via JS we will * have the "relatedTarget" event property set to this element when blurring on search field. */ ?>
icon; ?> name; ?>
getData(); foreach ($current_map as $widget_id) { $widget_instance = $widgets_helper->getWidget($widget_id); if (!$widget_instance) { continue; } // turn on multitask flag $widget_instance->setInMultitask(true); // build widget info object $widget_info = new stdClass; $widget_info->id = $widget_instance->getIdentifier(); $widget_info->name = $widget_instance->getName(); // push widget info object to list $active_widgets[] = $widget_info; ?>
render($multitask_data); ?>