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.

169 lines
7.8 KiB

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. */
  8. if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
  9. @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
  10. $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] );
  11. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  12. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
  14. lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  17. <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
  18. <?php tpl_metaheaders() ?>
  19. <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" />
  20. <?php @include(dirname(__FILE__).'/meta.html') /* include hook */ ?>
  21. </head>
  22. <body>
  23. <?php /* with these Conditional Comments you can better address IE issues in CSS files,
  24. precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
  25. <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
  26. <?php @include(dirname(__FILE__).'/topheader.html') /* include hook */ ?>
  27. <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
  28. see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
  29. <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
  30. <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php echo $ACT ?>">
  31. <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
  32. <!-- ********** HEADER ********** -->
  33. <div id="dokuwiki__header"><div class="pad">
  34. <div class="headings">
  35. <h1><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" accesskey="h" title="[H]"') ?></h1>
  36. <?php /* how to insert logo instead (if no CSS image replacement technique is used):
  37. upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
  38. tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
  39. <?php if (tpl_getConf('tagline')): ?>
  40. <p class="claim"><?php echo tpl_getConf('tagline') ?></p>
  41. <?php endif ?>
  42. <ul class="a11y">
  43. <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li>
  44. </ul>
  45. <div class="clearer"></div>
  46. </div>
  47. <div class="tools">
  48. <!-- USER TOOLS -->
  49. <?php if ($conf['useacl'] && $showTools): ?>
  50. <div id="dokuwiki__usertools">
  51. <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3>
  52. <ul>
  53. <?php /* the optional second parameter of tpl_action() switches between a link and a button,
  54. e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
  55. if ($_SERVER['REMOTE_USER']) {
  56. echo '<li class="user">';
  57. tpl_userinfo(); /* 'Logged in as ...' */
  58. echo '</li>';
  59. }
  60. tpl_action('admin', 1, 'li');
  61. if (tpl_getConf('userNS')) {
  62. _tpl_userpage(tpl_getConf('userNS'),1,'li');
  63. }
  64. tpl_action('profile', 1, 'li');
  65. tpl_action('login', 1, 'li');
  66. ?>
  67. </ul>
  68. </div>
  69. <?php endif ?>
  70. <!-- SITE TOOLS -->
  71. <div id="dokuwiki__sitetools">
  72. <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3>
  73. <?php tpl_searchform() ?>
  74. <ul>
  75. <?php
  76. tpl_action('recent', 1, 'li');
  77. tpl_action('index', 1, 'li');
  78. ?>
  79. </ul>
  80. </div>
  81. </div>
  82. <div class="clearer"></div>
  83. <!-- BREADCRUMBS -->
  84. <?php if($conf['breadcrumbs']){ ?>
  85. <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
  86. <?php } ?>
  87. <?php if($conf['youarehere']){ ?>
  88. <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
  89. <?php } ?>
  90. <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?>
  91. <div class="clearer"></div>
  92. <hr class="a11y" />
  93. </div></div><!-- /header -->
  94. <div class="wrapper">
  95. <!-- ********** ASIDE ********** -->
  96. <div id="dokuwiki__aside"><div class="pad include">
  97. <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
  98. <div class="clearer"></div>
  99. </div></div><!-- /aside -->
  100. <!-- ********** CONTENT ********** -->
  101. <div id="dokuwiki__content"><div class="pad">
  102. <?php tpl_flush() /* flush the output buffer */ ?>
  103. <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?>
  104. <div class="page">
  105. <!-- wikipage start -->
  106. <?php tpl_content() /* the main content */ ?>
  107. <!-- wikipage stop -->
  108. <div class="clearer"></div>
  109. </div>
  110. <?php tpl_flush() ?>
  111. <?php @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?>
  112. </div></div><!-- /content -->
  113. <div class="clearer"></div>
  114. <hr class="a11y" />
  115. <!-- PAGE ACTIONS -->
  116. <?php if ($showTools): ?>
  117. <div id="dokuwiki__pagetools">
  118. <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
  119. <ul>
  120. <?php
  121. tpl_action('edit', 1, 'li');
  122. if (tpl_getConf('discussionNS')) {
  123. _tpl_discussion(tpl_getConf('discussionNS'),1,'li',tpl_getConf('discussNSreverse'));
  124. }
  125. tpl_action('history', 1, 'li');
  126. tpl_action('backlink', 1, 'li');
  127. tpl_action('subscribe', 1, 'li');
  128. tpl_action('revert', 1, 'li');
  129. tpl_action('top', 1, 'li');
  130. ?>
  131. </ul>
  132. </div>
  133. <?php endif; ?>
  134. </div><!-- /wrapper -->
  135. <!-- ********** FOOTER ********** -->
  136. <div id="dokuwiki__footer"><div class="pad">
  137. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  138. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  139. </div></div><!-- /footer -->
  140. </div></div><!-- /site -->
  141. <?php @include(dirname(__FILE__).'/footer.html') /* include hook */ ?>
  142. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  143. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  144. </body>
  145. </html>