-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknowledgebasearticle.tpl
More file actions
33 lines (25 loc) · 1.43 KB
/
knowledgebasearticle.tpl
File metadata and controls
33 lines (25 loc) · 1.43 KB
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
<div class="page-header">
<h1>{$kbarticle.title}</h1>
<p class="noprint">
<i class="fa fa-star"></i> <a href="#" onClick="addBookmark();return false">{$LANG.knowledgebasefavorites}</a>
<i class="fa fa-print"></i> <a href="#" onclick="window.print();return false">{$LANG.knowledgebaseprint}</a>
</p>
</div>
{$kbarticle.text}
<hr />
<form method="post" action="knowledgebase.php?action=displayarticle&id={$kbarticle.id}&useful=vote">
{if $kbarticle.voted}
<strong>{$LANG.knowledgebaserating}</strong> {$kbarticle.useful} {$LANG.knowledgebaseratingtext} ({$kbarticle.votes} {$LANG.knowledgebasevotes})
{else}
<strong>{$LANG.knowledgebasehelpful}</strong> <select name="vote"><option value="yes">{$LANG.knowledgebaseyes}</option><option value="no">{$LANG.knowledgebaseno}</option></select> <input type="submit" value="{$LANG.knowledgebasevote}" class="btn btn-success btn-xs" />
{/if}
</form>
{if $kbarticles}
<div class="kbalsoread">{$LANG.knowledgebasealsoread}</div>
{foreach key=num item=kbarticle from=$kbarticles}
<div class="kbarticle">
<img src="images/article.gif" align="middle" alt="" /> <strong><a href="{if $seofriendlyurls}knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}">{$kbarticle.title}</a></strong> <span class="kbviews">({$LANG.knowledgebaseviews}: {$kbarticle.views})</span>
</div>
{/foreach}
{/if}
<br />