File tree 3 files changed +34
-3
lines changed
3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 31
31
'class ' => \hiqdev \assetpackagist \menus \FooterMenu::class,
32
32
],
33
33
],
34
+ 'definitions ' => [
35
+ \hiqdev \themes \original \menus \NavbarMenu::class => [
36
+ 'class ' => \hiqdev \assetpackagist \menus \NavbarMenu::class,
37
+ ],
38
+ ],
34
39
],
35
40
];
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ class MainMenu extends \hiqdev\yii2\menus\Menu
22
22
public function items ()
23
23
{
24
24
return [
25
- 'search ' => [
26
- 'label ' => $ this ->render ('main-search ' ),
27
- ],
28
25
'about ' => [
29
26
'label ' => Yii::t ('hisite ' , 'About ' ),
30
27
'url ' => ['/site/about ' ],
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Asset Packagist.
4
+ *
5
+ * @link https://github.com/hiqdev/asset-packagist
6
+ * @package asset-packagist
7
+ * @license BSD-3-Clause
8
+ * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
+ */
10
+
11
+ namespace hiqdev \assetpackagist \menus ;
12
+
13
+ use Yii ;
14
+
15
+ /**
16
+ * Navbar menu.
17
+ * @author Andrii Vasyliev <sol@hiqdev.com>
18
+ */
19
+ class NavbarMenu extends \hiqdev \themes \original \menus \NavbarMenu
20
+ {
21
+ public function items ()
22
+ {
23
+ return array_merge (parent ::items (), [
24
+ 'search ' => [
25
+ 'label ' => $ this ->render ('main-search ' ),
26
+ ],
27
+ ]);
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments