Add Reunions and Notifications views
This commit is contained in:
parent
4e32368227
commit
3df97ca489
10 changed files with 163 additions and 7 deletions
5
public/content/notifications/notifications.txt
Normal file
5
public/content/notifications/notifications.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Title: Notifications
|
||||
|
||||
----
|
||||
|
||||
Uuid: qBMncHJnGg7k439p
|
||||
5
public/content/reunions/reunions.txt
Normal file
5
public/content/reunions/reunions.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Title: Réunions
|
||||
|
||||
----
|
||||
|
||||
Uuid: Tml65cm3jdNuyDmF
|
||||
|
|
@ -11,7 +11,7 @@ return [
|
|||
'pages/projects',
|
||||
'pages/inspirations',
|
||||
'pages/notifications',
|
||||
'pages/events'
|
||||
'pages/reunions'
|
||||
];
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return
|
||||
|
|
@ -49,20 +49,20 @@ return [
|
|||
'-',
|
||||
'notifications' => [
|
||||
'label' => 'Notifications',
|
||||
'icon' => 'bell',
|
||||
'icon' => 'megaphone',
|
||||
'link' => 'pages/notifications',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/notifications');
|
||||
}
|
||||
],
|
||||
'events' => [
|
||||
'label' => 'Événements',
|
||||
'reunions' => [
|
||||
'label' => 'Réunions',
|
||||
'icon' => 'calendar',
|
||||
'link' => 'pages/events',
|
||||
'link' => 'pages/reunions',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/events');
|
||||
return Str::contains($path, 'pages/reunions');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
|
|
|
|||
9
public/site/templates/notifications.json.php
Normal file
9
public/site/templates/notifications.json.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$specificData = [
|
||||
'title' => $page->title()->value(),
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $specificData);
|
||||
|
||||
echo json_encode($data);
|
||||
1
public/site/templates/notifications.php
Normal file
1
public/site/templates/notifications.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php snippet('generic-template') ?>
|
||||
9
public/site/templates/reunions.json.php
Normal file
9
public/site/templates/reunions.json.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$specificData = [
|
||||
'title' => $page->title()->value(),
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $specificData);
|
||||
|
||||
echo json_encode($data);
|
||||
1
public/site/templates/reunions.php
Normal file
1
public/site/templates/reunions.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php snippet('generic-template') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue