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.
 
 
 
 
 

156 lines
4.3 KiB

  1. <?php
  2. /**
  3. * DokuWiki Default Template
  4. *
  5. * This is the template you need to change for the overall look
  6. * of DokuWiki.
  7. *
  8. * @link http://wiki.splitbrain.org/wiki:tpl:templates
  9. * @author Andreas Gohr <andi@splitbrain.org>
  10. * @author Esther Brunner <wikidesign@gmail.com>
  11. */
  12. // must be run from within DokuWiki
  13. if (!defined('DOKU_INC')) die();
  14. // include functions that provide sidebar and tabs functionality
  15. @require_once(dirname(__FILE__).'/functions.php');
  16. minima_checkColor();
  17. ?>
  18. <?php
  19. /**
  20. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  21. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
  23. lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
  24. */
  25. ?>
  26. <!DOCTYPE html>
  27. <html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  30. <meta http-equiv="x-ua-compatible" content="IE=8">
  31. <title>
  32. <?php minima_nstitle(); tpl_pagetitle()?> · <?php echo strip_tags($conf['title'])?>
  33. </title>
  34. <?php tpl_metaheaders()?>
  35. <link rel="shortcut icon" href="<?php echo tpl_basedir()?>images/favicon.ico" />
  36. <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
  37. </head>
  38. <body>
  39. <?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
  40. <div class="dokuwiki" id="<?php minima_classID()?>">
  41. <div class="header">
  42. <div class="logo">
  43. <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
  44. </div>
  45. </div>
  46. <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
  47. <div class="main">
  48. <?php if($conf['breadcrumbs']){?>
  49. <div class="breadcrumbs">
  50. <?php tpl_breadcrumbs()?>
  51. </div>
  52. <?php }?>
  53. <?php if($conf['youarehere']){?>
  54. <div class="breadcrumbs">
  55. <?php tpl_youarehere()?>
  56. </div>
  57. <?php }?>
  58. <!-- message area start -->
  59. <?php html_msgarea()?>
  60. <!-- message area stop -->
  61. <?php flush()?>
  62. <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
  63. <?php minima_tabs()?>
  64. <div class="page">
  65. <!-- wikipage start -->
  66. <?php tpl_content()?>
  67. <!-- wikipage stop -->
  68. <?php if ($INFO['exists'] && ($ACT == 'show') && $INFO['perm']
  69. && tpl_getConf('showpageinfo')){?>
  70. <div class="meta">
  71. <?php tpl_pageinfo()?>
  72. </div>
  73. <?php }?>
  74. <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
  75. <?php if ($INFO['editable']){?>
  76. <div class="bar">
  77. <?php
  78. tpl_button('edit').' '.tpl_button('history').' '.
  79. tpl_button('backlink').' '.tpl_button('subscription').' '.
  80. tpl_button('revert')
  81. ?>
  82. </div>
  83. <?php }?>
  84. </div><!-- page -->
  85. <div class="sidebar">
  86. <?php minima_sidebar()?>
  87. <hr />
  88. <?php if (tpl_getConf('showsiteactions')){?>
  89. <ul>
  90. <li><div class="li"><?php tpl_actionlink('index')?></div></li>
  91. <li><div class="li"><?php tpl_actionlink('recent')?></div></li>
  92. </ul>
  93. <?php }?>
  94. <div class="search"><?php tpl_searchform()?></div>
  95. <?php if (tpl_getConf('showuseractions')){?>
  96. <hr />
  97. <ul>
  98. <li><div class="li"><?php tpl_actionlink('login')?>
  99. <?php if ($_SERVER['REMOTE_USER']){?>
  100. <?php echo $INFO['userinfo']['name']?>
  101. </div></li>
  102. <?php }?>
  103. <?php if (tpl_get_action('profile')) { ?>
  104. <li><div class="li">
  105. <?php tpl_actionlink('profile')?>
  106. </div></li>
  107. <?php }?>
  108. <?php if ($INFO['perm'] == 255){?>
  109. <li><div class="li"><?php tpl_actionlink('admin')?></div></li>
  110. <?php }?>
  111. </ul>
  112. <?php }?>
  113. </div><!-- sidebar -->
  114. </div><!-- main -->
  115. <?php
  116. // <div class="clearer"></div>
  117. ?>
  118. <?php flush()?>
  119. <div class="footer">
  120. <div class="edgeleft"><div class="borderbottom">&nbsp;</div></div>
  121. <div class="edgeright"><div class="borderbottom">&nbsp;</div></div>
  122. </div><!-- footer -->
  123. </div>
  124. <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
  125. <div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
  126. </body>
  127. </html>