diff options
Diffstat (limited to 'src/includes/buttons.php')
-rw-r--r-- | src/includes/buttons.php | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/includes/buttons.php b/src/includes/buttons.php index b47b925..9b1b26b 100644 --- a/src/includes/buttons.php +++ b/src/includes/buttons.php @@ -1,18 +1,36 @@ <?php foreach ([ - "pronouns" => "they/them, she/her, he/him", + "pronouns" => [ + "they/them, she/her, he/him", + "https://en.pronouns.page/@dvlinablackdress" + ], "bestview" => "Best viewed with Netscape or Internet Explorer", - "neocities-now" => "Neocities, now!", + "neocities-now" => [ + "Neocities, now!", + "https://neocities.org/", + ], "macmade-wht" => "Made on a Mac", "pride" => "Pride, now!", "desktop" => "Best viewed on Desktop", ] as $src => $alt): + $hasLink = false; + if (is_array($alt)) { + $arr = $alt; + [$alt, $href] = $arr; + $hasLink = true; + } + + if ($hasLink): ?> -<img src="/static/buttons/<?= htmlentities($src) ?>.gif" +<a href="<?= htmlentities($href) ?>" class="web-button-link"><?php +endif; +?><img src="/static/buttons/<?= htmlentities($src) ?>.gif" alt="<?= htmlentities($alt) ?>" width="88" height="31" - class="web-button" /> -<?php + class="web-button" /><?php +if ($hasLink): +?></a><?php + endif; endforeach; ?> |