aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/mostrecentimages.php
blob: 5332d8e9ec15464e15fae63950bfbd379dd25d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

	/**
	 * Most recently uploaded images
	 * 
	 */

	// Load Elgg engine
	include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php";

	// how many do we display
	$max = 12;
	
	// grab the html to display the images
	$images = list_entities("object", "image", 0, $max, false, false, true);
	
	$title = elgg_echo('tidypics:mostrecent');
	
	// this view takes care of the title on the main column and the content wrapper
	$area2 = elgg_view('tidypics/content_wrapper', array('title' => $title, 'content' => $images,));
	
	$body = elgg_view_layout('two_column_left_sidebar', '', $area2);
	
	page_draw($title, $body);
?>