diff options
Diffstat (limited to 'src/web/helpers/aria.php')
| -rw-r--r-- | src/web/helpers/aria.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/web/helpers/aria.php b/src/web/helpers/aria.php deleted file mode 100644 index 0e06b97..0000000 --- a/src/web/helpers/aria.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php /* Copyright (c) 2024 Freya Murphy */ - -function aria_section(string $id, ?string $title = NULL): string -{ - $out = ''; - if ($title) { - $idh = $id . '_heading'; - $out .= sprintf('<div id="%s" class="section" role="region" aria-labelledby="%s">', - $id, $idh); - $out .= sprintf('<h2 class="heading" id="%s">%s</h2>', - $idh, $title); - } else { - $out .= sprintf('<div id="%s" class="section" role="region">', - $id); - } - return $out; -} |