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.
 
 
 
 
 

63 lines
1.7 KiB

  1. <?php
  2. /**
  3. * Template footer, included in the main and detail files
  4. */
  5. // must be run from within DokuWiki
  6. if (!defined('DOKU_INC')) die();
  7. ?>
  8. <!-- ********** CONTENT ********** -->
  9. <div id="dokuwiki__content"><div class="pad group">
  10. <?php html_msgarea() ?>
  11. <div class="page group">
  12. <?php tpl_flush() ?>
  13. <?php tpl_includeFile('pageheader.html') ?>
  14. <!-- wikipage start -->
  15. <?php tpl_content() ?>
  16. <!-- wikipage stop -->
  17. <?php tpl_includeFile('pagefooter.html') ?>
  18. </div>
  19. <div class="docInfo">
  20. <?php print $lang['lastmod']." le ".dformat($INFO['lastmod']);?>
  21. </div>
  22. <?php tpl_flush() ?>
  23. </div></div>
  24. <!-- /content -->
  25. <hr class="a11y" />
  26. <!-- PAGE ACTIONS -->
  27. <div id="dokuwiki__pagetools">
  28. <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
  29. <div class="tools">
  30. <ul>
  31. <?php
  32. $data = array(
  33. 'view' => 'main',
  34. 'items' => array(
  35. 'edit' => tpl_action('edit', true, 'li', true, '<span>', '</span>'),
  36. 'revert' => tpl_action('revert', true, 'li', true, '<span>', '</span>'),
  37. 'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'),
  38. 'backlink' => tpl_action('backlink', true, 'li', true, '<span>', '</span>'),
  39. 'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'),
  40. 'top' => tpl_action('top', true, 'li', true, '<span>', '</span>')
  41. )
  42. );
  43. // the page tools can be amended through a custom plugin hook
  44. $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
  45. if($evt->advise_before()){
  46. foreach($evt->data['items'] as $k => $html) echo $html;
  47. }
  48. $evt->advise_after();
  49. unset($data);
  50. unset($evt);
  51. ?>
  52. </ul>
  53. </div>
  54. </div>