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 media-left">
6 <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
8 <button type="button" class="btn btn-link dropdown-toggle" id="contact-photo-menu-{{$contact.id}}" 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"><button type="button" class="btn-link" onclick="addToModal('{{$c.1}}')">{{$c.0}}</button></li>
38 <li role="menuitem"><a href="{{$c.1}}">{{$c.0}}</a></li>
47 <div class="media-body">
48 {{* The contact actions like private mail, delete contact, edit contact and so on *}}
49 <div class="contact-actions pull-right nav-pills preferences hidden-xs">
50 {{if $contact.photo_menu.pm }}<button type="button" class="contact-action-link btn-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></button>{{/if}}
51 {{if $contact.photo_menu.poke }}<button type="button" class="contact-action-link btn-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></button>{{/if}}
52 {{if $contact.photo_menu.network}}<a class="contact-action-link btn-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}}
53 {{if $contact.photo_menu.edit }}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}"><i class="fa fa-user" aria-hidden="true"></i></a>{{/if}}
54 {{if $contact.photo_menu.drop }}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.drop.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></button>{{/if}}
55 {{if $contact.photo_menu.follow }}<a class="contact-action-link btn-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}}
56 {{if $contact.photo_menu.hide }}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}"><i class="fa fa-times" aria-hidden="true"></i></a>{{/if}}
59 {{* The button to add or remove contacts from a contact group - group edit page *}}
60 {{if $contact.change_member}}
61 <div class="contact-group-actions pull-right nav-pills preferences">
62 <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}}">
63 {{if $contact.label == "members"}}
64 <i class="fa fa-times-circle" aria-hidden="true"></i>
65 {{elseif $contact.label == "contacts"}}
66 <i class="fa fa-plus-circle" aria-hidden="true"></i>
72 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
73 <div class="contact-entry-desc">
74 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
75 <h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
76 {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
77 {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
78 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
81 {{if $contact.alt_text}}<div class="contact-entry-details contact-entry-rel" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
82 {{if $contact.itemurl}}<div class="contact-entry-details contact-entry-url" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
83 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
84 {{if $contact.details}}<div class="contact-entry-details contact-entry-tags" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
85 {{if $contact.network}}<div class="contact-entry-details contact-entry-network" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
88 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
89 {{* if !$no_contacts_checkbox *}}
91 <div class="checkbox contact-entry-checkbox pull-right">
92 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
93 <label for="checkbox-{{$contact.id}}"></label>
101 {{* the following part is a nearly a copy of the part above but it is modified for working with js.
102 We use this part to filter the contacts with jquery.textcomplete *}}
103 <div class="javascript-template" rel="contact-template" style="display: none">
104 <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}">
106 {{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
107 <div class="contact-photo-wrapper dropdown media-left">
108 <div class="contact-entry-photo mframe" id="contact-entry-photo-{$id}">
110 <button type="button" class="btn btn-link dropdown-toggle" id="contact-photo-menu-{$id}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
111 <div class="contact-photo-image-wrapper hidden-xs">
112 <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
114 {{* Overlay background on hover the avatar picture *}}
115 <div class="contact-photo-overlay">
116 <span class="contact-photo-overlay-content xl"><i class="fa fa-angle-down"></i></span>
120 {{* use a smaller picture on very small displays (e.g. mobiles) *}}
121 <div class="contact-photo-image-wrapper hidden-lg hidden-md hidden-sm">
122 <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
124 {{* Overlay background on hover the avatar picture *}}
125 <div class="contact-photo-overlay">
126 <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
133 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{$id}" role="menu" aria-labelledby="contact-photo-menu-{$id}">
134 {foreach $photo_menu as $c}
136 <li role="menuitem"><a target="redir" href="{$c.1}">{$c.0}</a></li>
138 <li role="menuitem"><button type="button" class="btn-link" onclick="addToModal('{$c.1}')">{$c.0}</button></li>
140 <li role="menuitem"><a href="{$c.1}">{$c.0}</a></li>
150 <div class="media-body">
151 {{* The contact actions like private mail, delete contact, edit contact and so on *}}
152 <div class="contact-actions pull-right nav-pills preferences hidden-xs">
153 {if $photo_menu.pm}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}"><i class="fa fa-envelope" aria-hidden="true"></i></button>{/if}
154 {if $photo_menu.poke}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}"><i class="fa fa-heartbeat" aria-hidden="true"></i></button>{/if}
155 {if $photo_menu.network}<a class="contact-action-link btn-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}
156 {if $photo_menu.edit}<a class="contact-action-link btn-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}
157 {if $photo_menu.drop}<a class="contact-action-link btn-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}
158 {if $photo_menu.follow}<a class="contact-action-link btn-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}
161 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
162 <div class="contact-entry-desc">
163 <div class="contact-entry-name" id="contact-entry-name-{$id}">
164 <h4 class="media-heading"><a href="{$url}">{$name}</a>
165 {if $account_type} <small class="contact-entry-details" id="contact-entry-accounttype-{$id}">({$account_type})</small>{/if}
166 {if $account_type == 'Forum'}<i class="fa fa-comments-o" aria-hidden="true"></i>{/if}
167 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
170 {if $alt_text}<div class="contact-entry-details" id="contact-entry-rel-{$id}" >{$alt_text}</div>{/if}
171 {if $itemurl}<div class="contact-entry-details" id="contact-entry-url-{$id}" >{$itemurl}</div>{/if}
172 {if $tags}<div class="contact-entry-details" id="contact-entry-tags-{$id}" >{$tags}</div>{/if}
173 {if $details}<div class="contact-entry-details" id="contact-entry-details-{$id}" >{$details}</div>{/if}
174 {if $network}<div class="contact-entry-details" id="contact-entry-network-{$id}" >{$network}</div>{/if}
177 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
178 {{* if !$no_contacts_checkbox *}}
180 <div class="checkbox contact-entry-checkbox pull-right">
181 <input id="checkbox-{$id}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{$id}">
182 <label for="checkbox-{$id}"></label>