css/js钩子优化
parent
89bd63c318
commit
eef375cf7d
|
|
@ -67,6 +67,10 @@
|
||||||
{{foreach $plugins_js_data as $hook}}
|
{{foreach $plugins_js_data as $hook}}
|
||||||
{{if is_string($hook)}}
|
{{if is_string($hook)}}
|
||||||
<script type='text/javascript' src="{{$hook}}?v={{:MyC('home_static_cache_version')}}"></script>
|
<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}}
|
{{/if}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,10 @@
|
||||||
{{foreach $plugins_css_data as $hook}}
|
{{foreach $plugins_css_data as $hook}}
|
||||||
{{if is_string($hook)}}
|
{{if is_string($hook)}}
|
||||||
<link rel="stylesheet" type="text/css" href="{{$hook}}?v={{:MyC('home_static_cache_version')}}" />
|
<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}}
|
{{/if}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue