Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
6964d16d
ShopXO
项目概览
starsw001
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6964d16d
编写于
2月 17, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
a9adb1aa
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
13 addition
and
13 deletion
+13
-13
application/index/controller/Common.php
application/index/controller/Common.php
+3
-3
application/index/view/default/public/footer.html
application/index/view/default/public/footer.html
+3
-3
application/index/view/default/public/header.html
application/index/view/default/public/header.html
+3
-3
application/plugins/commongobacktop/Hook.php
application/plugins/commongobacktop/Hook.php
+2
-2
application/plugins/commongobacktop/config.json
application/plugins/commongobacktop/config.json
+2
-2
未找到文件。
application/index/controller/Common.php
浏览文件 @
6964d16d
...
@@ -87,10 +87,10 @@ class Common extends Controller
...
@@ -87,10 +87,10 @@ class Common extends Controller
$this
->
assign
(
'plugins_js_data'
,
Hook
::
listen
(
'plugins_js'
,
[
'hook_name'
=>
'plugins_js'
,
'is_control'
=>
false
]));
$this
->
assign
(
'plugins_js_data'
,
Hook
::
listen
(
'plugins_js'
,
[
'hook_name'
=>
'plugins_js'
,
'is_control'
=>
false
]));
// 公共header内钩子
// 公共header内钩子
$this
->
assign
(
'plugins_
view_common_header_data'
,
Hook
::
listen
(
'plugins_view_common_header'
,
[
'hook_name'
=>
'plugins_view
_common_header'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
$this
->
assign
(
'plugins_
common_header_data'
,
Hook
::
listen
(
'plugins_common_header'
,
[
'hook_name'
=>
'plugins
_common_header'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
// 公共页面部钩子
// 公共页面
底
部钩子
$this
->
assign
(
'plugins_
view_common_page_bottom_data'
,
Hook
::
listen
(
'plugins_view_common_page_bottom'
,
[
'hook_name'
=>
'plugins_view
_common_page_bottom'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
$this
->
assign
(
'plugins_
common_page_bottom_data'
,
Hook
::
listen
(
'plugins_common_page_bottom'
,
[
'hook_name'
=>
'plugins
_common_page_bottom'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
// 公共顶部钩子
// 公共顶部钩子
$this
->
assign
(
'plugins_view_common_top_data'
,
Hook
::
listen
(
'plugins_view_common_top'
,
[
'hook_name'
=>
'plugins_view_common_top'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
$this
->
assign
(
'plugins_view_common_top_data'
,
Hook
::
listen
(
'plugins_view_common_top'
,
[
'hook_name'
=>
'plugins_view_common_top'
,
'is_control'
=>
false
,
'user'
=>
$this
->
user
]));
...
...
application/index/view/default/public/footer.html
浏览文件 @
6964d16d
...
@@ -74,11 +74,11 @@
...
@@ -74,11 +74,11 @@
<!-- 公共页面底部钩子 -->
<!-- 公共页面底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div
class=
"plugins-tag"
>
<div
class=
"plugins-tag"
>
<span>
plugins_
view_
common_page_bottom
</span>
<span>
plugins_common_page_bottom
</span>
</div>
</div>
{{/if}}
{{/if}}
{{if !empty($plugins_
view_common_page_bottom_data) and is_array($plugins_view
_common_page_bottom_data)}}
{{if !empty($plugins_
common_page_bottom_data) and is_array($plugins
_common_page_bottom_data)}}
{{foreach $plugins_
view_
common_page_bottom_data as $hook}}
{{foreach $plugins_common_page_bottom_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{$hook|raw}}
{{/if}}
{{/if}}
...
...
application/index/view/default/public/header.html
浏览文件 @
6964d16d
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
</script>
</script>
<!-- 公共header内钩子 -->
<!-- 公共header内钩子 -->
{{if !empty($plugins_
view_common_header_data) and is_array($plugins_view
_common_header_data)}}
{{if !empty($plugins_
common_header_data) and is_array($plugins
_common_header_data)}}
{{foreach $plugins_
view_
common_header_data as $hook}}
{{foreach $plugins_common_header_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{$hook|raw}}
{{/if}}
{{/if}}
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<!-- 公共header内钩子 -->
<!-- 公共header内钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
<div
class=
"plugins-tag"
>
<div
class=
"plugins-tag"
>
<span>
plugins_
view_
common_header
</span>
<span>
plugins_common_header
</span>
</div>
</div>
{{/if}}
{{/if}}
...
...
application/plugins/commongobacktop/Hook.php
浏览文件 @
6964d16d
...
@@ -51,11 +51,11 @@ class Hook
...
@@ -51,11 +51,11 @@ class Hook
$ret
=
$this
->
html
(
$params
);
$ret
=
$this
->
html
(
$params
);
break
;
break
;
case
'plugins_
view_
common_page_bottom'
:
case
'plugins_common_page_bottom'
:
$ret
=
$this
->
js
(
$params
);
$ret
=
$this
->
js
(
$params
);
break
;
break
;
case
'plugins_
view_
common_header'
:
case
'plugins_common_header'
:
$ret
=
$this
->
css
(
$params
);
$ret
=
$this
->
css
(
$params
);
break
;
break
;
...
...
application/plugins/commongobacktop/config.json
浏览文件 @
6964d16d
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
"plugins_view_common_bottom"
:[
"plugins_view_common_bottom"
:[
"app
\\
plugins
\\
commongobacktop
\\
Hook"
"app
\\
plugins
\\
commongobacktop
\\
Hook"
],
],
"plugins_
view_
common_page_bottom"
:[
"plugins_common_page_bottom"
:[
"app
\\
plugins
\\
commongobacktop
\\
Hook"
"app
\\
plugins
\\
commongobacktop
\\
Hook"
],
],
"plugins_
view_
common_header"
:[
"plugins_common_header"
:[
"app
\\
plugins
\\
commongobacktop
\\
Hook"
"app
\\
plugins
\\
commongobacktop
\\
Hook"
]
]
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录