From abbcdf538949aed8cc91f65bdf1c563506fc8614 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 21 Mar 2009 17:22:31 +0000 Subject: fixed view album - removed breadcrumbs for now --- views/default/object/album.php | 56 ++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 37 deletions(-) (limited to 'views/default/object') diff --git a/views/default/object/album.php b/views/default/object/album.php index 464806ca1..a1b238812 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -13,7 +13,7 @@ $owner = $vars['entity']->getOwnerEntity(); $friendlytime = friendly_time($vars['entity']->time_created); $mime = $file->mimetype; - + if (get_context() == "search") { if (get_input('search_viewtype') == "gallery") { @@ -59,30 +59,11 @@ } else { // individual album view ?> -
-username) || empty(page_owner_entity()->username)) { //when no owner available, link to world photos -?> -  >  - - name); ?> >  - - -
- +
'.$title.'
'; - echo '
'.autop($desc).'
'; + echo '
'.autop($desc).'
'; - if ($file->canEdit()) { // add edits - // specific to my theme only - //add_submenu_item(elgg_echo('album:addpix'), $vars['url'] . "pg/photos/upload/". $file_guid , '', 'jade'); - //add_submenu_item(elgg_echo('album:edit'), $vars['url'] . "mod/tidypics/edit.php?file_guid=". $file_guid , '', 'jade'); - //add_submenu_item(elgg_echo('album:delete'), $vars['url'] . "action/tidypics/delete?file=". $file_guid , '', 'jade'); + if ($file->canEdit()) { // add controls ?>
@@ -97,23 +78,23 @@ ?>
0) { - foreach($count as $image){ - array_push($_SESSION['image_sort'], $image->guid); - } + if(count($count) > 0) { + foreach($count as $image){ + array_push($_SESSION['image_sort'], $image->guid); + } - echo list_entities("object","image", $file_guid, 24, false); - } else { - echo elgg_echo('image:none'); - } + echo list_entities("object","image", $file_guid, 24, false); + } else { + echo elgg_echo('image:none'); + } ?>
@@ -128,5 +109,6 @@ echo elgg_view_comments($file); } -} + echo ''; + } // end of individual album view ?> -- cgit v1.2.3