xref: /dokuwiki/lib/tpl/dokuwiki/main.php (revision e5d4768d27336a3af2fc36af663d21a1a57d0ee1)
10e336ca8SAndreas Gohr<?php
20e336ca8SAndreas Gohr/**
30e336ca8SAndreas Gohr * DokuWiki Default Template 2012
40e336ca8SAndreas Gohr *
50e336ca8SAndreas Gohr * @link     http://dokuwiki.org/template
60e336ca8SAndreas Gohr * @author   Anika Henke <anika@selfthinker.org>
70e336ca8SAndreas Gohr * @author   Clarence Lee <clarencedglee@gmail.com>
80e336ca8SAndreas Gohr * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
90e336ca8SAndreas Gohr */
100e336ca8SAndreas Gohr
110e336ca8SAndreas Gohrif (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
120e336ca8SAndreas Gohr
130e336ca8SAndreas Gohr$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show');
140e336ca8SAndreas Gohr?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
150e336ca8SAndreas Gohr  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
160e336ca8SAndreas Gohr<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
170e336ca8SAndreas Gohr  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
180e336ca8SAndreas Gohr<head>
190e336ca8SAndreas Gohr    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20e6014438SAnika Henke    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
210e336ca8SAndreas Gohr    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
220e336ca8SAndreas Gohr    <?php tpl_metaheaders() ?>
230e336ca8SAndreas Gohr    <meta name="viewport" content="width=device-width,initial-scale=1" />
240e336ca8SAndreas Gohr    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
25*e5d4768dSAndreas Gohr    <?php tpl_includeFile('meta.html') ?>
260e336ca8SAndreas Gohr</head>
270e336ca8SAndreas Gohr
280e336ca8SAndreas Gohr<body>
290e336ca8SAndreas Gohr    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
300e336ca8SAndreas Gohr    <div id="dokuwiki__site"><div id="dokuwiki__top"
310e336ca8SAndreas Gohr        class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
320e336ca8SAndreas Gohr
330e336ca8SAndreas Gohr        <?php include('tpl_header.php') ?>
340e336ca8SAndreas Gohr
350e336ca8SAndreas Gohr        <div class="wrapper group">
360e336ca8SAndreas Gohr
370e336ca8SAndreas Gohr            <?php if($showSidebar): ?>
380e336ca8SAndreas Gohr                <!-- ********** ASIDE ********** -->
390e336ca8SAndreas Gohr                <div id="dokuwiki__aside"><div class="pad include group">
4057fc5eddSAnika Henke                    <?php tpl_flush() ?>
41*e5d4768dSAndreas Gohr                    <?php tpl_includeFile('sidebarheader.html') ?>
4257fc5eddSAnika Henke                    <?php tpl_include_page($conf['sidebar']) ?>
43*e5d4768dSAndreas Gohr                    <?php tpl_includeFile('sidebarfooter.html') ?>
440e336ca8SAndreas Gohr                </div></div><!-- /aside -->
450e336ca8SAndreas Gohr            <?php endif; ?>
460e336ca8SAndreas Gohr
470e336ca8SAndreas Gohr            <!-- ********** CONTENT ********** -->
480e336ca8SAndreas Gohr            <div id="dokuwiki__content"><div class="pad group">
490e336ca8SAndreas Gohr
500e336ca8SAndreas Gohr                <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
510e336ca8SAndreas Gohr
520e336ca8SAndreas Gohr                <div class="page group">
530e336ca8SAndreas Gohr                    <?php tpl_flush() ?>
54*e5d4768dSAndreas Gohr                    <?php tpl_includeFile('pageheader.html') ?>
550e336ca8SAndreas Gohr                    <!-- wikipage start -->
5657fc5eddSAnika Henke                    <?php tpl_content() ?>
570e336ca8SAndreas Gohr                    <!-- wikipage stop -->
58*e5d4768dSAndreas Gohr                    <?php tpl_includeFile('pagefooter.html') ?>
590e336ca8SAndreas Gohr                </div>
600e336ca8SAndreas Gohr
6157fc5eddSAnika Henke                <div class="docInfo"><?php tpl_pageinfo() ?></div>
620e336ca8SAndreas Gohr
630e336ca8SAndreas Gohr                <?php tpl_flush() ?>
640e336ca8SAndreas Gohr            </div></div><!-- /content -->
650e336ca8SAndreas Gohr
660e336ca8SAndreas Gohr            <hr class="a11y" />
670e336ca8SAndreas Gohr
680e336ca8SAndreas Gohr            <!-- PAGE ACTIONS -->
690e336ca8SAndreas Gohr            <div id="dokuwiki__pagetools">
700e336ca8SAndreas Gohr                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
710e336ca8SAndreas Gohr                <div class="tools">
720e336ca8SAndreas Gohr                    <ul>
730e336ca8SAndreas Gohr                        <?php
740e336ca8SAndreas Gohr                            tpl_action('edit',      1, 'li', 0, '<span>', '</span>');
750e336ca8SAndreas Gohr                            tpl_action('revert',    1, 'li', 0, '<span>', '</span>');
760e336ca8SAndreas Gohr                            tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
770e336ca8SAndreas Gohr                            tpl_action('backlink',  1, 'li', 0, '<span>', '</span>');
780e336ca8SAndreas Gohr                            tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
790e336ca8SAndreas Gohr                            tpl_action('top',       1, 'li', 0, '<span>', '</span>');
800e336ca8SAndreas Gohr                        ?>
810e336ca8SAndreas Gohr                    </ul>
820e336ca8SAndreas Gohr                </div>
830e336ca8SAndreas Gohr            </div>
840e336ca8SAndreas Gohr        </div><!-- /wrapper -->
850e336ca8SAndreas Gohr
860e336ca8SAndreas Gohr        <?php include('tpl_footer.php') ?>
870e336ca8SAndreas Gohr    </div></div><!-- /site -->
880e336ca8SAndreas Gohr
890e336ca8SAndreas Gohr    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
900e336ca8SAndreas Gohr    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
910e336ca8SAndreas Gohr</body>
920e336ca8SAndreas Gohr</html>
93