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.

163 lines
7.4 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
  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 _tpl_include('meta.html') ?>
  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 _tpl_include('header.html') ?>
  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. _tpl_action('userpage', 1, 'li');
  62. tpl_action('profile', 1, 'li');
  63. tpl_action('login', 1, 'li');
  64. ?>
  65. </ul>
  66. </div>
  67. <?php endif ?>
  68. <!-- SITE TOOLS -->
  69. <div id="dokuwiki__sitetools">
  70. <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3>
  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. <div class="clearer"></div>
  89. <hr class="a11y" />
  90. </div></div><!-- /header -->
  91. <div class="wrapper">
  92. <!-- ********** ASIDE ********** -->
  93. <div id="dokuwiki__aside"><div class="pad include">
  94. <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
  95. <div class="clearer"></div>
  96. </div></div><!-- /aside -->
  97. <!-- ********** CONTENT ********** -->
  98. <div id="dokuwiki__content"><div class="pad">
  99. <?php tpl_flush() /* flush the output buffer */ ?>
  100. <?php _tpl_include('pageheader.html') ?>
  101. <div class="page">
  102. <!-- wikipage start -->
  103. <?php tpl_content() /* the main content */ ?>
  104. <!-- wikipage stop -->
  105. <div class="clearer"></div>
  106. </div>
  107. <?php tpl_flush() ?>
  108. <?php _tpl_include('pagefooter.html') ?>
  109. </div></div><!-- /content -->
  110. <div class="clearer"></div>
  111. <hr class="a11y" />
  112. <!-- PAGE ACTIONS -->
  113. <?php if ($showTools): ?>
  114. <div id="dokuwiki__pagetools">
  115. <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
  116. <ul>
  117. <?php
  118. tpl_action('edit', 1, 'li');
  119. _tpl_action('discussion', 1, 'li');
  120. tpl_action('history', 1, 'li');
  121. tpl_action('backlink', 1, 'li');
  122. tpl_action('subscribe', 1, 'li');
  123. tpl_action('revert', 1, 'li');
  124. tpl_action('top', 1, 'li');
  125. ?>
  126. </ul>
  127. </div>
  128. <?php endif; ?>
  129. </div><!-- /wrapper -->
  130. <!-- ********** FOOTER ********** -->
  131. <div id="dokuwiki__footer"><div class="pad">
  132. <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
  133. <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
  134. </div></div><!-- /footer -->
  135. <?php _tpl_include('footer.html') ?>
  136. </div></div><!-- /site -->
  137. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  138. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  139. </body>
  140. </html>