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.

175 lines
8.1 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
  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') && $_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 #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
  29. <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if 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 /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
  32. see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
  33. <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
  34. <div id="dokuwiki__site"><div id="dokuwiki__top"
  35. class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'hasSidebar' : '' ?>">
  36. <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
  37. <?php tpl_includeFile('header.html') ?>
  38. <!-- ********** HEADER ********** -->
  39. <div id="dokuwiki__header"><div class="pad">
  40. <div class="headings">
  41. <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
  42. <?php /* how to insert logo instead (if no CSS image replacement technique is used):
  43. upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
  44. tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
  45. <?php if ($conf['tagline']): ?>
  46. <p class="claim"><?php echo $conf['tagline'] ?></p>
  47. <?php endif ?>
  48. <ul class="a11y skip">
  49. <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
  50. </ul>
  51. <div class="clearer"></div>
  52. </div>
  53. <div class="tools">
  54. <!-- USER TOOLS -->
  55. <?php if ($conf['useacl'] && $showTools): ?>
  56. <div id="dokuwiki__usertools">
  57. <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
  58. <ul>
  59. <?php /* the optional second parameter of tpl_action() switches between a link and a button,
  60. e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
  61. if ($_SERVER['REMOTE_USER']) {
  62. echo '<li class="user">';
  63. tpl_userinfo(); /* 'Logged in as ...' */
  64. echo '</li>';
  65. }
  66. tpl_action('admin', 1, 'li');
  67. _tpl_action('userpage', 1, 'li');
  68. tpl_action('profile', 1, 'li');
  69. tpl_action('register', 1, 'li'); /* DW versions < 2011-02-20 need to use _tpl_action('register', 1, 'li') */
  70. tpl_action('login', 1, 'li');
  71. ?>
  72. </ul>
  73. </div>
  74. <?php endif ?>
  75. <!-- SITE TOOLS -->
  76. <div id="dokuwiki__sitetools">
  77. <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
  78. <?php tpl_searchform() ?>
  79. <ul>
  80. <?php
  81. tpl_action('recent', 1, 'li');
  82. tpl_action('media', 1, 'li');
  83. tpl_action('index', 1, 'li');
  84. ?>
  85. </ul>
  86. </div>
  87. </div>
  88. <div class="clearer"></div>
  89. <!-- BREADCRUMBS -->
  90. <?php if($conf['breadcrumbs']){ ?>
  91. <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
  92. <?php } ?>
  93. <?php if($conf['youarehere']){ ?>
  94. <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
  95. <?php } ?>
  96. <div class="clearer"></div>
  97. <hr class="a11y" />
  98. </div></div><!-- /header -->
  99. <div class="wrapper">
  100. <!-- ********** ASIDE ********** -->
  101. <?php if ($showSidebar): ?>
  102. <div id="dokuwiki__aside"><div class="pad include">
  103. <?php tpl_includeFile('sidebarheader.html') ?>
  104. <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
  105. <?php tpl_includeFile('sidebarfooter.html') ?>
  106. <div class="clearer"></div>
  107. </div></div><!-- /aside -->
  108. <?php endif; ?>
  109. <!-- ********** CONTENT ********** -->
  110. <div id="dokuwiki__content"><div class="pad">
  111. <?php tpl_flush() /* flush the output buffer */ ?>
  112. <?php tpl_includeFile('pageheader.html') ?>
  113. <div class="page">
  114. <!-- wikipage start -->
  115. <?php tpl_content() /* the main content */ ?>
  116. <!-- wikipage stop -->
  117. <div class="clearer"></div>
  118. </div>
  119. <?php tpl_flush() ?>
  120. <?php tpl_includeFile('pagefooter.html') ?>
  121. </div></div><!-- /content -->
  122. <div class="clearer"></div>
  123. <hr class="a11y" />
  124. <!-- PAGE ACTIONS -->
  125. <?php if ($showTools): ?>
  126. <div id="dokuwiki__pagetools">
  127. <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
  128. <ul>
  129. <?php
  130. tpl_action('edit', 1, 'li');
  131. _tpl_action('discussion', 1, 'li');
  132. tpl_action('revisions', 1, 'li');
  133. tpl_action('backlink', 1, 'li');
  134. tpl_action('subscribe', 1, 'li');
  135. tpl_action('revert', 1, 'li');
  136. tpl_action('top', 1, 'li');
  137. ?>
  138. </ul>
  139. </div>
  140. <?php endif; ?>
  141. </div><!-- /wrapper -->
  142. <!-- ********** FOOTER ********** -->
  143. <div id="dokuwiki__footer"><div class="pad">
  144. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  145. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  146. </div></div><!-- /footer -->
  147. <?php tpl_includeFile('footer.html') ?>
  148. </div></div><!-- /site -->
  149. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  150. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  151. </body>
  152. </html>