diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index b2eec3ea19..bd684f6df7 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -56,7 +56,8 @@ class plugin_database { $theme_login_logo_width = $settings->get('theme', 'login_logo_width', 'auto; max-width: 300px'); $theme_login_logo_height = $settings->get('theme', 'login_logo_height', 'auto; max-height: 300px'); $theme_message_delay = 1000 * (float)$settings->get('theme', 'message_delay', 3000); - $theme_background_video = $settings->get('theme','background_video'); + $background_videos = $settings->get('theme', 'background_video', null); + $theme_background_video = (isset($background_videos) && is_array($background_videos)) ? $background_videos[0] : null; $login_domain_name_visible = $settings->get('login', 'domain_name_visible'); $login_domain_name = $settings->get('login', 'domain_name'); $login_destination = $settings->get('login', 'destination'); @@ -100,7 +101,7 @@ class plugin_database { $view->assign("project_path", PROJECT_PATH); $view->assign("login_destination_url", $login_destination); $view->assign("login_domain_name_visible", $login_domain_name_visible); - $view->assign("login_domain_names", $login_domain_name); + $view->assign("login_domain_names", $login_domain_name); $view->assign("favicon", $theme_favicon); $view->assign("login_logo_width", $theme_login_logo_width); $view->assign("login_logo_height", $theme_login_logo_height); @@ -329,4 +330,3 @@ class plugin_database { } ?> - diff --git a/resources/footer.php b/resources/footer.php index 25a2a27863..650836c21d 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2022 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -158,6 +158,10 @@ //assign the setings $view->assign('settings', $settings_array); } + //background video + if (!empty($_SESSION['theme']['background_video']) && is_array($_SESSION['theme']['background_video'])) { + $view->assign('background_video', $_SESSION['theme']['background_video'][0]); + } //document title if (isset($_SESSION['theme']['title']['text']) && $_SESSION['theme']['title']['text'] != '') { $document_title = $_SESSION['theme']['title']['text']; diff --git a/themes/default/template.php b/themes/default/template.php index f2fe68b9bd..5f35684296 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -1127,9 +1127,9 @@ {*//video background *} - {if !empty($settings.theme.background_video)} + {if !empty({$background_video})} {/if}