aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-19 11:27:07 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-19 11:27:07 +0000
commite244c318e85b2fa1db141b7405964ff4108de63f (patch)
tree70f66e36088812ff12def6b751af347f288d7fef
parente9ca89769c050bc88a32151012b773ca9c8246f0 (diff)
downloadelgg-e244c318e85b2fa1db141b7405964ff4108de63f.tar.gz
elgg-e244c318e85b2fa1db141b7405964ff4108de63f.tar.bz2
finalized next and back controls in image view
-rw-r--r--views/default/object/image.php9
-rw-r--r--views/default/tidypics/css.php5
2 files changed, 11 insertions, 3 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index d7b791a78..65319c1be 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -157,10 +157,10 @@ if ($photo_tags) {
}
if ($current != 0)
- $back = '<a href="' .$vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current-1] . '#content_area_user_title">&#60;&#60;' . elgg_echo('image:back') . '</a>';
+ $back = '<a href="' .$vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current-1] . '">&#60;&#60;' . elgg_echo('image:back') . '</a>';
if (sizeof($_SESSION['image_sort']) > $current + 1)
- $next = '<a href="' . $vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current+1] . '#content_area_user_title">' . elgg_echo('image:next') . '&#62;&#62;</a>';
+ $next = '<a href="' . $vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current+1] . '">' . elgg_echo('image:next') . '&#62;&#62;</a>';
?>
@@ -184,7 +184,10 @@ if ($photo_tags) {
<?php echo autop($desc); ?>
</div>
<div id="tidypics_image_nav">
- <?php echo $back . "&nbsp;&nbsp;" . $next; ?>
+ <ul>
+ <li><?php echo $back; ?></li>
+ <li><?php echo $next; ?></li>
+ </ul>
</div>
<div id="tidypics_image_wrapper">
<?php echo '<img id="tidypics_image"' . ' src="' . $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $file_guid . '&size=large" alt="' . $title . '"/>'; ?>
diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php
index 7564f1eaf..88f70bf7b 100644
--- a/views/default/tidypics/css.php
+++ b/views/default/tidypics/css.php
@@ -78,6 +78,11 @@ text-align:center;
text-align:center;
}
+#tidypics_image_nav ul li {
+display:inline;
+margin-right:10px;
+}
+
#tidypics_image_full {
text-align:center;
margin:10px;