From a55e1a1cf3151dd5bdc063030a882844a9fa6904 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 26 Jan 2020 03:08:24 -0700 Subject: [PATCH] Update template.php --- themes/default/template.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index bed12b725e..3b3f021c72 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -906,7 +906,7 @@ if (!$default_login) { echo "\n"; //initial div from switch statement above } else { - // default login being used + //default login being used if ($_SESSION['theme']['logo_login']['text'] != '') { $logo = $_SESSION['theme']['logo_login']['text']; } @@ -917,8 +917,22 @@ else { $logo = PROJECT_PATH."/themes/default/images/logo_login.png"; } + //set the login logo width and height + if (isset($_SESSION['theme']['login_logo_weight']['text'])) { + $login_logo_weight = $_SESSION['theme']['login_logo_weight']['text']; + } + else { + $login_logo_weight = '300px'; + } + if (isset($_SESSION['theme']['login_logo_height']['text'])) { + $login_logo_height = $_SESSION['theme']['login_logo_height']['text']; + } + else { + $login_logo_height = ''; + } + echo "
\n"; - echo "
\n"; + echo "
\n"; echo " \n"; echo "
\n"; echo "