mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
css/js钩子优化
This commit is contained in:
@ -67,6 +67,10 @@
|
||||
{{foreach $plugins_js_data as $hook}}
|
||||
{{if is_string($hook)}}
|
||||
<script type='text/javascript' src="{{$hook}}?v={{:MyC('home_static_cache_version')}}"></script>
|
||||
{{elseif is_array($hook) /}}
|
||||
{{foreach $hook as $hook_js}}
|
||||
<script type='text/javascript' src="{{$hook_js}}?v={{:MyC('home_static_cache_version')}}"></script>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
@ -33,6 +33,10 @@
|
||||
{{foreach $plugins_css_data as $hook}}
|
||||
{{if is_string($hook)}}
|
||||
<link rel="stylesheet" type="text/css" href="{{$hook}}?v={{:MyC('home_static_cache_version')}}" />
|
||||
{{elseif is_array($hook) /}}
|
||||
{{foreach $hook as $hook_css}}
|
||||
<link rel="stylesheet" type="text/css" href="{{$hook_css}}?v={{:MyC('home_static_cache_version')}}" />
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user