add contents
This commit is contained in:
28
lib/plugins/nspages/printers/printerOneLine.php
Normal file
28
lib/plugins/nspages/printers/printerOneLine.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin nspages : Displays nicely a list of the pages of a namespace
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*/
|
||||
|
||||
if(!defined('DOKU_INC')) die();
|
||||
require_once 'printer.php';
|
||||
|
||||
class nspages_printerOneLine extends nspages_printer {
|
||||
function __construct($plugin, $mode, $renderer, $data){
|
||||
parent::__construct($plugin, $mode, $renderer, $data);
|
||||
}
|
||||
|
||||
function _print($tab, $type) {
|
||||
$sep = '';
|
||||
foreach($tab as $item) {
|
||||
$this->renderer->cdata($sep);
|
||||
$this->_printElementLink($item);
|
||||
$sep = ', ';
|
||||
}
|
||||
}
|
||||
|
||||
function printTransition(){
|
||||
$this->renderer->cdata(', ');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user