options->sidebarBlock) && in_array('ShowSearch', $this->options->sidebarBlock)): ?>
文章搜索
options->sidebarBlock) && in_array('ShowAdmin', $this->options->sidebarBlock)): ?>
' class='lazy avatar' data-src='' >
options->description(); ?>
用户数
文章数
评论数
阅读量
options->sidebarBlock) && in_array('ShowRecentPosts', $this->options->sidebarBlock)): ?>
最新文章
parse('

{title}

'); ?>
options->sidebarBlock) && in_array('ShowHotPosts', $this->options->sidebarBlock)): ?> select( 'table.contents.cid', 'table.contents.title', 'table.contents.slug', 'table.contents.created', 'table.contents.authorId', 'table.contents.type', 'table.contents.status', 'table.contents.commentsNum', 'table.contents.order', 'table.contents.template' ) ->from('table.contents') ->where('table.contents.type = ?', 'post') ->where('table.contents.status = ?', 'publish') ->where('table.contents.password IS NULL') ->order('table.contents.commentsNum', Typecho_Db::SORT_DESC) ->limit(5); try { $hotPosts = $db->fetchAll($select); } catch (Exception $e) { $hotPosts = []; } ?>
热门文章
options->index); // 方法2:或者使用辅助函数(如果方法1不行) if (empty($permalink)) { $widget->push($post); $permalink = $widget->permalink; $widget->pop(); } if (empty($post['title']) || empty($permalink)) { continue; } } catch (Exception $e) { continue; } ?>

options->sidebarBlock) && in_array('ShowRecentComments', $this->options->sidebarBlock)): ?> true // 这里添加参数来排除作者/管理员评论 )); ?>
最新评论
to($comments); ?> next()): ?>
gravatar('40', ''); ?> author(false); ?> excerpt(35, '...'); ?>
options->sidebarBlock) && in_array('ShowTags', $this->options->sidebarBlock)): ?> have()): // 定义可用的颜色类数组 $colors = ['bg-primary', 'bg-secondary', 'bg-success', 'bg-danger', 'bg-warning', 'bg-info']; ?>
标签云
next()): ?> name(); ?>