Home >CMS Tutorial >DEDECMS >dede determines whether there is a download link or official website link

dede determines whether there is a download link or official website link

王林
王林forward
2020-11-27 16:44:259343browse

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=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;normal-cursor&#39;;}else{@me=&#39;&#39;;}{/dede:field.baiduyun}">
              <a href="{dede:field.baiduyun/}" class="btn btn-success btn-rounded">
                <i class="{dede:field.baiduyun runphp=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;fa fa-times&#39;;}else{@me=&#39;icon-cloud-download&#39;;}{/dede:field.baiduyun}"></i> 百度云
              </a>
              <a {dede:field.guanwang runphp=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;&#39;;}else{@me=&#39;"href=\"&#39;@me&#39;\"&#39;;}{/dede:field.guanwang} class="btn btn-dark btn-rounded {dede:field.guanwang runphp=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;normal-cursor&#39;;}else{@me=&#39;&#39;;}{/dede:field.guanwang}">
                <i class="{dede:field.guanwang runphp=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;fa fa-eye-slash&#39;;}else{@me=&#39;fa fa-eye&#39;;}{/dede:field.guanwang}"></i> 官网/Store
              </a>
            </div>

Main code:

{dede:field.baiduyun runphp=&#39;yes&#39;}if(@me ==&#39;&#39;){@me=&#39;normal-cursor&#39;;}else{@me=&#39;&#39;;}{/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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete