Emlog怎么给文章设置new和热门小图标图文教程

最新文章NEW!小图标

风起兮

 热门文章HOT!小图标

风起兮

找到模版文件下的log_list.php文件(大部分的模板都是在这个文件,大前端的在moudle/目录下的m_log.php或dy_log.php)

类似这样的代码:

<header>
 <?php blog_sort($value['logid']); ?>
  <h2>
   <a href="<?php echo $value['log_url']; ?>" title="<?php echo $value['log_title']; ?>">//输出文章标题
   <?php echo $value['log_title']; ?>
//-->**********此处是我们添加代码的地方*******
   </a>
  </h2>
</header>


之后在上图注明要添加代码的位置加上

<?php if(((date('Ymd',time())-date('Ymd',$value['date']))< 1)&&($value['top']=='n')){?>
					<img src="http://www.dyboy.cn/img/new.gif">
				<?php }elseif($value['views']>=10000){?>
					<img src="http://www.dyboy.cn/img/hot.gif">
				<?php }?>
版权声明:《 Emlog怎么给文章设置new和热门小图标图文教程 》为作者风起兮原创文章,转载请注明原文地址!
最后编辑:2020-7-1 16:07:43
分享到:
赞(0)
发表评论 / Comment

用心评论~

金玉良言 / Appraise
Calsarrex本站最强王者游客
2022-09-17 05:28
2, 3, 4, 9, 10 When using dalbavancin or oritavancin, additional antibiotics are not required except as indicated for failure of clinical resolution. <a href=http://buydoxycyclineon.com/>what to eat with doxycycline to avoid stomach upset</a>
Usetriept本站最强王者游客
2022-09-13 17:02
Plasma metabolites also include 5ОІ-pregnan-3О±-ol-20-one 5ОІ-pregnanolone and 5О±-pregnan-3О±-ol-20-one 5О±-pregnanolone. <a href=https://tamoxifenolvadex.com/>clomid or nolvadex for pct</a>
Oresola本站最强王者游客
2022-09-10 13:11
All of the vendors on this list have been carefully picked by our team, and every one of them assures high-purity active ingredients, moneyback guarantees, and touts high customer reviews. <a href=http://clomida.com/>clomid price</a> or its licensors or contributors.
wheevipse本站最强王者游客
2022-09-07 14:54
Sales of competitor Eli Lilly s Cialis also surpassed Viagra the same year <a href=https://cheapcialiss.com/>cialis without a doctor's prescription</a> - Prolonged, painful erection more than 4 hours ; priapism can permanently damage your penis, if not treated immediately
Spourse本站最强王者游客
2022-09-05 12:57
Prozac, Pillsat, Paxil, Cefadrox, Zoloft and Zoloft XR <a href=https://vtopcial.com/>buy cialis online us</a> Medicine works by enhancing flow of blood and loosening arterial entanglements in the penile region
adviste本站最强王者游客
2022-09-03 14:02
<a href=https://buypriligyo.com/>buy priligy pakistan</a> However, there is a possibility of overdose, and making sure you are ingesting your Viagra pills in healthy quantities means following a few simple rules
excinty本站最强王者游客
2022-09-01 09:58
Not to worry, Phoenix <a href=https://cialisfstdelvri.com/>buy cialis 20mg</a> You can also get your prescription through our telemedicine option
qbnouzbnpzLV1游客
2021-03-28 02:18
Muchas gracias. ?Como puedo iniciar sesion?