aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
blob: 8e31144a9230edd31659fc27e321db587b0511d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php


function directory_content(&$a) {


	$tpl .= file_get_contents('view/directory_header');

	$o .= replace_macros($tpl);

	$r = q("SELECT * FROM `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).");
}