item.php 604 B

12345678910111213141516171819202122232425
  1. <?php
  2. function echo_item ($link, $image, $text, $description) {
  3. if (
  4. isset($_COOKIE["images"]) &&
  5. ($_COOKIE["images"] === "disabled" ||
  6. ($_COOKIE["images"] !== "enabled" && (isset($_SERVER["HTTP_SAVE_DATA"]) && $_SERVER["HTTP_SAVE_DATA"] === "on")))
  7. )
  8. $image = get_placeholder();
  9. echo "<a href=\"" . $link . "\">";
  10. echo "<img src=\"" . $image . "\">";
  11. echo "<span>";
  12. echo $text;
  13. if (isset($description)) {
  14. echo "<br>";
  15. echo "<small>";
  16. echo $description;
  17. echo "</small>";
  18. };
  19. echo "</span>";
  20. echo "</a>";
  21. };
  22. ?>