forked from newscoop/theme-NewCustodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_profile.tpl
executable file
·101 lines (73 loc) · 2.65 KB
/
user_profile.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
{{extends file="layout.tpl"}}
{{block content}}
<h3>
<!--{{ $user->uname }}
<ul class="links">
{{ if $user->logged_in }}
<li><a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{ 'editProfile'|translate }}</a></li>
{{ /if }}
</ul>-->
{{ if $user->isAuthor() }}
{{ 'editorProfile'|translate }}
{{ else }}
{{ 'userProfile'|translate }}
{{ /if }}
</h3>
{{ if $user->isAuthor() }}
<div class="user-profile-data twelvecol">
<figure class="user-image threecol">
<img src="{{ include file="_tpl/user-image.tpl" user=$user width=156 height=156 }}" />
</figure>
<div class="user-profile-data editor ninecol last">
<h5>{{ $user->first_name }} {{ $user->last_name }}<i>{{ $user->uname }}</i>
<ul class="links">
{{ if $user->logged_in }}
<li><a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{ 'editProfile'|translate }}</a></li>
{{ /if }}
</ul>
</h5>
<p class="date">Member since {{ $user->created }}</p>
<div class="user-profile-posts">
{{ include file="_tpl/user-content.tpl" user=$user }}
</div>
</div>
<!--<div class="user-profile-posts twelvecol">
{{ include file="_tpl/user-content.tpl" user=$user }}
</div>-->
</div>
{{ else }}
<div class="user-profile-data twelvecol">
<figure class="user-image threecol">
<img src="{{ include file="_tpl/user-image.tpl" user=$user width=156 height=156 }}" />
</figure>
<div class="user-profile-data ninecol last">
<h5>{{ $user->first_name }} {{ $user->last_name }}<i>{{ $user->uname }}</i>
<ul class="links">
{{ if $user->logged_in }}
<li><a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{ 'editProfile'|translate }}</a></li>
{{ /if }}
</ul>
</h5>
<p class="date">member from {{ $user->created }}<span class="posts">{{ 'numberOfPosts'|translate }}
{{ list_articles length="10" order="byPublishDate desc" }}
{{ $gimme->article->name }}
{{ /list_articles }}
</span></p>
<dl class="profile">
{{ foreach $profile as $label => $value }}
{{ if !empty($value) }}
{{ if $label == "website" }}
<dt>{{ $label }}:</dt>
<dd><a rel="nofollow" href="http://{{ $profile['website']|escape:url }}">{{ $profile['website']|escape }}</a></dd>
{{ else }}
{{ if !($label == "bio") }}<dt><b>{{ $label }}:</b></dt>{{ /if }}
{{ if $label == "gender" }}<dd><b>gender:</b></dd>{{ /if }}
<dd>{{ $value|default:"n/a" }}</dd>
{{ /if }}
{{ /if }}
{{ /foreach }}
</dl>
</div>
</div>
{{ /if }}
{{/block}}