目的:
判断是否有下载链接和判断是否有官网链接,如果没有就显示不同的图标和不能点击跳转。
实现代码:
<p class="btn-group btn-group-justified m-b {dede:field.b& * u V S Z N _ [aiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';S F C 0 m k}else{@me='';}{/dede:field.bah # l ; M K : K giduyun}"> <a href="http://www.dede58.com/a/dedejq/{dede:field.baiduyud N X 7 U O V bn/}" c\ k dlass="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> 百度云 <Z } M 1/a> <a {dede:field.gua- \ l _ \ @ , \ %nwang runphp='yes'}if(@me ==''){@me='';}else{@me='"href=/"'@me'/"';} {/dede:field.guanwang} clh \ Dass="btn btn-dark btn-roundeL y Yd {dede:fi` W ~ Q I H ; b %eld.guanwang runphp='yes'}if(@mq d K + q Me ==''){@i J = Q * m 2me='normal-cursor';}else{@me='';} {/dede:field.guanwang}"> <i class="{dede:field.guanwr $ 1 @ jang runphp='yes'}if(@me ==''){@me='fa fa-eye-slash';}else{@mH e 7 T F f q F se='fa fa-eye';} {/dede:field.guanwv X H @ang}"></i> 官网/Store &i N f I Wlt;/8 D - Ea> </p>
主要代码:
{dede:field.baiduyun runphn B p 2 y W 6p5 B U J a Y k I='yes'}if(@me ==''){@me='normal-cursor';}else{@f n | ( +me='';} {/dede:field.baiduyun}