From 6894b04429a40a19e9fb8fd690f99892f864e356 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Sep 2023 12:07:01 +0200 Subject: [PATCH] CSS --- htdocs/user/param_ihm.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index 8f8ad206a44..6df46eee631 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -464,7 +464,7 @@ if ($action == 'edit') { print 'conf->MAIN_LANDING_PAGE) ? " checked" : ""); print empty($dolibarr_main_demo) ? '' : ' disabled="disabled"'; // Disabled for demo print '> '.$langs->trans("UsePersonalValue").''; - print ''; + print ''; if (!empty($object->conf->MAIN_LANDING_PAGE)) { $urltoshow = ''; if (!empty($tmparray[$object->conf->MAIN_LANDING_PAGE])) { @@ -476,10 +476,17 @@ if ($action == 'edit') { } else { $urltoshow = $object->conf->MAIN_LANDING_PAGE; } - print ' '; - print img_picto($urltoshow, $tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'], 'class="pictofixedwidth"'); + print ''; + $s = ''; + if (!empty($tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'])) { + $s = img_picto($urltoshow, $tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'], 'class="pictofixedwidth"'); + } + if (empty($s)) { + print img_picto($urltoshow, 'globe', 'class="pictofixedwidth"'); + } else { + print $s; + } print $urltoshow; - print img_picto($urltoshow, 'globe', 'class="paddingleft"'); print ''; } print '';