关闭顶部则自动关闭头部内容
parent
0784975be7
commit
47ae50dcd2
|
|
@ -319,6 +319,12 @@ class Common extends BaseController
|
|||
$assign['is_header'] = 1;
|
||||
$assign['is_footer'] = 1;
|
||||
|
||||
// 是否已关闭顶部小导航、主导航、搜索栏则不展示头部数据
|
||||
if(MyC('home_main_top_header_status', 1) == 0 && MyC('home_main_header_status', 1) == 0 && MyC('home_main_logo_search_status', 1) == 0)
|
||||
{
|
||||
$assign['is_header'] = 0;
|
||||
}
|
||||
|
||||
// 左侧大分类是否隐藏展开
|
||||
$common_goods_category_hidden = ($this->controller_name != 'index' || MyC('home_index_banner_left_status', 1) != 1) ? 1 : 0;
|
||||
$assign['common_goods_category_hidden'] = $common_goods_category_hidden;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@
|
|||
{{/if}}
|
||||
|
||||
<!-- header公共顶部钩子 -->
|
||||
{{if !isset($is_footer) or $is_footer eq 1}}
|
||||
{{if !isset($is_header) or $is_header eq 1}}
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_top_header</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue