* @author Andreas Gohr */ // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); // we inherit from the XHTML renderer instead directly of the base renderer require_once DOKU_INC.'inc/parser/xhtml.php'; class renderer_plugin_impressjs extends Doku_Renderer_xhtml { private $data_x = 0; private $data_y = 0; private $data_z = 0; private $tpl; private $base; public function document_start(){ global $conf; global $ID; $this->base = DOKU_BASE.'lib/plugins/impressjs/tpl/'; $this->tpl = $this->getConf('template'); $this->doc .= ' '.tpl_pagetitle($ID, true).'
'; } public function document_end(){ $this->doc .= '
'; } public function section_close() { $this->doc .= ""; parent::section_close(); } public function header($text, $level, $pos) { global $lang; $this->data_x += $this->getConf('data-x'); $this->data_y += $this->getConf('data-y'); $this->data_z += $this->getConf('data-z'); $this->doc .= "
doc .= "data-x='$this->data_x' data-y='$this->data_y' data-z='$this->data_z' "; $this->doc .= "dir='".$lang['direction']."' >"; $this->doc .= "$text"; } }