-
Notifications
You must be signed in to change notification settings - Fork 3
/
knowledgebasecat.tpl
42 lines (38 loc) · 1.73 KB
/
knowledgebasecat.tpl
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
<form role="form" method="post" action="{routePath('knowledgebase-search')}">
<div class="input-group input-group-lg kb-search">
<input type="text" id="inputKnowledgebaseSearch" name="search" class="form-control" placeholder="What can we help you with?" value="{$searchterm}" />
<span class="input-group-btn">
<input type="submit" id="btnKnowledgebaseSearch" class="btn btn-primary btn-input-padded-responsive" value="{$LANG.search}" />
</span>
</div>
</form>
{if $kbcats}
<h2>{$LANG.knowledgebasecategories}</h2>
<div class="row kbcategories">
{foreach name=kbasecats from=$kbcats item=kbcat}
<div class="col-sm-4">
<a href="{routePath('knowledgebase-category-view',{$kbcat.id},{$kbcat.urlfriendlyname})}">
<span class="glyphicon glyphicon-folder-close"></span> {$kbcat.name} <span class="badge badge-info">{$kbcat.numarticles}</span>
</a>
<p>{$kbcat.description}</p>
</div>
{/foreach}
</div>
{/if}
{if $kbarticles || !$kbcats}
{if $tag}
<h2>{$LANG.kbviewingarticlestagged} '{$tag}'</h2>
{else}
<h2>{$LANG.knowledgebasearticles}</h2>
{/if}
<div class="kbarticles">
{foreach from=$kbarticles item=kbarticle}
<a href="{routePath('knowledgebase-article-view', {$kbarticle.id}, {$kbarticle.urlfriendlytitle})}">
<span class="glyphicon glyphicon-file"></span> {$kbarticle.title}
</a>
<p>{$kbarticle.article|truncate:100:"..."}</p>
{foreachelse}
{include file="$template/includes/alert.tpl" type="info" msg=$LANG.knowledgebasenoarticles textcenter=true}
{/foreach}
</div>
{/if}