forked from EhsanCh/whmcs-template-six-rtl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
clientareahome.tpl
143 lines (135 loc) · 7.31 KB
/
clientareahome.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<div class="tiles clearfix">
<div class="row">
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='clientarea.php?action=services'">
<a href="clientarea.php?action=services">
<div class="icon"><i class="fa fa-cube"></i></div>
<div class="stat">{$clientsstats.productsnumactive}</div>
<div class="title">{$LANG.navservices}</div>
<div class="highlight bg-color-blue"></div>
</a>
</div>
{if $registerdomainenabled || $transferdomainenabled}
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='clientarea.php?action=domains'">
<a href="clientarea.php?action=domains">
<div class="icon"><i class="fa fa-globe"></i></div>
<div class="stat">{$clientsstats.numactivedomains}</div>
<div class="title">{$LANG.navdomains}</div>
<div class="highlight bg-color-green"></div>
</a>
</div>
{elseif $condlinks.affiliates && $clientsstats.isAffiliate}
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='affiliates.php'">
<a href="affiliates.php">
<div class="icon"><i class="fa fa-shopping-cart"></i></div>
<div class="stat">{$clientsstats.numaffiliatesignups}</div>
<div class="title">{$LANG.affiliatessignups}</div>
<div class="highlight bg-color-green"></div>
</a>
</div>
{else}
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='clientarea.php?action=quotes'">
<a href="clientarea.php?action=quotes">
<div class="icon"><i class="fa fa-file-text-o"></i></div>
<div class="stat">{$clientsstats.numquotes}</div>
<div class="title">{$LANG.quotes}</div>
<div class="highlight bg-color-green"></div>
</a>
</div>
{/if}
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='supporttickets.php'">
<a href="supporttickets.php">
<div class="icon"><i class="fa fa-comments"></i></div>
<div class="stat">{$clientsstats.numactivetickets}</div>
<div class="title">{$LANG.navtickets}</div>
<div class="highlight bg-color-red"></div>
</a>
</div>
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='clientarea.php?action=invoices'">
<a href="clientarea.php?action=invoices">
<div class="icon"><i class="fa fa-credit-card"></i></div>
<div class="stat">{$clientsstats.numunpaidinvoices}</div>
<div class="title">{$LANG.navinvoices}</div>
<div class="highlight bg-color-gold"></div>
</a>
</div>
</div>
</div>
<form role="form" method="post" action="clientarea.php?action=kbsearch">
<div class="row">
<div class="col-md-12 home-kb-search">
<input type="text" name="search" class="form-control input-lg" placeholder="{$LANG.clientHomeSearchKb}" />
<i class="fa fa-search"></i>
</div>
</div>
</form>
{foreach from=$addons_html item=addon_html}
<div>
{$addon_html}
</div>
{/foreach}
<div class="client-home-panels">
<div class="row">
<div class="col-sm-6">
{function name=outputHomePanels}
<div menuItemName="{$item->getName()}" class="panel panel-default panel-accent-{$item->getExtra('color')}{if $item->getClass()} {$item->getClass()}{/if}"{if $item->getAttribute('id')} id="{$item->getAttribute('id')}"{/if}>
<div class="panel-heading">
<h3 class="panel-title">
{if $item->getExtra('btn-link') && $item->getExtra('btn-text')}
<div class="pull-right">
<a href="{$item->getExtra('btn-link')}" class="btn btn-default bg-color-{$item->getExtra('color')} btn-xs">
{if $item->getExtra('btn-icon')}<i class="fa {$item->getExtra('btn-icon')}"></i>{/if}
{$item->getExtra('btn-text')}
</a>
</div>
{/if}
{if $item->hasIcon()}<i class="{$item->getIcon()}"></i> {/if}
{$item->getLabel()}
{if $item->hasBadge()} <span class="badge">{$item->getBadge()}</span>{/if}
</h3>
</div>
{if $item->hasBodyHtml()}
<div class="panel-body">
{$item->getBodyHtml()}
</div>
{/if}
{if $item->hasChildren()}
<div class="list-group{if $item->getChildrenAttribute('class')} {$item->getChildrenAttribute('class')}{/if}">
{foreach $item->getChildren() as $childItem}
{if $childItem->getUri()}
<a menuItemName="{$childItem->getName()}" href="{$childItem->getUri()}" class="list-group-item{if $childItem->getClass()} {$childItem->getClass()}{/if}{if $childItem->isCurrent()} active{/if}"{if $childItem->getAttribute('dataToggleTab')} data-toggle="tab"{/if}{if $childItem->getAttribute('target')} target="{$childItem->getAttribute('target')}"{/if} id="{$childItem->getId()}">
{if $childItem->hasIcon()}<i class="{$childItem->getIcon()}"></i> {/if}
{$childItem->getLabel()}
{if $childItem->hasBadge()} <span class="badge">{$childItem->getBadge()}</span>{/if}
</a>
{else}
<div menuItemName="{$childItem->getName()}" class="list-group-item{if $childItem->getClass()} {$childItem->getClass()}{/if}" id="{$childItem->getId()}">
{if $childItem->hasIcon()}<i class="{$childItem->getIcon()}"></i> {/if}
{$childItem->getLabel()}
{if $childItem->hasBadge()} <span class="badge">{$childItem->getBadge()}</span>{/if}
</div>
{/if}
{/foreach}
</div>
{/if}
<div class="panel-footer">
{if $item->hasFooterHtml()}
{$item->getFooterHtml()}
{/if}
</div>
</div>
{/function}
{foreach $panels as $item}
{if $item@iteration is odd}
{outputHomePanels}
{/if}
{/foreach}
</div>
<div class="col-sm-6">
{foreach $panels as $item}
{if $item@iteration is even}
{outputHomePanels}
{/if}
{/foreach}
</div>
</div>
</div>