css/js钩子优化
parent
89bd63c318
commit
eef375cf7d
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue