aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest/view.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-19 12:04:17 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-19 12:04:17 +0000
commit6913e7153000ff39f491accf06cf5817f7e6bfd3 (patch)
tree211a324c97d0931363a8f886f495e15dc780ae4c /views/default/widgets/latest/view.php
parentfb8c5cb4681f88d25e4a4eb0cc0d7b31216248f7 (diff)
downloadelgg-6913e7153000ff39f491accf06cf5817f7e6bfd3.tar.gz
elgg-6913e7153000ff39f491accf06cf5817f7e6bfd3.tar.bz2
added a latest photos widget
Diffstat (limited to 'views/default/widgets/latest/view.php')
-rw-r--r--views/default/widgets/latest/view.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/widgets/latest/view.php b/views/default/widgets/latest/view.php
new file mode 100644
index 000000000..6d65e9dc1
--- /dev/null
+++ b/views/default/widgets/latest/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);
+ echo '</div>';
+
+?>
+</div> \ No newline at end of file