Co-authored-by: Martin Slachta <martin.slachta@outlook.com> Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
abstract class RsvAdminPage {
|
||||
|
||||
final public function render(): void {
|
||||
if (!current_user_can(RsvCapabilities::MANAGE)) {
|
||||
return;
|
||||
}
|
||||
echo '<div class="wrap">';
|
||||
$this->render_content();
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
abstract protected function render_content(): void;
|
||||
}
|
||||
Reference in New Issue
Block a user