mirror of
https://github.com/jkjoy/Typecho-Theme-Puock.git
synced 2026-06-17 09:44:13 +00:00
1.1.9
This commit is contained in:
+5
-4
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user