diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-09 01:17:20 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-09 01:17:20 -0700 |
commit | 64bbf395f00434c77494f0a1629e4a0ef0ed2999 (patch) | |
tree | 203837b6bbc6fe148e74998a9b1857af1b45131d | |
parent | deaff556ff03d9f54d8834909a949bbab6d547ce (diff) | |
download | volse-hubzilla-64bbf395f00434c77494f0a1629e4a0ef0ed2999.tar.gz volse-hubzilla-64bbf395f00434c77494f0a1629e4a0ef0ed2999.tar.bz2 volse-hubzilla-64bbf395f00434c77494f0a1629e4a0ef0ed2999.zip |
directory stuff
-rw-r--r-- | mod/directory.php | 8 | ||||
-rw-r--r-- | view/directory_item.tpl | 14 |
2 files changed, 20 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index 8e31144a9..b105bf787 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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( + + + + )); } } diff --git a/view/directory_item.tpl b/view/directory_item.tpl new file mode 100644 index 000000000..295a66451 --- /dev/null +++ b/view/directory_item.tpl @@ -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>
\ No newline at end of file |