* @author Clarence Lee * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ header('X-UA-Compatible: IE=edge,chrome=1'); $hasSidebar = page_findnearest($conf['sidebar']); $showSidebar = $hasSidebar && ($ACT=='show'); $TITLE = tpl_pagetitle(null, true); $SEARCH = array( "method" => "get", "action" => "/start", "placeholder" => "Search", "name" => "id", "hidden" => array(array("name" => "do", "value" => "search")), ); if (empty($_SERVER['REMOTE_USER'])) { $LINKS = array( array("href" => "?do=login", "text" => "Login",), array("href" => "?do=register", "text" => "Register", ), ); } else { $name = hsc($INFO['userinfo']['name']).' ('.hsc($_SERVER['REMOTE_USER']). ')'; $LINKS = array( array("href" => "?do=edit", "text" => "Edit this page",), array("href" => "?do=admin", "text" => "Admin",), array("href" => "?do=logout", "text" => "Logout",), array("href" => "?do=profile", "text" => $name,), ); } ob_start(); tpl_metaheaders(); $HEAD_RAND = ob_get_contents(); ob_end_clean(); $CSS = array("/styles/wiki.css"); $HEAD_RAND = <<< EXTRA EXTRA; include __DIR__ . "/../../../shared/templates/header.inc"; ?>


    'main', 'items' => array( 'edit' => tpl_action('edit', 1, 'li', 1, '', ''), 'revert' => tpl_action('revert', 1, 'li', 1, '', ''), 'revisions' => tpl_action('revisions', 1, 'li', 1, '', ''), 'backlink' => tpl_action('backlink', 1, 'li', 1, '', ''), 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '', ''), 'top' => tpl_action('top', 1, 'li', 1, '', '') ) ); // the page tools can be amended through a custom plugin hook $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data); if($evt->advise_before()){ foreach($evt->data['items'] as $k => $html) echo $html; } $evt->advise_after(); unset($data); unset($evt); ?>