|
From: Ben C. <php...@be...> - 2001-10-09 03:32:24
|
Yeah, you need to have your own images, and possibly css and javascript for some template customizations. You could add template_url to the list of template tokens set in include.php, and I think that would work just fine. I agree with the suggestion you made of putting those directories into the templates/THEME directory. We should write up some docs on creating new themes, I guess.
I've also been thinking about putting color schemes in a table in the database, then generating the css file with a php script. That way one set of css could be used for easily changing the color schemes used in a certain theme.
On Mon, Oct 08, 2001 at 09:53:07PM +0200, Javier Sixto wrote:
> Hello Ben,
>
> I was thinking about templates, and they have a problem (i thnik so :-)
> ) ... they don't manage dynamic css or images files.
> I have solve this problem on my own web-site, adding to templates
> directory some subdires :
> images , css and javascript ...
> each directory contain templates special files ....
>
> then i use a var like {template_url} at the begin of each file call in
> the template. for phpbt $template_url=INSTALLURL.'/'.THEME
> for example :
>
> actual : <link rel="StyleSheet" href="global.css" type="text/css">
>
> my feature :-) : <link rel="StyleSheet"
> href="{template_url}/css/global.css" type="text/css">
>
> templates tree :
>
> temp_name->css
> ->images
> ->javascript
>
>
> So template dir will contain all types non-PHP files.
>
> Ok -> Admin part can't work whith {template_url} ...
>
> What do you think about ?
>
>
|