]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/profile/vcard.tpl
Fix review points
[friendica.git] / view / theme / frio / templates / profile / vcard.tpl
1 <div class="vcard h-card widget">
2
3         <div id="profile-photo-wrapper">
4                 {{if $profile.picdate}}
5                 <a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}" /></a>
6                 {{else}}
7                 <a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}" alt="{{$profile.name}}" /></a>
8                 {{/if}}
9
10                 <div class="tool visible-lg visible-md">
11                         {{if $profile.edit}}
12                         <div class="action">
13                                 <a class="" href="{{$profile.edit.0}}" title="{{$profile.edit.3}}"><i class="fa fa-pencil-square-o"></i></a>
14                         </div>
15                         {{/if}}
16                 </div>
17
18         </div>
19
20         {{* The short information which will appended to the second navbar by scrollspy *}}
21         <div id="vcard-short-info-wrapper" style="display: none;">
22                 <div id="vcard-short-info" class="media" style="display: none">
23                         <div id="vcard-short-photo-wrapper" class="pull-left">
24                                 {{if $profile.picdate}}
25                                 <img class="media-object" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}"></a>
26                                 {{else}}
27                                 <img class="media-object" src="{{$profile.photo}}" alt="{{$profile.name}}"></a>
28                                 {{/if}}
29                         </div>
30
31                         <div id="vcard-short-desc" class="media-body">
32                                 <h4 class="media-heading">{{$profile.name}}</h4>
33                                 {{if $profile.addr}}<div class="vcard-short-addr">{{$profile.addr}}</div>{{/if}}
34                         </div>
35                 </div>
36         </div>
37
38         <div class="panel-body">
39                 <div class="profile-header">
40                         <h3 class="fn p-name" dir="auto">{{$profile.name}}</h3>
41
42                         {{if $profile.addr}}<div class="p-addr">{{include file="sub/punct_wrap.tpl" text=$profile.addr}}</div>{{/if}}
43
44                         {{if $profile.about}}<div class="title" dir="auto">{{$profile.about nofilter}}</div>{{/if}}
45
46                         {{if $account_type}}<div class="account-type">({{$account_type}})</div>{{/if}}
47                 </div>
48
49                 {{if $follow_link || $unfollow_link || $wallmessage_link}}
50                 <div id="profile-extra-links">
51                         {{if $follow_link || $unfollow_link}}
52                         <div id="dfrn-request-link-button">
53                                 {{if $unfollow_link}}
54                                 <a id="dfrn-request-link" class="btn btn-labeled btn-primary btn-sm" href="{{$unfollow_link}}">
55                                         <span class=""><i class="fa fa-user-times"></i></span>
56                                         <span class="">{{$unfollow}}</span>
57                                 </a>
58                                 {{else}}
59                                 <a id="dfrn-request-link" class="btn btn-labeled btn-primary btn-sm" href="{{$follow_link}}">
60                                         <span class=""><i class="fa fa-user-plus"></i></span>
61                                         <span class="">{{$follow}}</span>
62                                 </a>
63                                 {{/if}}
64                         </div>
65                         {{/if}}
66                         {{if $wallmessage_link}}
67                         <div id="wallmessage-link-botton">
68                                 <button type="button" id="wallmessage-link" class="btn btn-labeled btn-primary btn-sm" onclick="openWallMessage('{{$wallmessage_link}}')">
69                                         <span class=""><i class="fa fa-envelope"></i></span>
70                                         <span class="">{{$wallmessage}}</span>
71                                 </button>
72                         </div>
73                         {{/if}}
74                 </div>
75                 {{/if}}
76
77                 <div class="clear"></div>
78
79                 {{if $location}}
80                 <div class="location detail">
81                         <span class="location-label icon"><i class="fa fa-map-marker"></i></span>
82                         <span class="adr">
83                                 {{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
84                                 {{if $profile.location}}<p class="p-location">{{$profile.location}}</p>{{/if}}
85                         </span>
86                 </div>
87                 {{/if}}
88
89                 {{if $profile.xmpp}}
90                 <div class="xmpp">
91                         <span class="xmpp-label icon"><i class="fa fa-xmpp"></i></span>
92                         <span class="xmpp-data"><a href="xmpp:{{$profile.xmpp}}" rel="me" target="_blank" rel="noopener noreferrer">{{include file="sub/punct_wrap.tpl" text=$profile.xmpp}}</a></span>
93                 </div>
94                 {{/if}}
95
96                 {{if $profile.matrix}}
97                 <div class="matrix">
98                         <span class="matrix-label icon"><i class="fa fa-matrix-org"></i></span>
99                         <span class="matrix-data"><a href="matrix:{{$profile.matrix}}" rel="me" target="_blank" rel="noopener noreferrer">{{include file="sub/punct_wrap.tpl" text=$profile.matrix}}</a></span>
100                 </div>
101                 {{/if}}
102
103                 {{if $profile.upubkey}}<div class="key u-key" style="display:none;">{{$profile.upubkey}}</div>{{/if}}
104
105                 {{if $contacts}}<div class="contacts" style="display:none;">{{$contacts}}</div>{{/if}}
106
107                 {{if $updated}}<div class="updated" style="display:none;">{{$updated}}</div>{{/if}}
108
109                 {{if $homepage}}
110                 <div class="homepage detail">
111                         <span class="homepage-label icon"><i class="fa fa-external-link"></i></span>
112                         <span class="homepage-url u-url"><a href="{{$profile.homepage}}" rel="me" target="_blank" rel="noopener noreferrer">{{include file="sub/punct_wrap.tpl" text=$profile.homepage}}</a></span>
113                 </div>
114                 {{/if}}
115
116                 {{if $about}}<dl class="about"  style="display:none;"><dt class="about-label">{{$about}}</dt><dd class="x-network">{{$profile.about nofilter}}</dd></dl>{{/if}}
117
118                 {{include file="diaspora_vcard.tpl"}}
119         </div>
120 </div>
121
122 {{if $contact_block}}
123 <div class="widget" id="widget-contacts">
124         {{$contact_block nofilter}}
125 </div>
126 {{/if}}