function Menu() {
if ($_SESSION['USER_LOGIN_IN'] != 1) {
echo '
<div class="login">
<a href="/login">Войти</a>
</div>
';
}
else {
echo '
<div class="login">
<a href="account/logout/">Выйти</a>
</div>
';
}
}
function Head($p1) {
echo '
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>'.$p1.'</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="assets/normalize.css">
<link rel="stylesheet" href="assets/main.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header id="header">
<div id="wrapper">
<div class="logo">
<a href="/">
<h3>Logo</h3>
</a>
</div>
'.Menu().'
<div class="cart">
<a href="/">Корзина</a>
</div>
</div>
</header>
';
}