From 6913e7153000ff39f491accf06cf5817f7e6bfd3 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 19 Aug 2009 12:04:17 +0000 Subject: added a latest photos widget --- views/default/tidypics/css.php | 5 ++++ views/default/widgets/album_view/edit.php | 41 +++++++++++++++++-------------- views/default/widgets/latest/edit.php | 15 +++++++++++ views/default/widgets/latest/view.php | 15 +++++++++++ 4 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 views/default/widgets/latest/edit.php create mode 100644 views/default/widgets/latest/view.php (limited to 'views/default') diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index 84f6ee2d5..c3c202caf 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -113,6 +113,11 @@ text-align:center; color:#333333; } +.tidypics_widget_latest { +margin: 0 auto; +width: 208px; +} + /* --------- image upload/edit forms ------------ */ #tidpics_image_upload_list li { diff --git a/views/default/widgets/album_view/edit.php b/views/default/widgets/album_view/edit.php index 2d7c7708f..1fea6764a 100644 --- a/views/default/widgets/album_view/edit.php +++ b/views/default/widgets/album_view/edit.php @@ -1,21 +1,24 @@

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

\ No newline at end of file diff --git a/views/default/widgets/latest/edit.php b/views/default/widgets/latest/edit.php new file mode 100644 index 000000000..15a56af82 --- /dev/null +++ b/views/default/widgets/latest/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/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 @@ +
+num_display; + //if no number has been set, default to 6 + if (!$number) + $number = 6; + + echo '
'; + echo tp_get_latest_photos($number); + echo '
'; + +?> +
\ No newline at end of file -- cgit v1.2.3