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

Dominique Faure dominique.faure at gmail.com
Mon Sep 10 03:24:46 CDT 2007


On 9/10/07, Thomas -Balu- Walter <list+pmwiki-users at b-a-l-u.de> wrote:
> 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? :-)
>

I just updated the recipe to handle this. Feel free to have a try.

BTW Patrick, could you please update the Cookbook script at pmwiki.org?
Thanks.

-- 
Dominique



More information about the pmwiki-users mailing list