修改文件include/arc.archives.class.php
找到
//设置全局环境变量
$this->Fields['typename'] = $this->Typelink->TypeInfos['typename'];
SetSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['aid'],$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,}[sS]{0,}["'s] @isU"," ",$this->Fields['body']);
$this->Fields['body'] = str_ireplace("Fields['keywords']." . ".$this->Fields['title']."' ",$this->Fields['body']);
//end
重新生成文章即可,如果是其它字段,可以修改$this->Fields['body'] 为其它的字段名。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)