Skip to content

Commit ca0b27f

Browse files
committed
Add themes and change dynamically
1 parent e5207ee commit ca0b27f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

resources/views/common_styles.blade.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
{{-- elFinder CSS (REQUIRED) --}}
55
@bassetArchive('https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.61.tar.gz', 'elfinder-2.1.61')
66
@basset('elfinder-2.1.61/elFinder-2.1.61/css/elfinder.min.css')
7-
8-
{{-- elFinder Backpack Theme --}}
9-
@basset(base_path('vendor/backpack/filemanager/resources/assets/css/elfinder.backpack.theme.css'))

resources/views/standalonepopup.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,15 @@
3434
@endif
3535
3636
parent.jQuery.colorbox.close();
37-
}
37+
},
38+
themes: {
39+
default : 'https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme/manifests/material-gray.json',
40+
dark : 'https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme/manifests/material-default.json',
41+
},
42+
theme: 'default',
3843
}).elfinder('instance');
44+
45+
//elf.changeTheme('dark').storage('theme', 'dark');
3946
});
4047
</script>
4148

0 commit comments

Comments
 (0)