]> git.mxchange.org Git - friendica.git/blob - view/templates/profile/profile.tpl
Merge branch '2021.03-rc' into copyright-2021
[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.pub_keywords}}
81         <dl id="aprofile-tags" class="row {{$basic_fields.pub_keywords.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.pub_keywords.label}}</dt>
84                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">
85             {{foreach $basic_fields.pub_keywords.value as $tag}}
86                                 <a href="{{$tag.url}}" class="tag label btn-info sm">{{$tag.label}} <i class="fa fa-bolt" aria-hidden="true"></i></a>
87             {{/foreach}}
88                 </dd>
89         </dl>
90 {{/if}}
91
92 {{foreach $custom_fields as $custom_field}}
93         <dl id="{{$custom_field.id}}" class="row {{$custom_field.class|default:'aprofile'}}">
94                 <hr class="profile-separator">
95                 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$custom_field.label}}</dt>
96                 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$custom_field.value nofilter}}</dd>
97         </dl>
98 {{/foreach}}
99 </div>
100 {{if $is_owner}}
101 <form action="{{$query_string}}" method="get" id="viewas" class="panel panel-default form-inline">
102         <fieldset class="panel-body">
103                 <label for="viewas-select">{{$view_as}}</label>
104                 <select name="viewas" id="viewas-select" class="form-control">
105                         <option value="0">{{$yourself}}</option>
106                         {{foreach $view_as_contacts as $contact}}
107                                 <option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option>
108                         {{/foreach}}
109                 </select>
110                 <button type="submit" class="btn btn-primary">{{$submit}}</button>
111         </fieldset>
112 </form>
113 {{/if}}