Commit 5a7062ec02113c3fa20e91cf6168df887755c533
1 parent
9fa78a21
головна in breadcrumbs
Showing
3 changed files
with
7 additions
and
0 deletions
Show diff stats
common/messages/ru/app.php
| @@ -234,4 +234,5 @@ return [ | @@ -234,4 +234,5 @@ return [ | ||
| 234 | // для отсылки на эмэйл | 234 | // для отсылки на эмэйл |
| 235 | 235 | ||
| 236 | "Submit comment" => "Отправить комментарий", | 236 | "Submit comment" => "Отправить комментарий", |
| 237 | + "Home" => "Главная", | ||
| 237 | ]; | 238 | ]; |
| 238 | \ No newline at end of file | 239 | \ No newline at end of file |
common/messages/ua/app.php
frontend/views/layouts/main.php
| @@ -748,6 +748,10 @@ | @@ -748,6 +748,10 @@ | ||
| 748 | <?= Breadcrumbs::widget( | 748 | <?= Breadcrumbs::widget( |
| 749 | [ | 749 | [ |
| 750 | 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [], | 750 | 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [], |
| 751 | + 'homeLink' => [ | ||
| 752 | + 'label' => \Yii::t('app', "Home"), | ||
| 753 | + 'url' => \Yii::$app->homeUrl . \artbox\core\models\Language::getCurrent()->url | ||
| 754 | + ] | ||
| 751 | ] | 755 | ] |
| 752 | ) ?> | 756 | ) ?> |
| 753 | 757 |