caching = true; $tpl->cache_lifetime = $cache_seconds; } $cacheid = md5($_SERVER["REQUEST_URI"]); if(!$tpl->isCached($tplfile,$cacheid)){ require './source/module/app.php'; require $widgetfile; } $parent_title = $LANVAR['product']; $word = ''; if(isset($cid) && $cid != '' && is_numeric($cid)){ $arr = Mod_Url::firstcid($cid,'productcate'); $category_son = Mod_Product::CategorySon($arr['cid']); $tpl->assign("first_cname",$arr['cname']); }else{ $category_son = Mod_Product::treecategory(); $tpl->assign("first_cname",$LANVAR['product']); } if($cid > 0){ $tpl->assign('cate_banner',$commons->banners($cid,'productcate')); } $tpl->assign("first_cid",$arr['cid']); $tpl->assign("category_son",$category_son); $tpl->assign('parent_title',$parent_title); $tpl->assign('word',$word); $tpl->assign("runtime",Core_Fun::runtime()); $tpl->assign("LANVAR",$LANVAR); $tpl->display($tplfile,$cacheid);