Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 16 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Olz401Unauthorized | |
0.00% |
0 / 16 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getHtml | |
0.00% |
0 / 16 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Components\Error\Olz401Unauthorized; |
| 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 Olz401Unauthorized 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 401 Nicht eingeloggt", |
| 17 | 'skip_auth_menu' => true, |
| 18 | ], $this); |
| 19 | $out .= "<div class='content-full'>"; |
| 20 | $out .= <<<ZZZZZZZZZZ |
| 21 | <div class='error-image-container-401'> |
| 22 | <img |
| 23 | srcset=' |
| 24 | {$code_href}assets/icns/error_anonymous@2x.jpg 2x, |
| 25 | {$code_href}assets/icns/error_anonymous.jpg 1x |
| 26 | ' |
| 27 | src='{$code_href}assets/icns/error_anonymous.jpg' |
| 28 | alt='Anonymer Läufer' |
| 29 | class='error-image-401' |
| 30 | /> |
| 31 | </div> |
| 32 | <h1>Fehler 401: Die gewünschte Seite ist nur für angemeldete Benutzer*innen.</h1> |
| 33 | <p><b>Du hast vergessen, dich anzumelden!</b></p> |
| 34 | <p>Du tauchst auf der Startliste einfach nicht auf.</p> |
| 35 | <p>Aber keine Bange, <a href='#login-dialog' class='linkint'>hier kannst du dich nachmelden</a>.</p> |
| 36 | ZZZZZZZZZZ; |
| 37 | $out .= "</div>"; |
| 38 | $out .= OlzFooter::render([], $this); |
| 39 | |
| 40 | return $out; |
| 41 | } |
| 42 | } |