ѡ̳

 找回密码
 ע
搜索
查看: 187|回复: 0
打印 上一主题 下一主题

当前栏目信息

[复制链接]

789

主题

1158

帖子

4197

积分

Ա

Rank: 9Rank: 9Rank: 9

积分
4197
跳转到指定楼层
¥
发表于 2017-12-12 09:42:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. <?php


  2.       // echo $catid;
  3.       $childcat = sub_navcat($CATEGORYS[$catid]['parentid']);
  4.       $curcatid = $catid;
  5.       
  6.       if($CATEGORYS[$catid]['isedit']==0){
  7.          $childcat = sub_navcat($catid);
  8.          $curcatinfo = reset($childcat);
  9.          $curcatid = $curcatinfo['catid'];  
  10.         
  11.       }
  12.       
  13.        //var_dump($CATEGORYS[$catid]);
  14.       $curcatinfo = $CATEGORYS[$curcatid];
  15.   
  16.          
  17.    ?>
复制代码
  1. {if $curcatinfo[image]!=''}
  2.    style=" background:url({$curcatinfo[image]}) center top no-repeat;"
  3.    
  4.     {else}
  5.    
  6.    style="background:url(/statics/szymtzzx/img/yimin.jpg) center top no-repeat;"

  7. {/if}
复制代码

  1. <h2> {$CATEGORYS[$curcatid]['catname']}</h2>
  2.                 <p> {$CATEGORYS[$curcatid]['description']}</p>
复制代码
  1.   <?php $setting = json_decode($CATEGORYS[$curcatid][setting],true); print_r($setting); ?>
  2.                 <h3>{$setting[meta_title]}</h3>
  3.                 <p class="p">{$setting[meta_description]}</p>
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | ע

本版积分规则

QQ|Archiver|ֻ|С|ѡ̳

GMT+8, 2026-5-2 07:34 , Processed in 0.090662 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表
0.1038s