-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuser_popover.tpl
More file actions
38 lines (38 loc) · 1.72 KB
/
Copy pathuser_popover.tpl
File metadata and controls
38 lines (38 loc) · 1.72 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
34
35
36
37
38
<div id="user-popup">
<div class="header">
<img class="ui tiny circular image" src="{$AVATAR}" alt="{$USERNAME}" />
<h4 class="ui header" style="{$STYLE}">{$NICKNAME}</h4>
{if count($GROUPS)}
{foreach from=$GROUPS item=group_html}
{$group_html}
{/foreach}
{else}
<div class="ui label">{$GUEST}</div>
{/if}
</div>
{if isset($REGISTERED)}
<div class="ui divider"></div>
<div class="ui list">
<div class="item">
<span class="text">{$REGISTERED|regex_replace:'/[:].*/':''}</span>
<div class="description right floated" data-tooltip="{$REGISTERED_DATE}"><b>{$REGISTERED|regex_replace:'/^[^:]+:\h*/':''}</b></div>
</div>
{if isset($LAST_SEEN)}
<div class="item">
<span class="text">{$LAST_SEEN|regex_replace:'/[:].*/':''}</span>
<div class="description right floated" data-tooltip="{$LAST_SEEN_DATE}"><b>{$LAST_SEEN|regex_replace:'/^[^:]+:\h*/':''}</b></div>
</div>
{/if}
{if isset($TOPICS) && isset($POSTS)}
<div class="item">
<span class="text">{$TOPICS|regex_replace:'/[0-9]+/':''|capitalize}</span>
<div class="description right floated"><b>{$TOPICS|regex_replace:'/[^0-9]+/':''}</b></div>
</div>
<div class="item">
<span class="text">{$POSTS|regex_replace:'/[0-9]+/':''|capitalize}</span>
<div class="description right floated"><b>{$POSTS|regex_replace:'/[^0-9]+/':''}</b></div>
</div>
{/if}
</div>
{/if}
</div>