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