DI::sysmsg()->addInfo(DI::l10n()->t('No matches'));
}
- $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
+ $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
$o = Renderer::replaceMacros($tpl, [
'$title' => DI::l10n()->t('Profile Match'),
'$contacts' => array_slice($entries, 0, $limit),
$entries[] = ModuleContact::getContactTemplateVars($contact);
}
- $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
+ $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
return Renderer::replaceMacros($tpl,[
'$title' => DI::l10n()->t('Friend Suggestions'),
}
}
- $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
+ $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
return Renderer::replaceMacros($tpl, [
'title' => $header,
'$contacts' => $entries,
} elseif (self::$forumContactId) {
$contact = Contact::getById(self::$forumContactId);
if (DBA::isResult($contact)) {
- $o = Renderer::replaceMacros(Renderer::getMarkupTemplate('viewcontact_template.tpl'), [
+ $o = Renderer::replaceMacros(Renderer::getMarkupTemplate('contact/list.tpl'), [
'contacts' => [ModuleContact::getContactTemplateVars($contact)],
'id' => DI::args()->get(0),
]) . $o;
--- /dev/null
+
+<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}">
+ <div class="contact-entry-photo-wrapper">
+ <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}"
+ onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
+ onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)">
+
+ <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" /></a>
+
+ {{if $multiselect}}
+ <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
+ {{/if}}
+
+ {{if $contact.photo_menu}}
+ <span onclick="openClose('contact-photo-menu-{{$contact.id}}');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-{{$contact.id}}">menu</span>
+ <div class="contact-photo-menu" id="contact-photo-menu-{{$contact.id}}">
+ <ul>
+ {{foreach $contact.photo_menu as $k=>$c}}
+ {{if $c.2}}
+ <li><a class="{{$k}}" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
+ {{else}}
+ <li><a class="{{$k}}" href="{{$c.1}}">{{$c.0}}</a></li>
+ {{/if}}
+ {{/foreach}}
+ </ul>
+ </div>
+ {{/if}}
+ </div>
+
+ </div>
+
+ <div class="contact-entry-desc">
+ <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
+ {{$contact.name}}
+ {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
+ </div>
+ {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
+ {{if $contact.itemurl}}<div class="contact-entry-details" 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" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
+ {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
+
+ </div>
+
+ <div class="contact-entry-end"></div>
+</div>
--- /dev/null
+
+{{include file="section_title.tpl"}}
+
+{{$tab_str nofilter}}
+
+<div id="viewcontact_wrapper-{{$id}}">
+{{foreach $contacts as $contact}}
+ {{include file="contact/entry.tpl"}}
+{{/foreach}}
+</div>
+<div class="clear"></div>
+<div id="view-contact-end"></div>
+
+{{$paginate nofilter}}
+++ /dev/null
-
-<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}">
- <div class="contact-entry-photo-wrapper">
- <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}"
- onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
- onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)">
-
- <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" /></a>
-
- {{if $multiselect}}
- <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
- {{/if}}
-
- {{if $contact.photo_menu}}
- <span onclick="openClose('contact-photo-menu-{{$contact.id}}');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-{{$contact.id}}">menu</span>
- <div class="contact-photo-menu" id="contact-photo-menu-{{$contact.id}}">
- <ul>
- {{foreach $contact.photo_menu as $k=>$c}}
- {{if $c.2}}
- <li><a class="{{$k}}" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
- {{else}}
- <li><a class="{{$k}}" href="{{$c.1}}">{{$c.0}}</a></li>
- {{/if}}
- {{/foreach}}
- </ul>
- </div>
- {{/if}}
- </div>
-
- </div>
-
- <div class="contact-entry-desc">
- <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
- {{$contact.name}}
- {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
- </div>
- {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
- {{if $contact.itemurl}}<div class="contact-entry-details" 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" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
- {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
-
- </div>
-
- <div class="contact-entry-end"></div>
-</div>
+++ /dev/null
-
-{{include file="section_title.tpl"}}
-
-{{$tab_str nofilter}}
-
-<div id="viewcontact_wrapper-{{$id}}">
-{{foreach $contacts as $contact}}
- {{include file="contact_template.tpl"}}
-{{/foreach}}
-</div>
-<div class="clear"></div>
-<div id="view-contact-end"></div>
-
-{{$paginate nofilter}}
--- /dev/null
+
+<div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}">
+
+ {{* 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-{{$contact.id}}">
+
+ <div class="contact-photo-image-wrapper hidden-xs">
+ <a href="{{$contact.url}}">
+ <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
+ </a>
+ </div>
+
+ {{* For very small displays we use a dropdown menu for contact relating actions *}}
+ <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">
+ {{* use a smaller picture on very small displays (e.g. mobiles) *}}
+ <div class="contact-photo-image-wrapper visible-xs">
+ <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
+
+ {{* 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>
+ </div>
+ </div>
+ </button>
+
+ {{if $contact.photo_menu}}
+ <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}}">
+ {{foreach $contact.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>
+ {{/if}}
+ {{/foreach}}
+ </ul>
+
+ {{/if}}
+ </div>
+ </div>
+
+ <div class="media-body">
+ {{if $contact.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 $contact.photo_menu.pm}}
+ <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}}">
+ <i class="fa fa-envelope" aria-hidden="true"></i>
+ </button>
+ {{/if}}
+ {{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}}
+ {{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}}
+ {{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}}
+ {{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}}
+ {{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}}
+ </div>
+ {{/if}}
+
+ {{* 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">
+ <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}}">
+ {{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}}
+
+ {{* 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-{{$contact.id}}">
+ <h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
+ {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
+ {{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 *}}
+ </h4>
+ </div>
+ {{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}}
+ </div>
+
+ {{* 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-{{$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>
+
+
+{{* the following part is a nearly a copy of the part above but it is modified for working with js.
+We use this part to filter the contacts with jquery.textcomplete *}}
+<template class="javascript-template" rel="contact-template" style="display: none">
+ <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}">
+
+ {{* 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}">
+
+ <div class="contact-photo-image-wrapper hidden-xs">
+ <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
+ </div>
+
+ {{* 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">
+ <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
+
+ {{* 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>
+ </div>
+ </div>
+ </button>
+
+ {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>
+ {/if}
+ {/foreach}
+ </ul>
+
+ {/if}
+ </div>
+
+ </div>
+
+ <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}
+ <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}
+ {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}
+ {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-user" aria-hidden="true"></i>
+ </a>
+ {/if}
+ {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}
+ </div>
+ {/if}
+
+ {{* 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">
+ <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}">
+ {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}
+
+ {{* 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}">
+ <h4 class="media-heading"><a href="{$url}">{$name}</a>
+ {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>
+ </div>
+ {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}
+ </div>
+
+ {{* 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>
+ </div>
+</template>
--- /dev/null
+
+{{* This is the standard template for showing contact lists. It is used e.g.
+at the suggest page and also at many other places *}}
+
+{{include file="section_title.tpl"}}
+
+{{$tab_str nofilter}}
+
+<ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list">
+{{foreach $contacts as $contact}}
+ <li>{{include file="contact/entry.tpl"}}</li>
+{{/foreach}}
+</ul>
+<div class="clear"></div>
+<div id="view-contact-end"></div>
+
+{{$paginate nofilter}}
<div id="contact-drop-confirm">
<h2 class="heading">{{$l10n.header}}</h2>
- {{include file="contact_template.tpl" no_contacts_checkbox=True}}
+ {{include file="contact/entry.tpl" no_contacts_checkbox=True}}
{{include file="confirm.tpl"}}
+++ /dev/null
-
-<div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}">
-
- {{* 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-{{$contact.id}}">
-
- <div class="contact-photo-image-wrapper hidden-xs">
- <a href="{{$contact.url}}">
- <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
- </a>
- </div>
-
- {{* For very small displays we use a dropdown menu for contact relating actions *}}
- <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">
- {{* use a smaller picture on very small displays (e.g. mobiles) *}}
- <div class="contact-photo-image-wrapper visible-xs">
- <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
-
- {{* 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>
- </div>
- </div>
- </button>
-
- {{if $contact.photo_menu}}
- <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}}">
- {{foreach $contact.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>
- {{/if}}
- {{/foreach}}
- </ul>
-
- {{/if}}
- </div>
- </div>
-
- <div class="media-body">
- {{if $contact.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 $contact.photo_menu.pm}}
- <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}}">
- <i class="fa fa-envelope" aria-hidden="true"></i>
- </button>
- {{/if}}
- {{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}}
- {{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}}
- {{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}}
- {{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}}
- {{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}}
- </div>
- {{/if}}
-
- {{* 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">
- <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}}">
- {{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}}
-
- {{* 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-{{$contact.id}}">
- <h4 class="media-heading"><a href="{{$contact.url}}">{{$contact.name}}</a>
- {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
- {{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 *}}
- </h4>
- </div>
- {{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}}
- </div>
-
- {{* 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-{{$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>
-
-
-{{* the following part is a nearly a copy of the part above but it is modified for working with js.
-We use this part to filter the contacts with jquery.textcomplete *}}
-<template class="javascript-template" rel="contact-template" style="display: none">
- <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}">
-
- {{* 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}">
-
- <div class="contact-photo-image-wrapper hidden-xs">
- <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
- </div>
-
- {{* 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">
- <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
-
- {{* 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>
- </div>
- </div>
- </button>
-
- {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>
- {/if}
- {/foreach}
- </ul>
-
- {/if}
- </div>
-
- </div>
-
- <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}
- <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}
- {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}
- {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-user" aria-hidden="true"></i>
- </a>
- {/if}
- {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}
- </div>
- {/if}
-
- {{* 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">
- <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}">
- {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}
-
- {{* 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}">
- <h4 class="media-heading"><a href="{$url}">{$name}</a>
- {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>
- </div>
- {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}
- </div>
-
- {{* 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>
- </div>
-</template>
</ul>
<div class="clear"></div>
<div id="contact-list">
- {{* format each contact with the contact_template.tpl *}}
+ {{* format each contact with the contact/entry.tpl *}}
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}}
- <li>{{include file="contact_template.tpl"}}</li>
+ <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}}
</ul>
</div>
<div id="directory-search-end" class="clear"></div>
- {{* format each contact with the contact_template.tpl *}}
+ {{* format each contact with the contact/entry.tpl *}}
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}}
- <li>{{include file="contact_template.tpl"}}</li>
+ <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}}
</ul>
{{* The contacts who are already members of the contact group *}}
{{foreach $groupeditor.members as $contact}}
- <li class="members active">{{include file="contact_template.tpl"}}</li>
+ <li class="members active">{{include file="contact/entry.tpl"}}</li>
{{/foreach}}
{{* The contacts who are not members of the contact group *}}
{{foreach $groupeditor.contacts as $contact}}
- <li class="contacts">{{include file="contact_template.tpl"}}</li>
+ <li class="contacts">{{include file="contact/entry.tpl"}}</li>
{{/foreach}}
</ul>
{{if $contacts}}
<ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}}
- <li>{{include file="contact_template.tpl"}}</li>
+ <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}}
</ul>
{{else}}
+++ /dev/null
-
-{{* This is the standard template for showing contact lists. It is used e.g.
-at the suggest page and also at many other places *}}
-
-{{include file="section_title.tpl"}}
-
-{{$tab_str nofilter}}
-
-<ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list">
-{{foreach $contacts as $contact}}
- <li>{{include file="contact_template.tpl"}}</li>
-{{/foreach}}
-</ul>
-<div class="clear"></div>
-<div id="view-contact-end"></div>
-
-{{$paginate nofilter}}
--- /dev/null
+
+<div class="contact-wrapper" id="contact-entry-wrapper-{{$id}}">
+ {{if $contact.ignlnk}}<a href="{{$contact.ignlnk}}" title="{{$contact.ignore}}" class="icon drophide profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();"></a>{{/if}}
+ <div class="contact-photo-wrapper">
+ <div class="contact-photo mframe" id="contact-entry-photo-{{$contact.id}}"
+ onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
+ onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)">
+
+ <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" /></a>
+
+ {{if $multiselect}}
+ <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
+ {{/if}}
+ {{if $contact.photo_menu}}
+ <a href="#" rel="#contact-photo-menu-{{$contact.id}}" class="contact-photo-menu-button icon s16 menu" id="contact-photo-menu-button-{{$contact.id}}">menu</a>
+ <ul class="contact-photo-menu menu-popup" id="contact-photo-menu-{{$contact.id}}">
+ {{foreach $contact.photo_menu as $c}}
+ {{if $c.2}}
+ <li><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
+ {{else}}
+ <li><a href="{{$c.1}}">{{$c.0}}</a></li>
+ {{/if}}
+ {{/foreach}}
+ </ul>
+ {{/if}}
+ </div>
+
+ </div>
+ <div class="contact-name" id="contact-entry-name-{{$contact.id}}">
+ {{$contact.name}}
+ {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
+ </div>
+ {{if $contact.alt_text}}<div class="contact-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
+ {{if $contact.itemurl}}<div class="contact-details" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</div>{{/if}}
+ {{if $contact.tags}}<div class="contact-details" id="contact-entry-tags-{{$contact.id}}">{{$contact.tags}}</div>{{/if}}
+ {{if $contact.details}}<div class="contact-details" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
+ {{if $contact.network}}<div class="contact-details" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
+
+ {{if $contact.connlnk}}
+ <div class="contact-entry-connect"><a href="{{$contact.connlnk}}" title="{{$contact.conntxt}}">{{$contact.conntxt}}</a></div>
+ {{/if}}
+
+
+</div>
+
+++ /dev/null
-
-<div class="contact-wrapper" id="contact-entry-wrapper-{{$id}}">
- {{if $contact.ignlnk}}<a href="{{$contact.ignlnk}}" title="{{$contact.ignore}}" class="icon drophide profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();"></a>{{/if}}
- <div class="contact-photo-wrapper">
- <div class="contact-photo mframe" id="contact-entry-photo-{{$contact.id}}"
- onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
- onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)">
-
- <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" /></a>
-
- {{if $multiselect}}
- <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
- {{/if}}
- {{if $contact.photo_menu}}
- <a href="#" rel="#contact-photo-menu-{{$contact.id}}" class="contact-photo-menu-button icon s16 menu" id="contact-photo-menu-button-{{$contact.id}}">menu</a>
- <ul class="contact-photo-menu menu-popup" id="contact-photo-menu-{{$contact.id}}">
- {{foreach $contact.photo_menu as $c}}
- {{if $c.2}}
- <li><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
- {{else}}
- <li><a href="{{$c.1}}">{{$c.0}}</a></li>
- {{/if}}
- {{/foreach}}
- </ul>
- {{/if}}
- </div>
-
- </div>
- <div class="contact-name" id="contact-entry-name-{{$contact.id}}">
- {{$contact.name}}
- {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
- </div>
- {{if $contact.alt_text}}<div class="contact-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
- {{if $contact.itemurl}}<div class="contact-details" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</div>{{/if}}
- {{if $contact.tags}}<div class="contact-details" id="contact-entry-tags-{{$contact.id}}">{{$contact.tags}}</div>{{/if}}
- {{if $contact.details}}<div class="contact-details" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
- {{if $contact.network}}<div class="contact-details" id="contact-entry-network-{{$contact.id}}">{{$contact.network}}</div>{{/if}}
-
- {{if $contact.connlnk}}
- <div class="contact-entry-connect"><a href="{{$contact.connlnk}}" title="{{$contact.conntxt}}">{{$contact.conntxt}}</a></div>
- {{/if}}
-
-
-</div>
-
--- /dev/null
+
+<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}">
+ <div class="contact-entry-photo-wrapper">
+ <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
+ <!-- onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
+ onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)"> -->
+
+ <!-- <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /></a> -->
+ <img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
+
+ {{if $multiselect}}
+ <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
+ {{/if}}
+ {{if $contact.photo_menu}}
+ <!-- <span onclick="openClose('contact-photo-menu-{{$contact.id}}');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-{{$contact.id}}">menu</span> -->
+ <div class="contact-photo-menu" id="contact-photo-menu-{{$contact.id}}">
+ <ul role="menu" aria-haspopup="true">
+ {{foreach $contact.photo_menu as $k=>$c}}
+ {{if $c.2}}
+ <li role="menuitem"><a class="{{$k}}" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
+ {{else}}
+ <li role="menuitem"><a class="{{$k}}" href="{{$c.1}}">{{$c.0}}</a></li>
+ {{/if}}
+ {{/foreach}}
+ </ul>
+ </div>
+ {{/if}}
+ </div>
+
+ </div>
+ <div class="contact-entry-photo-end"></div>
+
+ <div class="contact-entry-desc">
+ <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
+ {{$contact.name}}
+ {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
+ </div>
+ {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
+ <div class="contact-entry-details">
+ {{if $contact.itemurl}}<span class="contact-entry-details" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</span>{{/if}}
+ {{if $contact.network}}<span class="contact-entry-details" id="contact-entry-network-{{$contact.id}}"> ({{$contact.network}})</span>{{/if}}
+ </div>
+ {{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" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
+ </div>
+
+
+ <div class="contact-entry-end"></div>
+</div>
+++ /dev/null
-
-<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}">
- <div class="contact-entry-photo-wrapper">
- <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
- <!-- onmouseover="if (typeof t{{$contact.id}} != 'undefined') clearTimeout(t{{$contact.id}}); openMenu('contact-photo-menu-button-{{$contact.id}}')"
- onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)"> -->
-
- <!-- <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /></a> -->
- <img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
-
- {{if $multiselect}}
- <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
- {{/if}}
- {{if $contact.photo_menu}}
- <!-- <span onclick="openClose('contact-photo-menu-{{$contact.id}}');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-{{$contact.id}}">menu</span> -->
- <div class="contact-photo-menu" id="contact-photo-menu-{{$contact.id}}">
- <ul role="menu" aria-haspopup="true">
- {{foreach $contact.photo_menu as $k=>$c}}
- {{if $c.2}}
- <li role="menuitem"><a class="{{$k}}" target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
- {{else}}
- <li role="menuitem"><a class="{{$k}}" href="{{$c.1}}">{{$c.0}}</a></li>
- {{/if}}
- {{/foreach}}
- </ul>
- </div>
- {{/if}}
- </div>
-
- </div>
- <div class="contact-entry-photo-end"></div>
-
- <div class="contact-entry-desc">
- <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
- {{$contact.name}}
- {{if $contact.account_type}} <span class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</span>{{/if}}
- </div>
- {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}">{{$contact.alt_text}}</div>{{/if}}
- <div class="contact-entry-details">
- {{if $contact.itemurl}}<span class="contact-entry-details" id="contact-entry-url-{{$contact.id}}">{{$contact.itemurl}}</span>{{/if}}
- {{if $contact.network}}<span class="contact-entry-details" id="contact-entry-network-{{$contact.id}}"> ({{$contact.network}})</span>{{/if}}
- </div>
- {{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" id="contact-entry-details-{{$contact.id}}">{{$contact.details}}</div>{{/if}}
- </div>
-
-
- <div class="contact-entry-end"></div>
-</div>