[pmwiki-users] New skin: Lens
Patrick R. Michaud
pmichaud at pobox.com
Fri Sep 2 11:55:45 CDT 2005
On Tue, Aug 30, 2005 at 06:13:20PM -0400, Bronwyn Boltwood wrote:
> The skin-related variables and arrays aren't going to accept
> multi-level paths like lens/sample, are they?
I think they do accept multi-level paths. If they don't, I think
we could make it so that they do.
But potentially another way to do things is to add another variable:
$Skin = 'lens';
$Theme = 'sample';
and then the skin.php file can use the $Theme variable to decide
what subdirectory of lens/ to use to pick and choose things from.
(If $Theme isn't set, the skin.php could choose a default.)
Inside of a skin template, one can do things like
$SkinDirUrl/$Theme/whatever.css to get to theme-specific files for
It's just a thought. I'm not dead-set against having skins spread
themselves across multiple directories in pub/skins/, but I like
the idea of closely related things staying in one place. And
I can envision an admin trying something like
$Skin = 'lens-core';
and then wondering why things don't work as expected.
More information about the pmwiki-users