PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/elgg/mod/dokuwiki/lib/dokuwiki/lib/tpl/default/main.php

https://bitbucket.org/rhizomatik/lorea_production/
PHP | 52 lines | 28 code | 9 blank | 15 comment | 6 complexity | 74e846b0e28e29381a8f490ce0dc3ee1 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, BSD-3-Clause, LGPL-2.1
  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. * You should leave the doctype at the very top - It should
  9. * always be the very first line of a document.
  10. *
  11. * @link http://dokuwiki.org/templates
  12. * @author Andreas Gohr <andi@splitbrain.org>
  13. */
  14. // must be run from within DokuWiki
  15. if (!defined('DOKU_INC')) die();
  16. $sidebar_inline = get_input("inline_sidebar");
  17. $page_inline = get_input("inline_page");
  18. if (empty($sidebar_inline)) {
  19. ob_start();
  20. include(dirname(__FILE__).'/main_index.php');
  21. $content = ob_get_clean();
  22. }
  23. if (empty($page_inline)) {
  24. // include functions that provide sidebar functionality
  25. @require_once(dirname(__FILE__).'/tplfn_sidebar.php');
  26. ob_start();
  27. include(dirname(__FILE__).'/sidebar.php');
  28. $sidebar = ob_get_clean();
  29. }
  30. if (empty($sidebar_inline) && empty($page_inline)) {
  31. $body = elgg_view_layout('two_column_left_sidebar', '', $content, $sidebar);
  32. echo page_draw("dokuwiki",$body);
  33. }
  34. else {
  35. echo "<h2>".elgg_echo("dokuwiki:groupwiki")."</h2>";
  36. echo "<div class='forum_latest'>";
  37. echo elgg_view("dokuwiki/metatags");
  38. echo $content;
  39. echo $sidebar;
  40. echo "</div>";
  41. }
  42. //echo $content;
  43. ?>