$config = cmsConfig::getInstance();
$core = cmsCore::getInstance();
?>
<!DOCTYPE html>
<html>
<head>
<title><?php $this->title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php $this->addMainCSS("templates/{$this->name}/css/theme-text.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/theme-layout.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/theme-gui.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/theme-widgets.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/theme-content.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/theme-modal.css"); ?>
<?php $this->addMainCSS("templates/{$this->name}/css/lamagrad.css"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/jquery.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/jquery-modal.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/core.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/modal.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/messages.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/time.js"); ?>
<?php $this->addMainJS("templates/{$this->name}/js/caption.js"); ?>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Cuprum&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<?php $this->head(); ?>
<style><?php include('options.css.php'); ?></style>
<script src="http://vk.com/js/api/openapi.js" type="text/javascript" charset="windows-1251"></script>
</head>
<body>
<div class="share42init" data-top1="340" data-top2="340" data-margin="10"></div>
<script type="text/javascript" src="http://вбурятии.рф/share42/share42.js"></script>
<!--LiveInternet counter--><script type="text/javascript"><!--
new Image().src = "//counter.yadro.ru/hit?r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random();//--></script><!--/LiveInternet-->
<!-- Start SiteHeart code -->
<script>
(function(){
var widget_id = 675122;
_shcp =[{widget_id: widget_id}];
var lang =(navigator.language || navigator.systemLanguage
|| navigator.userLanguage ||"en")
.substr(0,2).toLowerCase();
var url ="widget.siteheart.com/widget/sh/"+ widget_id +"/"+ lang +"/widget.js";
var hcc = document.createElement("script");
hcc.type ="text/javascript";
hcc.async =true;
hcc.src =("https:"== document.location.protocol ?"https":"http")
+"://"+ url;
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hcc, s.nextSibling);
})();
</script>
<!-- End SiteHeart code -->
<script type="text/javascript">
var URL=new Array("news.php","http://tuday.ru/","useful_site.php","statistics.php")
var image_ID=new Array("http://xn--90abta2bmf1h.xn--p1ai/templates/lamagrad/images/main/moy.png",
"xn--90abta2bmf1h.xn--p1ai/templates/lamagrad/images/main/tuday.png",
"xn--90abta2bmf1h.xn--p1ai/templates/lamagrad/images/main/city3012.png",
"xn--90abta2bmf1h.xn--p1ai/templates/lamagrad/images/main/mvd.png")
var banner=3;
var last_banner=URL.length-1;
var pause=4000;
var flag=0;
function Rotate(image_num) {
if (banner==last_banner) banner=0;
else banner++;
document.images[image_num].src=image_ID[banner];
document.getElementById("links").href=URL[banner];
}
function Start_Rotate() {
if (flag==0) {Timeout=window.setInterval('Rotate("banners")',pause); flag=1;}
}
window.onfocus = function(){ Start_Rotate(); }
window.onblur = function(){ window.clearInterval(Timeout); flag=0; }
if (flag==0) { Start_Rotate(); }
</script>
<div class="laWrapper">
<div class="laHeader">
<div class="laCont">
<?php if($this->hasWidgetsOn('top')) { ?>
<div class="topWidget">
<div class="menuHelp">Меню:</div>
<?php $this->widgets('top', false, 'wrapper_plain'); ?>
</div>
<?php } ?>
<div class="topBlock">
<div class="laLogo">
<a href="/">
<img src="/templates/lamagrad/images/la_logo.png" alt="Logo">
</a>
<span id="doc_time"></span>
</div>
<div class="top2Widget">
<?php $this->widgets('top2', false, 'wrapper_plain'); ?>
</div>
<div class="userBlock">
<?php if($this->hasWidgetsOn('usermenu') and cmsUser::isLogged()) { ?>
<div class="userMenu">
<div class="menuHelp">Персональное меню:</div>
<?php $this->widgets('usermenu', false, 'wrapper_plain'); ?>
</div>
<?php }else{ ?>
<div class="userLogin">
<ul>
<li>
<a href="/auth/register">Регистрация</a>
</li>
<li>
<a class="another" href="/auth/login">Вход</a>
</li>
</ul>
<div class="userSocial">
<a href="#">
<img src="/templates/lamagrad/images/la_soc.png" alt="Social">
</a>
</div>
</div>
<?php } ?>
</div>
<div class="laClear"></div>
</div>
</div>
</div>
<div class="laMenuLine">
<div class="laCont">
<div class="mainMenu">
<?php $this->widgets('mainmenu', false, 'wrapper_plain'); ?>
</div>
</div>
</div>
<div class="laCont">
<div class="laPage">
<?php if ($this->isBreadcrumbs()){ ?>
<div id="breadcrumbs">
<?php $this->breadcrumbs(array('strip_last'=>false)); ?>
</div>
<?php } ?>
<div class="laBig">
<?php $this->widgets('big', true, 'wrapper'); ?>
</div>
<div class="laContent">
<?php
$is_right1 = $this->hasWidgetsOn('right1', 'right2');
$is_sidebar1 = $this->hasWidgetsOn('sidebar1');
?>
<?php if($is_right1){ ?>
<div class="right1
<?php if(!$is_sidebar1){ ?>
hundred
<?php } ?>
">
<?php $this->widgets('right1'); ?>
<?php $this->widgets('right2', true, 'wrapper_right'); ?>
</div>
<?php } ?>
<?php if($is_sidebar1){ ?>
<div class="sidebar1
<?php if(!$is_right1){ ?>
hundred
<?php } ?>
">
<?php $this->widgets('sidebar1'); ?>
</div>
<?php } ?>
<div class="laCenter
<?php if($is_right1){ ?>
<?php if($is_sidebar1){ ?>
maL
<?php }else{ ?>
maM
<?php } ?>
<?php }elseif($is_sidebar1){ ?>
maS
<?php }else{ ?>
maNo
<?php } ?>
">
<div class="laComponent">
<div class="laMess">
<?php
$messages = cmsUser::getSessionMessages();
if ($messages){
?>
<div class="sess_messages">
<?php
foreach($messages as $message){
echo $message;
}
?>
</div>
<?php
}
?>
</div>
<?php $this->widgets('maintop'); ?>
<div class="laAction">
<?php $this->widgets('action', false, 'wrapper_plain'); ?>
</div>
<?php if ($this->isBody()){ ?>
<article>
<?php $this->body(); ?>
</article>
<?php } ?>
<?php $this->widgets('mainbottom'); ?>
</div>
<div class="laBanWidget">
<?php $this->widgets('banner', false, 'wrapper_banner'); ?>
</div>
<div class="laTabsWidget">
<?php $this->widgets('tabs'); ?>
</div>
</div>
<div class="laClear"></div>
</div>
</div>
<div class="laPage2">
<div class="laDouble">
<div class="doubleLeft">
<?php $this->widgets('tabs1'); ?>
</div>
<div class="doubleRight">
<div class="laUser user2">
<?php $this->widgets('user2'); ?>
</div>
<div class="laUser user1">
<?php $this->widgets('user1'); ?>
</div>
<div class="laClearR"></div>
<div class="laBanWidget">
<?php $this->widgets('banner2', false, 'wrapper_banner'); ?>
</div>
<div class="laClear"></div>
</div>
<div class="laClear"></div>
</div>
</div>
</div>
<?php if($this->hasWidgetsOn('header')){ ?>
<div class="laCols">
<div class="laColsTop"></div>
<div class="laColsBot">
<div class="laCont">
<?php $this->widgets('header'); ?>
</div>
</div>
</div>
<?php } ?>
<div class="laGrayArea">
<div class="laCont">
<div class="inGrayArea">
<div class="igaRight">
<?php $this->widgets('footer4'); ?>
</div>
<div class="igaLeft">
<div class="footer1 fooWidget">
<?php $this->widgets('footer1'); ?>
</div>
<div class="footer2 fooWidget">
<?php $this->widgets('footer2'); ?>
</div>
<div class="footer3 fooWidget">
<?php $this->widgets('footer3'); ?>
</div>
<div class="laClearL"></div>
<div class="igaBottom">
<div class="fooLogo">
<a href="/">
<img src="/templates/lamagrad/images/la_foologo.png" alt="Logo">
</a>
</div>
<div class="igaBottomRight">
<div class="ibrTop">Редакция сайта</div>
<div class="ibrBot">8 (9025) 63 09 43</div>
</div>
<div class="laClear"></div>
</div>
</div>
<div class="laClear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
clock();
</script>
</body>
</html>