]> git.mxchange.org Git - friendica.git/blob - templates/contact_template.tpl
contacts page: change the contact-photo size according to display size
[friendica.git] / templates / contact_template.tpl
1
2 <div class="contact-wrapper media" id="contact-entry-wrapper-{{$id}}" >
3
4                 {{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
5                 <div class="contact-photo-wrapper dropdown pull-left" >
6                         <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}" >
7
8                                 <a class="dropdown-toggle" id="contact-photo-menu-{{$contact.id}}" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
9                                         <div class="contact-photo-image-wrapper hidden-xs">
10                                                 <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
11
12                                                 {{* Overlay background on hover the avatar picture *}}
13                                                 <div class="contact-photo-overlay">
14                                                         <span class="contact-photo-overlay-content xl"><i class="fa fa-angle-down"></i></span>
15                                                 </div>
16                                         </div>
17
18                                         <div class="contact-photo-image-wrapper hidden-lg hidden-md">
19                                                 <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
20
21                                                 {{* Overlay background on hover the avatar picture *}}
22                                                 <div class="contact-photo-overlay">
23                                                         <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
24                                                 </div>
25                                         </div>
26                                 </a>
27
28
29                                 {{if $contact.photo_menu}}
30                                 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{{$contact.id}}" role="menu" aria-labelledby="contact-photo-menu-{{$contact.id}}">
31                                         {{foreach $contact.photo_menu as $c}}
32                                         {{if $c.2}}
33                                         <li role="menuitem"><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
34                                         {{elseif $c.3}}
35                                         <li role="menuitem"><a onclick="addToModal('{{$c.1}}')">{{$c.0}}</a></li>
36                                         {{else}}
37                                         <li role="menuitem"><a href="{{$c.1}}">{{$c.0}}</a></li>
38                                         {{/if}}
39                                         {{/foreach}}
40                                 </ul>
41
42                                 {{/if}}
43                         </div>
44
45                 </div>
46
47                 <div class="media-body">
48                         {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
49                         <div class="contact-entry-desc">
50                                 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
51                                         <h4 class="media-heading">{{$contact.name}}
52                                         {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
53                                         {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
54                                         {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
55                                         </h4>
56                                 </div>
57                                 {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
58                                 {{if $contact.itemurl}}<div class="contact-entry-details" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
59                                 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
60                                 {{if $contact.details}}<div class="contact-entry-details" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
61                                 {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
62                         </div>
63
64                         {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
65                         {{* if !$no_contacts_checkbox *}}
66                         {{if $multiselect}}
67                         <div class="checkbox contact-entry-checkbox pull-right">
68                                 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
69                                 <label for="checkbox-{{$contact.id}}"></label>
70                         </div>
71                         {{/if}}
72                 </div>
73
74 </div>