/** * Initialize the rendering */ function document_start() { global $ID; global $conf; global $lang; // call the parent parent::document_start(); // store the content type headers in metadata $headers = array( 'Content-Type' => 'text/html; charset=utf-8' ); $theme = isset($_GET['theme'])?$_GET['theme']:$this->getConf('theme'); p_set_metadata($ID,array('format' => array('revealjs' => $headers) )); $this->base = DOKU_BASE.'lib/plugins/revealjs/'; $this->doc = ' <!DOCTYPE html> <html lang="'.$conf['lang'].'" dir="'.$lang['direction'].'"> <head> <meta charset="utf-8"> <title>'.tpl_pagetitle($ID, true).'</title> <meta name="description" content="A framework for easily creating beautiful presentations using HTML"> <meta name="author" content="Hakim El Hattab"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> <link rel="stylesheet" href="'.$this->base.'css/reveal.css"> <link rel="stylesheet" href="'.$this->base.'css/theme/'.$theme.'.css" id="theme"> <link rel="stylesheet" href="'.$this->base.'doku-substitutes.css"> <!-- Code syntax highlighting --> <link rel="stylesheet" href="'.$this->base.'lib/css/zenburn.css"> <!-- Printing and PDF exports --> <script> var link = document.createElement( \'link\' ); link.rel = \'stylesheet\'; link.type = \'text/css\'; link.href = window.location.search.match( /print-pdf/gi ) ? \''.$this->base.'css/print/pdf.css\' : \''.$this->base.'css/print/paper.css\'; document.getElementsByTagName( \'head\' )[0].appendChild( link ); </script> <!--[if lt IE 9]> <script src='.$this->base.'"lib/js/html5shiv.js"></script> <![endif]--> </head> <body> <div class="reveal"> <!-- Any section element inside of this container is displayed as a slide --> <div class="slides"> '; }
public function document_start() { global $ID; parent::document_start(); //ancher for rewritten links to included pages $check = false; $pid = sectionID($ID, $check); $this->doc .= "<a name=\"{$pid}__\">"; $this->doc .= "</a>"; }
/** * Initialize the rendering */ function document_start() { global $ID; // call the parent parent::document_start(); // store the content type headers in metadata $headers = array('Content-Type' => 'text/html; charset=utf-8'); p_set_metadata($ID, array('format' => array('s5' => $headers))); $this->base = DOKU_BASE . 'lib/plugins/s5/ui/'; $this->tpl = $this->getConf('template'); }
function document_start() { global $TOC, $ID, $INFO; parent::document_start(); // Cheating in again $newMeta = p_get_metadata($ID, 'description tableofcontents', false); // 2010-10-23 This should be save to use if (!empty($newMeta) && count($newMeta) > 1) { // $TOC = $this->toc = $newMeta; // 2010-08-23 doubled the TOC $TOC = $newMeta; } }
/** * Initialize the rendering */ function document_start() { global $ID; // call the parent parent::document_start(); // store the content type headers in metadata $headers = array('Content-Type' => 'text/html; charset=utf-8'); p_set_metadata($ID, array('format' => array('s5reloaded' => $headers))); $this->base = DOKU_MEDIA . 'lib/plugins/s5reloaded/ui/'; /* $this->tpl = $this->getConf('template'); */ $this->tpl = isset($_GET['s5theme']) ? $_GET['s5theme'] : $this->getConf('template'); }
/** * Initialize the rendering */ function document_start() { global $ID; // call the parent parent::document_start(); // store the content type headers in metadata $headers = array('Content-Type' => 'text/html; charset=utf-8'); p_set_metadata($ID, array('format' => array('s5' => $headers))); $this->base = DOKU_BASE . 'lib/plugins/s5/ui/'; $this->tpl = isset($_GET['s5theme']) ? $_GET['s5theme'] : $this->getConf('template'); $this->tpl = preg_replace('/[^a-z0-9_-]+/', '', $this->tpl); // clean user provided path }