template rework: use viewcontact_template.tpl also for directory
This commit is contained in:
parent
f9c0c1d696
commit
2aad62190f
|
@ -155,9 +155,9 @@ function directory_content(&$a) {
|
||||||
|
|
||||||
$entry = array(
|
$entry = array(
|
||||||
'id' => $rr['id'],
|
'id' => $rr['id'],
|
||||||
'profile_link' => $profile_link,
|
'url' => $profile_link,
|
||||||
'photo' => proxy_url($a->get_cached_avatar_image($rr[$photo]), false, PROXY_SIZE_THUMB),
|
'thumb' => proxy_url($a->get_cached_avatar_image($rr[$photo]), false, PROXY_SIZE_THUMB),
|
||||||
'alt_text' => $rr['name'],
|
'img_hover' => $rr['name'],
|
||||||
'name' => $rr['name'],
|
'name' => $rr['name'],
|
||||||
'details' => $pdesc . $details,
|
'details' => $pdesc . $details,
|
||||||
'page_type' => $page_type,
|
'page_type' => $page_type,
|
||||||
|
@ -192,7 +192,7 @@ function directory_content(&$a) {
|
||||||
'$globaldir' => t('Global Directory'),
|
'$globaldir' => t('Global Directory'),
|
||||||
'$gdirpath' => $gdirpath,
|
'$gdirpath' => $gdirpath,
|
||||||
'$desc' => t('Find on this site'),
|
'$desc' => t('Find on this site'),
|
||||||
'$entries' => $entries,
|
'$contacts' => $entries,
|
||||||
'$finding' => t('Finding:'),
|
'$finding' => t('Finding:'),
|
||||||
'$findterm' => (strlen($search) ? $search : ""),
|
'$findterm' => (strlen($search) ? $search : ""),
|
||||||
'$title' => t('Site Directory'),
|
'$title' => t('Site Directory'),
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
{{* todo: better layout and implement $contact.details and other variables *}}
|
||||||
|
|
||||||
|
|
||||||
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
|
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
|
||||||
<div class="contact-entry-photo-wrapper" >
|
<div class="contact-entry-photo-wrapper" >
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
<div id="directory-search-end"></div>
|
<div id="directory-search-end"></div>
|
||||||
|
|
||||||
{{foreach $entries as $entry}}
|
{{foreach $contacts as $contact}}
|
||||||
{{include file="directory_item.tpl"}}
|
{{include file="contact_template.tpl"}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div class="directory-end" ></div>
|
<div class="directory-end" ></div>
|
||||||
|
|
Loading…
Reference in a new issue