From 847d1f3355d323782ca00456b64c319da4c292c1 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 25 Jul 2024 14:53:57 +0200 Subject: Add links to buttons --- src/includes/buttons.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'src/includes') 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 @@ "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): ?> -<?= htmlentities($alt) ?> - -- cgit v1.2.3