このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2023-05-02 21:19:47 +09:00
|
|
|
<?php
|
|
|
|
require_once("../api.php");
|
2023-05-03 12:53:17 +09:00
|
|
|
require_once("../include/lib.php");
|
2023-05-02 21:19:47 +09:00
|
|
|
$res = (array)get("top/illust");
|
2023-05-03 15:25:26 +09:00
|
|
|
$cur = "/";
|
2023-05-02 21:19:47 +09:00
|
|
|
$out = ["title" => "トップ", "desc" => ""];
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php include("../include/header.php"); ?>
|
|
|
|
<div class="page">
|
|
|
|
<?php
|
|
|
|
foreach ($res["body"]->thumbnails->illust as $o) {
|
|
|
|
?>
|
2023-05-03 13:00:58 +09:00
|
|
|
<div class="searchres">
|
|
|
|
<a href="/artworks/?id=<?= $o->id ?>">
|
|
|
|
<img src="<?= imgprx($o->url) ?>" alt="<?= $o->alt ?>" />
|
|
|
|
<?= $o->title ?>
|
|
|
|
</a>
|
|
|
|
<br />
|
|
|
|
<a href="/users/?id=<?= $o->userId ?>">
|
|
|
|
<img src="<?= imgprx($o->profileImageUrl) ?>" alt="<?= $o->userName ?>" style="width: 24px; height: 24px;" />
|
|
|
|
<?= $o->userName ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-05-02 21:19:47 +09:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php include("../include/footer.php"); ?>
|