<?php

/**
 *  @template       Lepton-Start
 *  @version        see info.php of this template
 *  @author         cms-lab
 *  @copyright      2014-2021 CMS-LAB
 *  @license        http://creativecommons.org/licenses/by/3.0/
 *  @license terms  see info.php of this template
 *  @platform       see info.php of this template
 */

// include class.secure.php to protect this file and the whole CMS!
if ( defined( 'LEPTON_PATH' ) )
{
    include( LEPTON_PATH . '/framework/class.secure.php' );
} 
else
{
    $oneback = "../";
    $root    = $oneback;
    $level   = 1;
    while ( ( $level < 10 ) && ( !file_exists( $root . '/framework/class.secure.php' ) ) )
    {
        $root .= $oneback;
        $level += 1;
    } 
    if ( file_exists( $root . '/framework/class.secure.php' ) )
    {
        include( $root . '/framework/class.secure.php' );
    } 
    else
    {
        trigger_error( sprintf( "[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER[ 'SCRIPT_NAME' ] ), E_USER_ERROR );
    }
}
// end include class.secure.php



// TEMPLATE CODE STARTS BELOW
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo DEFAULT_CHARSET; ?>" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
	
	<title><?php page_title(); ?></title>  
	<meta name="description" content="<?php page_description(); ?>" />
	<meta name="keywords" content="<?php page_keywords(); ?>" />
	
	<script type='text/javascript' src='<?php echo LEPTON_URL; ?>/modules/lib_jquery/jquery-core/jquery-core.min.js' ></script>
	<script type='text/javascript' src='<?php echo LEPTON_URL; ?>/modules/lib_jquery/jquery-core/jquery-migrate.min.js' ></script>
	<script type='text/javascript' src='<?php echo LEPTON_URL; ?>/modules/lib_fomantic/dist/semantic.min.js' ></script>
	
	<script type='text/javascript' src='<?php echo LEPTON_URL; ?>/modules/lib_jquery/plugins/colorbox/jquery.colorbox-min.js' ></script>
	<script type='text/javascript' src='<?php echo TEMPLATE_DIR; ?>/js/bioep.js' ></script>	
	
	<link rel="stylesheet" type="text/css" href="<?php echo LEPTON_URL; ?>/modules/lib_fomantic/dist/semantic.min.css" media="screen,projection" />	
	<link rel="stylesheet" type="text/css" href="<?php echo LEPTON_URL; ?>/modules/lib_jquery/plugins/colorbox/colorbox.css" media="screen,projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/template.css" media="screen,projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/bioep.css" media="screen,projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/print.css" media="print" />
	
	<?php get_page_headers();	?>
	<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
	<script type="text/javascript">window.cookieconsent_options = {'message':'This website uses cookies. When you browse on this site, you agree to the use of cookies.','dismiss':'agree!','learnMore':'More info','link':null,'theme':'dark-bottom'};</script>
	<script type='text/javascript' src='<?php echo TEMPLATE_DIR; ?>/js/cookieconsent.js' ></script>
	<!-- End Cookie Consent plugin -->	
  <script>
  $(document)
    .ready(function() {

      // fix menu when passed
      $('.masthead')
        .visibility({
          once: false,
          onBottomPassed: function() {
            $('.fixed.menu').transition('fade in');
          },
          onBottomPassedReverse: function() {
            $('.fixed.menu').transition('fade out');
          }
        })
      ;

      // create sidebar and attach to menu open
      $('.ui.sidebar')
        .sidebar('attach events', '.toc.item')
      ;
	  
	$("a.page_details").colorbox({iframe:true, width:"80%", height:"70%"});
	  
    })
  ;
  </script>
  <script type="text/javascript">
bioEp.init({
    width: 800,
    height: 533,	
    delay: 10,
    showOnDelay: false,	
    cookieExp: 0
});
</script>
</head>
<body>

<!-- Sidebar Menu -->
<div class="ui vertical inverted sidebar menu">
	<?php 
    show_menu2(
        $aMenu         = 1,
		$aStart        = SM2_ROOT,
	   $aMaxLevel      = SM2_START,
	   $aOptions       = SM2_ALL|SM2_PRETTY,
	   $aItemOpen      = '[li]<a href="[url]" target="[target]" class="item">[menu_title]</a>',
	   $aItemClose     = '</li>',
       $aMenuOpen      = '[ul]',
       $aMenuClose     = '</ul>',
       $aTopItemOpen   = false,
       $aTopMenuOpen   = false
        );
  ?>
</div>


<!-- Page Contents -->
<div class="pusher">
  <div class="ui inverted vertical masthead center aligned segment">

    <div class="ui container">
      <div class="ui large secondary inverted pointing menu">
        <a class="toc item">
          <i class="sidebar icon"></i>
        </a>
	<?php 
    show_menu2(
        $aMenu         = 1,
		$aStart        = SM2_ROOT,
	   $aMaxLevel      = SM2_START,
	   $aOptions       = SM2_ALL|SM2_PRETTY,
	   $aItemOpen      = '[li]<a href="[url]" target="[target]" class="item">[menu_title]</a>',
	   $aItemClose     = '</li>',
       $aMenuOpen      = '[ul]',
       $aMenuClose     = '</ul>',
       $aTopItemOpen   = false,
       $aTopMenuOpen   = false
        );
  ?>
      </div>
    </div>

    <div class="ui text container">

    </div>

  </div>

  <div class="ui vertical stripe segment">
    <div class="ui text container">
		<?php page_content(1); ?>
    </div>
  </div>

  <div class="ui inverted vertical footer segment">
    <div class="ui container">
      <div class="ui stackable inverted divided equal height stackable grid">
        <div class="three wide column">
          <h4 class="ui inverted header">About</h4>
          <div class="ui inverted link list">
            <a href="#" class="item">Sitemap</a>
            <a href="#" class="item">Contact Us</a>
            <a href="#" class="item">Homepage</a>
            <a href="#" class="item">Customize</a>
          </div>
        </div>
        <div class="three wide column">
          <h4 class="ui inverted header">LEPTON Services</h4>
          <div class="ui inverted link list">
            <a href="https://doc.lepton-cms.org" target="_blank" class="item">Documentation</a>
            <a href="http://lepton-cms.com" target="_blank"  class="item">Addons</a>
            <a href="https://forum.lepton-cms.org/" target="_blank"  class="item">Forum</a>
            <a href="https://fomantic-ui.com" target="_blank" class="item">Fomantic UI</a>
          </div>
        </div>
        <div class="seven wide column">
          <h4 class="ui inverted header">My Information</h4>
          <p><?php echo WEBSITE_FOOTER; ?></p>
        </div>
      </div>
    </div>
  </div>
</div>	
<?php get_page_footers(); ?>
</body>
</html>