search
HomeBackend DevelopmentPHP Tutorialdestoon implements the method of calling graphic news, destoon graphic_PHP tutorial

destoon implements the method of calling graphic news, destoon graphic

The example in this article shows how destoon calls graphic news. This function is a very common and practical technique. Share it with everyone for your reference. The specific implementation method is as follows:

The main function code is as follows:

{if $DT[page_news]}

<!--{tag("moduleid=21&length=16&condition=status=3 and level=3 and thumb<>''&pagesize=1&target=_blank&order=addtime desc&width=100&height=80&cols=1&template=thumb-table")}-->

{/if}

<!--{php $tags=tag("moduleid=7&condition=status=3 and thumb!=''&length=30 and level>0&areaid=$cityid&pagesize=1&datetype=2&order=addtime desc&target=_blank&template=null");}-->
{loop $tags $i $t} <a href="{$t[linkurl]}" rel="external nofollow" target="_blank"><span><img src="/static/imghwm/default1.png"  data-src="{$t[thumb]}"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="" ></span> <strong>{$t[title]}</strong> <small>{dsubstr($t[introduce],76)}... <em>[详细]</em></small> </a> {/loop} </div>

I hope the method described in this article can be helpful to everyone in destoon development.

destoon B2B How to call picture news with introduction on the homepage

Set the picture news as the headline recommended picture and text
Reset the name of level6
Then level=6

Create another template with pictures named list-tuwen

How to call the "ad image + ad name" mode in destoon

{ad(26)}{loop $tags $t}

  • {$t[title]}
  • { /loop}

    www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/867231.htmlTechArticledestoon implements the method of calling graphic news. The destoon graphic text example shows the method of destoon calling graphic news. This feature is a very common and useful trick. Share it with everyone for everyone...
    Statement
    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
    如何使用Python调用百度地图API实现地理位置查询功能?如何使用Python调用百度地图API实现地理位置查询功能?Jul 31, 2023 pm 03:01 PM

    如何使用Python调用百度地图API实现地理位置查询功能?随着互联网的发展,地理位置信息的获取和利用越来越重要。百度地图是一款非常常见和实用的地图应用,它提供了丰富的地理位置查询服务。本文将介绍如何使用Python调用百度地图API实现地理位置查询功能,并附上代码示例。申请百度地图开发者账号和应用首先,你需要拥有一个百度地图开发者账号,并创建一个应用。登录

    源码探秘:Python 中对象是如何被调用的?源码探秘:Python 中对象是如何被调用的?May 11, 2023 am 11:46 AM

    楔子我们知道对象被创建,主要有两种方式,一种是通过Python/CAPI,另一种是通过调用类型对象。对于内置类型的实例对象而言,这两种方式都是支持的,比如列表,我们即可以通过[]创建,也可以通过list(),前者是Python/CAPI,后者是调用类型对象。但对于自定义类的实例对象而言,我们只能通过调用类型对象的方式来创建。而一个对象如果可以被调用,那么这个对象就是callable,否则就不是callable。而决定一个对象是不是callable,就取决于其对应的类型对象中是否定义了某个方法。如

    PHP摄像头调用技巧:如何实现多摄像头切换PHP摄像头调用技巧:如何实现多摄像头切换Aug 04, 2023 pm 07:07 PM

    PHP摄像头调用技巧:如何实现多摄像头切换摄像头应用已经成为许多Web应用的重要组成部分,例如视频会议、实时监控等等。在PHP中,我们可以使用各种技术来实现对摄像头的调用和操作。本文将重点介绍如何实现多摄像头的切换,并提供一些示例代码来帮助读者更好地理解。摄像头调用基础在PHP中,我们可以通过调用JavaScript的API来实现摄像头的调用。具体来说,我们

    如何解决PHP开发中的外部资源访问和调用如何解决PHP开发中的外部资源访问和调用Oct 08, 2023 am 11:01 AM

    如何解决PHP开发中的外部资源访问和调用,需要具体代码示例在PHP开发中,我们经常会遇到需要访问和调用外部资源的情况,比如API接口、第三方库或者其他服务器资源。在处理这些外部资源时,我们需要考虑如何进行安全的访问和调用,同时保证性能和可靠性。本文将介绍几种常见的解决方案,并提供相应的代码示例。一、使用curl库进行外部资源调用curl是一个非常强大的开源库

    如何通过Python编程调用百度地图API实现地图展示功能?如何通过Python编程调用百度地图API实现地图展示功能?Aug 02, 2023 pm 08:27 PM

    如何通过Python编程调用百度地图API实现地图展示功能?随着互联网的快速发展,地图应用成为了我们生活中不可或缺的一部分。而百度地图作为国内最大的地图应用之一,为我们提供了丰富的服务和API接口,可以很方便地实现地图展示功能。本文将介绍如何通过Python编程调用百度地图API来实现地图展示功能,并给出相应的代码示例。首先,我们需要在百度开放平台上注册一个

    matlab如何调用m文件-matlab调用m文件的方法matlab如何调用m文件-matlab调用m文件的方法Mar 04, 2024 pm 01:49 PM

    有很多朋友还不知道matlab如何调用m文件,所以下面小编就讲解了matlab调用m文件的方法,有需要的小伙伴赶紧来看一下吧,相信对大家一定会有所帮助哦。1、首先打开matlab软件,在主界面中点击“打开”,如下图所示。2、然后选择一个需要打开的m文件,选择打开,如下图所示。3、接着在编辑器中看m文件的文件名和变量数目,如下图所示。4、可以在命令行中输入m文件名后括号加变量值,就可以调用,如下图所示。5、最后就可以成功调用m文件,如下图所示。上面就是小编为大家带来的matlab如何调用m文件的全

    如何使用Java调用WebService如何使用Java调用WebServiceDec 29, 2023 pm 02:32 PM

    使用Java调用WebService的方法步骤,需要具体代码示例Web服务是一种基于Web的应用程序接口,通过网络提供各种功能。在Java开发中,我们经常需要使用Web服务来实现与其他系统的交互。本篇文章将介绍如何使用Java调用WebService,并提供具体的代码示例。一、了解WebServiceWebService是一种标准化的通信协议,使用XML格式

    Laravel开发者必读:掌握控制器方法的调用技巧Laravel开发者必读:掌握控制器方法的调用技巧Mar 09, 2024 pm 12:03 PM

    在Laravel开发中,控制器方法的调用是开发者经常需要面对的问题之一。掌握控制器方法的调用技巧可以让开发工作更加高效和顺畅。本文将从基础知识到高级技巧,结合具体的代码示例帮助开发者更好地理解和掌握控制器方法的调用。1.控制器方法的基本调用在Laravel中,控制器是应用程序的重要组成部分,负责处理路由请求并返回相应的响应。控制器中的方法可以通过路由进行调

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Article

    R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
    2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    Repo: How To Revive Teammates
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    Hello Kitty Island Adventure: How To Get Giant Seeds
    3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    SublimeText3 Linux new version

    SublimeText3 Linux new version

    SublimeText3 Linux latest version

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

    WebStorm Mac version

    WebStorm Mac version

    Useful JavaScript development tools

    SublimeText3 English version

    SublimeText3 English version

    Recommended: Win version, supports code prompts!