1
1
<meta charset =" utf-8" >
2
2
<title >File Manager</title >
3
3
{{-- elFinder CSS (REQUIRED) --}}
4
+ @php
5
+ $themeStylesheetVersion = ' 3.0.0' ;
6
+ @endphp
4
7
@bassetArchive (' https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.61.tar.gz' , ' elfinder-2.1.61' )
5
8
@basset (' elfinder-2.1.61/elFinder-2.1.61/css/elfinder.min.css' )
6
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/css/theme.min.css' )
7
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/images/loading.svg' , false )
8
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/font/material.eot' , false )
9
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/font/material.svg' , false )
10
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/images/icons-big.svg' , false )
11
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/images/icons-small.svg' , false )
12
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/font/material.woff' , false )
13
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/font/material.ttf' , false )
14
- @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0 /Material/font/material.woff2' , false )
9
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/css/theme.min.css' )
10
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/images/loading.svg' , false )
11
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/font/material.eot' , false )
12
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/font/material.svg' , false )
13
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/images/icons-big.svg' , false )
14
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/images/icons-small.svg' , false )
15
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/font/material.woff' , false )
16
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/font/material.ttf' , false )
17
+ @basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@' . $themeStylesheetVersion . ' /Material/font/material.woff2' , false )
15
18
16
19
@bassetBlock (' elfinderThemeSwitcherScript.js' )
17
20
<script type =" text/javascript" >
18
21
document .addEventListener (' DOMContentLoaded' , function () {
19
22
function getElfinderStyleSheet (main = true ) {
20
- const regex = main ? / RobiNN1\/ elFinder-Material-Theme\/ Material\/ css\/ theme\. min\. css/ : / RobiNN1\/ elFinder-Material-Theme\/ Material\/ css\/ theme-gray\. min\. css/ ;
23
+ let themeStylesheetVersion = ' {{ $themeStylesheetVersion } }' ;
24
+ const regex = new RegExp (main ? ` RobiNN1\/ elFinder-Material-Theme@${ themeStylesheetVersion} \/ Material\/ css\/ theme\. min\. css` : ` RobiNN1\/ elFinder-Material-Theme@${ themeStylesheetVersion} \/ Material\/ css\/ theme-gray\. min\. css` );
21
25
const linkElements = document .querySelectorAll (' link[rel="stylesheet"]' );
22
26
// Find the main elfinder stylesheet
23
27
let selectedLinkElement;
@@ -31,7 +35,7 @@ function getElfinderStyleSheet(main = true) {
31
35
}
32
36
33
37
function addElfinderLightStylesheet () {
34
- let themeLightAsset = ` {{ Basset:: basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme/Material/css/theme-gray.min.css' ) } }` ;
38
+ let themeLightAsset = ` {{ Basset:: basset (' https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@ ' . $themeStylesheetVersion . ' /Material/css/theme-gray.min.css' ) } }` ;
35
39
const match = themeLightAsset .match (/ <link\s + href="([^ "] + )"/ i );
36
40
if (match && match .length > 1 ) {
37
41
let mainStyleSheet = getElfinderStyleSheet ();
0 commit comments