From 26be16aaf2189a4b50b06494aab6c6690480a371 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 21 Mar 2009 17:53:07 +0000 Subject: finished updating display of single image --- views/default/object/image.php | 97 ++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 56 deletions(-) (limited to 'views') diff --git a/views/default/object/image.php b/views/default/object/image.php index 063ad09cb..97095822e 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -1,10 +1,7 @@ mimetype; -if (get_context() == "search") { //if this is the search view - + if (get_context() == "search") { //if this is the search view if (get_input('search_viewtype') == "gallery") { ?> @@ -40,73 +36,60 @@ if (get_context() == "search") { //if this is the search view echo elgg_view_listing($icon, $info); } -} -else { //tidypics image display + } else { + //tidypics image display - if (!$vars['full']) { //simple gallery view + if (!$vars['full']) { //simple gallery view ?>
thumbnail
container_guid); + echo '
'; + + $album = get_entity($file->container_guid); - //compile back | next links - $current = array_search($file_guid, $_SESSION['image_sort']); + //compile back | next links + $current = array_search($file_guid, $_SESSION['image_sort']); - if(!$current){ // means we are no longer using the correct album array + if (!$current) { // means we are no longer using the correct album array - //rebuild the array -> - $count = get_entities("object","image", $album->guid, '', 999); - $_SESSION['image_sort'] = array(); + //rebuild the array -> + $count = get_entities("object","image", $album->guid, '', 999); + $_SESSION['image_sort'] = array(); - foreach($count as $image){ - array_push($_SESSION['image_sort'], $image->guid); - } + foreach($count as $image){ + array_push($_SESSION['image_sort'], $image->guid); + } - $current = array_search($file_guid, $_SESSION['image_sort']); - } + $current = array_search($file_guid, $_SESSION['image_sort']); + } - if(!$current == 0) - $back = '<<' . elgg_echo('image:back') . '  '; + if (!$current == 0) + $back = '<<' . elgg_echo('image:back') . '  '; - if(array_key_exists(($current+1), $_SESSION['image_sort'])) - $next = '  ' . elgg_echo('image:next') . '>>'; + if (array_key_exists(($current+1), $_SESSION['image_sort'])) + $next = '  ' . elgg_echo('image:next') . '>>'; ?> -
-username) || empty(page_owner_entity()->username)) { //when no owner available, link to world photos -?> -  >  - - name); ?> >  - - title; ?> >  - -
+ ' . $title . '
'; - echo '
' . autop($desc) . '
'; - echo '
'; - echo '
' . $back . $next . '
'; - if($next) echo ''; - echo '' . $title . ''; - if($next) echo ''; - echo '
'; + echo '
' . autop($desc) . '
'; + echo '
'; + echo '
' . $back . $next . '
'; + if ($next) echo ''; + echo '' . $title . ''; + if ($next) echo ''; + echo '
'; ?>
  canEdit()) { // add edit controls + if ($file->canEdit()) { // add edit controls ?>   elgg_echo("image:delete"), 'confirm' => elgg_echo("image:delete:confirm"), )); - } + } ?>
@@ -123,8 +106,10 @@ else { //tidypics image display name; ?>
'; + } -} + } // end of tidypics image display ?> \ No newline at end of file -- cgit v1.2.3