[pmwiki-users] New skin: Lens
Christian Schlatter
ch at schlatter.net
Fri Sep 2 12:31:15 CDT 2005
Patrick R. Michaud wrote:
> ...
> 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
> the skin.
The Gallery2 developer team just decided to get rid of the distinction
between skin and theme since it mainly introduced a lot of confusion.
They also divided the css files into theme specific (fonts, colors, etc)
and template specific (placement, widths, etc) ones. At the end, the
whole templating/theming system got too complex.
IMHO, it would be "dangerous" to introduce even a $Theme variable only.
-ChristianS
More information about the pmwiki-users
mailing list