Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 559 Bytes
<?php
$app->get("/", function() use($app){
echo $app->render('landing', array(
'editable' => false // librarian functions
, 'clipart_list' => $app->popular_clipart()
, 'new_clipart' => $app->new_clipart()
, 'user' => $app->user()
, 'news' => $app->get_news(null, 4)
, 'top_artists' => $app->top_artists()
, 'tags' => array_map(function($tag) {
return array(
'name' => $tag['name']
, 'size' => $tag['downloads']
);
}, $app->tags_by_downloads())
));
});
?>