2 <div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}" >
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}}" >
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}}" />
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>
18 {{* use a smaller picture on very small displays (e.g. mobiles) *}}
19 <div class="contact-photo-image-wrapper hidden-lg hidden-md hidden-sm">
20 <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
22 {{* Overlay background on hover the avatar picture *}}
23 <div class="contact-photo-overlay">
24 <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
30 {{if $contact.photo_menu}}
31 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{{$contact.id}}" role="menu" aria-labelledby="contact-photo-menu-{{$contact.id}}">
32 {{foreach $contact.photo_menu as $c}}
34 <li role="menuitem"><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
36 <li role="menuitem"><a onclick="addToModal('{{$c.1}}')">{{$c.0}}</a></li>
38 <li role="menuitem"><a href="{{$c.1}}">{{$c.0}}</a></li>
48 <div class="media-body">
49 {{* The contact actions like private mail, delete contact, edit contact and so on *}}
50 <div class="contact-actions pull-right nav-pills preferences hidden-xs">
51 {{if $contact.photo_menu.pm}}<a class="contact-action-link" onclick="addToModal('{{$contact.photo_menu.pm.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.pm.0}}"><i class="fa fa-envelope" aria-hidden="true"></i></a>{{/if}}
52 {{if $contact.photo_menu.poke}}<a class="contact-action-link" onclick="addToModal('{{$contact.photo_menu.poke.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.poke.0}}"><i class="fa fa-heartbeat" aria-hidden="true"></i></a>{{/if}}
53 {{if $contact.photo_menu.network}}<a class="contact-action-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{{/if}}
54 {{if $contact.photo_menu.edit}}<a class="contact-action-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}"><i class="fa fa-pencil" aria-hidden="true"></i></a>{{/if}}
55 {{if $contact.photo_menu.drop}}<a class="contact-action-link" href="{{$contact.photo_menu.drop.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{{/if}}
56 {{if $contact.photo_menu.follow}}<a class="contact-action-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
59 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
60 <div class="contact-entry-desc">
61 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
62 <h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
63 {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
64 {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
65 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
68 {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
69 {{if $contact.itemurl}}<div class="contact-entry-details" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
70 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
71 {{if $contact.details}}<div class="contact-entry-details" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
72 {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
75 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
76 {{* if !$no_contacts_checkbox *}}
78 <div class="checkbox contact-entry-checkbox pull-right">
79 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
80 <label for="checkbox-{{$contact.id}}"></label>
88 {{* the following part is a nearly a copy of the part above but it is modyfied for working with js.
89 We use this part to filter the contacts with jquery.textcomplete *}}
90 <div class="javascript-template" rel="contact-template" style="display: none">
91 <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}" >
93 {{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
94 <div class="contact-photo-wrapper dropdown pull-left" >
95 <div class="contact-entry-photo mframe" id="contact-entry-photo-{$id}" >
97 <a class="dropdown-toggle" id="contact-photo-menu-{$id}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
98 <div class="contact-photo-image-wrapper hidden-xs">
99 <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
101 {{* Overlay background on hover the avatar picture *}}
102 <div class="contact-photo-overlay">
103 <span class="contact-photo-overlay-content xl"><i class="fa fa-angle-down"></i></span>
107 {{* use a smaller picture on very small displays (e.g. mobiles) *}}
108 <div class="contact-photo-image-wrapper hidden-lg hidden-md hidden-sm">
109 <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
111 {{* Overlay background on hover the avatar picture *}}
112 <div class="contact-photo-overlay">
113 <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
120 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{$id}" role="menu" aria-labelledby="contact-photo-menu-{$id}">
121 {foreach $photo_menu as $c}
123 <li role="menuitem"><a target="redir" href="{$c.1}">{$c.0}</a></li>
125 <li role="menuitem"><a onclick="addToModal('{$c.1}')">{$c.0}</a></li>
127 <li role="menuitem"><a href="{$c.1}">{$c.0}</a></li>
137 <div class="media-body">
138 {{* The contact actions like private mail, delete contact, edit contact and so on *}}
139 <div class="contact-actions pull-right nav-pills preferences hidden-xs">
140 {if $photo_menu.pm}<a class="contact-action-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}"><i class="fa fa-envelope" aria-hidden="true"></i></a>{/if}
141 {if $photo_menu.poke}<a class="contact-action-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}"><i class="fa fa-heartbeat" aria-hidden="true"></i></a>{/if}
142 {if $photo_menu.network}<a class="contact-action-link" href="{$photo_menu.network.1}" data-toggle="tooltip" title="{$photo_menu.network.0}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{/if}
143 {if $photo_menu.edit}<a class="contact-action-link" href="{$photo_menu.edit.1}" data-toggle="tooltip" title="{$photo_menu.edit.0}"><i class="fa fa-pencil" aria-hidden="true"></i></a>{/if}
144 {if $photo_menu.drop}<a class="contact-action-link" href="{$photo_menu.drop.1}" data-toggle="tooltip" title="{$photo_menu.drop.0}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{/if}
145 {if $photo_menu.follow}<a class="contact-action-link" href="{$photo_menu.follow.1}" data-toggle="tooltip" title="{$photo_menu.follow.0}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{/if}
148 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
149 <div class="contact-entry-desc">
150 <div class="contact-entry-name" id="contact-entry-name-{$id}" >
151 <h4 class="media-heading"><a href="{url}">{$name}</a>
152 {if $account_type} <small class="contact-entry-details" id="contact-entry-accounttype-{$id}">({$account_type})</small>{/if}
153 {if $account_type == 'Forum'}<i class="fa fa-comments-o" aria-hidden="true"></i>{/if}
154 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
157 {if $alt_text}<div class="contact-entry-details" id="contact-entry-rel-{$id}" >{$alt_text}</div>{/if}
158 {if $itemurl}<div class="contact-entry-details" id="contact-entry-url-{$id}" >{$itemurl}</div>{/if}
159 {if $tags}<div class="contact-entry-details" id="contact-entry-tags-{$id}" >{$tags}</div>{/if}
160 {if $details}<div class="contact-entry-details" id="contact-entry-details-{$id}" >{$details}</div>{/if}
161 {if $network}<div class="contact-entry-details" id="contact-entry-network-{$id}" >{$network}</div>{/if}
164 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
165 {{* if !$no_contacts_checkbox *}}
167 <div class="checkbox contact-entry-checkbox pull-right">
168 <input id="checkbox-{$id}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{$id}">
169 <label for="checkbox-{$id}"></label>