|
@@ -73,10 +73,19 @@
|
|
|
<?php
|
|
|
if (!$rec->error) {
|
|
|
foreach ($rec->body->illusts as $r) {
|
|
|
+ if (is_null($r->id)) continue;
|
|
|
?>
|
|
|
- <a href="/artworks/?id=<?= $r->id ?>">
|
|
|
- <img src="<?= imgprx($r->url) ?>" alt="<?= $r->alt ?>" />
|
|
|
- </a>
|
|
|
+ <div class="searchres">
|
|
|
+ <a href="/artworks/?id=<?= $r->id ?>">
|
|
|
+ <img src="<?= imgprx($r->url) ?>" alt="<?= $r->alt ?>" style="width: 260px; height: 260px;" />
|
|
|
+ <?= $r->title ?>
|
|
|
+ </a>
|
|
|
+ <br />
|
|
|
+ <a href="/users/?id=<?= $r->userId ?>">
|
|
|
+ <img src="<?= imgprx($r->profileImageUrl) ?>" alt="<?= $r->userName ?>" style="width: 24px; height: 24px;" />
|
|
|
+ <?= $r->userName ?>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
}
|
|
|
}
|