diff --git a/elgg-plugin.php b/elgg-plugin.php index 92a7bf8..4e31543 100644 --- a/elgg-plugin.php +++ b/elgg-plugin.php @@ -1,6 +1,7 @@ Bootstrap::class, @@ -20,6 +21,9 @@ 'target_blank:test' => [ 'path' => '/target_blank/test', 'resource' => 'target_blank/test', + 'middleware' => [ + AdminGatekeeper::class, + ], ], ], ]; diff --git a/views/default/resources/target_blank/test.php b/views/default/resources/target_blank/test.php index 3cd0ac9..bc82773 100644 --- a/views/default/resources/target_blank/test.php +++ b/views/default/resources/target_blank/test.php @@ -1,7 +1,5 @@ Google.nl
"; $body .= "Google.nl (display: none)
"; $body .= "Google.nl (HTTPS)
"; @@ -21,9 +19,6 @@ 'href' => 'http://google.nl', ]); -$content = elgg_view_layout('one_column', [ - 'title' => elgg_echo('Test'), +echo elgg_view_page(elgg_echo('Test'), [ 'content' => $body, ]); - -echo elgg_view_page(elgg_echo('Test'), $content);