rename to children_group
This commit is contained in:
parent
4737893f59
commit
1da21fc8bb
|
|
@ -52,7 +52,6 @@ class ShareViewData
|
||||||
View::share('design', request('design') == 1);
|
View::share('design', request('design') == 1);
|
||||||
View::share('languages', LanguageRepo::enabled());
|
View::share('languages', LanguageRepo::enabled());
|
||||||
View::share('shop_base_url', shop_route('home.index'));
|
View::share('shop_base_url', shop_route('home.index'));
|
||||||
View::share('categories', hook_filter('header.categories', CategoryRepo::getTwoLevelCategories()));
|
|
||||||
View::share('footer_content', hook_filter('footer.content', FooterRepo::handleFooterData()));
|
View::share('footer_content', hook_filter('footer.content', FooterRepo::handleFooterData()));
|
||||||
View::share('menu_content', hook_filter('menu.content', MenuRepo::handleMenuData()));
|
View::share('menu_content', hook_filter('menu.content', MenuRepo::handleMenuData()));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@ class MenuRepo
|
||||||
$menu['name'] = $menu['name'][$locale] ?? '';
|
$menu['name'] = $menu['name'][$locale] ?? '';
|
||||||
$menu['badge']['name'] = $menu['badge']['name'][$locale] ?? '';
|
$menu['badge']['name'] = $menu['badge']['name'][$locale] ?? '';
|
||||||
|
|
||||||
if ($menu['childrenGroup']) {
|
if ($menu['children_group']) {
|
||||||
$menu['childrenGroup'] = self::handleChildrenGroup($menu['childrenGroup']);
|
$menu['children_group'] = self::handleChildrenGroup($menu['children_group']);
|
||||||
}
|
}
|
||||||
$menus[$index] = $menu;
|
$menus[$index] = $menu;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,10 @@ class Bootstrap
|
||||||
*/
|
*/
|
||||||
private function addLatestProducts()
|
private function addLatestProducts()
|
||||||
{
|
{
|
||||||
add_filter('header.categories', function ($data) {
|
add_filter('menu.content', function ($data) {
|
||||||
$data[] = [
|
$data[] = [
|
||||||
'name' => trans('LatestProducts::header.latest_products'),
|
'name' => trans('LatestProducts::header.latest_products'),
|
||||||
"url" => plugin_route('latest_products'),
|
"link" => plugin_route('latest_products'),
|
||||||
];
|
];
|
||||||
return $data;
|
return $data;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue