[pmwiki-users] Getting rid of "get code" links when useing SourceBlock

Thomas -Balu- Walter list+pmwiki-users at b-a-l-u.de
Sun Sep 9 19:09:50 CDT 2007


On Sun, Sep 09, 2007 at 11:50:56AM +0200, Dominique Faure wrote:
> The only way to disable the "get code" link is to redefine the output
> layout from your local configuration file (before recipe inclusion).
> The original value is:
> 
> $SourceBlockFmt = "
> <div class='sourceblock'>
>   <div class='sourceblocktext'>\$txt</div>
>   <div class='sourceblocklink'>\$url</div>
> </div>";
> include_once("FarmD/cookbook/sourceblock.php");
> 
> You then only have to remove the "<div
> class='sourceblocklink'>\$url</div>" line.

May I suggest to add a parameter for that? Like -getcode? :-)

     Balu



More information about the pmwiki-users mailing list