50 lines
1.9 KiB
PHP
50 lines
1.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ app()->getLocale() }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>elFinder 2.0</title>
|
|
|
|
<!-- jQuery and jQuery UI (REQUIRED) -->
|
|
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/themes/smoothness/jquery-ui.css" />
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
|
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js"></script>
|
|
|
|
<!-- elFinder CSS (REQUIRED) -->
|
|
<link rel="stylesheet" type="text/css" href="{{ asset($dir.'/css/elfinder.min.css') }}">
|
|
<link rel="stylesheet" type="text/css" href="{{ asset($dir.'/css/theme.css') }}">
|
|
|
|
<!-- elFinder JS (REQUIRED) -->
|
|
<script src="{{ asset($dir.'/js/elfinder.min.js') }}"></script>
|
|
|
|
@if($locale)
|
|
<!-- elFinder translation (OPTIONAL) -->
|
|
<script src="{{ asset($dir."/js/i18n/elfinder.$locale.js") }}"></script>
|
|
@endif
|
|
|
|
<!-- elFinder initialization (REQUIRED) -->
|
|
<script type="text/javascript" charset="utf-8">
|
|
// Documentation for client options:
|
|
// https://github.com/Studio-42/elFinder/wiki/Client-configuration-options
|
|
$().ready(function() {
|
|
$('#elfinder').elfinder({
|
|
// set your elFinder options here
|
|
@if($locale)
|
|
lang: '{{ $locale }}', // locale
|
|
@endif
|
|
customData: {
|
|
_token: '{{ csrf_token() }}'
|
|
},
|
|
url : '{{ route("elfinder.connector") }}', // connector URL
|
|
soundPath: '{{ asset($dir.'/sounds') }}'
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Element where elFinder will be created (REQUIRED) -->
|
|
<div id="elfinder"></div>
|
|
|
|
</body>
|
|
</html>
|