フォーク元 tak4/bibis
17 行
511 B
PHP
17 行
511 B
PHP
<?php
|
|
// List of threads
|
|
?>
|
|
<h2>スレッド一覧・Threads (<?= sizeof($view['threads'] ?? []) ?>)</h2>
|
|
<p>返信が1件以上あるスレッドの一覧。
|
|
<?php if (!$view['threads']): ?>
|
|
<ul>
|
|
<li>該当スレッド無し
|
|
</ul>
|
|
<?php endif; ?>
|
|
<?php foreach ($view['threads'] ?? [] as $thread): ?>
|
|
<dl>
|
|
<dt><a href="<?= $thread['detail_url'] ?>"><?= htmlspecialchars($thread['title']) . " ({$thread['count']})" ?></a></dt>
|
|
<dd><?= $thread['sammary'] /* sammary is safe */ ?></dd>
|
|
</dl>
|
|
<?php endforeach; ?>
|