index.php 821 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. require_once("../api.php");
  3. require_once("../include/lib.php");
  4. $res = (array)get("top/illust");
  5. $cur = "/";
  6. $out = ["title" => "トップ", "desc" => ""];
  7. ?>
  8. <?php include("../include/header.php"); ?>
  9. <div class="page">
  10. <?php
  11. foreach ($res["body"]->thumbnails->illust as $o) {
  12. ?>
  13. <div class="searchres">
  14. <a href="/artworks/?id=<?= $o->id ?>">
  15. <img src="<?= imgprx($o->url) ?>" alt="<?= $o->alt ?>" />
  16. <?= $o->title ?>
  17. </a>
  18. <br />
  19. <a href="/users/?id=<?= $o->userId ?>">
  20. <img src="<?= imgprx($o->profileImageUrl) ?>" alt="<?= $o->userName ?>" style="width: 24px; height: 24px;" />
  21. <?= $o->userName ?>
  22. </a>
  23. </div>
  24. <?php
  25. }
  26. ?>
  27. </div>
  28. <?php include("../include/footer.php"); ?>