Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
friendica/mod/directory.php

24 lines
403 B

<?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).");
}