This commit is contained in:
浪子 2025-07-10 13:34:00 +08:00
parent b3b1407647
commit 4c1c795dc2
3 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -981,10 +981,11 @@ function get_article_info($atts) {
if (!$post) {
return '未找到文章';
}
$post = Typecho_Widget::widget('Widget_Abstract_Contents')->push($post);
$summary = get_article_summary($post);
$permalink = $post['permalink'];
$title = htmlspecialchars($post['title']);
// 获取文章对象避免permalink警告
$widget = Typecho_Widget::widget('Widget_Archive@article_quote_' . $post['cid'], 'cid=' . $post['cid'], null, false);
$permalink = $widget->permalink;
$title = htmlspecialchars($widget->title);
$summary = get_article_summary($widget);
$output = '<blockquote class="article-quote">';
$output .= '<div class="t-lg t-line-1">';

View File

@ -4,7 +4,7 @@
*
* @package Typecho Pouck Theme
* @author 老孙博客
* @version 1.1.8
* @version 1.1.9
* @link http://www.imsun.org
*/