From 10bec18dce2a29fb2947888547756438d0972cb7 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 28 Mar 2009 18:14:57 +0000 Subject: condensed group "widget" and profile widget to one view --- views/default/widgets/album_view/view.php | 43 ++----------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) (limited to 'views/default/widgets/album_view/view.php') diff --git a/views/default/widgets/album_view/view.php b/views/default/widgets/album_view/view.php index b8b206b22..b4248df35 100644 --- a/views/default/widgets/album_view/view.php +++ b/views/default/widgets/album_view/view.php @@ -1,52 +1,13 @@
num_display; //if no number has been set, default to 5 if (!$number) $number = 5; - - $owner = page_owner_entity(); - $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false); - if ($owner_albums) { - echo '
'; - - foreach($owner_albums as $album){ - - //get album cover if one was set - if($album->cover) - $album_cover = '' . $album->title . ''; - else - $album_cover = '' . $album->title . ''; - ?> -
- -
time_created);?>
- getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; - ?> - -
- username; - echo "" . elgg_echo('album:more') . ""; - echo "
"; - - } else { - - echo '

' . elgg_echo("album:none") . '

'; + echo elgg_view('tidypics/albums', array('num_albums' => $number)); - if (get_loggedin_userid() == page_owner()) { - echo '

username.'>'.elgg_echo("album:create").'

'; - } - - } ?>
\ No newline at end of file -- cgit v1.2.3