friendica/mod/directory.php

28 lines
414 B
PHP
Raw Normal View History

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