]> git.mxchange.org Git - friendica.git/commitdiff
Move viewcontact_template and contact_template to contact/ folder
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 4 Nov 2022 11:03:55 +0000 (07:03 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 4 Nov 2022 11:03:55 +0000 (07:03 -0400)
21 files changed:
mod/match.php
mod/suggest.php
src/Module/BaseSearch.php
src/Module/Conversation/Network.php
view/templates/contact/entry.tpl [new file with mode: 0644]
view/templates/contact/list.tpl [new file with mode: 0644]
view/templates/contact_template.tpl [deleted file]
view/templates/viewcontact_template.tpl [deleted file]
view/theme/frio/templates/contact/entry.tpl [new file with mode: 0644]
view/theme/frio/templates/contact/list.tpl [new file with mode: 0644]
view/theme/frio/templates/contact_drop_confirm.tpl
view/theme/frio/templates/contact_template.tpl [deleted file]
view/theme/frio/templates/contacts-template.tpl
view/theme/frio/templates/directory_header.tpl
view/theme/frio/templates/groupeditor.tpl
view/theme/frio/templates/profile/contacts.tpl
view/theme/frio/templates/viewcontact_template.tpl [deleted file]
view/theme/quattro/templates/contact/entry.tpl [new file with mode: 0644]
view/theme/quattro/templates/contact_template.tpl [deleted file]
view/theme/vier/templates/contact/entry.tpl [new file with mode: 0644]
view/theme/vier/templates/contact_template.tpl [deleted file]

index e8a0a660594fc7d5ae36909cd2a676247886b9ad..ea59d7ee619928ebd8b5bb93e38bb408d4ae917d 100644 (file)
@@ -93,7 +93,7 @@ function match_content(App $a)
                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),
index 9ad11f7452f60541da89df3f223be09f4fb3d6a8..41fa1b06b225fe27901664ef59456c760119d4e6 100644 (file)
@@ -49,7 +49,7 @@ function suggest_content(App $a)
                $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'),
index b0f03c17d065377d7a58487c88654e723b83e975..2eace38bf1e74ae4d680def75ce1bc4eeed6f2a2 100644 (file)
@@ -132,7 +132,7 @@ class BaseSearch extends BaseModule
                        }
                }
 
-               $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
+               $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
                return Renderer::replaceMacros($tpl, [
                        'title'     => $header,
                        '$contacts' => $entries,
index ce2afbfc7571b2b71716807c92c6d3a0a7564e02..72c4f67cf2abb1ccc4d82bb1e12c2262028191dd 100644 (file)
@@ -178,7 +178,7 @@ class Network extends BaseModule
                } 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;
diff --git a/view/templates/contact/entry.tpl b/view/templates/contact/entry.tpl
new file mode 100644 (file)
index 0000000..31a2d15
--- /dev/null
@@ -0,0 +1,46 @@
+
+<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>
diff --git a/view/templates/contact/list.tpl b/view/templates/contact/list.tpl
new file mode 100644 (file)
index 0000000..ec77fd5
--- /dev/null
@@ -0,0 +1,14 @@
+
+{{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}}
diff --git a/view/templates/contact_template.tpl b/view/templates/contact_template.tpl
deleted file mode 100644 (file)
index 31a2d15..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-
-<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>
diff --git a/view/templates/viewcontact_template.tpl b/view/templates/viewcontact_template.tpl
deleted file mode 100644 (file)
index 562270e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-
-{{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}}
diff --git a/view/theme/frio/templates/contact/entry.tpl b/view/theme/frio/templates/contact/entry.tpl
new file mode 100644 (file)
index 0000000..0cd55f8
--- /dev/null
@@ -0,0 +1,233 @@
+
+<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>
diff --git a/view/theme/frio/templates/contact/list.tpl b/view/theme/frio/templates/contact/list.tpl
new file mode 100644 (file)
index 0000000..5a1ac02
--- /dev/null
@@ -0,0 +1,17 @@
+
+{{* 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}}
index a0ac15cf6df645342bb4a58261376b3c3fb50438..e4c0a356382c475bc3264a0d91e2733800cc3a08 100644 (file)
@@ -1,7 +1,7 @@
 <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"}}
 
diff --git a/view/theme/frio/templates/contact_template.tpl b/view/theme/frio/templates/contact_template.tpl
deleted file mode 100644 (file)
index 0cd55f8..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-
-<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>
index f13f108340a0edc11c03a5d840922e4367dd4e47..5c41c74e25aa8a6ae4ffc817d6a71bea283b9aee 100644 (file)
                </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>
index cef6208ad08eeda6dbccc5cf024e5f14660bc6a4..2c271ffeaa6095b3cf049ceae9fd4232a99e73ec 100644 (file)
 
        <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>
 
index 8d1db5b2227ccc656767fc922fc4fc131bc3681a..5ec15711473d4735570c3ee35e293b654582986d 100644 (file)
@@ -6,12 +6,12 @@
 
                {{* 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>
index 513223f318eb86b4f105e287b13cdf6bea78b589..4a313e774fe4bfde4e012aa8f757ad5b3e715512 100644 (file)
@@ -10,7 +10,7 @@
 {{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}}
diff --git a/view/theme/frio/templates/viewcontact_template.tpl b/view/theme/frio/templates/viewcontact_template.tpl
deleted file mode 100644 (file)
index 90f2865..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-{{* 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}}
diff --git a/view/theme/quattro/templates/contact/entry.tpl b/view/theme/quattro/templates/contact/entry.tpl
new file mode 100644 (file)
index 0000000..13eea60
--- /dev/null
@@ -0,0 +1,45 @@
+
+<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>
+
diff --git a/view/theme/quattro/templates/contact_template.tpl b/view/theme/quattro/templates/contact_template.tpl
deleted file mode 100644 (file)
index 13eea60..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-
-<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>
-
diff --git a/view/theme/vier/templates/contact/entry.tpl b/view/theme/vier/templates/contact/entry.tpl
new file mode 100644 (file)
index 0000000..e99aab9
--- /dev/null
@@ -0,0 +1,49 @@
+
+<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>
diff --git a/view/theme/vier/templates/contact_template.tpl b/view/theme/vier/templates/contact_template.tpl
deleted file mode 100644 (file)
index e99aab9..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-
-<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>