add unsubscribe and view mail on the web buttons

This commit is contained in:
isUnknown 2025-02-04 17:35:09 +01:00
parent 8bdd63afe2
commit f095954a33
20 changed files with 289 additions and 224 deletions

View file

@ -5,12 +5,16 @@ Kirby::plugin('adrienpayet/send-button', [
'send-button' => [
'computed' => [
'pageUri' => function () {
return $this->model()->uri();
return $this->model()->uri();
},
'pageStatus' => function () {
return $this->model()->status();
return $this->model()->status();
},
]
]
]
],
],
],
'routes' => [
require __DIR__ . '/routes/send-newsletter.php',
require __DIR__ . '/routes/unsubscribe-newsletter.php',
],
]);