Page 1 of 1

CSS-only themes and image locations

Posted: Mon Jan 10, 2011 4:36 am
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

Re: CSS-only themes and image locations

Posted: Mon Jan 10, 2011 7:22 am
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

Re: CSS-only themes and image locations

Posted: Mon Jan 10, 2011 4:03 pm
by LazyBadger
yellowled wrote:This is true for CSS files as well as images.
Couldn't imagine this for images, grok now. Tnx