Здравствуйте!
На страницах сайта вверху вылазит ошибка какая-то... Содержание
Notice: Undefined index: activate in /var/www/uid10541/data/www/stroj-remont.ru/system/storage/modification/catalog/view/theme/default/template/common/header.tpl on line 77
Как исправить?
Вот файл header.tpl:
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content= "<?php echo $keywords; ?>" />
<?php } ?>
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/scrolltop.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/theme/default/stylesheet/scrolltop.css" rel="stylesheet">
<?php foreach ($styles as $style) { ?>
<link href="<?php echo $style['href']; ?>" type="text/css" rel="<?php echo $style['rel']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<?php foreach ($scripts as $script) { ?>
<script src="<?php echo $script; ?>" type="text/javascript"></script>
<?php } ?>
<?php foreach ($analytics as $analytic) { ?>
<?php echo $analytic; ?>
<?php } ?>
<?php if ($buyoneclick_status || $buyoneclick_status_category) { ?>
<script src="catalog/view/javascript/buyoneclick.js" type="text/javascript"></script>
<?php if ($buyoneclick_validation_status) { ?>
<script src="catalog/view/javascript/jquery.mask.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$('#boc_phone').mask('<?php echo $buyoneclick_validation_type; ?>');
});
</script>
<?php } ?>
<?php if ($buyoneclick_ya_status || $buyoneclick_google_status) { ?>
<script>
function clickAnalytic(){
<?php if ($buyoneclick_ya_status) { ?>
yaCounter<?=$buyoneclick_ya_counter?>.reachGoal('<?=$buyoneclick_ya_identificator?>');
<?php } ?>
<?php if ($buyoneclick_google_status) { ?>
ga('send', 'event', '<?=$buyoneclick_google_category?>', '<?=$buyoneclick_google_action?>');
<?php } ?>
return true;
}
</script>
<?php } ?>
<?php if ($buyoneclick_style_status) { ?><link href="catalog/view/theme/default/stylesheet/buyoneclick.css" rel="stylesheet"><?php } ?>
<?php } ?>
<?php
$customer_groups = isset($smca_form_data['customer_groups']) ? $smca_form_data['customer_groups'] : array();
$stores = isset($smca_form_data['stores']) ? $smca_form_data['stores'] : array();
?>
<?php if ($smca_form_data['activate'] && !in_array($smca_customer_group_id, $customer_groups) && !in_array($smca_store_id, $stores)) { ?>
<!-- <?php echo $smca_form_data['front_module_name'].':'.$smca_form_data['front_module_version']; ?> -->
<script src="catalog/view/javascript/ocdev_smart_cart/jquery.magnific-popup.min.js?v=<?php echo $smca_form_data['front_module_version']; ?>" type="text/javascript"></script>
<link href="catalog/view/javascript/ocdev_smart_cart/magnific-popup.css?v=<?php echo $smca_form_data['front_module_version']; ?>" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ocdev_smart_cart/stylesheet.css?v=<?php echo $smca_form_data['front_module_version']; ?>"/>
<script type="text/javascript" src="catalog/view/javascript/ocdev_smart_cart/ocdev_smart_cart.js?v=<?php echo $smca_form_data['front_module_version']; ?>"></script>
<!-- <?php echo $smca_form_data['front_module_name'].':'.$smca_form_data['front_module_version']; ?> -->
<?php } ?>
</head>
<div class="container" style="padding-left: 50px;">
<div style="display:none"> <?php echo "!!!"; ?></div>
<?php echo $mou_fulltop; ?>
<div class="container">
<div class="row">
<div class="col-sm-12"><?php echo $mou_top; ?></div>
</div>
<div class="row">
<div class="col-sm-6"><?php echo $mou_top_left; ?></div>
<div class="col-sm-6"><?php echo $mou_top_right; ?></div>
</div>
</div>
</div>
<header>
<div class="container">
<div class="row">
<div class="col-sm-2">
<div id="logo">
<?php if ($logo) { ?>
<a href="<?php echo ""; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
<?php } else { ?>
<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
<?php } ?>
</div>
</div>
<div class="col-sm-3 " style="margin-top: 50px;">
<span class="work-time"><?php echo $open_header ?> </span>
</div>
<div class="col-sm-7" style="margin-top: 50px;">
<div class="col-sm-4" style="text-align: center;">
<span class="phone-header" style="font-weight:normal"><?php echo "Многоканальный <br>"; ?> </span> <span class="phone-header" style="font-size:18px;"> <?php echo $telephone; ?></span> <br>
<span class="phone-header" style="font-weight:normal"><?php if (!empty($telephone2)) {echo "Мобильный <br>";}?> <span class="phone-header" style="font-size:18px;"> <?php if (!empty($telephone2)) {echo $telephone2;}?></span> <br>
<span class="phone-header"><?php if (!empty($telephone3)) {echo $telephone3;} ?> <br> </span>
<span class="phone-header"><?php if (!empty($telephone4)) {echo $telephone4;} ?> <br> </span>
</div>
<div class="col-sm-3" style="text-align: center;">
<a href="/index.php?route=information/pricelist" title="Прайс"> <span class="phone-header" style="font-weight:normal"><u> <img src="catalog/view/theme/default/image/price_logo.png" /> <?php echo "Скачать полный прайс (формат .xls)" ?></u></span></a>
</div>
<div class="col-sm-5" >
<div class="col-sm-6">
<img src="catalog/view/theme/default/image/basket.png" />
</div>
<div class="col-sm-6">
<span style="color: #000; font-size: 14px; padding: 2px; margin: 0 0 2px 0;"> В корзине: </span>
<?php echo $cart; ?>
</div>
</div>
</div>
<div style="padding-right: 15px;">
<?php echo $search; ?>
</div>
</div>
</div>
</header>
<?php if ($categories) { ?>
<div class="container">
<nav id="menu" class="navbar">
<div class="navbar-header"><span id="category" class="visible-xs"><?php echo $text_category; ?></span>
<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<?php foreach ($categories as $category) { ?>
<?php if ($category['children']) { ?>
<li class="dropdown"><a href="<?php echo $category['href']; ?>" class="dropdown-toggle"><?php echo $category['name']; ?></a>
<div class="dropdown-menu">
<div class="dropdown-inner">
<?php foreach (array_chunk($category['children'], ceil(count($category['children']) / $category['column'])) as $children) { ?>
<ul class="list-unstyled">
<?php foreach ($children as $child) { ?>
<li><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<!-- <a href="<?php echo $category['href']; ?>" class="see-all"><?php echo $text_all; ?> <?php echo $category['name']; ?></a> </div> -->
</li>
<?php } else { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
<?php } ?>
<?php } ?>
<!-- <img src="/catalog/view/theme/default/image/mainmenuseparator.jpg"> -->
</ul>
</div>
</nav>
</div>
<?php } ?>