aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-02 18:37:43 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-02 18:37:43 -0700
commit9bd8ee1aae6387251c3ff3500d1020cccb919a99 (patch)
tree3125efa3e9467666e413e00585e2e17ae652d857 /mod/directory.php
parent0ecfe292b0a50a23420e31e7a00ab28bbc4958d9 (diff)
downloadvolse-hubzilla-9bd8ee1aae6387251c3ff3500d1020cccb919a99.tar.gz
volse-hubzilla-9bd8ee1aae6387251c3ff3500d1020cccb919a99.tar.bz2
volse-hubzilla-9bd8ee1aae6387251c3ff3500d1020cccb919a99.zip
more work on contact page and added new site directory
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
new file mode 100644
index 000000000..94a826e23
--- /dev/null
+++ b/mod/directory.php
@@ -0,0 +1,24 @@
+<?php
+
+
+function directory_content(&$a) {
+
+
+ $tpl .= file_get_contents('view/directory_header');
+
+ $o .= replace_macros($tpl);
+
+ $r = q("SELECT * FORM `profile` WHERE `default` = 1 AND `publish` = 1");
+ if(count($r)) {
+
+ $tpl = file_get_contents('view/directory_item);
+
+ foreach($r as $rr) {
+
+ $o .= directory_block($a,$rr,$tpl);
+
+ }
+ }
+ else
+ notice("No entries (some entries may be hidden).");
+} \ No newline at end of file