add unsubscribe and view mail on the web buttons
This commit is contained in:
parent
8bdd63afe2
commit
f095954a33
20 changed files with 289 additions and 224 deletions
|
|
@ -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',
|
||||
],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue