<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Template for Mage_Page_Block_Html
 */
?>
<?php
    $store = Mage::app()->getStore();
    $code  = $store->getCode();
    $show_notice = Mage::getStoreConfig('porto_settings/general/show_notice', $code);
?>
<!DOCTYPE html>
<html lang="<?php echo $this->getLang() ?>">
<head>
<?php echo $this->getChildHtml('head') ?>
</head>
<body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
<?php echo $this->getChildHtml('after_body_start') ?>
<div class="wrapper">
    <?php echo $this->getChildHtml('global_notices') ?>
    <div class="page">
        <?php if ($show_notice == 1): ?>
            <?php echo $this->getChildHtml('custom_notice') ?>
        <?php endif; ?>
        <?php echo $this->getChildHtml('header') ?>        
        <?php if ($show_notice == 2): ?>
            <?php echo $this->getChildHtml('custom_notice') ?>
        <?php endif; ?>
        <?php echo $this->getChildHtml('topContainer') ?>
        <div class="main-container col2-left-layout">
            <div class="main container">
                <div class="row">
                    <div class="col-main col-lg-9 lg-order-12">
                        <?php echo $this->getChildHtml('global_messages') ?>
                        <?php echo $this->getChildHtml('content') ?>
                    </div>
                    <div class="col-left sidebar f-left col-lg-3"><?php echo $this->getChildHtml('left') ?></div>
                </div>
            </div>
        </div>
        <?php echo $this->getChildHtml('bottomContainer') ?>
        <?php echo $this->getChildHtml('footer') ?>
        <?php echo $this->getChildHtml('global_cookie_notice') ?>
        <?php echo $this->getChildHtml('before_body_end') ?>
    </div>
</div>
<?php echo $this->getAbsoluteFooter() ?>
</body>
</html>
