[pmwiki-users] Skin css and HtmlStylesFmt

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 28 12:20:42 CST 2006


On Tue, Feb 28, 2006 at 02:20:34PM -0800, Carlos AB wrote:
> I have placed the css content inside $HtmlStylesFmt already, using this:
> 
> $HTMLStylesFmt= file_get_contents( $SkinDirUrl."/".$Skin.".css" )
> 
> Now I want it to show up at last inside the html output.
> 
> What I want is this:
> 
> <!--HeaderText-->
> PmWiki css content
> Skin css content
> 
> What I have now is:
> 
> <!--HeaderText-->
> PmWiki css
> Skin css
> More PmWiki css
> 
> Thanks for any suggestions.

Try using $HTMLHeaderFmt instead:

    $HTMLHeaderFmt[] = 
      "<link rel='stylesheet' href='\$SkinDirUrl/\$Skin.css'
         type='text/css' />";

Or, if you *really* want the contents of the stylesheet at that point,
then use:

    $HTMLHeaderFmt[] =
      "<style type='text/css'>" . file_get_contents(...) . "</style>";

Hope this helps,

Pm




More information about the pmwiki-users mailing list