<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
/**
 * 'amanuensis' Template for DokuWiki
 *
 * 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 Paul Minifie
 */
?>

<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>
  <title><?php echo $ID?> [<?php echo hsc($conf['title'])?>]</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <?php tpl_metaheaders()?>

  <link rel="shortcut icon" href="<?php echo DOKU_BASE?>lib/images/favicon.ico" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>content.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>index.css" />
  <link rel="stylesheet" media="print" type="text/css" href="<?php echo DOKU_TPL?>print.css" />
  <?php if($lang['direction'] == 'rtl') {?>
  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>rtl.css" />
  <?php } ?>

  <!--[if gte IE 5]>
  <style type="text/css">
    /* that IE 5+ conditional comment makes this only visible in IE 5+ */
    /* IE bugfix for transparent PNGs */
    img { behavior: url("<?php echo DOKU_BASE?>lib/scripts/pngbehavior.htc");}
  </style>
  <![endif]-->

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

</head>

<body>

<!-- loads the javascript for the dropdown menu -->
<!-- Simple Website Menu script by brothercake - http://www.brothercake.com/ -->
<script type="text/javascript" src="<?php echo DOKU_TPL?>/inc/index.js"></script>
<script type="text/javascript" src="<?php echo DOKU_TPL?>/inc/script.js"></script>
<!--  -->

<?php

if(!defined('DOKU_TPL_URL')) define('DOKU_TPL_URL',realpath(dirname(__FILE__)).'/');
//loads modified dokuwiki functions, renamed with a _mod suffix
require_once (DOKU_TPL_URL.'inc/functionmods.php');
//loads the additional button language file
//FIXME - add language specific logic
require_once (DOKU_TPL_URL.'lang/en/lang.php');
//loads the functions for the title menu index
require_once (DOKU_TPL_URL.'inc/index.php');
?>

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

 <div id="dokuwiki">
   <?php html_msgarea()?>

   <div class="stylehead">
     <div id="header">
      <div id ="controls">
        <div id="bar_search">
        <ul>
          <li><?php tpl_searchform_mod()?></li>
        </ul>
        </div>
        <div id="bar_admin">
        <ul>
          <li><?php tpl_actionlink('recent')?></li>
          <?php if($conf['amanuensis']['nspages']=='false'){?>
             <li><?php tpl_actionlink('index')?></li>
          <?php }?>
          <li><?php tpl_actionlink('subscribe')?></li>
          <li><?php tpl_actionlink('login')?></li>
          <!-- enable for mod described at http://wiki.splitbrain.org/wiki:discussion:manageprofile?s=profile -->
          <li><?php tpl_actionlink_mod('profile')?></li>
          <li><?php tpl_actionlink('admin')?></li>
        </ul>
        </div>
        <div id="bar_edit">
        <ul>
          <li><?php tpl_actionlink_mod('edit')?></li>
          <li><?php tpl_actionlink('history')?></li>
          <li><?php tpl_actionlink_mod('about')?></li>
          <li><?php tpl_actionlink_mod('help')?></li>
        </ul>
        </div>
        <div id="bar_addpage">
        <ul>
          <li><?php tpl_addpage()?></li>
        </ul>
        </div>
       </div>

      <div id="backlinks">
      <?php tpl_actionlink_mod('back')?>
      </div>

      <div id="logo">
           <img src="<?php echo DOKU_TPL?>images/logo/amanuensis.png" width="140" height="90" class="border-C_TL">
      </div>

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

   <div id="nav">
         <?php html_index_mod ($IDX) ?>
   </div>

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

    </div> <!-- end header -->
    <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
  </div>  <!-- end stylehead -->

  <?php flush()?>

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


  <div id="page">

    <!-- debug info -->
    <?php global $debug;
      echo highlight_string(print_r($debug,true),true); ?>
    <!-- end debug info -->

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

  </div>

  <div class="clearer">&nbsp;</div>

  <?php flush()?>

  <div id="footer" 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 class="bar" id="bar_bottom">
      <div class="bar-left" id="bar_bottomleft">
      </div>
      <div class="bar-right" id="bar_bottomright">
        <?php tpl_button('top')?>&nbsp;
      </div>
    </div>
 --->

      <div id='top_button'>
        <?php tpl_actionlink_mod('top')?>&nbsp;
      </div>
  </div> <!-- close style foot -->
</div> <!-- close dokuwiki -->

<?php tpl_indexerWebBug()?>
</body>
</html>