forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: pcfreak on October 30, 2003, 10:31:36 pm

Title: themes
Post by: pcfreak on October 30, 2003, 10:31:36 pm
can someone explain the structure of templates to create own theme ?
Title: Re: themes
Post by: Zarsky on October 30, 2003, 10:46:48 pm
Quote from: "pcfreak"
can someone explain the structure of templates to create own theme ?


Check this thread...damysterious exlpains very basically about half way down the thread:

http://forum.coppermine-gallery.net/viewtopic.php?p=3809&highlight=#3809
Title: Re: themes
Post by: pcfreak on October 30, 2003, 10:58:31 pm
Quote from: "zarsky99"
Quote from: "pcfreak"
can someone explain the structure of templates to create own theme ?


Check this thread...damysterious exlpains very basically about half way down the thread:

http://forum.coppermine-gallery.net/viewtopic.php?p=3809&highlight=#3809


yes, it is very basically  :lol:

iam search about explanations of theme.php

what i'm looking for is to  write a complete website in the same theme, so iam need explanation of the  basic structure of the parse system of coppermine.

somone have a example ? how do i create a welcome page ? using the templates of coppermine
Title: themes
Post by: rbl on October 31, 2003, 01:44:19 am
If you want to make static pages from the theme you are using, you should not mess with theme.php code. There's too much logic code in there and you only need the presentation one.

Just copy the outputed html and remove the excedent markup, i.e., open your gallery homepage, view source, copy html and paste in your html editor.
Title: themes
Post by: Tarique Sani on October 31, 2003, 03:39:21 am
All theme related functions are prefixed theme_  and template related functions are prefixed template_

that said - CPG template engine is not mature enough to be used as a general purpose templating system.
Title: themes
Post by: pcfreak on October 31, 2003, 08:52:31 pm
thanks, that is a usefull anser