blob: 44a317684fb3abaee9ab5ef2f1a7f5a9fdbcf6c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?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;
?>
|