Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Olz403Forbidden | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getHtml | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Components\Error\Olz403Forbidden; |
4 | |
5 | use Olz\Components\Common\OlzComponent; |
6 | use Olz\Components\Page\OlzFooter\OlzFooter; |
7 | use Olz\Components\Page\OlzHeaderWithoutRouting\OlzHeaderWithoutRouting; |
8 | |
9 | /** @extends OlzComponent<array<string, mixed>> */ |
10 | class Olz403Forbidden extends OlzComponent { |
11 | public function getHtml(mixed $args): string { |
12 | $code_href = $this->envUtils()->getCodeHref(); |
13 | |
14 | $out = ''; |
15 | $out .= OlzHeaderWithoutRouting::render([ |
16 | 'title' => "Fehler", |
17 | 'skip_auth_menu' => true, |
18 | ], $this); |
19 | $out .= "<div class='content-full'>"; |
20 | $out .= <<<ZZZZZZZZZZ |
21 | <div class='error-image-container-403'> |
22 | <img |
23 | srcset=' |
24 | {$code_href}assets/icns/error_tape@2x.jpg 2x, |
25 | {$code_href}assets/icns/error_tape.jpg 1x |
26 | ' |
27 | src='{$code_href}assets/icns/error_tape.jpg' |
28 | alt='Anonymer Läufer' |
29 | class='error-image-403' |
30 | /> |
31 | </div> |
32 | <h1>Fehler 403: Du hast keine Erlaubnis für die gewünschte Seite.</h1> |
33 | <p><b>Au weia, voll mitten im Sperrgebiet ertappt!</b></p> |
34 | <p>Schnell <a href='{$code_href}' class='linkint'>weg hier, zurück zum Start</a>.</p> |
35 | <p>Du hast eine Sondererlaubnis? Dann müsstest du dich evtl. ausloggen, und <a href='#login-dialog' class='linkint'>mit einem berechtigten Konto wieder einloggen</a>.</p> |
36 | ZZZZZZZZZZ; |
37 | $out .= "</div>"; |
38 | $out .= OlzFooter::render([], $this); |
39 | |
40 | return $out; |
41 | } |
42 | } |