Split navigation elements in theme files only Split navigation elements in theme files only
 

News:

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

Main Menu

Split navigation elements in theme files only

Started by pnear, January 07, 2005, 05:10:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pnear

I'm creating a new theme, using hardwired as the base.

I have a need to split up some of the navigation elements.  I would like "Last Image" and "Next Image" above the image, and the ability to start a slideshow, send an ecard, and other elements below the image. 

Let's use slideshow as the example... 

I've moved the element "{SLIDESHOW_TGT}" from $template_img_navbar to $template_display_picture.  That doesn't work, as that element seems to be parsed in the core code as specific functions to the template.

I've examined "function theme_display_image" and it appears that I can change the order of template sections (ie I can move the entire navigation section below the image) but not split the navigation elements.

Can anyone think of a way to do this using only the theme package?  I'd like to be able to redistribute the theme, so changes to the core code are undesirable.

Background:  I'm picking up PHP as I go along, be gentle.  I'm wondering if I could copy some PHP code from displayimage.php to theme.php in order to parse the navigation elements there, but that's beyond my knowledge level right now.

Theme I'm trying to port:  http://binarybonsai.com/kubrick/
URL of my dev theme:  http://www.thenears.com/coppermine/index.php?theme=kubrick

Thanks,
Pete

nickmuldoon

Hey Pete,

I am looking for just such a theme for Coppermine. It looks as though you have done a fantastic job so far.

Unfortunately I cannot give you any pointers regarding the code but I would love it if you could send me a copy of the theme once it is complete.

My site is at http://noodlum.org/ and http://noodlum.org/cpg and with the Kubric theme it would be complete.

Thanks Pete,
Nick

Joachim Müller

@pnear: if you decide to share your theme, zip it and attach it to your posting here on the board (using "Additional options" when composing the message), a moderator will move it accordingly.

Joachim

pnear

I'd be happy to send it along for redistribution GauGau.  Might post it up in "beta" format first to see if anyone wants to help clean it up.  The code looks very much like a hack at this point.