Home  >  Article  >  Backend Development  >  destoon implements the method of calling graphic news, destoon graphic_PHP tutorial

destoon implements the method of calling graphic news, destoon graphic_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:20:281620browse

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="{$t[thumb]}" width="96" height="66" 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
1502a0793a74fc6820bb761512fa0e41
Create another template with pictures named list-tuwen

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

{ad(26)}e5c4439d3190d4c1b54d45233c52454e{loop $tags $t}25edfb22a4f469ecb59f1190150159c6 6b5a78443d7e8dd78e3d2174d4232ea1{$t[title]}5db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb{ /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