<?php
// modeles
$mod_count['bottom2'] = $inPage->countModules('bottom2');
$mod_count['verh'] = $this->countModules('verh');
$mod_count['topmenupoz'] = $this->countModules('topmenupoz');
$mod_count['sidebarpoz'] = $this->countModules('sidebarpoz');
$mod_count['menumobile'] = $this->countModules('menumobile');
$mod_count['seacnl'] = $this->countModules('seacnl');
$this->prependHeadJS('core/js/common.js');
$this->prependHeadJS('includes/jquery/jquery.js');
$this->addHeadCSS('templates/'.TEMPLATE.'/css/reset.css');
$this->addHeadCSS('templates/'.TEMPLATE.'/css/styles.css');
$this->addHeadJS('includes/jquery/colorbox/jquery.colorbox.js');
$this->addHeadCSS('includes/jquery/colorbox/colorbox.css');
$this->addHeadJS('includes/jquery/colorbox/init_colorbox.js');
// LANG фразы для colorbox
$this->addHeadJsLang(array('CBOX_IMAGE','CBOX_FROM','CBOX_PREVIOUS','CBOX_NEXT','CBOX_CLOSE','CBOX_XHR_ERROR','CBOX_IMG_ERROR', 'CBOX_SLIDESHOWSTOP', 'CBOX_SLIDESHOWSTART')); $this->addHead('<script type="text/javascript">var TEMPLATE = "'.TEMPLATE.'";</script>');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns# video: http://ogp.me/ns/video# music: http://ogp.me/ns/music# ya: http://webmaster.yandex.ru/vocabularies/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php $this->printHead(); ?>
<?php if($inUser->is_admin){ ?>
<script src="/admin/js/modconfig.js" type="text/javascript"></script>
<link href="/templates/<?php echo TEMPLATE; ?>/css/modconfig.css" rel="stylesheet" type="text/css" />
<?php } ?>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="yandex-tableau-widget" href="/manifest.json" />
<link href="/templates/<?php echo TEMPLATE; ?>/selection.json" />
<link rel="apple-touch-icon" href="/templates/<?php echo TEMPLATE; ?>/images/touch-device.png" />
<link rel="apple-touch-icon-precompose" href="/templates/<?php echo TEMPLATE; ?>/images/touch-device.png" />
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div>
<!--AVATARS-->
<?php if ($inUser->id){ ?>
<div class="avatarsb2">
<a href="/users/<?php echo $inUser->login; ?>"><?php echo'<img class="avatars" src="'.$inUser->imageurl.'"></a>';?></a>
</div>
<?php } ?>
<!--EXIT -->
<!--LOGO-->
<div class="logo">
<a style="color: #fff;" href="/" >MobLove</a>
</div>
<!--EXIT-->
<!--ICON MENU-->
<button class="toggle-button">
<i class="menu"></i>
</button>
<!--EXIT-->
<i class="mobmess"><?php $this->printModules('mob-mess'); ?></i>
</div>
</div>
</nav>
<div class="heiga">
<?php $this->printPathway(''); ?>
<main id="panel">
<!-- блок выдвижной право-->
<div id="mainbody" class="container_12">
<div id="main">
<div class="positions">
<?php if($mod_count['verh']) { ?>
<?php $this->printModules('verh'); ?>
<?php } ?>
<?php if ($mod_count['bottom2']) { ?>
<div class="grid_12">
<?php $inPage->printModules('bottom2'); ?></div>
<?php } ?>
<?php if($mod_count['topmenupoz']) { ?>
<?php $this->printModules('topmenupoz'); ?>
<?php } ?>
<?php if($mod_count['sidebarpoz']) { ?>
<?php $this->printModules('sidebarpoz'); ?>
<?php } ?>
<?php if($this->page_body){ ?>
<div class="component">
<?php $this->printBody(); ?>
</div>
<?php } ?>
<!--Footer-->
<div class="footers">
<a href="/"><img alt=""style="width: 135px;" src="/templates/<?php echo TEMPLATE; ?>/images/logo.png" /></a>
<div id="" class="">
<?php $this->printSitename(); ?> <span itemprop="copyrightYear">
<?php echo date('Y'); ?> </span> <span>все права защищены</span></div>
</div>
<!--end Footer-->
</div>
</div>
</div>
<!--EXIT-->
<br />
</main>
</div>
<!--BLOSK MENU-->
<nav id="menu">
<div id="sidebar"><br/><br/><br/>
<div class="block-menu">
<ul id="menu3"></ul>
<div class="poiskmenu">
<p style="text-align: center;"><a href="/"><img alt="" src="/templates/<?php echo TEMPLATE; ?>/images/logo.png" style="height: 25%; width: 70%;" /></a></p>
<br>
<a class="konta" href="tel:+7 (960) 000-00-00"> +7 (960) 000-00-00</a><?php if($mod_count['seacnl']) { ?>
<?php $this->printModules('seacnl'); ?>
<?php } ?>
</div>
<?php if($mod_count['menumobile']) { ?>
<div class="">
<?php $this->printModules('menumobile'); ?>
</div>
<?php } ?>
</div>
</div>
</nav>
<!--EXIT-->
</body>
<script src="/templates/<?php echo TEMPLATE; ?>/js/slideout.min.js"></script>
<script type="text/javascript">
var slideout = new Slideout({
'panel': document.getElementById('panel'),
'menu': document.getElementById('menu'),
'padding': 256,
'tolerance': 70
});
// Toggle button
document.querySelector('.toggle-button').addEventListener('click', function() {
slideout.toggle();
});
</script>
<script type="text/javascript">
function hideMenu() {
slideout.destroy();
}
</script>
<script type="text/javascript">
$(function(){
$('#sess_messages').hide().fadeIn();
$('#topmenu .menu li, #usermenu li').hover(
function() {
$(this).find('ul:first').fadeIn('fast');
$(this).find('a:first').addClass("hover");
},
function() {
$(this).find('ul:first').hide();
$(this).find('a:first').removeClass("hover");
}
);
});
</script>
<?php if($inConf->debug && $inUser->is_admin){ cmsPage::includeTemplateFile('special/debug.php'); } ?>
</body>
</html>