[pmwiki-users] Can't use $SkinDirUrl in $HTMLStylesFmt[] ?
Oliver Betz
list_ob at gmx.net
Fri Jun 24 05:26:39 CDT 2011
Petko Yotov wrote:
>> is it correct that $SkinDirUrl isn't set early enough to be used in in
>> $HTMLStylesFmt[]?
>
>Yes, but you can escape the $ with \$ inside double quotes:
so it evaluates later?
> $HTMLStylesFmt['my-menu'] = "<link rel='stylesheet'
> href='\$SkinDirUrl/menu.css' type='text/css' />";
>
>Inside single quotes, no need to use \$.
Thanks for the clarification. Being rather PHP-ignorant, I thought
that the type of the inner quotes is relevant.
Oliver
More information about the pmwiki-users
mailing list