add a tag with href argument for clickable images

This commit is contained in:
Ahwx 2023-02-23 00:45:24 +01:00
parent c633e79d59
commit 0ce966d236

View file

@ -41,7 +41,8 @@ $search = function($query) use($baseurl)
$image = $result->{"images"}->{"orig"};
$url = $image->{"url"};
array_push($images, $url);
echo "<img src='/image_proxy.php?url=", $url, "'>";
echo "<a href='/image_proxy.php?url=", $url, "'>";
echo "<img src='/image_proxy.php?url=", $url, "'></a>";
}
return $images;
};