ѡ̳

标题: 当前栏目信息 [打印本页]

作者: admin    时间: 2017-12-12 09:42
标题: 当前栏目信息
  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>
复制代码








欢迎光临 ѡ̳ (http://www.sunminxuan.cn/bbs/) Powered by Discuz! X3.4