dokuwiki-source-plugin – Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 2
Line 20... Line 20...
20 * - php.ini setting, allow_url_fopen 20 * - php.ini setting, allow_url_fopen
21 * - php.ini setting, open_basedir 21 * - php.ini setting, open_basedir
22 * - this plugin's location, allow & deny settings. 22 * - this plugin's location, allow & deny settings.
23 * 23 *
24 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 24 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
-   25 * @author Wizardry and Steamworks office@grimore.org
25 * @author Christopher Smith <chris@jalakai.co.uk> 26 * original: Christopher Smith <chris@jalakai.co.uk>
26 */ 27 */
27 if(!defined('DOKU_INC')) die(); // no Dokuwiki, no go 28 if(!defined('DOKU_INC')) die(); // no Dokuwiki, no go
Line 28... Line 29...
28   29  
29 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 30 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
Line 129... Line 130...
129 if ($ok && ($source = $this->_getSource($file,$start,$end))) { 130 if ($ok && ($source = $this->_getSource($file,$start,$end))) {
Line 130... Line 131...
130   131  
131 $title = ($title) ? "<span>".hsc($title)."</span>" 132 $title = ($title) ? "<span>".hsc($title)."</span>"
Line 132... Line 133...
132 : $this->_makeTitle($file, $start, $end); 133 : $this->_makeTitle($file, $start, $end);
133   134  
134 $renderer->doc .= "<div class='source'><p>$title</p>"; 135 $renderer->doc .= "<div class='source'><p class='title'>$title</p>";
135 $renderer->code($source, $lang); 136 $renderer->code($source, $lang);
136 $renderer->doc .= "</div>"; 137 $renderer->doc .= "</div>";
137 } else { 138 } else {