diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-20 21:20:30 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-20 21:20:30 +0000 |
commit | e5b3b8b9bdd999c1e4c1ac583417340eacb72269 (patch) | |
tree | db74463054925edf0aea31e9f55a97bfc7d8beba /views/default/widgets | |
parent | a8176a4e82e5c66b3557ea9d96ac563e4e030e3f (diff) | |
download | elgg-e5b3b8b9bdd999c1e4c1ac583417340eacb72269.tar.gz elgg-e5b3b8b9bdd999c1e4c1ac583417340eacb72269.tar.bz2 |
updated widget for Elgg 1.5
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/album_view/view.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/views/default/widgets/album_view/view.php b/views/default/widgets/album_view/view.php index 347332971..d56e0c3fc 100644 --- a/views/default/widgets/album_view/view.php +++ b/views/default/widgets/album_view/view.php @@ -1,3 +1,4 @@ +<div class="contentWrapper"> <?php //the number of files to display $number = (int) $vars['entity']->num_display; @@ -9,7 +10,7 @@ $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false); if ($owner_albums) { - echo '<div id="album_widget_container">'; + echo '<div id="album_widget_container">'; foreach($owner_albums as $album){ @@ -40,14 +41,12 @@ } else { - echo '<p class="pages_add_title">'.elgg_echo("album:none").'</p>'; + echo '<p class="pages_add_title">' . elgg_echo("album:none") . '</p>'; - //check if owner has write rights. If so, let him edit the album - $container_guid = get_input('container_guid', $_SESSION['user']->getGUID()); - - if ($owner->username == get_entity($container_guid)->username){ + if (get_loggedin_userid() == page_owner()) { echo '<p class="pages_add"><a class="pages add" href='.$CONFIG->url .'pg/photos/new/'.$owner->username.'>'.elgg_echo("album:create").'</a></p>'; } } -?>
\ No newline at end of file +?> +</div>
\ No newline at end of file |