<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
/**
 * DokuWiki Default 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>
 */
?>
<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 hsc($conf['title'])?>]</title>


<?php 
	if (!stristr($_SERVER['REQUEST_URI'],'media.php')) {
		$CONF_backup=$conf;
		unset($conf);
		global $CONF;
		unset($CONF);
		$CONF=array();
		$_s='wiki';
		if (strpos(__FILE__,"$_s\\")!==false)
			$_path=substr(__FILE__,0,strpos(__FILE__,"$_s\\"));
		else
			if (strpos(__FILE__,"$_s/")!==false)
				$_path=substr(__FILE__,0,strpos(__FILE__,"$_s/"));
			else
				$_path='../../../';
		$file=$_path.'cfg.php';
		$_s='extreme.css';
		if (is_file($file)) {
			include($file); 
			$_s=getCSSStyle();
		}
		echo '<link rel="stylesheet" type="text/css" href="../skins/base/'.$_s.'" />'."\n";
		unset($CONF);
		$conf=$CONF_backup;
	}
?>

  <?php tpl_metaheaders()?>

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

</head>

<body>

<div id="content">
<h1>Wiki</h1>
<div id='topwrapper'><div id='top'>
<ul>
<li><a href='./../' accesskey='a' style='border-left:0 none' title='Homepage'><span class='u'>a</span>rticles</a></li>
<li><a href='./../forum/' accesskey='f' title='Forum'><span class='u'>f</span>orum</a></li>
<li><a href='./../photo/' accesskey='g' title='Photo gallery'><span class='u'>g</span>allery</a></li>
<li><a href='./' id='topcurrent' accesskey='k' title='Wiki'>wi<span class='u'>k</span>i</a></li>
<li><a href='./../news.php' accesskey='w' title='news feed'>ne<span class='u'>w</span>s</a></li>
<li><a href='./../contact.php' accesskey='c' title='contact form'><span class='u'>c</span>ontact</a></li>
</ul>
</div></div>
<div id='items'>


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

  <div class="stylehead">

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

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

    <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 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()?>

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

  <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>

    <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('subscription')?>
        <?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>

  </div>

</div>

</div>
<div id="footer">
  <a target="_blank" href="feed.php?type=RSS1.0" title="Recent changes RSS 1.0 feed"><img src="<?php echo getBaseURL(); ?>lib/images/rss10.png" width="80" height="15" alt="Recent changes RSS feed" border="0" /></a>
  <a target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/2.0/" rel="license" title="Creative Commons License"><img src="<?php echo getBaseURL(); ?>lib/images/button-cc.gif" width="80" height="15" alt="Creative Commons License" border="0" /></a>
  <a target="_blank" href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="<?php echo getBaseURL(); ?>lib/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" border="0" /></a>
  <a target="_blank" href="http://blogcms.com/" title="BLOG:CMS"><img src="../skins/base/logo.png" width="80" height="15" alt="BLOG:CMS" border="0" /></a>
</div>

</div>

<div class="no"><?php tpl_indexerWebBug()?></div>

</body>
</html>
