[pmwiki-users] Skins and themes in PmWiki 1

John Rankin john.rankin at affinity.co.nz
Wed Apr 27 19:12:38 CDT 2005


On Thursday, 28 April 2005 10:40 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>I've done (:skin skinname:) before -- it generally goes
>something like:

Sorry, I should have been clearer -- this is for PmWiki 1; 
they aren't ready to move to 2 yet.

It isn't obvious to me how to do the equivalent operations
in version 1... I'll keep experimenting.
>
># Add a (:skin skinname:) markup
>Markup('skin', 'fulltext',
>  '/\\(:skin\\s+([-\\w]+)\\s*:\\)/e',
>  "PZZ(SetSkin(\$pagename,'$1'))");
>
>For a theme (assuming we're talking CSS), the easy thing to do is
>something like:
>
># Add a (:theme themename:) markup
>Markup('theme', 'fulltext',
>  '/\\(:theme\\s+([-\\w]+)\\s*:\\)/e',
>  "PZZ($HTMLHeadersFmt[] = 
>    '<link rel=\"stylesheet\" href=\"$SkinDirUrl/$1.css\"
>/>')");
>
>or something like that.
>
>Pm
>


-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list