<?php
/**
 * DokuWiki Monobook Light 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://wiki.splitbrain.org/wiki:tpl:templates
 * @author Andreas Gohr <andi@splitbrain.org>
 * @author Michael Klier <chi@chimeric.de>
 */

// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
require_once(DOKU_TPLINC.'tpl_functions.php');

?>
<!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')?>

  <!-- change link borders dynamically -->
  <style type="text/css">
    <?php if($_REQUEST['do'] == 'show' || $_REQUEST['do'] == 'edit' ) { ?>
    div.dokuwiki div#bar__top a.show,
    div.dokuwiki div#bar__top a.source,
    <?php } elseif ( $_REQUEST['do'] != '' ) { ?>
    div.dokuwiki div#bar__top a.<?php echo $_REQUEST['do'];?>,
    <?php } ?>
	<?php if (ereg('^talk:', $ID)) { ?>
    div.dokuwiki div#bar__top a.discussion
    <?php } else {?>
    div.dokuwiki div#bar__top a.article
    <?php } ?>
    {
      border-color: #fabd23;
      border-bottom: 1px solid #fff;
      font-weight: bold;
    }
  </style>
</head>

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

  <div id="sidebar">
    <?php tpl_logo()?> 
    <?php tpl_sidebar()?>
  </div>

  <div id="dokubook_container">

    <div class="stylehead">

      <div class="header">
        <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
        <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
        <div class="logo">
          <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
        </div>
      </div>

      <div id="bar__top">
		<?php //if (ereg('discussion$', $ID)) tpl_actionlink('article'); ?>
		<?php ts_tpl_actionlink('article'); ?>
		<?php ts_tpl_actionlink('discussion'); ?>
        <?php tpl_actionlink('edit')?>
        <?php tpl_actionlink('history')?>
        <?php tpl_actionlink('subscribe')?>
      </div>

      <div class="clearer"></div>

    </div>

    <?php flush()?>

    <div class="page">

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

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

      <!-- wikipage start -->
      <?php tpl_content()?>
      <!-- wikipage stop -->


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

      <?php tpl_actionlink('top')?>

    </div>

    <?php flush()?>

    <div class="clearer"></div>

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

  </div>

<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
</div>
<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
</body>
</html>
