You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

178 lines
8.4 KiB

14 years ago
14 years ago
14 years ago
14 years ago
12 years ago
14 years ago
14 years ago
12 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
  1. <?php
  2. /**
  3. * DokuWiki Starter Template
  4. *
  5. * @link http://dokuwiki.org/template:starter
  6. * @author Anika Henke <anika@selfthinker.org>
  7. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  8. */
  9. if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
  10. @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
  11. header('X-UA-Compatible: IE=edge,chrome=1');
  12. $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
  13. $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
  14. ?><!DOCTYPE html>
  15. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
  16. lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
  17. <head>
  18. <meta charset="UTF-8" />
  19. <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
  20. <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
  21. <?php tpl_metaheaders() ?>
  22. <meta name="viewport" content="width=device-width,initial-scale=1" />
  23. <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
  24. <?php tpl_includeFile('meta.html') ?>
  25. </head>
  26. <body>
  27. <?php /* with these Conditional Comments you can better address IE issues in CSS files,
  28. precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
  29. <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
  30. <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
  31. <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
  32. should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
  33. <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
  34. echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
  35. <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
  36. <?php tpl_includeFile('header.html') ?>
  37. <!-- ********** HEADER ********** -->
  38. <div id="dokuwiki__header"><div class="pad">
  39. <div class="headings">
  40. <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
  41. <?php /* how to insert logo instead (if no CSS image replacement technique is used):
  42. upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
  43. tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
  44. <?php if ($conf['tagline']): ?>
  45. <p class="claim"><?php echo $conf['tagline'] ?></p>
  46. <?php endif ?>
  47. <ul class="a11y skip">
  48. <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
  49. </ul>
  50. <div class="clearer"></div>
  51. </div>
  52. <div class="tools">
  53. <!-- USER TOOLS -->
  54. <?php if ($conf['useacl'] && $showTools): ?>
  55. <div id="dokuwiki__usertools">
  56. <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
  57. <ul>
  58. <?php
  59. if (!empty($_SERVER['REMOTE_USER'])) {
  60. echo '<li class="user">';
  61. tpl_userinfo(); /* 'Logged in as ...' */
  62. echo '</li>';
  63. }
  64. ?>
  65. <?php /* the optional second parameter of tpl_action() switches between a link and a button,
  66. e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
  67. ?>
  68. <?php _tpl_toolsevent('usertools', array(
  69. 'admin' => tpl_action('admin', 1, 'li', 1),
  70. 'userpage' => _tpl_action('userpage', 1, 'li', 1),
  71. 'profile' => tpl_action('profile', 1, 'li', 1),
  72. 'register' => tpl_action('register', 1, 'li', 1),
  73. 'login' => tpl_action('login', 1, 'li', 1),
  74. )); ?>
  75. </ul>
  76. </div>
  77. <?php endif ?>
  78. <!-- SITE TOOLS -->
  79. <div id="dokuwiki__sitetools">
  80. <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
  81. <?php tpl_searchform() ?>
  82. <ul>
  83. <?php _tpl_toolsevent('sitetools', array(
  84. 'recent' => tpl_action('recent', 1, 'li', 1),
  85. 'media' => tpl_action('media', 1, 'li', 1),
  86. 'index' => tpl_action('index', 1, 'li', 1),
  87. )); ?>
  88. </ul>
  89. </div>
  90. </div>
  91. <div class="clearer"></div>
  92. <!-- BREADCRUMBS -->
  93. <?php if($conf['breadcrumbs']){ ?>
  94. <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
  95. <?php } ?>
  96. <?php if($conf['youarehere']){ ?>
  97. <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
  98. <?php } ?>
  99. <div class="clearer"></div>
  100. <hr class="a11y" />
  101. </div></div><!-- /header -->
  102. <div class="wrapper">
  103. <!-- ********** ASIDE ********** -->
  104. <?php if ($showSidebar): ?>
  105. <div id="dokuwiki__aside"><div class="pad aside include group">
  106. <?php tpl_includeFile('sidebarheader.html') ?>
  107. <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
  108. <?php tpl_includeFile('sidebarfooter.html') ?>
  109. <div class="clearer"></div>
  110. </div></div><!-- /aside -->
  111. <?php endif; ?>
  112. <!-- ********** CONTENT ********** -->
  113. <div id="dokuwiki__content"><div class="pad">
  114. <?php tpl_flush() /* flush the output buffer */ ?>
  115. <?php tpl_includeFile('pageheader.html') ?>
  116. <div class="page">
  117. <!-- wikipage start -->
  118. <?php tpl_content() /* the main content */ ?>
  119. <!-- wikipage stop -->
  120. <div class="clearer"></div>
  121. </div>
  122. <?php tpl_flush() ?>
  123. <?php tpl_includeFile('pagefooter.html') ?>
  124. </div></div><!-- /content -->
  125. <div class="clearer"></div>
  126. <hr class="a11y" />
  127. <!-- PAGE ACTIONS -->
  128. <?php if ($showTools): ?>
  129. <div id="dokuwiki__pagetools">
  130. <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
  131. <ul>
  132. <?php _tpl_toolsevent('pagetools', array(
  133. 'edit' => tpl_action('edit', 1, 'li', 1),
  134. 'discussion'=> _tpl_action('discussion', 1, 'li', 1),
  135. 'revisions' => tpl_action('revisions', 1, 'li', 1),
  136. 'backlink' => tpl_action('backlink', 1, 'li', 1),
  137. 'subscribe' => tpl_action('subscribe', 1, 'li', 1),
  138. 'revert' => tpl_action('revert', 1, 'li', 1),
  139. 'top' => tpl_action('top', 1, 'li', 1),
  140. )); ?>
  141. </ul>
  142. </div>
  143. <?php endif; ?>
  144. </div><!-- /wrapper -->
  145. <!-- ********** FOOTER ********** -->
  146. <div id="dokuwiki__footer"><div class="pad">
  147. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  148. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  149. </div></div><!-- /footer -->
  150. <?php tpl_includeFile('footer.html') ?>
  151. </div></div><!-- /site -->
  152. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  153. <!--[if lte IE 8 ]></div><![endif]-->
  154. </body>
  155. </html>