2010-07-03 01:37:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
function directory_content(&$a) {
|
|
|
|
|
|
|
|
|
|
|
|
$tpl .= file_get_contents('view/directory_header');
|
|
|
|
|
|
|
|
$o .= replace_macros($tpl);
|
|
|
|
|
2010-07-09 07:05:21 +00:00
|
|
|
$r = q("SELECT * FROM `profile` WHERE `default` = 1 AND `publish` = 1");
|
2010-07-03 01:37:43 +00:00
|
|
|
if(count($r)) {
|
|
|
|
|
2010-07-09 08:17:20 +00:00
|
|
|
$tpl = file_get_contents('view/directory_item.tpl');
|
2010-07-03 01:37:43 +00:00
|
|
|
|
|
|
|
foreach($r as $rr) {
|
|
|
|
|
2010-07-09 08:17:20 +00:00
|
|
|
$o .= expand_macros($tpl,array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
));
|
2010-07-03 01:37:43 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
notice("No entries (some entries may be hidden).");
|
|
|
|
}
|