From 64bbf395f00434c77494f0a1629e4a0ef0ed2999 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Fri, 9 Jul 2010 01:17:20 -0700 Subject: [PATCH] directory stuff --- mod/directory.php | 8 ++++++-- view/directory_item.tpl | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 view/directory_item.tpl diff --git a/mod/directory.php b/mod/directory.php index 8e31144a92..b105bf7876 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 0000000000..295a66451a --- /dev/null +++ b/view/directory_item.tpl @@ -0,0 +1,14 @@ + +
+
+
$alt-text +
+
+
+
+
$name
+
+
+
$details
+
+
\ No newline at end of file