= Html::img(Yii::getAlias('@web') . '/img/title/otop.png', ['class' => 'h1 img-fluid rounded', 'width' => 260]) ?>
'pjax-product']) ?>
= ListView::widget([
'dataProvider' => $dataProviderProduct,
'layout' => "{summary}\n{items}\n
{pager}
",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_product',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
= Html::a('ผลิตภัณฑ์ในตำบลทั้งหมด', ['/post/index', 'slug' => Yii::$app->abt->simpleSlug('ผลิตภัณฑ์ในตำบลทั้งหมด'), 'id' => 35], ['class' => 'button btn-3']) ?>
= Html::img(Yii::getAlias('@web') . '/img/title/tour.png', ['class' => 'h1 img-fluid rounded', 'width' => 260]) ?>
'pjax-place']) ?>
= ListView::widget([
'dataProvider' => $dataProviderPlace,
'layout' => "{summary}\n{items}\n
{pager}
",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_place',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
= Html::a('แหล่งท่องเที่ยว/สถานที่สำคัญทั้งหมด', ['/post/index', 'slug' => Yii::$app->abt->simpleSlug('แหล่งท่องเที่ยว/สถานที่สำคัญทั้งหมด'), 'id' => 36], ['class' => 'button btn-3']) ?>
= Html::img(Yii::getAlias('@web') . '/img/title/calendar.png', ['class' => 'h1 img-fluid rounded', 'width' => 260]) ?>
= yii2fullcalendar::widget([
'events' => Url::to(['/site/jsoncalendar']),
/*'events' => [
'googleCalendarId' => 'l6nbt4hdoua2b0vpldogt3tmes@group.calendar.google.com',
'className' => 'gcal-event'
],
'googleCalendar' => true,
'clientOptions' => [
'googleCalendarApiKey' => '195023435793-j7pbkoq1i6e0mjpg2vt06ajc4gf28aq6.apps.googleusercontent.com'
]*/
'options' => [
'header' => [
'left' => 'prev,next today',
'center' => 'title',
'right' => 'dayGridMonth,timerGridWeek,timerGridDay'
]
]
]) ?>
registerCss("
.fc-day-grid-event > .fc-content {
white-space: normal;
}
.btn-default {
color: aliceblue !important;
}
") ?>
orderBy(['sort_order' => SORT_ASC])->all() as $category) {
?>
= Html::img(Yii::getAlias('@web') . '/img/title/book.png', ['class' => 'h1 img-fluid rounded', 'width' => 260]) ?>
where(['ebook_category_id' => $category->id])->limit(4)->orderBy(['id' => SORT_DESC])->all() as $book) { ?>
= Html::a(
Html::img(Yii::$app->params['backendUrl'] . '/uploads/ebook/cover/' . $book->cover),
['/ebook/view', 'id' => $book->id],
['target' => '_blank']
) ?>
id . "').bookshelf({color:\"#dd9933\",width:900});";
} ?>
registerJs($script) ?>
all() as $category) {
?>
= Html::img(Yii::getAlias('@web') . '/img/title/load.png', ['class' => 'h1 img-fluid rounded', 'width' => 260]) ?>
= $category->name ?>
'pjax-service-' . $i]) ?>
= ListView::widget([
'dataProvider' => new ActiveDataProvider([
'query' => CmsFile::find()->where(['cms_file_category_id' => $category->id])->limit(6),
'sort' => [
'defaultOrder' => [
'id' => SORT_DESC
]
],
/*
'pagination' => [
'pageSize' => 50
]*/
'pagination' => false,
]),
'layout' => "{summary}\n{items}\n
{pager}
",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_file',
'options' => [
'class' => '',
'tag' => 'ul',
],
'itemOptions' => [
'tag' => 'li',
]
]) ?>