forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknowledgebasearticle.tpl
62 lines (56 loc) · 2.49 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div class="kb-article-title">
<a href="#" class="btn btn-link btn-print" onclick="window.print();return false"><i class="fa fa-print"></i></a>
<h2>{$kbarticle.title}</h2>
</div>
{if $kbarticle.voted}
{include file="$template/includes/alert.tpl" type="success alert-bordered-left" msg="{lang key="knowledgebaseArticleRatingThanks"}" textcenter=true}
{/if}
<div class="kb-article-content">
{$kbarticle.text}
</div>
{if $kbarticle.editLink}
<a href="{$kbarticle.editLink}" class="btn btn-default btn-sm pull-right">
<i class="fa fa-pencil fa-fw"></i>
{$LANG.edit}
</a>
{/if}
<ul class="kb-article-details">
{if $kbarticle.tags }
<li><i class="fa fa-tag"></i> {$kbarticle.tags}</li>
{/if}
<li><i class="fa fa-star"></i> {$kbarticle.useful} {$LANG.knowledgebaseratingtext}</li>
</ul>
<div class="clearfix"></div>
<div class="kb-rate-article hidden-print">
<form action="{routePath('knowledgebase-article-view', {$kbarticle.id}, {$kbarticle.urlfriendlytitle})}" method="post">
<input type="hidden" name="useful" value="vote">
{if $kbarticle.voted}{$LANG.knowledgebaserating}{else}{$LANG.knowledgebasehelpful}{/if}
{if $kbarticle.voted}
{$kbarticle.useful} {$LANG.knowledgebaseratingtext} ({$kbarticle.votes} {$LANG.knowledgebasevotes})
{else}
<button type="submit" name="vote" value="yes" class="btn btn-lg btn-link"><i class="fa fa-thumbs-o-up"></i> {$LANG.knowledgebaseyes}</button>
<button type="submit" name="vote" value="no" class="btn btn-lg btn-link"><i class="fa fa-thumbs-o-down"></i> {$LANG.knowledgebaseno}</button>
{/if}
</form>
</div>
{if $kbarticles}
<div class="kb-also-read">
<h3>Related Articles</h3>
<div class="kbarticles">
{foreach key=num item=kbarticle from=$kbarticles}
<div>
<a href="{routePath('knowledgebase-article-view', {$kbarticle.id}, {$kbarticle.urlfriendlytitle})}">
<i class="glyphicon glyphicon-file"></i> {$kbarticle.title}
</a>
{if $kbarticle.editLink}
<a href="{$kbarticle.editLink}" class="admin-inline-edit">
<i class="fa fa-pencil fa-fw"></i>
{$LANG.edit}
</a>
{/if}
<p>{$kbarticle.article|truncate:100:"..."}</p>
</div>
{/foreach}
</div>
</div>
{/if}