Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$BUTTONS = isset($BUTTONS) ? $BUTTONS : true;
?>
<div class="sidebar pull-right">
<?php if ($BUTTONS) { ?>
<div class="front-page-button flush-right">
<p>
<a href="open.php" style="display:block" class="blue button"><?php
echo __('Open a New Ticket');?></a>
</p>
<?php if ($cfg && !$cfg->isKnowledgebaseEnabled()) { ?>
<p>
<a href="view.php" style="display:block" class="green button"><?php
echo __('Check Ticket Status');?></a>
</p>
<?php } ?>
</div>
<?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>
<?php foreach ($faqs as $F) { ?>
<div><a href="<?php echo ROOT_PATH; ?>/kb/faq.php?id=<?php
echo urlencode($F->getId());
?>"><?php echo $F->getLocalQuestion(); ?></a></div>
<?php } ?>
</section>
<?php
}
$resources = Page::getActivePages()->filter(array('type'=>'other'));
if ($resources->all()) { ?>
<section><div class="header"><?php echo __('Other Resources'); ?></div>
<?php foreach ($resources as $page) { ?>
<div><a href="<?php echo ROOT_PATH; ?>pages/<?php echo $page->getNameAsSlug();
?>"><?php echo $page->getLocalName(); ?></a></div>
<?php } ?>
</section>
<?php
}
?></div>
</div>