打开 /include/arc.archives.class.php 文件
找到
$this->Fields[‘typename’] = $this->TypeLink->TypeInfos[‘typename’];
@SetSysEnv($this->Fields[‘typeid’],$this->Fields[‘typename’],$this->Fields[‘id’],$this->Fields[‘title’],’archives’);

在其下面添加
//替换图片Alt为文档标题
$this->Fields[‘body’] = str_ireplace(array(‘alt=””‘,’alt=\’\”),”,$this->Fields[‘body’]);
$this->Fields[‘body’] = preg_replace(“@ [\s]{0,}alt[\s]{0,}=[\”‘\s]{0,}[\s\S]{0,}[\”‘\s] @isU”,” “,$this->Fields[‘body’]);
$this->Fields[‘body’] = str_ireplace(“<img ” ,”Fields[‘title’].”\” “,$this->Fields[‘body’]);

发表评论

电子邮件地址不会被公开。 必填项已用*标注