]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
finalized next and back controls in image view
authorCash Costello <cash.costello@gmail.com>
Fri, 19 Jun 2009 11:27:07 +0000 (11:27 +0000)
committerCash Costello <cash.costello@gmail.com>
Fri, 19 Jun 2009 11:27:07 +0000 (11:27 +0000)
views/default/object/image.php
views/default/tidypics/css.php

index d7b791a7885bdab83f18b0233d4182b3340ce910..65319c1befbf2ea876484f44fb6251aaab904ac6 100644 (file)
@@ -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 . '"/>'; ?>
index 7564f1eaf3ff161d7596fb048dac600253798225..88f70bf7b8f001e813396264b5e9cd3232de3301 100644 (file)
@@ -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;