Page 1 of 1

ImageGallery top nav

Posted: Sun Mar 19, 2006 3:35 pm
by Greg
It would be great if the ImageGallery tag inculded navigation above the image as well as below, then you wouldn't have to scroll down with larger images to navigate.

Could the following code be added to the core module (function.ImageGallery.php) at line 114 please?

Code: Select all

// top nav
$output .= '<p class="bigPicNav">Image ' . ($_GET['img']+1) . ' of ' . sizeOf($liste) . '<br />' . "\n";
$output .= ($_GET['img'] == 0) ? "" : "<a href='" . $self . "&img=" . ($_GET['img']-1) ."'> < Previous</a> | ";
$output .= "<a href='" . $self . "'>Index</a>";
$output .= ($_GET['img'] == (sizeOf($liste)-1)) ? "" : " | <a href='" . $next . "'>Next > </a>";
$output .= '</p><br />' . "\n";

Re: ImageGallery top nav

Posted: Mon Mar 20, 2006 8:57 am
by Russ
Hi Greg, I think that is quite a good idea, obviously you can just add this yourself :-) for the moment, but the ImageGallery code wil no longer be a plugin but is to go in the core of CMS made simple, so I guess it is for Ted to add this?

Russ