Home > CMS Tutorial > DEDECMS > body text

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

王林
Release: 2020-11-27 16:44:25
forward
9121 people have browsed it

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>
Copy after login

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}
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!