<?php if (isset($DOKU_TPL)==FALSE) $DOKU_TPL = DOKU_TPL; if (isset($DOKU_TPLINC)==FALSE) $DOKU_TPLINC = DOKU_TPLINC; ?>
<?php
/**
 * DokuWiki Default Template
 *
 * This is the template you need to change for the overall look
 * of DokuWiki.
 *
 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
 * @author Andreas Gohr <andi@splitbrain.org>
 * @author Esther Brunner <wikidesign@gmail.com>
 * @author Oscar M. Lage <r0sk10@gmail.com>
 */

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

// include functions that provide sidebar and tabs functionality
@require_once(dirname(__FILE__).'/functions.php');
tpl_checkColor();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>
    <?php tpl_pagetitle()?> · <?php echo strip_tags($conf['title'])?>
  </title>

  <?php tpl_metaheaders()?>

  <link rel="shortcut icon" href="<?php echo $DOKU_TPL?>images/favicon.ico" />

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

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

  <div class="header">
    <div class="logo">
      <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
    </div>
  </div>

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

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

    <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
    
    <?php tpl_tabs()?>
  
    <div class="page">
        
      <!-- wikipage start -->
      <?php tpl_content()?>
      <!-- wikipage stop -->
      
      <?php if ($INFO['exists'] && ($ACT == 'show') && $INFO['perm']
        && tpl_getConf('showpageinfo')){?>
      <div class="meta">
        <?php tpl_pageinfo()?>
      </div>
      <?php }?>
      
      <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
  
      <?php if ($INFO['editable']){?>
      <div class="bar">
      <?php tpl_button('edit').' '.tpl_button('history').' '.tpl_button('backlink').' '.tpl_button('subscription')?>
      </div>
      <?php }?>
    </div><!-- page -->
    
    <div class="sidebar">
      <?php tpl_sidebar()?>
      <hr />
      <?php if (tpl_getConf('showsiteactions')){?>
        <ul>
          <li><div class="li"><?php tpl_actionlink('index')?></div></li>
          <li><div class="li"><?php tpl_actionlink('recent')?></div></li>
        </ul>
      <?php }?>
      <div class="centeralign"><?php tpl_searchform()?></div>
      <?php if (tpl_getConf('showuseractions')){?>
        <hr />
        <ul>
          <li><div class="li"><?php tpl_actionlink('login')?>
          <?php if ($_SERVER['REMOTE_USER']){?>
            <?php echo $INFO['userinfo']['name']?>
            </div></li>
            <li><div class="li">
            <?php tpl_actionlink('profile')?>
          <?php }?>
          </div></li>
          <?php if ($INFO['perm'] == 255){?>
            <li><div class="li"><?php tpl_actionlink('admin')?></div></li>
          <?php }?>
        </ul>
      <?php }?>
    </div><!-- sidebar -->
  
  </div><!-- main -->

  <?php flush()?>
  
  <div class="footer">
  <a <?php echo $tgt?> href="<?php echo DOKU_BASE; ?>feed.php" title="Recent changes RSS feed"><img src="<?php echo $DOKU_TPL; ?>images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a>

  <a <?php echo $tgt?> href="http://creativecommons.org/licenses/by-nc-sa/2.0/" rel="license" title="Creative Commons License"><img src="<?php echo $DOKU_TPL; ?>images/button-cc.gif" width="80" height="15" alt="Creative Commons License" /></a>

  <a <?php echo $tgt?> href="https://www.paypal.com/xclick/business=andi%40splitbrain.org&amp;item_name=DokuWiki+Donation&amp;no_shipping=1&amp;no_note=1&amp;tax=0&amp;currency_code=EUR&amp;lc=US" title="Donate"><img src="<?php echo $DOKU_TPL; ?>images/button-donate.gif" alt="Donate" width="80" height="15" /></a>

  <a <?php echo $tgt?> href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="<?php echo $DOKU_TPL; ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
  
  <a <?php echo $tgt?> href="http://www.userlinux.net" title="Designed by Oscar M. Lage - Userlinux"><img src="<?php echo $DOKU_TPL; ?>images/btn_userlinux.png" width="80" height="15" alt="Designed by Oscar M. Lage - Userlinux" /></a>
  </div><!-- footer -->

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

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