/elgg/mod/dokuwiki/lib/dokuwiki/lib/tpl/default/main.php
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
- <?php
- /**
- * DokuWiki Default Template
- *
- * This is the template you need to change for the overall look
- * of DokuWiki.
- *
- * You should leave the doctype at the very top - It should
- * always be the very first line of a document.
- *
- * @link http://dokuwiki.org/templates
- * @author Andreas Gohr <andi@splitbrain.org>
- */
- // must be run from within DokuWiki
- if (!defined('DOKU_INC')) die();
- $sidebar_inline = get_input("inline_sidebar");
- $page_inline = get_input("inline_page");
- if (empty($sidebar_inline)) {
- ob_start();
- include(dirname(__FILE__).'/main_index.php');
- $content = ob_get_clean();
- }
- if (empty($page_inline)) {
- // include functions that provide sidebar functionality
- @require_once(dirname(__FILE__).'/tplfn_sidebar.php');
- ob_start();
- include(dirname(__FILE__).'/sidebar.php');
- $sidebar = ob_get_clean();
- }
- if (empty($sidebar_inline) && empty($page_inline)) {
- $body = elgg_view_layout('two_column_left_sidebar', '', $content, $sidebar);
- echo page_draw("dokuwiki",$body);
- }
- else {
- echo "<h2>".elgg_echo("dokuwiki:groupwiki")."</h2>";
- echo "<div class='forum_latest'>";
- echo elgg_view("dokuwiki/metatags");
- echo $content;
- echo $sidebar;
- echo "</div>";
- }
- //echo $content;
- ?>