" />
getCategory(1);
if (1 == 0) {
$_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目
}
//type为parent
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_cidarr[0]);
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']);
}else{
//type为top,忽略cid
if($_cid == 0 || $_type == 'top') {
$_catlist = $_category->unlimitedForLayer($_catlist);
}else {
if ($_type == 'self') {
//同级分类
$_pidarr = [];
foreach ($_cidarr as $_k => $_v) {
$_typeinfo = $_category->getSelf($_catlist, $_v);
if ($_typeinfo) {
$_pidarr[] = $_typeinfo['pid'];
}
}
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_pidarr ? $_pidarr : 0);
}else {
//son,子类列表
$_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cidarr);
}
}
}
$_limit_list = explode(',', $_limit);
foreach($_catlist as $autoindex => $catlist):
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit_list[0]) break;
}
$catlist = update_str_dq($catlist, session('sys_areainfo'));
$cateparent = $catlist['pid'] != 0 ? $catlist['pid'] : $cateparent ;endforeach;endif; $navpid = $cateparent ? $cateparent : $cid;?>
getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type = $_category->getCategoryArea($type);
$type = update_str_dq($type, session('sys_areainfo'));
?>
联系我们
|
getCategory(1);
if ($_type == 'parent') {
$_parent = $_category->getParents($_catlist, $_typeid);
$_typeid = $_parent[0]['id'];
}
$type = $_category->getOneCategory($_typeid);
$type = $_category->getCategoryArea($type);
$type = update_str_dq($type, session('sys_areainfo'));
?>
更多分站
where("title='".'head_text2'."'")->find();
$_block = update_str_dq($_block, session('sys_areainfo'));
$_block_content = '';
if ($_block) {
if ($_block['type'] == 2) {
if (!0) {
$_block_content = '
';
}else {
$_block_content = $_block['content'];
}
}else {
if(0) {
$_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取
}else {
$_block_content = $_block['content'];
}
}
$_blockurl = '';
if ($_block['url']) {
$_blockurl = $_block['url'];
if (substr($_blockurl, 0,1) == '@') {
$_catemodel = new app\index\model\CategoryModel();
$_category = $_catemodel->getOneCategory(substr($_blockurl, 1));
if ($_category) {
$_blockurl = $_catemodel->getCategoryUrl($_category);
}
}
$_block_content= "".$_block_content."";
}
}
echo $_block_content;
?>