This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 2
/
knowledgebasearticle.tpl
45 lines (43 loc) · 2.11 KB
/
knowledgebasearticle.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
43
44
45
<h2>{$kbarticle.title}</h2>
{if $kbarticle.voted}
{include file="$template/includes/alert.tpl" type="success" msg="{lang key="knowledgebaseArticleRatingThanks"}" textcenter=true}
{/if}
<blockquote>
{$kbarticle.text}
</blockquote>
<div class="hidden-print">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{if $kbarticle.voted}{$LANG.knowledgebaserating}{else}{$LANG.knowledgebasehelpful}{/if}
</h3>
</div>
<div class="panel-body">
{if $kbarticle.voted}
{$kbarticle.useful} {$LANG.knowledgebaseratingtext} ({$kbarticle.votes} {$LANG.knowledgebasevotes})
{else}
<form action="{if $seofriendlyurls}{$WEB_ROOT}/knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}" method="post">
<input type="hidden" name="useful" value="vote">
<button type="submit" name="vote" value="yes" class="btn btn-success"><i class="fa fa-thumbs-o-up"></i> {$LANG.knowledgebaseyes}</button>
<button type="submit" name="vote" value="no" class="btn btn-default"><i class="fa fa-thumbs-o-down"></i> {$LANG.knowledgebaseno}</button>
</form>
{/if}
</div>
</div>
<a href="#" class="btn btn-success btn-block" onclick="window.print();return false"><i class="fa fa-print"> </i>{$LANG.knowledgebaseprint}</a>
</div>
{if $kbarticles}
<h3 class="kb-alsoread">
{$LANG.knowledgebasealsoread}
</h3>
<div class="kbarticles">
{foreach key=num item=kbarticle from=$kbarticles}
<div>
<a href="{if $seofriendlyurls}{$WEB_ROOT}/knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}">
<i class="glyphicon glyphicon-file"></i> {$kbarticle.title}
</a>
<p>{$kbarticle.article|truncate:100:"..."}</p>
</div>
{/foreach}
</div>
{/if}