From 693a8d6e4a06d9339f41e979e4ec7feccd53b413 Mon Sep 17 00:00:00 2001 From: IJ Date: Wed, 21 Nov 2018 21:53:29 +0000 Subject: [PATCH] NEW: Add hidden config 'ADD_UNSPLASH_LOGIN_BACKGROUND' - The background image will be refreshed on every login page refresh - Background image is pulled from the popular open source image website Unsplash - If an already saved static background image exists, then this code will override it (but not delete the saved image). --- htdocs/core/tpl/login.tpl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 7e3e479048b..94be275ff12 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -67,7 +67,12 @@ $colorbackhmenu1=join(',',colorStringToArray($colorbackhmenu1)); // Normalize ?> -global->MAIN_LOGIN_BACKGROUND)?'':' style="background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; background-image: url(\''.DOL_URL_ROOT.'/viewimage.php?cache=1&noalt=1&modulepart=mycompany&file='.urlencode('logos/'.$conf->global->MAIN_LOGIN_BACKGROUND).'\')"'; ?>> +global->ADD_UNSPLASH_LOGIN_BACKGROUND)) { ?> + + + global->MAIN_LOGIN_BACKGROUND)?'':' style="background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; background-image: url(\''.DOL_URL_ROOT.'/viewimage.php?cache=1&noalt=1&modulepart=mycompany&file='.urlencode($conf->global->MAIN_LOGIN_BACKGROUND).'\')"'; ?>> + dol_use_jmobile)) { ?>