30 行
821 B
PHP
30 行
821 B
PHP
<?php
|
|
require_once("../api.php");
|
|
require_once("../include/lib.php");
|
|
$res = (array)get("top/illust");
|
|
$cur = "/";
|
|
$out = ["title" => "トップ", "desc" => ""];
|
|
?>
|
|
|
|
<?php include("../include/header.php"); ?>
|
|
<div class="page">
|
|
<?php
|
|
foreach ($res["body"]->thumbnails->illust as $o) {
|
|
?>
|
|
<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>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<?php include("../include/footer.php"); ?>
|