From f52d481c6ae6c790db4dde27044ea401d0b2b713 Mon Sep 17 00:00:00 2001
From: dkotrada
Date: Thu, 23 Apr 2009 17:43:48 +0000
Subject: now when you click on Back and Next link image appears alway on top.
---
views/default/object/image.php | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
(limited to 'views/default')
diff --git a/views/default/object/image.php b/views/default/object/image.php
index ec87aa248..3bbee049d 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -4,7 +4,7 @@
* Tidypics image object views
*/
- global $CONFIG;
+ global $CONFIG;
$file = $vars['entity'];
$file_guid = $file->getGUID();
$tags = $file->tags;
@@ -36,7 +36,7 @@ if ($photo_tags) {
}
$photo_tags_json .= '{' . $photo_tag->coords . ',"text":"' . $phototag_text . '","id":"' . $p->id . '"},';
-
+
$photo_tag_links[] = array($p->id, $phototag_text); // gave up on associative array for now
}
$photo_tags_json = rtrim($photo_tags_json,',');
@@ -44,9 +44,9 @@ if ($photo_tags) {
}
if (get_context() == "search") { //if this is the search view
-
+
if (get_input('search_viewtype') == "gallery") {
- ?>
+ ?>
@@ -59,17 +59,17 @@ if ($photo_tags) {
$numcomments = elgg_count_comments($file);
if ($numcomments)
$info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")";
- $info .= "
";
+ $info .= "";
$icon = "getURL()}\">" . elgg_view("tidypics/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . "";
-
+
echo elgg_view_listing($icon, $info);
}
} else {
- if (!$vars['full']) {
+ if (!$vars['full']) {
//simple gallery view
-?>
+?>
@@ -101,15 +101,15 @@ if ($photo_tags) {
foreach ($count as $image) {
array_push($_SESSION['image_sort'], $image->guid);
}
-
+
$current = array_search($file_guid, $_SESSION['image_sort']);
}
if ($current != 0)
- $back = '<<' . elgg_echo('image:back') . '';
+ $back = '<<' . elgg_echo('image:back') . '';
if (sizeof($_SESSION['image_sort']) > $current + 1)
- $next = '' . elgg_echo('image:next') . '>>';
+ $next = '' . elgg_echo('image:next') . '>>';
?>
@@ -117,7 +117,7 @@ if ($photo_tags) {
-
+
@@ -152,11 +152,11 @@ if ($photo_tags) {
$tags));?>
- echo elgg_echo('image:by');?>
name; ?> name; ?>
-{$friend->name}";
+ $content .= "{$friend->name}";
}
}
- $content .= "";
+ $content .= "";
$content .= "";
--
cgit v1.2.3