95 lines
No EOL
3.1 KiB
PHP
95 lines
No EOL
3.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
// Debug mode (désactiver en production)
|
|
'debug' => true,
|
|
|
|
// Panel configuration
|
|
'panel' => [
|
|
'css' => 'assets/css/custom-panel.css',
|
|
// Menu personnalisé du panel
|
|
'menu' => [
|
|
'site' => [
|
|
'label' => 'Données partagées',
|
|
'icon' => 'cog',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, '/site');
|
|
}
|
|
],
|
|
'-', // Séparateur
|
|
'home' => [
|
|
'label' => 'Accueil',
|
|
'icon' => 'home',
|
|
'link' => 'pages/home',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/home');
|
|
}
|
|
],
|
|
'expertise' => [
|
|
'label' => 'Expertise',
|
|
'icon' => 'wand',
|
|
'link' => 'pages/expertise',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/expertise');
|
|
}
|
|
],
|
|
'portfolio' => [
|
|
'label' => 'Portfolio',
|
|
'icon' => 'images',
|
|
'link' => 'pages/portfolio',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/portfolio');
|
|
}
|
|
],
|
|
'jouer' => [
|
|
'label' => 'Jouer',
|
|
'icon' => 'play',
|
|
'link' => 'pages/jouer',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/jouer');
|
|
}
|
|
],
|
|
'a-propos' => [
|
|
'label' => 'À propos',
|
|
'icon' => 'users',
|
|
'link' => 'pages/a-propos',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/a-propos');
|
|
}
|
|
],
|
|
'blog' => [
|
|
'label' => 'Blog',
|
|
'icon' => 'text',
|
|
'link' => 'pages/blog',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/blog');
|
|
}
|
|
],
|
|
'-', // Séparateur
|
|
'users',
|
|
'system'
|
|
]
|
|
],
|
|
|
|
// Langues
|
|
'languages' => true,
|
|
|
|
// Thumbs
|
|
'thumbs' => [
|
|
'srcsets' => [
|
|
'default' => [
|
|
'300w' => ['width' => 300],
|
|
'600w' => ['width' => 600],
|
|
'900w' => ['width' => 900],
|
|
'1200w' => ['width' => 1200]
|
|
]
|
|
]
|
|
],
|
|
]; |