Move viewcontact_template and contact_template to contact/ folder

This commit is contained in:
Hypolite Petovan 2022-11-04 07:03:55 -04:00
parent 891f686dcf
commit 811e144e9e
15 changed files with 14 additions and 14 deletions

View file

@ -93,7 +93,7 @@ function match_content(App $a)
DI::sysmsg()->addInfo(DI::l10n()->t('No matches')); DI::sysmsg()->addInfo(DI::l10n()->t('No matches'));
} }
$tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl'); $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
$o = Renderer::replaceMacros($tpl, [ $o = Renderer::replaceMacros($tpl, [
'$title' => DI::l10n()->t('Profile Match'), '$title' => DI::l10n()->t('Profile Match'),
'$contacts' => array_slice($entries, 0, $limit), '$contacts' => array_slice($entries, 0, $limit),

View file

@ -49,7 +49,7 @@ function suggest_content(App $a)
$entries[] = ModuleContact::getContactTemplateVars($contact); $entries[] = ModuleContact::getContactTemplateVars($contact);
} }
$tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl'); $tpl = Renderer::getMarkupTemplate('contact/list.tpl');
return Renderer::replaceMacros($tpl,[ return Renderer::replaceMacros($tpl,[
'$title' => DI::l10n()->t('Friend Suggestions'), '$title' => DI::l10n()->t('Friend Suggestions'),

View 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, [ return Renderer::replaceMacros($tpl, [
'title' => $header, 'title' => $header,
'$contacts' => $entries, '$contacts' => $entries,

View file

@ -178,7 +178,7 @@ class Network extends BaseModule
} elseif (self::$forumContactId) { } elseif (self::$forumContactId) {
$contact = Contact::getById(self::$forumContactId); $contact = Contact::getById(self::$forumContactId);
if (DBA::isResult($contact)) { if (DBA::isResult($contact)) {
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('viewcontact_template.tpl'), [ $o = Renderer::replaceMacros(Renderer::getMarkupTemplate('contact/list.tpl'), [
'contacts' => [ModuleContact::getContactTemplateVars($contact)], 'contacts' => [ModuleContact::getContactTemplateVars($contact)],
'id' => DI::args()->get(0), 'id' => DI::args()->get(0),
]) . $o; ]) . $o;

View file

@ -5,7 +5,7 @@
<div id="viewcontact_wrapper-{{$id}}"> <div id="viewcontact_wrapper-{{$id}}">
{{foreach $contacts as $contact}} {{foreach $contacts as $contact}}
{{include file="contact_template.tpl"}} {{include file="contact/entry.tpl"}}
{{/foreach}} {{/foreach}}
</div> </div>
<div class="clear"></div> <div class="clear"></div>

View file

@ -8,7 +8,7 @@ at the suggest page and also at many other places *}}
<ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list"> <ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}} {{foreach $contacts as $contact}}
<li>{{include file="contact_template.tpl"}}</li> <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>
<div class="clear"></div> <div class="clear"></div>

View file

@ -1,7 +1,7 @@
<div id="contact-drop-confirm"> <div id="contact-drop-confirm">
<h2 class="heading">{{$l10n.header}}</h2> <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"}} {{include file="confirm.tpl"}}

View file

@ -49,10 +49,10 @@
</ul> </ul>
<div class="clear"></div> <div class="clear"></div>
<div id="contact-list"> <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"> <ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}} {{foreach $contacts as $contact}}
<li>{{include file="contact_template.tpl"}}</li> <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>
</div> </div>

View file

@ -28,10 +28,10 @@
<div id="directory-search-end" class="clear"></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"> <ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}} {{foreach $contacts as $contact}}
<li>{{include file="contact_template.tpl"}}</li> <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>

View file

@ -6,12 +6,12 @@
{{* The contacts who are already members of the contact group *}} {{* The contacts who are already members of the contact group *}}
{{foreach $groupeditor.members as $contact}} {{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}} {{/foreach}}
{{* The contacts who are not members of the contact group *}} {{* The contacts who are not members of the contact group *}}
{{foreach $groupeditor.contacts as $contact}} {{foreach $groupeditor.contacts as $contact}}
<li class="contacts">{{include file="contact_template.tpl"}}</li> <li class="contacts">{{include file="contact/entry.tpl"}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>

View file

@ -10,7 +10,7 @@
{{if $contacts}} {{if $contacts}}
<ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list"> <ul id="viewcontact_wrapper{{if $id}}-{{$id}}{{/if}}" class="viewcontact_wrapper media-list">
{{foreach $contacts as $contact}} {{foreach $contacts as $contact}}
<li>{{include file="contact_template.tpl"}}</li> <li>{{include file="contact/entry.tpl"}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>
{{else}} {{else}}