Showing
2 changed files
with
9 additions
and
1 deletions
@@ -44,7 +44,15 @@ $width = 342; | @@ -44,7 +44,15 @@ $width = 342; | ||
44 | echo "limited-edition"; | 44 | echo "limited-edition"; |
45 | break; | 45 | break; |
46 | } | 46 | } |
47 | - ?>" href="/news/index/tag/<?php echo $news['tag']?>"><?php echo $news['tag']?></a> | 47 | + ?>" href="/news/index/tag/<?php echo $news['tag']?>"> |
48 | + <?php | ||
49 | + $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品"); | ||
50 | + if(!in_array($news['tag'],$newtag)){ | ||
51 | + $news['tag']='品牌资讯'; | ||
52 | + } | ||
53 | + echo $news['tag']; | ||
54 | + ?> | ||
55 | + </a> | ||
48 | <span class="item-time"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $news['create_time']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $news['create_time'])?></span> | 56 | <span class="item-time"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $news['create_time']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $news['create_time'])?></span> |
49 | </div> | 57 | </div> |
50 | <div class="content"> | 58 | <div class="content"> |
-
Please register or login to post a comment