* @author klaus Vormweg * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * * @var string $ID * @var string $ACT * @var array $conf * @var array $lang */ if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ header('X-UA-Compatible: IE=edge'); $versionarr = getVersionData(); $version = substr($versionarr['date'], 0, 10); $showSidebar = FALSE; if ($ID != $conf['sidebar']): $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); endif; echo ' '; tpl_pagetitle(); echo ' [', strip_tags($conf['title']), '] ',"\n"; tpl_metaheaders(); echo ' ',"\n", _tpl_favicon(); tpl_includeFile('meta.html'); /* The following line added to support "Display Wiki Page for Dokuwiki" plulgin */ if (file_exists(DOKU_PLUGIN.'displaywikipage/code.php')) include_once(DOKU_PLUGIN.'displaywikipage/code.php'); echo ' ',"\n"; /* with these Conditional Comments you can better address IE issues in CSS files, precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ echo ' ',"\n"; /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ echo '
'; html_msgarea(); /* occasional error and info messages on top of the page */ /* Wrapper */ echo '
',"\n"; if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page(":wiki:headertext"); /* * Content */ echo "\n",' '; echo '
'; /* * HEADER BAR */ echo '
',"\n"; echo ' '/*,"\n"*/; /* enc breadcrumbs div */ if($ACT != 'denied'): echo '
'; /* commented out

', $lang['site_tools'], '

',"\n"; */ tpl_searchform(); echo '
',"\n"; endif; /* Page Name section removed */ echo '
',"\n"; echo '
'; tpl_includeFile('header.html'); echo '
',"\n"; tpl_flush(); /* flush the output buffer */ tpl_includeFile('pageheader.html'); echo '
',"\n"; tpl_content(); /* the main content */ echo '
',"\n"; tpl_flush(); tpl_includeFile('pagefooter.html'); echo '
',"\n"; if ($showSidebar): echo '
',"\n"; /************************* Start add logo script *************************/ echo '
'; /* how to insert logo: upload your logo into the data/media folder (root of the media manager) as 'logo.png' */ if(file_exists(DOKU_INC.'data/media/logo.png') and _tpl_media_isreadable('logo.png')): tpl_link(wl(),''.$conf['title'].'',' accesskey="h" title="[H]"'); else: tpl_link(wl(),''.$conf['title'].'',' accesskey="h" title="[H]"'); endif; /************************ end logo script **********************/ tpl_includeFile('sidebarheader.html'); tpl_include_page($conf['sidebar'], 1, 1); /* includes the nearest sidebar page */ tpl_includeFile('sidebarfooter.html'); echo '
',"\n"; endif; echo '

',"\n"; if ($ACT != 'denied'): echo '
',"\n"; if (isset($conf['useacl']) and $conf['useacl']): echo '

', $lang['user_tools'], '

    ',"\n"; echo (new \dokuwiki\Menu\UserMenu())->getListItems(); echo '
',"\n"; endif; if (auth_quickaclcheck($ID) > AUTH_READ): echo '

', $lang['page_tools'], '

    ',"\n"; echo (new \dokuwiki\Menu\PageMenu())->getListItems(); echo '

', $lang['site_tools'], '

',"\n"; echo '
    '; echo (new \dokuwiki\Menu\SiteMenu())->getListItems(); echo '
',"\n"; endif; echo '
',"\n"; endif; echo '
',"\n"; tpl_includeFile('footer.html'); if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page(":wiki:copyright"); echo '
'; tpl_indexerWebBug(); /* provide DokuWiki housekeeping, required in all templates */ echo '
';