Skip to content
Snippets Groups Projects
Unverified Commit 5e57de5b authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4416 from JediKev/issue/featured-faq-on-disable

issue: Featured FAQs On Disable
parents ca3a7ea3 b59b2641
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ $BUTTONS = isset($BUTTONS) ? $BUTTONS : true;
</div>
<?php } ?>
<div class="content"><?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?>
if ($cfg->isKnowledgebaseEnabled()
&& ($faqs = FAQ::getFeatured()->select_related('category')->limit(5))
&& $faqs->all()) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div>
<?php foreach ($faqs as $F) { ?>
<div><a href="<?php echo ROOT_PATH; ?>kb/faq.php?id=<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment