-
Notifications
You must be signed in to change notification settings - Fork 7
/
user_profile.tpl
50 lines (33 loc) · 2.11 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
{{extends file="layout.tpl"}}
{{block content}}
{{dynamic}}
<div class="article_content bloger bloger_profile content_text">
<div>
{{if $user->image(160, 200) }}
<img src="{{ $user->image(160, 200) }}" class="thumbnail" />
{{else}}
<img src="{{url static_file="_img/user-thumb.jpg" }}" class="thumbnail" />
{{/if}}
<div class="text">
<h3 class="bigger">{{ if $user->author->defined }}{{ $user->author->biography->first_name }} {{ $user->author->biography->last_name }}{{ else }}{{ $user->first_name }} {{ $user->last_name }}{{ /if }}</h3>
{{ if $user->author->defined }}<p>{{ $user->author->biography->text|strip_tags }}</p>
{{else}}
<p>{{ $user['bio']|escape }}</p>
{{ /if }}
<p class="user-info">
{{ if $user['facebook'] }}Facebook: <a target="_blank" class="info-text" href="http://www.facebook.com/{{ $user['facebook']|escape:url }}" rel="nofollow">{{ $user['facebook']|escape }}</a><br />{{ /if }}
{{ if $user['twitter'] }}Twitter: <a target="_blank" class="info-text" href="http://www.twitter.com/{{ trim($user['twitter'], '@')|escape:url }}" rel="nofollow">@{{ trim($user['twitter'], '@')|escape }}</a><br />{{ /if }}
{{ if $user['google'] }}Google+: <a target="_blank" class="info-text" href="http://plus.google.com/{{ $user['google']|escape:url }}" rel="nofollow">{{ $user['google']|escape }}</a><br />{{ /if }}
{{ if $user['organisation'] }}{{'organisation'|translate}}: <span class="info-text">{{ $user['organisation']|escape }}</span><br />{{ /if }}
{{ if $user['website'] }}{{'Website'|translate}}: <a target="_blank" class="info-text" href="http://{{ $user['website']|escape:url }}" rel="nofollow">{{ $user['website']|escape }}</a><br />{{ /if }}
</p>
{{ if $user->logged_in }}
<a href="{{ $view->url(['controller' => 'dashboard', 'action' => 'index'], 'default') }}">{{'editProfile'|translate}}</a>
{{/if}}
</div>
</div>
<span class="clear"></span>
</div>
{{ render file="_tpl/user-content.tpl" user=$user nocache}}
{{/dynamic}}
{{/block}}