このコミットが含まれているのは:
たかし 2023-12-07 15:30:39 +00:00
コミット 3895e1ca29
2個のファイルの変更8行の追加9行の削除

ファイルの表示

@ -62,9 +62,6 @@ function view_post($post, $options = []) {
<dt>件名:<b><?= $title ?></b></dt>
<?php endif; ?>
<dt><?= $res_num > 0 ? "{$res_num} " : '' ?><?= $html_user ?> <?= $html_time ?></dt>
<?php if ($link_to_thread && $thread_id != '' && $is_single): ?>
<dd>RE:<a href="<?= $thread_url ?>"><?= $thread_title ?></a></dd>
<?php endif; ?>
<dd><?= $body ?>
<?php if (ENABLE_ATTACHMENT && $html_attachment_items != ''): ?>
<?= PHP_EOL ?>

ファイルの表示

@ -3,24 +3,26 @@
require __DIR__ . '/post-common.php';
$post = $view['post'] ?? [];
$post_id = $post['id'] ?? '';
$title = ($post['title']) ?? '';
$thread_title = ($post['thread_title']) ?? '';
$thread_url = ($post['thread_url']) ?? '';
$thread_id = ($post['thread_id']) ?? '';
$reply_list = $view['reply_list'] ?? [];
$total = sizeof($reply_list) + 1;
$total_view = $total > 1 ? " ($total)" : '';
?>
<?php if ($title != ''): ?>
<h2>件名:<?= htmlspecialchars("$title{$total_view}") ?></h2>
<?php elseif ($post['thread_id'] == ''): ?>
<h2><?= htmlspecialchars('無題#' . mb_substr($post['id'], 0, 7) . $total_view) ?></h2>
<?php elseif ($thread_title > ''): ?>
<?php elseif ($thread_id == ''): ?>
<h2><?= htmlspecialchars('無題#' . mb_substr($post_id, 0, 7) . $total_view) ?></h2>
<?php elseif ($thread_title != ''): ?>
<h2>RE:<a href="<?= $thread_url ?>"><?= htmlspecialchars($thread_title) ?></a></h2>
<?php elseif ($post['thread_id'] <= ''): ?>
<h2>RE:<a href="<?= $thread_url ?>"><?= htmlspecialchars('無題#' . mb_substr($post['thread_id'], 0, 7)) ?></a></h2>
<?php elseif ($thread_id != ''): ?>
<h2>RE:<a href="<?= $thread_url ?>"><?= htmlspecialchars('無題#' . mb_substr($thread_id, 0, 7)) ?></a></h2>
<?php endif; ?>
<?php
view_post($post, ['res_num' => $post['thread_id'] != '' ? 0 : 1, 'is_single' => true, 'link_to_thread' => true, 'res_num' => $view['res_num'] ?? 1]);
view_post($post, ['res_num' => $thread_id != '' ? 0 : 1, 'is_single' => true, 'link_to_thread' => true, 'res_num' => $view['res_num'] ?? 1]);
?>
<?php
foreach ($reply_list as $i => $reply) {