Fix empty title line display
- Add condition to only show description when it's not empty - Prevent empty description lines from being displayed - Clean up configuration page by removing empty title lines - Improve user experience with cleaner interface
This commit is contained in:
parent
f7e90c59b6
commit
8eaf68f544
@ -155,7 +155,9 @@ foreach ($lines_by_section as $section_code => $lines) {
|
||||
|
||||
// Section header
|
||||
print '<div class="titre">' . $section_info['title'] . '</div>';
|
||||
print '<div class="info">' . $section_info['description'] . '</div>';
|
||||
if (!empty($section_info['description'])) {
|
||||
print '<div class="info">' . $section_info['description'] . '</div>';
|
||||
}
|
||||
if (isset($section_info['notice']) && !empty($section_info['notice'])) {
|
||||
print '<div class="info"><strong>Référence:</strong> ' . $section_info['notice'] . '</div>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user