將文本中的相對(duì)路徑地址補(bǔ)全完整地址,形如以下格式:將src和href中包含的相對(duì)路徑轉(zhuǎn)化為補(bǔ)全地址;例如內(nèi)容show.html模板寫(xiě)法為:{dr_text_full($content)}指定補(bǔ)全域名方
方案一、將tag插件的關(guān)鍵詞給文章內(nèi)容加上關(guān)鍵詞內(nèi)鏈show.html頁(yè)面調(diào)用文章內(nèi)容方法為:{$content}那么內(nèi)鏈調(diào)用方法為:{dr_neilian($content,0,1)}內(nèi)鏈在本頁(yè)面打
函數(shù)名:dr_get_content_url例如提取show.html中的內(nèi)容字段中的全部視頻地址,內(nèi)容字段是content,那么寫(xiě)法是:{php$videos=dr_get_content_url($content,'src','mp4');}{loop$videos$img}地址:{$img}{/loop}視頻數(shù)量:{count($videos)}提取3張視頻地...
函數(shù)名:dr_get_content_img例如提取show.html中的內(nèi)容字段中的全部圖片,內(nèi)容字段是content,那么寫(xiě)法是:{php $imgs = dr_get_content_img($content);}{loop $imgs $img}{/loop}圖片數(shù)量:{count($imgs)}提取3張圖片寫(xiě)法:{php $imgs = dr_get_content_img($conte...
例如,show.html中的內(nèi)容變量,默認(rèn)寫(xiě)法是:{$content}效果是:他就不會(huì)加加載表格的樣式,當(dāng)然這不是問(wèn)題,因?yàn)闀?huì)做網(wǎng)站的人都知道是怎么回事,需要你自己寫(xiě)css即可,也可以使用百度編輯器自...