Migration of our hostname to lab.lostb.one is done. Redirects are intact until March.

Commit 4d5647ff authored by Che's avatar Che

Change thumbnail links to local anchors

This fixes the sporadic error of users leaving the gallery because the
custom JavaScript onclick hook did not kick in.

On the other hand this renders the gallery unusable in case JavaScript
is deactivated since the local anchors do not exist on the page.
parent 4d793522
......@@ -251,14 +251,14 @@ foreach ($images as $image) {
$author = $signature[0];
$title = str_replace("_", " ", $signature[1]);
$entry = "<figure><a href='https://nag.iap.de/?ac=single&file=" . $child . "'><img src='" . $newbase . $child . "' alt='" . $author . ": " . $title . "'></a></figure>";
$entry = "<figure><a href='#" . $child . "'><img src='" . $newbase . $child . "' alt='" . $author . ": " . $title . "'></a></figure>";
if ($useCaption) {
$expStamp = explode("_", pathinfo($expChild[1])['filename']);
$expTime = explode(".", $expStamp[2]);
$timestamp = $expStamp[1] . " " . $expStamp[0] . " " . $expStamp[3] . ", " . $expTime[0] . ":" . $expTime[1] . ":" . $expTime[2];
$entry = "<figure><a href='https://nag.iap.de/?ac=single&file=" . $child . "'><img src='" . $newbase . $child . "' alt='" . $author . ": " . $title . "'></a><figcaption>" . $author . ": " . $title . "<br>" . $timestamp . "</figcaption></figure>";
$entry = "<figure><a href='#" . $child . "'><img src='" . $newbase . $child . "' alt='" . $author . ": " . $title . "'></a><figcaption>" . $author . ": " . $title . "<br>" . $timestamp . "</figcaption></figure>";
}
echo $entry;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment