<?php
require_once APPLICATION_PATH . '/modules/alw/views/helpers/Loadjs.php';

use Orchard\Service\SegmentAnalyticsTracking;

$controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
$sessionData = new Zend_Session_Namespace('Alw');
$loadImage = new Alw_View_Helper_Loadingimage();
$faviconImagePath = $loadImage->getCdnImagePath('images/icons/favicon.ico');
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <link rel="shortcut icon" href="<? echo $faviconImagePath ?>" type="image/x-icon">
<?php
echo $this->headTitle() . "\n";
if ($sessionData->S_BROWSER_DETECT === true) {
    $this->headLink()->prependStylesheet('https://fonts.googleapis.com/css?family=Rubik:400,500');
}
echo $this->headLink() . "\n";
echo $this->partial('partials/segment-analytics.phtml', array(
    'configs' => SegmentAnalyticsTracking::getTraitsFromSession($_SESSION, 'workstation')
));
?>
</head>
<body id="mainBody" class="<?php echo $controller . '-' . $action ?>">
<?php
    echo $this->partial('partials/subaccount_impersonation_banner.phtml', ['session', $_SESSION]);
?>
<noscript><?=$this->translate->_('Javascript appears to be turned off. In order to use this page, you must have it turned on.');?></noscript>

<?= $this->render('_header_redesign.phtml') ?>
    <div class="container fix-width-grid">
        <div class="row text-center">
            <div class="main-content">
                <?= $this->layout()->content ?>
                <div class="clear"></div>
            </div>
        </div>
    </div>
<?= $this->render('_footer_redesign.phtml') ?>
<?php
    // javascript apps
    echo $this->bottomScripts();
?>
<script src="/scripts/dropdown-vanilla.js"></script>
</body>
</html>
