Remove previous and next buttons in displayimage if not required. Remove previous and next buttons in displayimage if not required.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Remove previous and next buttons in displayimage if not required.

Started by Nibbler, July 22, 2007, 02:34:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nibbler

If the picture is the first in an album do not display the back icon.
If the picture is the last in an album do not display the next icon.

See http://forum.coppermine-gallery.net/index.php?topic=45485.0 but do it properly.  ;)

Paver

For 1.5, I think it's better to implement this in themes.inc.php and each theme.php in $template_img_navbar and function theme_html_img_nav_menu.

I thought about using a blank image but then decided it looked better in my eyes to have an inactive-looking image instead (as a placeholder for what's there for other images).  I created a black & white version of next.png and prev.png since that was simplest to create next_inactive.png and prev_inactive.png (all in images/navbar/).  These could be replaced with blank images or better disabled-looking images if desired.

There was a $lang_text_dir check & tag that was not used so I implemented by how I assumed it was meant to be.  I tried to work through in my head how a right-to-left reader would want to see the nav buttons and links, but I couldn't figure it out, to my embarrassment.  The non-implemented code looked like the intent was to merely swap the images so that's what I did.  If that's wrong, we'll have to fix it.

Committed the inactive images and code to 1.5 for themes.inc.php and sample/theme.php.

Need to create inactive images and add code for the rest of the themes in 1.5.