2 <div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}">
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}}">
8 <div class="contact-photo-image-wrapper hidden-xs">
9 <a href="{{$contact.url}}">
10 <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
14 {{* For very small displays we use a dropdown menu for contact relating actions *}}
15 <button type="button" class="btn btn-link 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}}" />
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>
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}}
31 <li role="presentation"><a role="menuitem" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
33 <li role="presentation"><button role="menuitem" type="button" class="btn-link" onclick="addToModal('{{$c.1}}')">{{$c.0}}</button></li>
35 <li role="presentation"><a role="menuitem" href="{{$c.1}}">{{$c.0}}</a></li>
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="contact-actions pull-right nav-pills preferences hidden-xs">
48 {{if $contact.photo_menu.pm}}
49 <button type="button" class="contact-action-link btn-link" 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>
53 {{if $contact.photo_menu.poke}}
54 <button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.poke.1}}'); return false;" data-toggle="tooltip" title="{{$contact.photo_menu.poke.0}}">
55 <i class="fa fa-heartbeat" aria-hidden="true"></i>
58 {{if $contact.photo_menu.network}}
59 <a class="contact-action-link btn-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}">
60 <i class="fa fa-cloud" aria-hidden="true"></i>
63 {{if $contact.photo_menu.edit}}
64 <a class="contact-action-link btn-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}">
65 <i class="fa fa-user" aria-hidden="true"></i>
68 {{if $contact.photo_menu.drop}}
69 <button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.drop.1}}'); return false;" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}">
70 <i class="fa fa-user-times" aria-hidden="true"></i>
73 {{if $contact.photo_menu.follow}}
74 <a class="contact-action-link btn-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}">
75 <i class="fa fa-user-plus" aria-hidden="true"></i>
78 {{if $contact.photo_menu.unfollow}}
79 <a class="contact-action-link btn-link" href="{{$contact.photo_menu.unfollow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.unfollow.0}}">
80 <i class="fa fa-user-times" aria-hidden="true"></i>
83 {{if $contact.photo_menu.hide}}
84 <a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
85 <i class="fa fa-times" aria-hidden="true"></i>
91 {{* The button to add or remove contacts from a contact group - group edit page *}}
92 {{if $contact.change_member}}
93 <div class="contact-group-actions pull-right nav-pills preferences">
94 <button type="button" class="contact-action-link contact-group-link btn-link" onclick="groupChangeMember({{$contact.change_member.gid}},{{$contact.change_member.cid}},'{{$contact.change_member.sec_token}}'); return true;" data-toggle="tooltip" title="{{$contact.change_member.title}}">
95 {{if $contact.label == "members"}}
96 <i class="fa fa-times-circle" aria-hidden="true"></i>
97 {{elseif $contact.label == "contacts"}}
98 <i class="fa fa-plus-circle" aria-hidden="true"></i>
104 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
105 <div class="contact-entry-desc">
106 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
107 <h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
108 {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
109 {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
110 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
113 {{if $contact.alt_text}}<div class="contact-entry-details contact-entry-rel" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
114 {{if $contact.itemurl}}<div class="contact-entry-details contact-entry-url" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
115 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
116 {{if $contact.details}}<div class="contact-entry-details contact-entry-tags" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
117 {{if $contact.network}}<div class="contact-entry-details contact-entry-network" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
120 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
121 {{* if !$no_contacts_checkbox *}}
123 <div class="checkbox contact-entry-checkbox pull-right">
124 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
125 <label for="checkbox-{{$contact.id}}"></label>
133 {{* the following part is a nearly a copy of the part above but it is modified for working with js.
134 We use this part to filter the contacts with jquery.textcomplete *}}
135 <template class="javascript-template" rel="contact-template" style="display: none">
136 <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}">
138 {{* This is a wrapper for the contact picture *}}
139 <div class="contact-photo-wrapper dropdown media-left">
140 <div class="contact-entry-photo mframe" id="contact-entry-photo-{$id}">
142 <div class="contact-photo-image-wrapper hidden-xs">
143 <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
146 {{* For very small displays we use a drobdown menu for contact relating actions *}}
147 <button type="button" class="btn btn-link dropdown-toggle visible-xs" id="contact-photo-menu-button{$id}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
148 {{* use a smaller picture on very small displays (e.g. mobiles) *}}
149 <div class="contact-photo-image-wrapper visible-xs">
150 <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
152 {{* Overlay background on hover the avatar picture *}}
153 <div class="contact-photo-overlay">
154 <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down" aria-hidden="true"></i></span>
160 <ul class="contact-photo-menu menu-popup dropdown-menu hidden-lg hidden-md hidden-sm" id="contact-photo-menu-{$id}" role="menu" aria-labelledby="contact-photo-menu-{$id}">
161 {foreach $photo_menu as $c}
163 <li role="presentation"><a role="menuitem" target="redir" href="{$c.1}">{$c.0}</a></li>
165 <li role="presentation"><button role="menuitem" type="button" class="btn-link" onclick="addToModal('{$c.1}')">{$c.0}</button></li>
167 <li role="presentation"><a role="menuitem" href="{$c.1}">{$c.0}</a></li>
177 <div class="media-body">
179 {{* The contact actions like private mail, delete contact, edit contact and so on *}}
180 <div class="contact-actions pull-right nav-pills preferences hidden-xs">
182 <button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}">
183 <i class="fa fa-envelope" aria-hidden="true"></i>
186 {if $photo_menu.poke}
187 <button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}">
188 <i class="fa fa-heartbeat" aria-hidden="true"></i>
191 {if $photo_menu.network}
192 <a class="contact-action-link btn-link" href="{$photo_menu.network.1}" data-toggle="tooltip" title="{$photo_menu.network.0}">
193 <i class="fa fa-cloud" aria-hidden="true"></i>
196 {if $photo_menu.edit}
197 <a class="contact-action-link btn-link" href="{$photo_menu.edit.1}" data-toggle="tooltip" title="{$photo_menu.edit.0}">
198 <i class="fa fa-user" aria-hidden="true"></i>
201 {if $photo_menu.drop}
202 <a class="contact-action-link btn-link" href="{$photo_menu.drop.1}" data-toggle="tooltip" title="{$photo_menu.drop.0}">
203 <i class="fa fa-user-times" aria-hidden="true"></i>
206 {if $photo_menu.follow}
207 <a class="contact-action-link btn-link" href="{$photo_menu.follow.1}" data-toggle="tooltip" title="{$photo_menu.follow.0}">
208 <i class="fa fa-user-plus" aria-hidden="true"></i>
214 {{* The button to add or remove contacts from a contact group - group edit page *}}
215 {if $contact.change_member}
216 <div class="contact-group-actions pull-right nav-pills preferences">
217 <button type="button" class="contact-action-link btn-link" onclick="groupChangeMember({$contact.change_member.gid},{$contact.change_member.cid},'{$contact.change_member.sec_token}'); return true;" data-toggle="tooltip" title="{$contact.change_member.title}">
218 {if $contact.label == "members"}
219 <i class="fa fa-times-circle" aria-hidden="true"></i>
220 {elseif $contact.label == "contacts"}
221 <i class="fa fa-plus-circle" aria-hidden="true"></i>
227 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
228 <div class="contact-entry-desc">
229 <div class="contact-entry-name" id="contact-entry-name-{$id}">
230 <h4 class="media-heading"><a href="{$url}">{$name}</a>
231 {if $account_type} <small class="contact-entry-details" id="contact-entry-accounttype-{$id}">({$account_type})</small>{/if}
232 {if $account_type == 'Forum'}<i class="fa fa-comments-o" aria-hidden="true"></i>{/if}
233 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
236 {if $alt_text}<div class="contact-entry-details" id="contact-entry-rel-{$id}" >{$alt_text}</div>{/if}
237 {if $itemurl}<div class="contact-entry-details" id="contact-entry-url-{$id}" >{$itemurl}</div>{/if}
238 {if $tags}<div class="contact-entry-details" id="contact-entry-tags-{$id}" >{$tags}</div>{/if}
239 {if $details}<div class="contact-entry-details" id="contact-entry-details-{$id}" >{$details}</div>{/if}
240 {if $network}<div class="contact-entry-details" id="contact-entry-network-{$id}" >{$network}</div>{/if}
243 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
244 {{* if !$no_contacts_checkbox *}}
246 <div class="checkbox contact-entry-checkbox pull-right">
247 <input id="checkbox-{$id}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{$id}">
248 <label for="checkbox-{$id}"></label>