77 lines
3.3 KiB
PHP
77 lines
3.3 KiB
PHP
<link rel="stylesheet" href="/_public/assets/css/page.css">
|
|
<link rel="stylesheet" href="/_public/assets/css/article-module.css">
|
|
<link rel="stylesheet" href="/_public/assets/css/user.css">
|
|
<script src='/_public/assets/js/user.js'></script>
|
|
<style>
|
|
header {
|
|
border-bottom: 0 !important;
|
|
}
|
|
</style>
|
|
<?php
|
|
|
|
/**
|
|
* @var \app\models\Pages $model ;
|
|
*/
|
|
|
|
use app\models\Subscriptions;
|
|
use app\models\Ts;
|
|
|
|
Ts::set([42, 47, 84, 85, 86, 78, 7, 104, 112, 113, 12, 13, 14, 114, 115, 116, 117, 118, 119, 120, 121, 179]);
|
|
|
|
$site_bar = false;
|
|
|
|
if (!empty($_GET['tab'])) {
|
|
if ($_GET['tab'] == 'collections' || $_GET['tab'] == 'publications') {
|
|
$site_bar = true;
|
|
}
|
|
}
|
|
?>
|
|
<div class="content">
|
|
<div class="flex site-bar-page e-magazine">
|
|
|
|
<div class="content-body" style="width: 100%;">
|
|
<div class="page-header">
|
|
<a href="<?= Yii::$app->goHome() ?>" class="top-care">
|
|
<?php if (Yii::$app->language == 'en'): ?>
|
|
<img src="/_public/images/logo_en/N-logo-03.png">
|
|
<?php else: ?>
|
|
<img src="/_public/images/logo-b.png">
|
|
<?php endif; ?>
|
|
</a>
|
|
<?php if ($model && $model->headerImage('21:5')): ?>
|
|
<img class="header-img" src="<?= $model->headerImage('21:5') ?>" ">
|
|
<?php endif; ?>
|
|
<div class="header-site-page-title">
|
|
<?= $model->headerTitle() ?>
|
|
</div>
|
|
</div>
|
|
<?php if (empty($_GET['collection'])): ?>
|
|
<div class="filter-buttons top25">
|
|
<button data-href="<?= $model->getUrl() ?>"
|
|
class="<?= empty($_GET['tab']) ? 'active' : '' ?>"><?= Ts::get(113) ?></button>
|
|
<button class="<?= !empty($_GET['tab']) && $_GET['tab'] == 'subscriptions' ? 'active' : '' ?>"
|
|
data-href="?tab=subscriptions"><?= Ts::get(78) ?></button>
|
|
<button data-href="?tab=events"
|
|
class="<?= !empty($_GET['tab']) && $_GET['tab'] == 'events' ? 'active' : '' ?>"><?= Ts::get(7) ?></button>
|
|
<button data-href="?tab=collections"
|
|
class="<?= !empty($_GET['tab']) && $_GET['tab'] == 'collections' ? 'active' : '' ?>"><?= Ts::get(104) ?></button>
|
|
<button data-href="?tab=publications"
|
|
class="<?= !empty($_GET['tab']) && $_GET['tab'] == 'publications' ? 'active' : '' ?>"><?= Ts::get(112) ?></button>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="top50"></div>
|
|
|
|
<?php if (empty($_GET['tab']) && empty($_GET['collection']) && empty($_GET['publication'])): ?>
|
|
<?= $this->render('/site/inner-pages/modules/_last_added', ['page' => $model]) ?>
|
|
<?php endif; ?>
|
|
<?php if (!empty($_GET['tab'])): ?>
|
|
<?= $this->render('/site/inner-pages/modules/_'.$_GET['tab'], ['page' => $model]) ?>
|
|
<?php endif; ?>
|
|
<?php if (!empty($_GET['collection'])): ?>
|
|
<?= $this->render('/site/inner-pages/modules/_detail_collection', ['page' => $model]) ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|