Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 19 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| OlzFooter | |
0.00% |
0 / 19 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getHtml | |
0.00% |
0 / 19 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Olz\Components\Page\OlzFooter; |
| 4 | |
| 5 | use Olz\Components\Common\OlzComponent; |
| 6 | |
| 7 | /** @extends OlzComponent<array<string, mixed>> */ |
| 8 | class OlzFooter extends OlzComponent { |
| 9 | public function getHtml(mixed $args): string { |
| 10 | $code_href = $this->envUtils()->getCodeHref(); |
| 11 | |
| 12 | $honeypot_username = $this->emailUtils()->generateSpamEmailAddress(); |
| 13 | $host = $this->envUtils()->getEmailForwardingHost(); |
| 14 | $honeypot_email = "{$honeypot_username}@{$host}"; |
| 15 | $honeypot_name = implode(' ', array_map(function ($part) { |
| 16 | return ucfirst($part); |
| 17 | }, explode('.', $honeypot_username))); |
| 18 | $spam_honeypot = <<<ZZZZZZZZZZ |
| 19 | <span class='kontakt'> |
| 20 | Kontakt: <a href='mailto:{$honeypot_email}'>{$honeypot_name}</a> |
| 21 | </span> |
| 22 | ZZZZZZZZZZ; |
| 23 | |
| 24 | return <<<ZZZZZZZZZZ |
| 25 | <div style='clear:both;'> </div> |
| 26 | </div> |
| 27 | </div> |
| 28 | <div class='olz-footer'> |
| 29 | <a href='{$code_href}fuer_einsteiger?von=footer'>Für Einsteiger</a> |
| 30 | <a href='{$code_href}fragen_und_antworten'>Fragen & Antworten (FAQ)</a> |
| 31 | <a href='{$code_href}datenschutz'>Datenschutz</a> |
| 32 | <a href='{$code_href}sitemap'>Sitemap</a> |
| 33 | {$spam_honeypot} |
| 34 | </div> |
| 35 | <div id='edit-entity-react-root'></div> |
| 36 | <div id='dialog-react-root'></div> |
| 37 | </body> |
| 38 | </html> |
| 39 | ZZZZZZZZZZ; |
| 40 | } |
| 41 | } |