diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-05-10 23:36:42 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-05-10 23:36:42 +0000 |
commit | 0911bafdcddddd2104e696e6fb44cd77247ade7b (patch) | |
tree | cc668805470738d0b4edde0b39778e297598d51c /mostrecentimages.php | |
parent | fe1cce6c8cbf2ee781619ff21b571518aa1a28e9 (diff) | |
download | elgg-0911bafdcddddd2104e696e6fb44cd77247ade7b.tar.gz elgg-0911bafdcddddd2104e696e6fb44cd77247ade7b.tar.bz2 |
adding in most viewed and recent images pages
Diffstat (limited to 'mostrecentimages.php')
-rw-r--r-- | mostrecentimages.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mostrecentimages.php b/mostrecentimages.php new file mode 100644 index 000000000..8cc4a1f51 --- /dev/null +++ b/mostrecentimages.php @@ -0,0 +1,20 @@ +<?php + + /** + * Tidypics full view of an image + * Given a GUID, this page will try and display any entity + * + */ + + // Load Elgg engine + include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); + + $max = 8; + $images = list_entities("object", "image", 0, $max, false, false, true); + + $title = "Most recent images"; + $area2 = elgg_view_title($title); + $area2 .= $images; + $body = elgg_view_layout('two_column_left_sidebar', '', $area2); + page_draw($title, $body); +?>
\ No newline at end of file |