]> git.mxchange.org Git - friendica.git/blob - view/templates/profile/profile.tpl
Merge pull request #11260 from mkljczk/develop
[friendica.git] / view / templates / profile / profile.tpl
1 {{if $view_as_contact_alert}}
2 <div class="alert alert-info" role="alert">
3         {{$view_as_contact_alert nofilter}}
4 </div>
5 {{/if}}
6 <div id="profile-page" class="generic-page-wrapper">
7     {{include file="section_title.tpl"}}
8
9     {{* The link to edit the profile*}}
10 {{if $is_owner}}
11         <div id="profile-edit-links">
12                 <ul class="nav nav-pills preferences">
13                         <li class="pull-right">
14                                 <a class="btn btn-link btn-sm" type="button" id="profile-edit-link" href="{{$edit_link.url}}" title="{{$edit_link.title}}">
15                                         <i class="fa fa-pencil-square-o" aria-hidden="true"></i>&nbsp;{{$edit_link.label}}
16                                 </a>
17                         </li>
18                         <li class="pull-right">
19                                 <a class="btn btn-link btn-sm" type="button" id="profile-viewas-link" href="{{$viewas_link.url}}" title="{{$viewas_link.title}}">
20                                         <i class="fa fa-eye" aria-hidden="true"></i>&nbsp;{{$viewas_link.label}}
21                                 </a>
22                         </li>
23                 </ul>
24                 <div class="clear"></div>
25         </div>
26 {{/if}}
27         <dl id="{{$basic_fields.fullname.id}}" class="row {{$basic_fields.fullname.class|default:'aprofile'}}">
28                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.fullname.label}}</dt>
29                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.fullname.value}}</dd>
30         </dl>
31
32 {{if $basic_fields.membersince}}
33         <dl id="aprofile-membersince" class="row {{$basic_fields.membersince.class|default:'aprofile'}}">
34                 <hr class="profile-separator">
35                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.membersince.label}}</dt>
36                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.membersince.value}}</dd>
37         </dl>
38 {{/if}}
39
40 {{if $basic_fields.birthday}}
41         <dl id="aprofile-birthday" class="row {{$basic_fields.birthday.class|default:'aprofile'}}">
42                 <hr class="profile-separator">
43                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.birthday.label}}</dt>
44                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.birthday.value}}</dd>
45         </dl>
46 {{/if}}
47
48 {{if $basic_fields.age}}
49         <dl id="aprofile-age" class="row {{$basic_fields.age.class|default:'aprofile'}}">
50                 <hr class="profile-separator">
51                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.age.label}}</dt>
52                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.age.value}}</dd>
53         </dl>
54 {{/if}}
55
56 {{if $basic_fields.location}}
57         <dl id="aprofile-location" class="row {{$basic_fields.location.class|default:'aprofile'}}">
58                 <hr class="profile-separator">
59                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.location.label}}</dt>
60                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.location.value}}</dd>
61         </dl>
62 {{/if}}
63
64 {{if $basic_fields.homepage}}
65         <dl id="aprofile-homepage" class="row {{$basic_fields.homepage.class|default:'aprofile'}}">
66                 <hr class="profile-separator">
67                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.homepage.label}}</dt>
68                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.homepage.value nofilter}}</dd>
69         </dl>
70 {{/if}}
71
72 {{if $basic_fields.xmpp}}
73         <dl id="aprofile-xmpp" class="row {{$basic_fields.xmpp.class|default:'aprofile'}}">
74                 <hr class="profile-separator">
75                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.xmpp.label}}</dt>
76                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.xmpp.value nofilter}}</dd>
77         </dl>
78 {{/if}}
79
80 {{if $basic_fields.matrix}}
81         <dl id="aprofile-matrix" class="row {{$basic_fields.matrix.class|default:'aprofile'}}">
82                 <hr class="profile-separator">
83                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.matrix.label}}</dt>
84                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.matrix.value nofilter}}</dd>
85         </dl>
86 {{/if}}
87
88 {{if $basic_fields.pub_keywords}}
89         <dl id="aprofile-tags" class="row {{$basic_fields.pub_keywords.class|default:'aprofile'}}">
90                 <hr class="profile-separator">
91                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.pub_keywords.label}}</dt>
92                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">
93             {{foreach $basic_fields.pub_keywords.value as $tag}}
94                                 <a href="{{$tag.url}}" class="tag label btn-info sm">{{$tag.label}} <i class="fa fa-bolt" aria-hidden="true"></i></a>
95             {{/foreach}}
96                 </dd>
97         </dl>
98 {{/if}}
99
100 {{foreach $custom_fields as $custom_field}}
101         <dl id="{{$custom_field.id}}" class="row {{$custom_field.class|default:'aprofile'}}">
102                 <hr class="profile-separator">
103                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$custom_field.label}}</dt>
104                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$custom_field.value nofilter}}</dd>
105         </dl>
106 {{/foreach}}
107 </div>
108 {{if $is_owner}}
109 <form action="{{$query_string}}" method="get" id="viewas" class="panel panel-default form-inline">
110         <fieldset class="panel-body">
111                 <label for="viewas-select">{{$view_as}}</label>
112                 <select name="viewas" id="viewas-select" class="form-control">
113                         <option value="0">{{$yourself}}</option>
114                         {{foreach $view_as_contacts as $contact}}
115                                 <option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option>
116                         {{/foreach}}
117                 </select>
118                 <button type="submit" class="btn btn-primary">{{$submit}}</button>
119         </fieldset>
120 </form>
121 {{/if}}