<?php

/**
 *  @template       Fomantic
 *  @version        see info.php of this template
 *  @author         cms-lab
 *  @copyright      2014-2022 CMS-LAB
 *  @license        https://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(); ?>" />
	
	<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/print.css" media="print" />
	
	<?php get_page_headers();	?>
	<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
	[[site-cookie]]
	<!-- 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')
      ;

    })
  ;
  </script>
  
</head>
<body>

<!-- Following Menu -->
<div class="ui large top fixed hidden menu">
  <div class="ui container">
	<?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>

<!-- 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">
<?php if (PAGE_ID == 6)
{   ?>
  <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">
      <h1 class="ui green header">
        LEPTON CMS
      </h1>
      <h2>feel free to keep it strictly simple...</h2>
      <div class="ui huge primary positive button"><a href="http://lepton-cms.org" target="_blank">Get LEPTON <i class="right arrow icon"></i></a></div>
    </div>
  </div>
<?php 
} ?>

  <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="http://doc.lepton-cms.org" target="_blank" class="item">Documentation</a>
            <a href="http://www.lepton-cms.com" target="_blank"  class="item">Addons</a>
            <a href="http://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>