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.

167 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
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 _tpl_getFavicon() /* DW versions > 2010-11-12 can use the core function tpl_getFavicon() */ ?>" />
  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 /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
  27. see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
  28. <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
  29. <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php echo $ACT ?>">
  30. <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
  31. <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?>
  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. <div class="clearer"></div>
  91. <hr class="a11y" />
  92. </div></div><!-- /header -->
  93. <div class="wrapper">
  94. <!-- ********** ASIDE ********** -->
  95. <div id="dokuwiki__aside"><div class="pad include">
  96. <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
  97. <div class="clearer"></div>
  98. </div></div><!-- /aside -->
  99. <!-- ********** CONTENT ********** -->
  100. <div id="dokuwiki__content"><div class="pad">
  101. <?php tpl_flush() /* flush the output buffer */ ?>
  102. <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?>
  103. <div class="page">
  104. <!-- wikipage start -->
  105. <?php tpl_content() /* the main content */ ?>
  106. <!-- wikipage stop -->
  107. <div class="clearer"></div>
  108. </div>
  109. <?php tpl_flush() ?>
  110. <?php @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?>
  111. </div></div><!-- /content -->
  112. <div class="clearer"></div>
  113. <hr class="a11y" />
  114. <!-- PAGE ACTIONS -->
  115. <?php if ($showTools): ?>
  116. <div id="dokuwiki__pagetools">
  117. <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
  118. <ul>
  119. <?php
  120. tpl_action('edit', 1, 'li');
  121. if (tpl_getConf('discussionNS')) {
  122. _tpl_discussion(tpl_getConf('discussionNS'),1,'li',tpl_getConf('discussNSreverse'));
  123. }
  124. tpl_action('history', 1, 'li');
  125. tpl_action('backlink', 1, 'li');
  126. tpl_action('subscribe', 1, 'li');
  127. tpl_action('revert', 1, 'li');
  128. tpl_action('top', 1, 'li');
  129. ?>
  130. </ul>
  131. </div>
  132. <?php endif; ?>
  133. </div><!-- /wrapper -->
  134. <!-- ********** FOOTER ********** -->
  135. <div id="dokuwiki__footer"><div class="pad">
  136. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  137. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  138. </div></div><!-- /footer -->
  139. <?php @include(dirname(__FILE__).'/footer.html') /* include hook */ ?>
  140. </div></div><!-- /site -->
  141. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  142. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  143. </body>
  144. </html>