Commit b860b622e7b6f8d83b6486e6a1c6b263f004f4de
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
13 additions
and
1 deletions
Show diff stats
backend/views/objectkb/_form_language.php
@@ -53,7 +53,7 @@ window.open('" . Url::to( | @@ -53,7 +53,7 @@ window.open('" . Url::to( | ||
53 | "searchreplace visualblocks code fullscreen", | 53 | "searchreplace visualblocks code fullscreen", |
54 | "insertdatetime media table contextmenu paste image", | 54 | "insertdatetime media table contextmenu paste image", |
55 | ], | 55 | ], |
56 | - 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code", | 56 | + 'toolbar' => "undo redo | styleselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code", |
57 | 'image_advtab' => true, | 57 | 'image_advtab' => true, |
58 | ], | 58 | ], |
59 | ] | 59 | ] |
frontend/views/object/view.php
1 | <?php | 1 | <?php |
2 | use common\models\Objectkb; | 2 | use common\models\Objectkb; |
3 | use yii\helpers\Url; | 3 | use yii\helpers\Url; |
4 | + use artbox\core\components\SeoComponent; | ||
5 | + | ||
4 | /** | 6 | /** |
5 | * User: timur | 7 | * User: timur |
6 | * Date: 25.01.18 | 8 | * Date: 25.01.18 |
7 | * Time: 23:46 | 9 | * Time: 23:46 |
8 | * | 10 | * |
9 | * @var Objectkb $object | 11 | * @var Objectkb $object |
12 | + * @var SeoComponent $seo | ||
10 | */ | 13 | */ |
11 | 14 | ||
15 | + $seo = Yii::$app->get('seo'); | ||
16 | + | ||
17 | + $this->params['h1'] = $seo->h1; | ||
18 | + | ||
19 | + $this->params['breadcrumbs'][] = [ | ||
20 | + 'label' => \Yii::t('app', 'menu-objects'), | ||
21 | + 'url' => Url::toRoute(['object/index']), | ||
22 | + ]; | ||
23 | + $this->params['breadcrumbs'][] = $this->params['h1']; | ||
12 | 24 | ||
13 | ?> | 25 | ?> |
14 | 26 |