From d102c895cfc3d3b77022393c5125afef26a3f2e2 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Fri, 12 Nov 2021 10:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=A1=86=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BA=AF=E5=87=80=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Common.php | 3 ++ app/index/view/default/public/footer.html | 54 +++++++++++++---------- 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/app/index/controller/Common.php b/app/index/controller/Common.php index d039fe31b..3c6234ca5 100755 --- a/app/index/controller/Common.php +++ b/app/index/controller/Common.php @@ -325,6 +325,9 @@ class Common extends BaseController // 底部信息 MyViewAssign('home_theme_footer_bottom_powered', htmlspecialchars_decode(MyC('home_theme_footer_bottom_powered'))); + + // 纯净模式 + MyViewAssign('page_pure', in_array($this->controller_name.$this->action_name, ['usermodallogininfo']) ? 1 : 0); } /** diff --git a/app/index/view/default/public/footer.html b/app/index/view/default/public/footer.html index b1f867f12..df261e56f 100755 --- a/app/index/view/default/public/footer.html +++ b/app/index/view/default/public/footer.html @@ -2,23 +2,25 @@ -{{if !isset($is_footer) or $is_footer eq 1}} +{{if (!isset($page_pure) or $page_pure neq 1) and (!isset($is_footer) or $is_footer eq 1)}} {{include file="public/footer_nav" /}} {{/if}} -{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} -
- plugins_view_common_bottom -
-{{/if}} -{{if !empty($plugins_view_common_bottom_data) and is_array($plugins_view_common_bottom_data)}} - {{foreach $plugins_view_common_bottom_data as $hook}} - {{if is_string($hook) or is_int($hook)}} - {{$hook|raw}} - {{/if}} - {{/foreach}} +{{if !isset($page_pure) or $page_pure neq 1}} + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} +
+ plugins_view_common_bottom +
+ {{/if}} + {{if !empty($plugins_view_common_bottom_data) and is_array($plugins_view_common_bottom_data)}} + {{foreach $plugins_view_common_bottom_data as $hook}} + {{if is_string($hook) or is_int($hook)}} + {{$hook|raw}} + {{/if}} + {{/foreach}} + {{/if}} {{/if}} @@ -100,7 +102,9 @@ {{/if}} -{{:MyC('home_footer_info')}} +{{if !isset($page_pure) or $page_pure neq 1}} + {{:MyC('home_footer_info')}} +{{/if}} {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} @@ -131,15 +135,17 @@ {{/if}} -{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} -
- plugins_common_page_bottom -
-{{/if}} -{{if !empty($plugins_common_page_bottom_data) and is_array($plugins_common_page_bottom_data)}} - {{foreach $plugins_common_page_bottom_data as $hook}} - {{if is_string($hook) or is_int($hook)}} - {{$hook|raw}} - {{/if}} - {{/foreach}} +{{if !isset($page_pure) or $page_pure neq 1}} + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} +
+ plugins_common_page_bottom +
+ {{/if}} + {{if !empty($plugins_common_page_bottom_data) and is_array($plugins_common_page_bottom_data)}} + {{foreach $plugins_common_page_bottom_data as $hook}} + {{if is_string($hook) or is_int($hook)}} + {{$hook|raw}} + {{/if}} + {{/foreach}} + {{/if}} {{/if}} \ No newline at end of file