From 9af7d68e6d88dfda8dc9218486a4b189ac51bd32 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 27 Oct 2017 14:56:37 +0300 Subject: [PATCH] -Image alts in gallery --- common/models/Gallery.php | 1 + frontend/views/site/gallery.php | 69 ++++++++++++++++++++++++++++++++++++++------------------------------- 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/common/models/Gallery.php b/common/models/Gallery.php index 28f55d8..d960451 100755 --- a/common/models/Gallery.php +++ b/common/models/Gallery.php @@ -29,6 +29,7 @@ 'gallery' => true, ] ) + ->with('lang') ->all(); } diff --git a/frontend/views/site/gallery.php b/frontend/views/site/gallery.php index 069e049..3c0cd87 100755 --- a/frontend/views/site/gallery.php +++ b/frontend/views/site/gallery.php @@ -1,6 +1,6 @@ get('seo'); -$this->title = \Yii::t('app', 'Галерея'); -$this->params[ 'breadcrumbs' ][] = $this->title; + + $seo = \Yii::$app->get('seo'); + $this->title = \Yii::t('app', 'Галерея'); + $this->params[ 'breadcrumbs' ][] = $this->title; ?>
-
-
-
-
-

Галерея

-
-
+