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
8.0 KiB

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. <!--<h2><?php if (!$conf['useheading']) echo '[[' ?><?php tpl_pagetitle($ID) ?><?php if (!$conf['useheading']) echo ']]' ?></h2>-->
  43. <?php /* TODO: skip links */ ?>
  44. <ul class="a11y">
  45. <li><a href="#">skip to nav</a></li>
  46. <li><a href="#">skip to controls</a></li>
  47. <li><a href="#">skip to content</a></li>
  48. </ul>
  49. <div class="clearer"></div>
  50. </div>
  51. <div class="tools">
  52. <!-- AUTH ACTIONS -->
  53. <?php if ($conf['useacl'] && $showTools): ?>
  54. <div id="dokuwiki__usertools">
  55. <h3 class="a11y">User Tools</h3> <?php /*TODO: localize*/ ?>
  56. <ul>
  57. <?php /* the optional second parameter of tpl_action() switches between a link and a button,
  58. e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
  59. tpl_action('admin', 1, 'li');
  60. tpl_action('profile', 1, 'li', 0, '', '', $INFO['userinfo']['name'].' ('.$_SERVER['REMOTE_USER'].')');
  61. // this partly replaces tpl_userinfo()
  62. tpl_action('login', 1, 'li');
  63. ?>
  64. </ul>
  65. <!-- <div class="user"><?php tpl_userinfo() /* 'Logged in as ...' */ ?></div> -->
  66. </div>
  67. <?php endif ?>
  68. <!-- SITE ACTIONS -->
  69. <div id="dokuwiki__sitetools">
  70. <h3 class="a11y">Site Tools</h3> <?php /*TODO: localize*/ ?>
  71. <?php tpl_searchform(); ?>
  72. <ul>
  73. <?php
  74. tpl_action('recent', 1, 'li');
  75. tpl_action('index', 1, 'li');
  76. ?>
  77. </ul>
  78. </div>
  79. </div>
  80. <div class="clearer"></div>
  81. <!-- BREADCRUMBS -->
  82. <?php if($conf['breadcrumbs']){ ?>
  83. <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
  84. <?php } ?>
  85. <?php if($conf['youarehere']){ ?>
  86. <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
  87. <?php } ?>
  88. <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?>
  89. <div class="clearer"></div>
  90. <hr class="a11y" />
  91. </div></div><!-- /header -->
  92. <div class="wrapper">
  93. <!-- ********** ASIDE ********** -->
  94. <div id="dokuwiki__aside"><div class="pad include">
  95. <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
  96. <div class="clearer"></div>
  97. </div></div><!-- /aside -->
  98. <!-- ********** CONTENT ********** -->
  99. <div id="dokuwiki__content"><div class="pad">
  100. <!-- PAGE ACTIONS -->
  101. <?php if ($showTools): ?>
  102. <div id="dokuwiki__pagetools">
  103. <h3 class="a11y">Page Tools</h3> <?php /*TODO: localize*/ ?>
  104. <ul>
  105. <?php
  106. tpl_action('edit', 1, 'li');
  107. if (tpl_getConf('discussionNS')) {
  108. echo '<li>';
  109. _tpl_discussion(tpl_getConf('discussionNS').':',1);
  110. echo '</li>';
  111. }
  112. tpl_action('history', 1, 'li');
  113. tpl_action('backlink', 1, 'li');
  114. tpl_action('subscribe', 1, 'li');
  115. ?>
  116. </ul>
  117. </div>
  118. <?php endif; ?>
  119. <?php tpl_flush() /* flush the output buffer */ ?>
  120. <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?>
  121. <div class="page">
  122. <!-- wikipage start -->
  123. <?php tpl_content() /* the main content */ ?>
  124. <!-- wikipage stop -->
  125. <div class="clearer"></div>
  126. </div>
  127. <?php tpl_flush() ?>
  128. <?php @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?>
  129. </div></div><!-- /content -->
  130. <div class="clearer"></div>
  131. <hr class="a11y" />
  132. </div><!-- /wrapper -->
  133. <!-- ********** FOOTER ********** -->
  134. <div id="dokuwiki__footer"><div class="pad">
  135. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  136. <?php tpl_action('top',1) /* the second parameter switches between a link and a button */ ?>
  137. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  138. </div></div><!-- /footer -->
  139. </div></div><!-- /site -->
  140. <?php //@include(dirname(__FILE__).'/footer.html') /* include hook */ ?>
  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>