Dedecms圖片加上Alt和Title

在dedecms裏面找到include文件夾下面的arc.archives.class.php文件php

你搜索代碼@SetSysEnv只有一個結果的就是那個 而後好像我這樣加上去 大概在第240行this

//設置全局環境變量 $this->Fields['typename'] = $this->TypeLink->TypeInfos['typename']; @SetSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['id'],$this->Fields['title'],’archives’); } 加上這3行 $this->Fields['body'] = str_ireplace(「<img 」 ,」<img alt=’」.$this->Fields['title'].」,zent.me’ 「,$this->Fields['body']); $this->Fields['imgurls'] = str_ireplace(「<img 」 ,」<img alt=’」.$this->Fields['title'].」,zeart.me 「,$this->Fields['imgurls']); $this->Fields['introduce'] = str_ireplace(「<img 」 ,」<img alt=’」.$this->Fields['title'].」,zrt.me’ 「,$this->Fields['introduce']);url

//完成附加表信息讀取 unset($row);it

相關文章
相關標籤/搜索