]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/contact/entry.tpl
Update entry.tpl
[friendica.git] / view / theme / frio / templates / contact / entry.tpl
1
2 <div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}">
3
4                 {{* This is a wrapper for the contact picture *}}
5                 <div class="contact-photo-wrapper dropdown media-left">
6                         <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
7
8                                 <div class="contact-photo-image-wrapper hidden-xs">
9                                         <a href="{{if !empty($contact.photo_menu.edit)}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">
10                                                 <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" loading="lazy"/>
11                                         </a>
12                                 </div>
13
14                                 {{* For very small displays we use a dropdown menu for contact relating actions *}}
15                                 <button type="button" class="btn btn-default dropdown-toggle visible-xs" id="contact-photo-menu-button-{{$contact.id}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
16                                         {{* use a smaller picture on very small displays (e.g. mobiles) *}}
17                                         <div class="contact-photo-image-wrapper visible-xs">
18                                                 <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}"  loading="lazy"/>
19
20                                                 {{* Overlay background on hover the avatar picture *}}
21                                                 <div class="contact-photo-overlay">
22                                                         <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down" aria-hidden="true"></i></span>
23                                                 </div>
24                                         </div>
25                                 </button>
26
27                                 {{if $contact.photo_menu}}
28                                 <ul class="contact-photo-menu menu-popup dropdown-menu hidden-lg hidden-md hidden-sm" id="contact-photo-menu-{{$contact.id}}" role="menu" aria-labelledby="contact-photo-menu-{{$contact.id}}">
29                                         {{foreach $contact.photo_menu as $c}}
30                                         {{if $c.2}}
31                                         <li role="presentation"><a role="menuitem" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
32                                         {{elseif $c.3}}
33                                         <li role="presentation"><button role="menuitem" type="button" class="btn-link" onclick="addToModal('{{$c.1}}')">{{$c.0}}</button></li>
34                                         {{else}}
35                                         <li role="presentation"><a role="menuitem" href="{{$c.1}}">{{$c.0}}</a></li>
36                                         {{/if}}
37                                         {{/foreach}}
38                                 </ul>
39
40                                 {{/if}}
41                         </div>
42                 </div>
43
44                 <div class="media-body">
45                         {{if $contact.photo_menu}}
46                         {{* The contact actions like private mail, delete contact, edit contact and so on *}}
47                         <div class="btn-group contact-actions pull-right nav-pills preferences hidden-xs" role="group">
48                                 {{if $contact.photo_menu.pm}}
49                                 <button type="button" class="contact-action-link btn btn-default" onclick="addToModal('{{$contact.photo_menu.pm.1}}'); return false;" data-toggle="tooltip" title="{{$contact.photo_menu.pm.0}}">
50                                         <i class="fa fa-envelope" aria-hidden="true"></i>
51                                 </button>
52                                 {{/if}}
53                                 {{if $contact.photo_menu.network}}
54                                 <a class="contact-action-link btn btn-default" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}">
55                                         <i class="fa fa-cloud" aria-hidden="true"></i>
56                                 </a>
57                                 {{/if}}
58                                 {{if $contact.photo_menu.follow}}
59                                 <a class="contact-action-link btn btn-default" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}">
60                                         <i class="fa fa-user-plus" aria-hidden="true"></i>
61                                 </a>
62                                 {{/if}}
63                                 {{if $contact.photo_menu.unfollow}}
64                                 <a class="contact-action-link btn btn-default" href="{{$contact.photo_menu.unfollow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.unfollow.0}}">
65                                         <i class="fa fa-user-times" aria-hidden="true"></i>
66                                 </a>
67                                 {{/if}}
68                                 {{if $contact.photo_menu.hide}}
69                                 <a class="contact-action-link btn btn-default" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
70                                         <i class="fa fa-times" aria-hidden="true"></i>
71                                 </a>
72                                 {{/if}}
73                         </div>
74                         {{/if}}
75
76                         {{* The button to add or remove contacts from a contact group - group edit page *}}
77                         {{if $contact.change_member}}
78                         <div class="contact-group-actions pull-right nav-pills preferences">
79                                 <button type="button" class="contact-action-link btn contact-group-link btn-default contact-circle-actions" onclick="circleChangeMember({{$contact.change_member.gid}},{{$contact.change_member.cid}},'{{$contact.change_member.sec_token}}'); return true;" data-toggle="tooltip" title="{{$contact.change_member.title}}">
80                                         {{if $contact.label == "members"}}
81                                         <i class="fa fa-times-circle" aria-hidden="true"></i>
82                                         {{elseif $contact.label == "contacts"}}
83                                         <i class="fa fa-plus-circle" aria-hidden="true"></i>
84                                         {{/if}}
85                                 </button>
86                         </div>
87                         {{/if}}
88
89                         {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
90                         <div class="contact-entry-desc">
91                                 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
92                                         <h4 class="media-heading"><a href="{{if !empty($contact.photo_menu.edit)}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">{{$contact.name}}</a>
93                                         {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
94                                         {{if $contact.account_type == 'Group'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
95                                         {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may not be the same in every language *}}
96                                         </h4>
97                                 </div>
98                                 {{if $contact.alt_text}}<div class="contact-entry-details contact-entry-rel" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
99                                 {{if $contact.itemurl}}<div class="contact-entry-details contact-entry-url" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</div>{{/if}}
100                                 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}">{{$contact.tags}}</div>{{/if}}
101                                 {{if $contact.details}}<div class="contact-entry-details contact-entry-tags" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
102                                 {{if $contact.network}}<div class="contact-entry-details contact-entry-network" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
103                         </div>
104
105                         {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
106                         {{* if !$no_contacts_checkbox *}}
107                         {{if $multiselect}}
108                         <div class="checkbox contact-entry-checkbox pull-right">
109                                 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
110                                 <label for="checkbox-{{$contact.id}}"></label>
111                         </div>
112                         {{/if}}
113                 </div>
114
115 </div>