<?php
/**
 * DokuWiki Zenlike template
 *
 * This is a dokuwiki adaption of the zenlike1.0 template by nodethirtythree design
 *
 * @version 20110209
 * @link   http://dokuwiki.org/templates
 * @link   http://www.nodethirtythree.com
 * @author Dennis Ploeger <develop@dieploegers.de> 
 */

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

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

	zenlike1.0 by nodethirtythree design
	http://www.nodethirtythree.com

-->
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<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()?>
  <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
  
  <script type="text/javascript">
    var addthis_config = {"data_track_clickback":true};
  </script>
  <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ef2e5633bf46002"></script>

</head>
<body>

<div id="upbg"></div>


<div class="upper">

	<?php html_msgarea()?>

	<div id="header">
		<div id="headercontent">
        		<div class="h1"><?php print $conf['title']; ?></div>
			<h2><?php print tpl_pagetitle($ID,true); ?></h2>
		</div>
			<div id="search">
        <?php tpl_searchform()?>&nbsp;
	</div>

	</div>


	<div id="headerpic"><?php include 'adds.php'; ?></div>

	<div id="menu">
		<!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
		<ul>

			<?php

				$menuItems = explode(',', tpl_getConf('menu'));

				foreach ($menuItems as $item) {

					list($label, $pageId) = explode('|', $item);

					print '<li><a href="' . wl($pageId) . '"';

					if (strcmp($pageId, $ID) == 0) { 

						print ' class="active"';
					
					}

					print '>' . $label . '</a></li>';	

				}

			?>

		</ul>


	</div>
	<div id="menubottom"></div>

</div>
	
<div class="dokuwiki">
	<div id="content">

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

  <?php tpl_flush()?>

		<div class="divider1"></div>

		<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
		<div id="normalcontent">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_hyves_respect"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<!-- AddThis Button END -->
    <?php tpl_content()?>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_hyves_respect"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<!-- AddThis Button END -->
		</div>
		    <div class="meta">
	      <div class="user">
		<?php tpl_userinfo()?>
	      </div>
	      <div class="doc">
		<?php
			if (tpl_getConf('hidePageinfo') == 0) { 
				tpl_pageinfo();
			}
		?>
	      </div>
	    </div>

	</div>

  <?php tpl_flush()?>
  <?php if (tpl_getConf('bottomButtons') == 1) {?>
    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
        <?php tpl_button('revert')?>
      </div>
      <div class="bar-right" id="bar__bottomright">
        <?php tpl_button('subscribe')?>
        <?php tpl_button('media')?>
        <?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>
    <?php } ?>
	<div id="footer">

		<div class="left"><?php print tpl_getConf('copyright');?></div>
			<div class="right"><?php tpl_license(false);?></div>
	</div>
	
</div>

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

</body>
</html>
