aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_photos/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/latest_photos/view.php')
-rw-r--r--views/default/widgets/latest_photos/view.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/widgets/latest_photos/view.php b/views/default/widgets/latest_photos/view.php
new file mode 100644
index 000000000..0c3193907
--- /dev/null
+++ b/views/default/widgets/latest_photos/view.php
@@ -0,0 +1,15 @@
+<div class="contentWrapper">
+<?php
+
+ //the number of files to display
+ $number = (int) $vars['entity']->num_display;
+ //if no number has been set, default to 6
+ if (!$number)
+ $number = 6;
+
+ echo '<div class="tidypics_widget_latest">';
+ echo tp_get_latest_photos($number, page_owner());
+ echo '</div>';
+
+?>
+</div> \ No newline at end of file