CSS-only themes and image locations

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

CSS-only themes and image locations

Post by LazyBadger »

Well, i know about CSS, and I know how it can be done,but...

I order to be concrete and precise:

Things in question
1. Themes brownpaper and tabacco_s9y_07
2. Calendar block with "back|forward arrows"

Problem in action

Code: Select all

img src="/templates/tabacco_s9y_07/img/back.png"
in tabacco theme

Code: Select all

img src="/templates/default/img/back.png"
in brownpaper theme

AFAIS, both themes use the same template plugin_calendar.tpl from default theme, there image location was defined this way

Code: Select all

img src="{serendipity_getFile file="img/back.png"}"
and I understand nothing at last
Quis custodiet ipsos custodes?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: CSS-only themes and image locations

Post by yellowled »

LazyBadger wrote:and I understand nothing at last
Well, /templates/default/ serves as a fallback template in S9y. Any file not present in your template's directory will be fetched from /templates/default/. This is true for CSS files as well as images. Apparently, tabacco_s9y_07 has a file called img/back.png while brownpaper doesn't.

YL
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

Re: CSS-only themes and image locations

Post by LazyBadger »

yellowled wrote:This is true for CSS files as well as images.
Couldn't imagine this for images, grok now. Tnx
Quis custodiet ipsos custodes?
Post Reply