aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_photos/content.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/latest_photos/content.php')
-rw-r--r--views/default/widgets/latest_photos/content.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/widgets/latest_photos/content.php b/views/default/widgets/latest_photos/content.php
new file mode 100644
index 000000000..ecd72aec4
--- /dev/null
+++ b/views/default/widgets/latest_photos/content.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Display the latest photos uploaded by an individual
+ */
+
+echo elgg_list_entities(array(
+ 'type' => 'object',
+ 'subtype' => 'image',
+ 'limit' => $vars['entity']->num_display,
+ 'owner_guid' => elgg_get_page_owner_guid(),
+ 'full_view' => false,
+ 'list_type' => 'gallery',
+ 'list_type_toggle' => false,
+ 'gallery_class' => 'tidypics-gallery-widget',
+));