info['poster']); echo '
'; echo '
'; echo '
'; echo '
'; echo HTML::tag('a', [ 'href' => HTML::url('/user/' . $poster['username']), 'class' => 'd-inline-block me-2', ], HTML::empty_tag('img', [ 'src' => HTML::avatar_addr($poster, 64), 'class' => 'uoj-user-avatar rounded', 'style' => 'width: 3rem; height: 3rem;', ])); echo '
'; echo '
'; echo '
', UOJUser::getLink($poster), '
'; echo '
'; echo '', ' ', $blog->getReplyCnt(), ' '; echo '', ' ', $blog->info['zan'], ' '; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo $blog->getLink(); if ($blog->info['is_hidden']) { echo ' ', UOJLocale::get('hidden'), ' '; } echo '
'; echo '
', ' ', $blog->info['post_time'], '
'; echo '
'; $newest = $blog->queryNewestComment(); echo '
'; if ($newest) { echo '
最新评论: ', UOJUser::getLink($newest['poster']), '
'; echo '
', ' ', $newest['post_time'], '
'; } else { echo '
暂无评论
'; } echo '
'; echo '
'; echo '
'; } $pag = new Paginator([ 'page_len' => 10, 'table_name' => 'blogs', 'col_names' => ['id', 'poster', 'title', 'post_time', 'active_time', 'zan', 'is_hidden'], 'cond' => '1', 'tail' => 'order by post_time desc, id desc', 'post_filter' => function ($info) { return (new UOJBlog($info))->userCanView(Auth::user()); }, ]); ?>
isEmpty()) : ?>
get() as $idx => $row) : ?>
pagination() ?>