[pmwiki-users] redefine wikistyles in costum skin
Patrick R. Michaud
pmichaud at pobox.com
Fri Aug 18 12:40:32 CDT 2006
On Fri, Aug 18, 2006 at 04:58:31PM +0200, Michael Brenner wrote:
>
> Puh, solved it on my own. It seems to be a scope problem. Someone should
> mention such thing in the documentation.
Please feel free to add it wherever you think it would be most helpful! :-)
Pm
> ---skins.php declaration of SetSkin ---
> ...
> //function SetSkin($pagename, $skin) {
> // global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
> // $FarmPubDirUrl, $FarmD;
> function SetSkin($pagename, $skin) {
> global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
> $FarmPubDirUrl, $FarmD, $HTMLStylesFmt;
> ....
>
>
> Am Freitag, 18. August 2006 14:34 schrieb Michael Brenner:
> > Hello,
> >
> > I'd like to use costumized wikistyles in my pmwiki. Thus I picked out
> > following code from wikistyles.php and put it into myskin.php in
> > myskin-dir.
> >
> > --code--
> > SDV($HTMLStylesFmt['wikistyles'], "
> > .frame
> > { border:1px solid #ffeeaa; padding:5px; background-color: #fff7dd; }
> > .lfloat { float:left; margin-right:0.5em; }
> > .rfloat { float:right; margin-left:0.5em; }\n");
> > --endcode--
> >
> > A corious thing is, adding this code into config.php works. But this is not
> > a pretty solution, because I'd like to have printerfriendly Layout, too.
> >
> > calling order is:
> > config.php
> > myskin.php
> > wikistyles.php
> >
> > Thanks in advance - Brenner
> >
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list