dede判定是否有下载链接或官网链接

判定是否有下载链接判定是否官网链接,假如没有就显示差异的图标和不能点击跳转。

实现代码:

<div class="btn-group btn-group-justified m-b {dede:field.baiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';}{/dede:field.baiduyun}"> <a href=http://www.dede58.com/"{dede:field.baiduyun/}" class="btn btn-success btn-rounded"> <i class="{dede:field.baiduyun runphp='yes'}if(@me ==''){@me='fa fa-times';}else{@me='icon-cloud-download';}{/dede:field.baiduyun}"></i> 百度云 </a> <a {dede:field.guanwang runphp='yes'}if(@me ==''){@me='';}else{@me='"href=/"'@me'/"';} {/dede:field.guanwang} class="btn btn-dark btn-rounded {dede:field.guanwang runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';} {/dede:field.guanwang}"> <i class="{dede:field.guanwang runphp='yes'}if(@me ==''){@me='fa fa-eye-slash';}else{@me='fa fa-eye';} {/dede:field.guanwang}"></i> 官网/Store </a> </div>  

 

主要代码:

{dede:field.baiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';} {/dede:field.baiduyun}  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsjpww.html