新增顶部和底部隐藏钩子
parent
083b2c5ba7
commit
b1d4a4c065
|
|
@ -561,6 +561,12 @@ class Common extends BaseController
|
|||
// 公共底部钩子
|
||||
MyViewAssign('plugins_view_common_bottom_data', MyEventTrigger('plugins_view_common_bottom', ['hook_name'=>'plugins_view_common_bottom', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// header公共顶部钩子
|
||||
MyViewAssign('plugins_view_common_top_header_data', MyEventTrigger('plugins_view_common_top_header', ['hook_name'=>'plugins_view_common_top_header', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// footer公共底部钩子
|
||||
MyViewAssign('plugins_view_common_bottom_footer_data', MyEventTrigger('plugins_view_common_bottom_footer', ['hook_name'=>'plugins_view_common_bottom_footer', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共顶部小导航钩子-左侧前面
|
||||
MyViewAssign('plugins_view_header_navigation_top_left_begin_data', MyEventTrigger('plugins_view_header_navigation_top_left_begin', ['hook_name'=>'plugins_view_header_navigation_top_left_begin', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,22 @@
|
|||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<!-- footer公共底部钩子 -->
|
||||
{{if !isset($is_footer) or $is_footer eq 1}}
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_bottom_footer</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_bottom_footer_data) and is_array($plugins_view_common_bottom_footer_data)}}
|
||||
{{foreach $plugins_view_common_bottom_footer_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
|
|
@ -120,4 +120,20 @@
|
|||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<!-- header公共顶部钩子 -->
|
||||
{{if !isset($is_footer) or $is_footer eq 1}}
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_top_header</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_top_header_data) and is_array($plugins_view_common_top_header_data)}}
|
||||
{{foreach $plugins_view_common_top_header_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
Loading…
Reference in New Issue