]> git.mxchange.org Git - friendica.git/blob - templates/contact_template.tpl
contacts page: style search wrapper
[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-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">
10                                                 <img class="contact-photo media-object" 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"><i class="fa fa-angle-down"></i></span>
15                                                 </div>
16                                         </div>
17                                 </a>
18
19
20                                 {{if $contact.photo_menu}}
21                                 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{{$contact.id}}" role="menu" aria-labelledby="contact-photo-menu-{{$contact.id}}">
22                                         {{foreach $contact.photo_menu as $c}}
23                                         {{if $c.2}}
24                                         <li role="menuitem"><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
25                                         {{elseif $c.3}}
26                                         <li role="menuitem"><a onclick="addToModal('{{$c.1}}')">{{$c.0}}</a></li>
27                                         {{else}}
28                                         <li role="menuitem"><a href="{{$c.1}}">{{$c.0}}</a></li>
29                                         {{/if}}
30                                         {{/foreach}}
31                                 </ul>
32
33                                 {{/if}}
34                         </div>
35
36                 </div>
37
38                 <div class="media-body">
39                         {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
40                         <div class="contact-entry-desc">
41                                 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
42                                         <h4 class="media-heading">{{$contact.name}}
43                                         {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
44                                         {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
45                                         {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
46                                         </h4>
47                                 </div>
48                                 {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
49                                 {{if $contact.itemurl}}<div class="contact-entry-details" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
50                                 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
51                                 {{if $contact.details}}<div class="contact-entry-details" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
52                                 {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
53                         </div>
54
55                         {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
56                         {{* if !$no_contacts_checkbox *}}
57                         {{if $multiselect}}
58                         <div class="checkbox contact-entry-checkbox pull-right">
59                                 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
60                                 <label for="checkbox-{{$contact.id}}"></label>
61                         </div>
62                         {{/if}}
63                 </div>
64
65 </div>