Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Remove previous and next buttons in displayimage if not required.  (Read 14765 times)

0 Members and 1 Guest are viewing this topic.

Nibbler

  • Guest

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.  ;)
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Remove previous and next buttons in displayimage if not required.
« Reply #1 on: December 15, 2008, 02:54:06 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.