2012-05-16 07:31:36 +02:00
|
|
|
<?php
|
|
|
|
|
2015-02-08 18:25:21 +01:00
|
|
|
use Friendica\Directory\Rendering\View;
|
|
|
|
use Friendica\Directory\Helper\Profile as ProfileHelper;
|
2012-05-16 07:31:36 +02:00
|
|
|
|
2015-02-08 18:25:21 +01:00
|
|
|
if(! function_exists('home_content')) {
|
|
|
|
function home_content(&$a) {
|
|
|
|
|
|
|
|
$profiles = q("SELECT * FROM profile WHERE comm=1 AND LENGTH(pdesc)>0 ORDER BY RAND() LIMIT 3");
|
|
|
|
|
|
|
|
$view = new View('homepage', 'minimal');
|
|
|
|
$view->addHelper('photoUrl', ProfileHelper::get('photoUrl'));
|
|
|
|
$view->output(array(
|
|
|
|
'profiles' => $profiles
|
|
|
|
));
|
|
|
|
|
2012-05-16 07:31:36 +02:00
|
|
|
}}
|