Typecho缩略图调用 img 字段
[size=16]自动调用img字段内容,如果没有,去文章搜索第1个图片。[/size][code]___fields()))): ?>fields->img(); ?>
preg_match_all("/\]*>/i", $this->content, $matches);
$imgCount = count($matches[0]);
if($imgCount >= 1){
$img = $matches[2][0];
echo <<
{$img}
Html;
}
?>[/code]
$imgCount = count($matches[0]);
if($imgCount >= 1){
$img = $matches[2][0];
echo <<
Html;
}
?>[/code]
没有找到相关结果
已邀请:
1 个回复
打酱油的 - 你猜啊