From 69bbb4d1ca761998263c4aca5e65d6cc0fa7303b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Mon, 28 Sep 2009 22:10:29 +0000 Subject: latest was a horrible name for a widget - what was I thinking? - now I need to add an upgrade script --- views/default/widgets/latest_photos/edit.php | 15 +++++++++++++++ views/default/widgets/latest_photos/view.php | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 views/default/widgets/latest_photos/edit.php create mode 100644 views/default/widgets/latest_photos/view.php (limited to 'views/default/widgets/latest_photos') diff --git a/views/default/widgets/latest_photos/edit.php b/views/default/widgets/latest_photos/edit.php new file mode 100644 index 000000000..15a56af82 --- /dev/null +++ b/views/default/widgets/latest_photos/edit.php @@ -0,0 +1,15 @@ +

+num_display == '') $vars['entity']->num_display = 6; + +?> + +

\ No newline at end of file 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 @@ +
+num_display; + //if no number has been set, default to 6 + if (!$number) + $number = 6; + + echo '
'; + echo tp_get_latest_photos($number, page_owner()); + echo '
'; + +?> +
\ No newline at end of file -- cgit v1.2.3