forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: pnear on January 07, 2005, 05:10:35 pm

Title: Split navigation elements in theme files only
Post by: pnear on January 07, 2005, 05:10:35 pm
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
Title: Re: Split navigation elements in theme files only
Post by: nickmuldoon on January 08, 2005, 09:38:44 am
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
Title: Re: Split navigation elements in theme files only
Post by: Joachim Müller on January 08, 2005, 01:15:44 pm
@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
Title: Re: Split navigation elements in theme files only
Post by: pnear on January 09, 2005, 03:39:57 pm
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.