289 lines
9.8 KiB
PHP
289 lines
9.8 KiB
PHP
<?php
|
|
/**
|
|
* @var string $content
|
|
* @var $this \yii\web\View
|
|
*/
|
|
|
|
use app\services\navigation\NavigationAdminGlobal;
|
|
|
|
//echo $_COOKIE['googtrans'];
|
|
$lg = !empty($_COOKIE['cookie_lg']) ? $_COOKIE['cookie_lg'] : 'bg'
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="bg-BG">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="Cache-control" content="public">
|
|
<title><?= Yii::$app->controller->pageTitle ?></title>
|
|
<link href="/_public/assets/fonts/line-awesome/css/line-awesome.min.css" rel="stylesheet">
|
|
<link href="/_public/assets/css/<?= Yii::$app->controller->userTypeKey ?>.css" rel="stylesheet">
|
|
<link href="/_public/plugins/air-datepicker/air-datepicker.css" rel="stylesheet">
|
|
<link href="/_public/plugins/cropperJs/cropper.min.css" rel="stylesheet">
|
|
<link href="/_public/assets/css/default.css" rel="stylesheet">
|
|
<link href="/_public/assets/css/cms.css" rel="stylesheet">
|
|
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script>
|
|
<script src="/_public/assets/js/default.js"></script>
|
|
<script src="/_public/assets/js/cms.js"></script>
|
|
<script src="/_public/assets/js/wss.js"></script>
|
|
<style>
|
|
.prepare * {
|
|
color: rgba(0, 0, 0, 0.1);
|
|
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.skiptranslate iframe {
|
|
height: 0 !important;
|
|
opacity: 0 !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
body {
|
|
background: rgb(255, 255, 255);
|
|
position: relative;
|
|
min-height: 100%;
|
|
top: 0 !important;
|
|
}
|
|
|
|
.skiptranslate .goog-te-gadget-simple {
|
|
margin-left: 50px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#google_translate_element {
|
|
height: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
#goog-gt-tt {
|
|
display: none !important;
|
|
}
|
|
|
|
.goog-tooltip {
|
|
display: none !important;
|
|
}
|
|
|
|
.goog-tooltip:hover {
|
|
display: none !important;
|
|
}
|
|
|
|
.goog-text-highlight {
|
|
background-color: transparent !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
[data-ts-button] {
|
|
width: 30px;
|
|
height: 30px;
|
|
line-height: 10px;
|
|
text-align: center;
|
|
background: #cccccc;
|
|
margin: 5px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
[data-ts-button] i {
|
|
position: absolute;
|
|
left: 7px;
|
|
top: 7px;
|
|
}
|
|
|
|
[data-ts-button].sl {
|
|
background: var(--base-background-dark);
|
|
}
|
|
|
|
[data-ts-button].sl:after {
|
|
content: '';
|
|
display: block;
|
|
height: 4px;
|
|
width: 4px;
|
|
background: #FFFFFF;
|
|
position: absolute;
|
|
bottom: 2px;
|
|
border-radius: 100%;
|
|
left: calc(50% - 1px);
|
|
}
|
|
|
|
.body {
|
|
background: #FFFFFF;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
transition: all 500ms 300ms;
|
|
position: fixed;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.body-visible {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.loader {
|
|
color: #FFFFFF;
|
|
font-size: 40px;
|
|
}
|
|
.loading-logo {
|
|
display: block;
|
|
position: fixed;
|
|
width: 400px;
|
|
left: calc(50% - 200px);
|
|
top: calc(50% - 100px);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
|
|
.loading-dots { display: flex; position: fixed; top: calc(50%); left: calc(50% - 10px)}
|
|
.loading-dots i {
|
|
font-size: 70px;
|
|
background: #FFFFFF;
|
|
display: block;
|
|
font-style: normal;
|
|
margin: 5px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.loading-dots i {
|
|
animation-name: blink;
|
|
animation-duration: 1.2s;
|
|
animation-iteration-count: infinite;
|
|
animation-fill-mode: both;
|
|
transform: scale(1);
|
|
}
|
|
.loading-dots i:nth-child(2) { animation-delay: .2s; }
|
|
.loading-dots i:nth-child(3) { animation-delay: .4s; }
|
|
|
|
@keyframes blink {
|
|
0% {
|
|
opacity: .1;
|
|
}
|
|
20% {
|
|
opacity: 1;
|
|
|
|
}
|
|
100% {
|
|
opacity: .1;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body style="background: #857750;">
|
|
<img src="/_public/images/logo-w-en.png" class="loading-logo">
|
|
<span class="loading-dots"><i></i><i></i><i></i></span>
|
|
<div class="body <?= $lg == 'bg' ? 'body-visible' : '' ?>">
|
|
<input type="hidden" id="user_type_key" value="<?= Yii::$app->controller->userTypeKey ?>">
|
|
<div class="main-container" style="min-width: 1000px; 100%; overflow-x: hidden">
|
|
<div class="header">
|
|
<script type="text/javascript">
|
|
|
|
function setCookie(key, value, expiry) {
|
|
var expires = new Date();
|
|
expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000));
|
|
document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
|
|
}
|
|
|
|
const time = '<?= empty($_GET['id']) ? '0' : '300' ?>';
|
|
|
|
function googleTranslateElementInit() {
|
|
setTimeout(function () {
|
|
document.querySelectorAll('.cke_contents').forEach(a => {
|
|
a.classList.add('notranslate')
|
|
})
|
|
setCookie('googtrans', '/bg/<?= $lg ?>', 1);
|
|
new google.translate.TranslateElement({
|
|
pageLanguage: 'bg', includedLanguages: 'en,bg', autoDisplay: true,
|
|
//layout: google.translate.TranslateElement.InlineLayout.SIMPLE
|
|
}, 'google_translate_element')
|
|
}, parseInt(time))
|
|
setTimeout(function () {
|
|
document.querySelector('.body').classList.add('body-visible')
|
|
}, 400)
|
|
}
|
|
</script>
|
|
<script type="text/javascript"
|
|
src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
|
<?= $this->render('cms_header') ?>
|
|
</div>
|
|
<div class="full-page flex">
|
|
<div class="page-navbar">
|
|
<img id="header-logo" class="logo-image"
|
|
src="/_public/assets/images/header-logo-<?= !empty($_COOKIE['cookie_lg']) ? $_COOKIE['cookie_lg'] : 'bg' ?>.png"
|
|
style="display: block; width: 80%; margin-left: 5%; margin-bottom: 20px; margin-top: 5px">
|
|
|
|
<?php
|
|
if (!empty(Yii::$app->controller->userTypeKey)) {
|
|
switch (Yii::$app->controller->userTypeKey):
|
|
case 'admin-global':
|
|
echo NavigationAdminGlobal::left();
|
|
break;
|
|
case 'admin-cms':
|
|
//echo \app\services\navigation\NavigationPartner::left();
|
|
break;
|
|
case 'partner':
|
|
echo \app\services\navigation\NavigationPartner::left();
|
|
break;
|
|
endswitch;
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="page-content" style="padding-top: 20px">
|
|
<?= $content ?>
|
|
<div style="text-align: center">
|
|
За въпроси и проблеми, моля пишете на е-мейл: <a href="mailto:helpdesk@nasledstvo.bg">helpdesk@nasledstvo.bg</a>
|
|
</div>
|
|
<?php $ap = \app\models\AboutProject::findOne(1);
|
|
$lg = $_COOKIE['cookie_lg'] ?? 'bg' ?>
|
|
<div class="content top25 footer-logos">
|
|
<?php if ($lg == 'bg'):
|
|
$images = $ap->getSrcOfMultipleImages('about_project_logos', '3:1');
|
|
?>
|
|
<?php foreach ($images as $image): ?>
|
|
<img src="<?= $image ?>">
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<?php $images = $ap->getSrcOfMultipleImages('about_project_logos_en', '3:1'); ?>
|
|
<?php foreach ($images as $image): ?>
|
|
<img src="<?= $image ?>">
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="content ct top25" style="padding-bottom: 80px">
|
|
<div style="width: 100%; max-width: 900px; margin: 0 auto; font-size: 14px; padding-bottom: 25px">
|
|
<?= $ap->{'text_' . $lg} ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="copyright">Copyright <?= date('Y')?>, Сдружение „Център за върхови постижения „Наследство БГ“</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
<?php
|
|
|
|
|
|
if (isset($_SESSION['flash'])) {
|
|
if (isset($_SESSION['flash']['success'])) {
|
|
echo 'flash.success("' . $_SESSION['flash']['msg'] . '")';
|
|
} else
|
|
if (isset($_SESSION['flash']['error'])) {
|
|
echo 'flash.error("' . $_SESSION['flash']['msg'] . '")';
|
|
} else
|
|
if (isset($_SESSION['flash']['warning'])) {
|
|
echo 'flash.warning("' . $_SESSION['flash']['msg'] . '")';
|
|
}
|
|
unset($_SESSION['flash']);
|
|
}
|
|
?>
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|