directory stuff
This commit is contained in:
parent
deaff556ff
commit
64bbf395f0
|
@ -11,11 +11,15 @@ function directory_content(&$a) {
|
|||
$r = q("SELECT * FROM `profile` WHERE `default` = 1 AND `publish` = 1");
|
||||
if(count($r)) {
|
||||
|
||||
$tpl = file_get_contents('view/directory_item');
|
||||
$tpl = file_get_contents('view/directory_item.tpl');
|
||||
|
||||
foreach($r as $rr) {
|
||||
|
||||
$o .= directory_block($a,$rr,$tpl);
|
||||
$o .= expand_macros($tpl,array(
|
||||
|
||||
|
||||
|
||||
));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
<div class="directory-item" id="directory-item-$id" >
|
||||
<div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" >
|
||||
<div class="directory-photo" id="directory-photo-$id" ><a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" ><img src="$photo" alt="$alt-text" title="$alt-text" /></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="directory-photo-end"></div>
|
||||
<div class="directory-name-wrapper">
|
||||
<div class="directory-name" id="directory-name-$id">$name</div>
|
||||
</div>
|
||||
<div class="directory-name-end"></div>
|
||||
<div class="directory-details">$details</div>
|
||||
<div class="directory-item-end"></div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user