diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-21 17:22:31 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-21 17:22:31 +0000 |
commit | abbcdf538949aed8cc91f65bdf1c563506fc8614 (patch) | |
tree | 76927264c3cb4a15eb96f6cd728e0255032e02aa /views/default/object/album.php | |
parent | ac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259 (diff) | |
download | elgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.gz elgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.bz2 |
fixed view album - removed breadcrumbs for now
Diffstat (limited to 'views/default/object/album.php')
-rw-r--r-- | views/default/object/album.php | 56 |
1 files changed, 19 insertions, 37 deletions
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 ?> - <div id="pages_breadcrumbs"> -<?php - if (is_null(page_owner_entity()->username) || empty(page_owner_entity()->username)) { //when no owner available, link to world photos -?> - <a href="<?php echo $vars['url'] . 'pg/photos/world'; ?>"><?php echo elgg_echo("albums"); ?></a> > -<?php - } else { -?> - <a href="<?php echo $vars['url'] . 'pg/photos/owned/' . page_owner_entity()->username; ?>"><?php echo sprintf(elgg_echo("album:user"), page_owner_entity()->name); ?></a> > -<?php - } -?> - <?php echo $title; ?> - </div> - +<div class="contentWrapper"> <?php - echo '<div id="tidypics_title">'.$title.'</div>'; - echo '<div id="tidypics_desc">'.autop($desc).'</div>'; + echo '<div id="tidypics_desc">'.autop($desc).'</div>'; - 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 ?> <div id="tidypics_controls"> @@ -97,23 +78,23 @@ ?> </div> <?php - } + } - // display the simple image views. Uses: via 'object/image.php' - $count = get_entities("object","image", $file_guid, '', 999); + // display the simple image views. Uses: via 'object/image.php' + $count = get_entities("object","image", $file_guid, '', 999); - //build array for back | next links - $_SESSION['image_sort'] = array(); + //build array for back | next links + $_SESSION['image_sort'] = array(); - if(count($count) > 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'); + } ?> <div class="clearfloat"></div> @@ -128,5 +109,6 @@ echo elgg_view_comments($file); } -} + echo '</div>'; + } // end of individual album view ?> |