support : integrate shop
This commit is contained in:
parent
ba0df6b5cb
commit
1637b26f58
6 changed files with 68 additions and 46 deletions
|
|
@ -22,4 +22,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'panel' => [
|
||||
'menu' => require_once __DIR__ . '/menu.php'
|
||||
]
|
||||
];
|
||||
22
site/config/menu.php
Normal file
22
site/config/menu.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'home' => [
|
||||
'label' => 'Soutien',
|
||||
'icon' => 'home',
|
||||
'link' => 'pages/support',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/support');
|
||||
},
|
||||
],
|
||||
'shop' => [
|
||||
'label' => 'Boutique',
|
||||
'icon' => 'cart',
|
||||
'link' => 'pages/boutique',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/boutique');
|
||||
},
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue