blessing-skin-server/resources/views/common/dependencies/script.tpl
2018-07-28 11:12:25 +08:00

20 lines
802 B
PHP

<script type="text/javascript" src="{{ assets('js/app.js') }}"></script>
@if (file_exists(resource_path('lang/'.config('app.locale').'/locale.js')))
<script type="text/javascript" src="{{ assets('lang/'.config('app.locale').'/locale.js') }}"></script>
@else
<script type="text/javascript" src="{{ assets('lang/'.config('app.fallback_locale').'/locale.js') }}"></script>
@endif
@if (str_contains(request()->userAgent(), ['MSIE', 'Trident']))
<script src="{{ url('public/polyfill.js') }}"></script>
@endif
@if (isset($module))
<script type="text/javascript" src="{{ assets('js/'.$module.'.js') }}"></script>
@endif
<!-- User custom scripts -->
<script type="text/javascript">{!! option('custom_js') !!}</script>
{{-- Content added by plugins dynamically --}}
{!! bs_footer_extra() !!}