diff --git a/assets/default/css/theme.css b/assets/default/css/theme.css index 73a76e4aa4e4089bda6264ea9d4fd07ab65448cc..2ebe419f6cd08dbfb28d737faec667a5efcbe650 100644 --- a/assets/default/css/theme.css +++ b/assets/default/css/theme.css @@ -996,6 +996,9 @@ img.sign-in-image { .sidebar .content { padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE; } +.sidebar .content:empty { + display: none; +} .sidebar section .header { font-weight: bold; diff --git a/index.php b/index.php index 97ff2378770c07cf0a2f3a58add652a7bea8c718..ad12bb417f0325c5d85ead724c671ec25277429e 100644 --- a/index.php +++ b/index.php @@ -28,8 +28,7 @@ require(CLIENTINC_DIR.'header.inc.php'); echo __('Open a New Ticket');?></a> </p> </div> - <div class="content"> -<?php + <div class="content"><?php $faqs = FAQ::getFeatured()->select_related('category')->limit(5); if ($faqs->all()) { ?> <section><div class="header"><?php echo __('Featured Questions'); ?></div> @@ -50,8 +49,8 @@ require(CLIENTINC_DIR.'header.inc.php'); <?php } ?> </section> <?php - } ?> - </div> + } + ?></div> </div> <div class="welcome"> <?php