aboutsummaryrefslogtreecommitdiff
path: root/vendors/dokuwiki/lib/tpl/default/main_index.php
blob: 31a7ebafb9e995d90023edfdf05b8ab025fa3040 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php 
/**
 * DokuWiki Sidebar Template
 * This template is the Dokuwiki Default Template with
 * a configurable sidebar facility.
 *
 * @link   http://wiki.jalakai.co.uk/dokuwiki
 * @link   http://dokuwiki.org/template/sidebar
 * @author Christopher Smith <chris@jalakai.co.uk>
 * @date   2009-01-27
 *
 * Default template by ...
 *
 * @link   http://dokuwiki.org/templates
 * @author Andreas Gohr <andi@splitbrain.org>
 */

// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();

$page_inline = get_input("inline_page");
// include functions that provide sidebar functionality
//@require_once(dirname(__FILE__).'/tplfn_sidebar.php');
?>
  <?php //tpl_metaheaders()?>

  <?php /*old includehook @include(dirname(__FILE__).'/meta.html') */ ?>

<?php /*old includehook @include(dirname(__FILE__).'/topheader.html') */ ?>
<div class="dokuwiki">
  <?php html_msgarea()?>

  <div class="stylehead">

  <?php if (empty($page_inline)) { ?>
    <div class="header">
      <div class="pagename">
        [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]
      </div>
      <div class="logo">
        <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]"')?>
      </div>

      <div class="clearer"></div>
    </div>
    <?php }?>

    <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>

  <?php if (empty($page_inline)) { ?>
    <div class="bar" id="bar__top">
      <div class="bar-left" id="bar__topleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
      </div>

      <div class="bar-right" id="bar__topright">
        <?php tpl_button('recent')?>
        <?php tpl_searchform()?>&nbsp;
      </div>

      <div class="clearer"></div>
    </div>
  <?php } ?>

    <?php if($conf['breadcrumbs']){?>
    <div class="breadcrumbs">
      <?php tpl_breadcrumbs()?>
      <?php //tpl_youarehere() //(some people prefer this)?>
    </div>
    <?php }?>

    <?php if($conf['youarehere']){?>
    <div class="breadcrumbs">
      <?php tpl_youarehere() ?>
    </div>
    <?php }?>

  </div>
  <?php flush()?>

  <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>

  <div class="page">
    <!-- wikipage start -->
    <?php tpl_content()?>
    <!-- wikipage stop -->
  </div>

  <?php if (empty($page_inline)) { ?>
  <div class="clearer">&nbsp;</div>

  <?php flush()?>

  <div class="stylefoot">

    <div class="meta">
      <div class="user">
        <?php tpl_userinfo()?>
      </div>
      <div class="doc">
        <?php tpl_pageinfo()?>
      </div>
    </div>

   <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>

  </div>
  <?php } ?>
    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
      </div>
      <div class="bar-right" id="bar__bottomright">
        <?php tpl_button('subscribe')?>
        <?php tpl_button('subscribens')?>
        <?php tpl_button('admin')?>
        <?php tpl_button('profile')?>
        <?php tpl_button('login')?>
        <?php tpl_button('index')?>
        <?php tpl_button('top')?>&nbsp;
      </div>
      <div class="clearer"></div>
    </div>
  <?php if (empty($page_inline)) { ?>

  </div>
  <?php } ?>

  <?php/* tpl_license(false);*/?>

<?php /*old includehook @include(dirname(__FILE__).'/footer.html')*/ ?>

<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>