关闭顶部则自动关闭头部内容

feat/task1-c-wallet
gongfuxiang 2022-11-30 17:22:17 +08:00
parent 0784975be7
commit 47ae50dcd2
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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>