2016-04-19 20:59:32 -04:00
|
|
|
|
2017-04-21 10:04:29 -04:00
|
|
|
<div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}">
|
2016-04-19 21:15:35 -04:00
|
|
|
|
2017-12-15 12:09:04 -05:00
|
|
|
{{* This is a wrapper for the contact picture *}}
|
2017-04-21 10:04:29 -04:00
|
|
|
<div class="contact-photo-wrapper dropdown media-left">
|
|
|
|
<div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
|
2016-04-19 20:59:32 -04:00
|
|
|
|
2017-12-15 12:09:04 -05:00
|
|
|
<div class="contact-photo-image-wrapper hidden-xs">
|
2020-08-04 22:45:33 -04:00
|
|
|
<a href="{{$contact.url}}">
|
|
|
|
<img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
|
|
|
|
</a>
|
2017-12-15 12:09:04 -05:00
|
|
|
</div>
|
2016-04-20 19:52:39 -04:00
|
|
|
|
2018-11-25 18:49:40 -05:00
|
|
|
{{* For very small displays we use a dropdown menu for contact relating actions *}}
|
2017-12-15 12:09:04 -05:00
|
|
|
<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">
|
2016-04-20 19:55:47 -04:00
|
|
|
{{* use a smaller picture on very small displays (e.g. mobiles) *}}
|
2017-12-15 12:09:04 -05:00
|
|
|
<div class="contact-photo-image-wrapper visible-xs">
|
2018-12-13 22:28:12 -05:00
|
|
|
<img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
|
2017-12-15 12:16:07 -05:00
|
|
|
|
2016-04-20 19:52:39 -04:00
|
|
|
{{* Overlay background on hover the avatar picture *}}
|
|
|
|
<div class="contact-photo-overlay">
|
2017-10-20 09:21:42 -04:00
|
|
|
<span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down" aria-hidden="true"></i></span>
|
2016-04-19 20:59:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 23:47:02 -04:00
|
|
|
</button>
|
2016-04-19 20:59:32 -04:00
|
|
|
|
|
|
|
{{if $contact.photo_menu}}
|
2017-12-15 12:09:04 -05:00
|
|
|
<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}}">
|
2016-04-19 20:59:32 -04:00
|
|
|
{{foreach $contact.photo_menu as $c}}
|
|
|
|
{{if $c.2}}
|
2017-10-20 09:21:42 -04:00
|
|
|
<li role="presentation"><a role="menuitem" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
|
2016-04-20 13:32:19 -04:00
|
|
|
{{elseif $c.3}}
|
2017-10-20 09:21:42 -04:00
|
|
|
<li role="presentation"><button role="menuitem" type="button" class="btn-link" onclick="addToModal('{{$c.1}}')">{{$c.0}}</button></li>
|
2016-04-19 20:59:32 -04:00
|
|
|
{{else}}
|
2017-10-20 09:21:42 -04:00
|
|
|
<li role="presentation"><a role="menuitem" href="{{$c.1}}">{{$c.0}}</a></li>
|
2016-04-19 20:59:32 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="media-body">
|
2017-04-23 08:51:41 -04:00
|
|
|
{{if $contact.photo_menu}}
|
2016-06-01 11:21:57 -04:00
|
|
|
{{* The contact actions like private mail, delete contact, edit contact and so on *}}
|
|
|
|
<div class="contact-actions pull-right nav-pills preferences hidden-xs">
|
2017-04-23 08:51:41 -04:00
|
|
|
{{if $contact.photo_menu.pm}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<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}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-envelope" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
{{if $contact.photo_menu.poke}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<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}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-heartbeat" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
{{if $contact.photo_menu.network}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-cloud" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{if $contact.photo_menu.edit}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-user" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{if $contact.photo_menu.drop}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<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}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
{{if $contact.photo_menu.follow}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-user-plus" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2020-02-17 17:25:12 -05:00
|
|
|
{{if $contact.photo_menu.unfollow}}
|
|
|
|
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.unfollow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.unfollow.0}}">
|
|
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2017-04-23 08:51:41 -04:00
|
|
|
{{if $contact.photo_menu.hide}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
|
2017-04-23 08:51:41 -04:00
|
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2016-06-01 11:21:57 -04:00
|
|
|
</div>
|
2017-04-23 08:51:41 -04:00
|
|
|
{{/if}}
|
2016-06-01 11:21:57 -04:00
|
|
|
|
2017-04-21 10:04:29 -04:00
|
|
|
{{* The button to add or remove contacts from a contact group - group edit page *}}
|
|
|
|
{{if $contact.change_member}}
|
|
|
|
<div class="contact-group-actions pull-right nav-pills preferences">
|
2018-12-13 22:28:12 -05:00
|
|
|
<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}}">
|
2017-04-21 10:04:29 -04:00
|
|
|
{{if $contact.label == "members"}}
|
|
|
|
<i class="fa fa-times-circle" aria-hidden="true"></i>
|
|
|
|
{{elseif $contact.label == "contacts"}}
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"></i>
|
|
|
|
{{/if}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-04-19 21:15:35 -04:00
|
|
|
{{* The contact description (e.g. Name, Network, kind of connection and so on *}}
|
2016-04-19 20:59:32 -04:00
|
|
|
<div class="contact-entry-desc">
|
2017-04-21 10:04:29 -04:00
|
|
|
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
|
2018-12-13 22:28:12 -05:00
|
|
|
<h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
|
2016-04-19 20:59:32 -04:00
|
|
|
{{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
|
2016-04-20 15:10:39 -04:00
|
|
|
{{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
|
|
|
|
{{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
|
2016-04-19 20:59:32 -04:00
|
|
|
</h4>
|
|
|
|
</div>
|
2021-05-19 17:47:15 -04:00
|
|
|
{{if $contact.alt_text}}<div class="contact-entry-details contact-entry-rel" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
|
|
|
|
{{if $contact.itemurl}}<div class="contact-entry-details contact-entry-url" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</div>{{/if}}
|
|
|
|
{{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}">{{$contact.tags}}</div>{{/if}}
|
|
|
|
{{if $contact.details}}<div class="contact-entry-details contact-entry-tags" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
|
|
|
|
{{if $contact.network}}<div class="contact-entry-details contact-entry-network" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
|
2016-04-19 20:59:32 -04:00
|
|
|
</div>
|
|
|
|
|
2016-04-19 21:15:35 -04:00
|
|
|
{{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
|
2016-04-19 20:59:32 -04:00
|
|
|
{{* if !$no_contacts_checkbox *}}
|
|
|
|
{{if $multiselect}}
|
|
|
|
<div class="checkbox contact-entry-checkbox pull-right">
|
|
|
|
<input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
|
|
|
|
<label for="checkbox-{{$contact.id}}"></label>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2017-03-14 23:47:02 -04:00
|
|
|
|
|
|
|
{{* the following part is a nearly a copy of the part above but it is modified for working with js.
|
2016-04-28 15:35:33 -04:00
|
|
|
We use this part to filter the contacts with jquery.textcomplete *}}
|
2018-01-21 11:48:16 -05:00
|
|
|
<template class="javascript-template" rel="contact-template" style="display: none">
|
2017-04-21 10:04:29 -04:00
|
|
|
<div class="contact-wrapper media" id="contact-entry-wrapper-{$id}">
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* This is a wrapper for the contact picture *}}
|
|
|
|
<div class="contact-photo-wrapper dropdown media-left">
|
|
|
|
<div class="contact-entry-photo mframe" id="contact-entry-photo-{$id}">
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
<div class="contact-photo-image-wrapper hidden-xs">
|
2018-12-13 22:28:12 -05:00
|
|
|
<img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
|
2018-01-21 11:48:16 -05:00
|
|
|
</div>
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* For very small displays we use a drobdown menu for contact relating actions *}}
|
|
|
|
<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">
|
|
|
|
{{* use a smaller picture on very small displays (e.g. mobiles) *}}
|
|
|
|
<div class="contact-photo-image-wrapper visible-xs">
|
2018-12-13 22:28:12 -05:00
|
|
|
<img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* Overlay background on hover the avatar picture *}}
|
|
|
|
<div class="contact-photo-overlay">
|
|
|
|
<span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down" aria-hidden="true"></i></span>
|
2016-04-28 15:35:33 -04:00
|
|
|
</div>
|
2018-01-21 11:48:16 -05:00
|
|
|
</div>
|
|
|
|
</button>
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{if $photo_menu}
|
|
|
|
<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}">
|
|
|
|
{foreach $photo_menu as $c}
|
|
|
|
{if $c.2}
|
|
|
|
<li role="presentation"><a role="menuitem" target="redir" href="{$c.1}">{$c.0}</a></li>
|
|
|
|
{elseif $c.3}
|
|
|
|
<li role="presentation"><button role="menuitem" type="button" class="btn-link" onclick="addToModal('{$c.1}')">{$c.0}</button></li>
|
|
|
|
{else}
|
|
|
|
<li role="presentation"><a role="menuitem" href="{$c.1}">{$c.0}</a></li>
|
2016-04-28 15:35:33 -04:00
|
|
|
{/if}
|
2018-01-21 11:48:16 -05:00
|
|
|
{/foreach}
|
|
|
|
</ul>
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{/if}
|
2016-04-28 15:35:33 -04:00
|
|
|
</div>
|
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
</div>
|
2016-06-01 11:21:57 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
<div class="media-body">
|
|
|
|
{if $photo_menu}
|
|
|
|
{{* The contact actions like private mail, delete contact, edit contact and so on *}}
|
|
|
|
<div class="contact-actions pull-right nav-pills preferences hidden-xs">
|
|
|
|
{if $photo_menu.pm}
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}">
|
2018-01-21 11:48:16 -05:00
|
|
|
<i class="fa fa-envelope" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{/if}
|
|
|
|
{if $photo_menu.poke}
|
2018-12-13 22:28:12 -05:00
|
|
|
<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}">
|
2018-01-21 11:48:16 -05:00
|
|
|
<i class="fa fa-heartbeat" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{/if}
|
|
|
|
{if $photo_menu.network}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{$photo_menu.network.1}" data-toggle="tooltip" title="{$photo_menu.network.0}">
|
2018-01-21 11:48:16 -05:00
|
|
|
<i class="fa fa-cloud" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
{if $photo_menu.edit}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{$photo_menu.edit.1}" data-toggle="tooltip" title="{$photo_menu.edit.0}">
|
2018-12-25 11:31:55 -05:00
|
|
|
<i class="fa fa-user" aria-hidden="true"></i>
|
2018-01-21 11:48:16 -05:00
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
{if $photo_menu.drop}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{$photo_menu.drop.1}" data-toggle="tooltip" title="{$photo_menu.drop.0}">
|
2018-01-21 11:48:16 -05:00
|
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
|
|
|
</a>
|
2017-04-23 08:58:23 -04:00
|
|
|
{/if}
|
2018-01-21 11:48:16 -05:00
|
|
|
{if $photo_menu.follow}
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="contact-action-link btn-link" href="{$photo_menu.follow.1}" data-toggle="tooltip" title="{$photo_menu.follow.0}">
|
2018-01-21 11:48:16 -05:00
|
|
|
<i class="fa fa-user-plus" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{/if}
|
2017-04-23 08:58:23 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* The button to add or remove contacts from a contact group - group edit page *}}
|
|
|
|
{if $contact.change_member}
|
|
|
|
<div class="contact-group-actions pull-right nav-pills preferences">
|
2018-12-13 22:28:12 -05:00
|
|
|
<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}">
|
2018-01-21 11:48:16 -05:00
|
|
|
{if $contact.label == "members"}
|
|
|
|
<i class="fa fa-times-circle" aria-hidden="true"></i>
|
|
|
|
{elseif $contact.label == "contacts"}
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"></i>
|
|
|
|
{/if}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2016-04-28 15:35:33 -04:00
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* The contact description (e.g. Name, Network, kind of connection and so on *}}
|
|
|
|
<div class="contact-entry-desc">
|
|
|
|
<div class="contact-entry-name" id="contact-entry-name-{$id}">
|
2018-12-13 22:28:12 -05:00
|
|
|
<h4 class="media-heading"><a href="{$url}">{$name}</a>
|
2018-01-21 11:48:16 -05:00
|
|
|
{if $account_type} <small class="contact-entry-details" id="contact-entry-accounttype-{$id}">({$account_type})</small>{/if}
|
|
|
|
{if $account_type == 'Forum'}<i class="fa fa-comments-o" aria-hidden="true"></i>{/if}
|
|
|
|
{{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
|
|
|
|
</h4>
|
2016-04-28 15:35:33 -04:00
|
|
|
</div>
|
2021-05-19 17:47:15 -04:00
|
|
|
{if $alt_text}<div class="contact-entry-details" id="contact-entry-rel-{$id}">{$alt_text}</div>{/if}
|
|
|
|
{if $itemurl}<div class="contact-entry-details" id="contact-entry-url-{$id}">{$itemurl}</div>{/if}
|
|
|
|
{if $tags}<div class="contact-entry-details" id="contact-entry-tags-{$id}">{$tags}</div>{/if}
|
|
|
|
{if $details}<div class="contact-entry-details" id="contact-entry-details-{$id}">{$details}</div>{/if}
|
|
|
|
{if $network}<div class="contact-entry-details" id="contact-entry-network-{$id}">{$network}</div>{/if}
|
2016-04-28 15:35:33 -04:00
|
|
|
</div>
|
|
|
|
|
2018-01-21 11:48:16 -05:00
|
|
|
{{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
|
|
|
|
{{* if !$no_contacts_checkbox *}}
|
|
|
|
{{if $multiselect}}
|
|
|
|
<div class="checkbox contact-entry-checkbox pull-right">
|
|
|
|
<input id="checkbox-{$id}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{$id}">
|
|
|
|
<label for="checkbox-{$id}"></label>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-04-28 15:35:33 -04:00
|
|
|
</div>
|
2018-01-21 11:48:16 -05:00
|
|
|
</template>
|