Home > Article > CMS Tutorial > dede determines whether there is a download link or official website link
Purpose:
Determine whether there is a download link and whether there is an official website link. If not, a different icon will be displayed and you cannot click to jump.
Implementation code:
<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="{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>
Main code:
{dede:field.baiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';}{/dede:field.baiduyun}
Related recommendations: dede tutorial
The above is the detailed content of dede determines whether there is a download link or official website link. For more information, please follow other related articles on the PHP Chinese website!