File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 3131                'class '  => \hiqdev \assetpackagist \menus \FooterMenu::class,
3232            ],
3333        ],
34+         'definitions '  => [
35+             \hiqdev \themes \original \menus \NavbarMenu::class => [
36+                 'class '  => \hiqdev \assetpackagist \menus \NavbarMenu::class,
37+             ],
38+         ],
3439    ],
3540];
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ class MainMenu extends \hiqdev\yii2\menus\Menu
2222    public  function  items ()
2323    {
2424        return  [
25-             'search '  => [
26-                 'label '  => $ this render ('main-search ' ),
27-             ],
2825            'about '  => [
2926                'label '  => Yii::t ('hisite ' , 'About ' ),
3027                '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