<?php
use Orchard\Service\SegmentAnalyticsTracking;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
$this->browserType = (stristr($_SERVER['HTTP_USER_AGENT'], 'msie') ? 'IE' : '');
?>
<?=$this->headMeta()?>

<?php
$this->loadcss();
$this->loadjs();
?>
<?=$this->headTitle("OrchAdmin")?>

<?=$this->headLink()?>

<?=$this->headStyle()?>

<?=$this->headScript()?>

<?=$this->inlineScript()?>

<?php echo $this->partial('partials/site-analytics.phtml', array(
    "configs" => array(
        'consumerKey' => \Service_GoogleAnalyticsTracking::getTrackingCode(APPLICATION_ENV, 'oa'),
        'userId' => $_SESSION['S_USERID']
    )
));

echo $this->partial('partials/segment-analytics.phtml', array(
    'configs' => array(
        'key' => SegmentAnalyticsTracking::getKey('oa'),
        'userId' => $_SESSION['S_USERID']
    )
));

?>
</head>
<!-- end head -->
<body>
<?php
$this->oa_acl = new Web_Acl_OaAcl();
?>
<?=$this->render('_header.phtml')?>
<?=$this->render('_topnav.phtml')?>

<div id="contentWrapper">
	<p class="breadcrumb"><?=$this->placeholder('breadcrumb');?></p>
	<?=$this->render('msgPanel.phtml')?>

	<!--End Header Wrap -->
	<div id="contentArea">
		<?=$this->layout()->content?>
	</div>
</div>
<?=$this->bottomScripts();?>
<script type="text/javascript" src="/scripts/oa/quicksearch.js"></script>
<script type="text/javascript">
    handleQuickSearch(true, true);
</script>

<?=$this->render('_footer.phtml');
