Re: [phpwiki-checkins] SF.net SVN: phpwiki:[6423] trunk/lib/CachedMarkup.php

Reini Urban <[email protected]> Wed, 21 Jan 2009 12:50:42 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
2009/1/21  <[email protected]>:
> Revision: 6423
>          http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6423&view=rev
> Author:   vargenau
> Date:     2009-01-21 09:18:16 +0000 (Wed, 21 Jan 2009)
>
> Log Message:
> -----------
> No div around plugin invocation

Why?
This was a lot of work to get it right.

We needed it for some CSS tricks as far as I remember.

> Modified Paths:
> --------------
>    trunk/lib/CachedMarkup.php
>
> Modified: trunk/lib/CachedMarkup.php
> ===================================================================
> --- trunk/lib/CachedMarkup.php  2009-01-20 14:30:22 UTC (rev 6422)
> +++ trunk/lib/CachedMarkup.php  2009-01-21 09:18:16 UTC (rev 6423)
> @@ -767,35 +767,14 @@
>
>     function expand($basepage, &$markup) {
>         $loader = $this->_getLoader();
> -
>         $xml = $loader->expandPI($this->_pi, $GLOBALS['request'], $markup, $basepage);
> -        $div = HTML::div(array('class' => 'plugin'));
> -        if (isset($this->name))
> -            $id = GenerateId($this->name . 'Plugin');
> -
> -       if (isset($this->_tightenable)) {
> -           if ($this->_tightenable == 3) {
> -                // We need a div here, it might contain a table
> -                $span = HTML::div(array('class' => 'plugin'), $xml);
> -                if (!empty($id))
> -                    $span->setAttr('id', $id);
> -               return $span;
> -            }
> -           $div->setInClass('tightenable');
> -           $div->setInClass('top', ($this->_tightenable & 1) != 0);
> -           $div->setInClass('bottom', ($this->_tightenable & 2) != 0);
> -       }
> -        if (!empty($id))
> -            $div->setAttr('id', $id);
> -       $div->pushContent($xml);
> -       return $div;
> +        return $xml;
>     }
>
>     function asString() {
>         return $this->_pi;
>     }
>
> -
>     function getWikiPageLinks($basepage) {
>         $loader = $this->_getLoader();
>
>
>
> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> phpwiki-checkins mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/phpwiki-checkins
>



-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword