use yii\easyii\modules\gallery\api\Gallery; use yii\easyii\modules\page\api\Page; use yii\helpers\Html; use yii\helpers\Url; $page = Page::get('page-gallery'); $this->title = $page->seo('title', $page->model->title); $this->params['breadcrumbs'][] = $page->model->title; ?> <h1><?php echo $page->seo('h1', $page->title); ?> </h1> <br/> <?php foreach (Gallery::cats() as $album) { ?> <a class="center-block" href="<?php echo Url::to(['gallery/view', 'slug' => $album->slug]); ?> "> <?php echo Html::img(Image::thumb($album->image, 160, 120)); ?> <br/><?php echo $album->title; ?> </a> <br/> <?php }
</a> <span class="date">[<?php echo $news->date; ?> ]</span> </li> <?php } ?> </ul> </div> </div> <div class="col col-5"> <div class="photogallery"> <?php foreach (Gallery::cats() as $cat) { ?> <a class="preview" href="<?php echo Yii::$app->urlManager->createUrl(['site/gallery', 'slug' => $cat->slug]); ?> "> <img src="<?php echo $cat->image; ?> " style="width: 150px; height: 100px"> <div class="title"><?php echo $cat->title; ?> </div> </a> <?php