Hello!

This is the definition of the $Skin variable in the local/config.php file:
$Skin = 'myskin'

In one of myskin's template files, the following <!--function--> skin directive is used:
<!--function:myfunction -->

The myfunction function is defined in the myskin.php file of pub/skins/myskin

The myfunction function deals with some image files in the pub/skins/myskin directory. I run into trouble when trying to reference the myskin location in the myfunction function:

function myfunction() {
...
...
printf("<img src=\"%s/%s\"/>", $SkinDir, "myimage.png");
}

printf prints <img src="/myimage.png"/>
instead of <img src="path/to/myskin/myimage.png"/>

How should I reference the location of my skin inside of my function?

Thanks!!!

-i

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to