Initial import
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<link rel="stylesheet" href="/_public/assets/css/page.css">
|
||||
<link rel="stylesheet" href="/_public/assets/css/article-module.css">
|
||||
<?php
|
||||
|
||||
use app\models\Pages;
|
||||
use app\models\Ts;
|
||||
use app\widgets\Carousel;
|
||||
use app\widgets\Includes;
|
||||
|
||||
/**
|
||||
* @var Pages $model
|
||||
* @var \yii\web\View $this
|
||||
*/
|
||||
Ts::set([3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]);
|
||||
|
||||
Yii::$app->controller->pageTitle = $model->headerTitle();
|
||||
Includes::widget([
|
||||
'type' => 'page_header',
|
||||
'model' => $model,
|
||||
'bottom_care' => $model->headerTitle()
|
||||
]);
|
||||
echo $this->render('/site/includes/list_e_library')
|
||||
?>
|
||||
<script>
|
||||
function loadSpecificFilter(e) {
|
||||
let container = document.querySelector(`[data-content-id="${e.dataset.filterInput}"]`)
|
||||
if (e.value) {
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('get', '/remote/get-specific-filter/?parent_id=' + e.value)
|
||||
xhr.onload = function () {
|
||||
if (container)
|
||||
container.innerHTML = xhr.responseText
|
||||
}
|
||||
xhr.send();
|
||||
} else {
|
||||
if (container)
|
||||
container.innerHTML = ""
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user