Initial import
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<link rel="stylesheet" href="/_public/assets/css/page.css">
|
||||
<link rel="stylesheet" href="/_public/assets/css/article-module.css">
|
||||
<link href="/_public/assets/css/search-box.css" rel="stylesheet">
|
||||
<script src="/_public/assets/js/search-box.js"></script>
|
||||
<?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
|
||||
*/
|
||||
|
||||
Yii::$app->controller->pageTitle = $model->headerTitle();
|
||||
Ts::set([15, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 48]);
|
||||
Includes::widget([
|
||||
'type' => 'page_header',
|
||||
'model' => $model,
|
||||
'bottom_care' => $model->headerTitle()
|
||||
]);
|
||||
Carousel::widget([
|
||||
'type' => 'positions_inner_page_collections',
|
||||
'id' => 1
|
||||
]);
|
||||
echo $this->render('/site/includes/list_collection', ['partner_id' => null])
|
||||
?>
|
||||
|
||||
<script>
|
||||
function loadSpecificCollectionFilter(e) {
|
||||
|
||||
console.log(e.dataset.filterInput, e.value)
|
||||
let container = document.querySelector(`[data-content-id="${e.dataset.filterInput}"]`)
|
||||
if (e.value) {
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('get', `/<?= Yii::$app->language ?>/remote/get-specific-filter/?parent_id=${e.value}&lib_type=1`)
|
||||
xhr.onload = function () {
|
||||
if (container)
|
||||
container.innerHTML = xhr.responseText
|
||||
}
|
||||
xhr.send();
|
||||
} else {
|
||||
if (container)
|
||||
container.innerHTML = ""
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user