elFinder 파일 관리자에서 테마를 원하는 형태로 자유롭게 지정하기 위하여 테마 선택기를 만들었음 css 파일에 테마 경로를 넣어 두고, 필요할 때 원하는 테마만 주석을 해제하거나, 테마경로를 넣어 주면됨. [적용방법] 1. 경로 및 파일 생성 elFinder 경로/css/theme.switch.css /테마폴더 /테마폴더/css/theme.css 2. theme.switch.css 내용 @charset "utf-8"; /* * elFinder 테마 선택기 (theme.switch.css) * * 아래에서 적용하고자 하는 테마의 주석(/* ...) 부분을 해제하세요. * 다른 테마들은 반드시 주석 처리되어 있어야 합니다. * 기본 테마 경로: url("theme.css") * 기타 테마 경로: url("테마이름/css/theme.css") */ /* 기본 테마 */ /* @import url("theme.css"); */ /* * ========================================== * 사용자 등록 테마 * ========================================== */ /* bootstrap-theme 테마 */ /* @import url("bootstrap-theme/css/theme.css"); */ /* Material 테마 */ @import url("Material/css/theme.css"); 3. elFinder 경로/elfinder.html 파일 내용 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <title>elFinder 2.1.x source version with PHP connector</title> <!-- 기본 테마 경로 주석처리 link rel="stylesheet" href="css/theme.css" type="text/css" --> <!-- 👇 테마 경로를 테마 선택기로 수정, 운영체제 모드에 따라 색상모드 적용 --> <link rel="stylesheet" type="text/css" href="css/theme.switch.css" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"> <!-- Require JS (REQUIRED) --> <!-- Rename "main.default.js" to "main.js" and edit it if you need configure elFInder options or any things --> <script data-main="./main.default.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.7/require.min.js"></script> <script> define('elFinderConfig', { // elFinder options (REQUIRED) // Documentation for client options: // https://github.com/Studio-42/elFinder/wiki/Client-configuration-options defaultOpts : { url : 'php/connector.minimal.php', // or connector.maximal.php : connector URL (REQUIRED) // 👇 테마선택기를 테마 경로로 설정 themes : { default : 'css/theme.switch.css' }, theme : 'default', // 👆 여기까지 추가 commandsOptions : { edit : { extraOptions : { // set API key to enable Creative Cloud image editor // see https://console.adobe.io/ creativeCloudApiKey : '', // browsing manager URL for CKEditor, TinyMCE // uses self location with the empty value managerUrl : '' } }, quicklook : { // to enable CAD-Files and 3D-Models preview with sharecad.org sharecadMimes : ['image/vnd.dwg', 'image/vnd.dxf', 'model/vnd.dwf', 'application/vnd.hp-hpgl', 'application/plt', 'application/step', 'model/iges', 'application/vnd.ms-pki.stl', 'application/sat', 'image/cgm', 'application/x-msmetafile'], 테마선택기에서 선택한 테마가 적용될 수 있도록 elfinder.html 파일에 11라인, 24~25라인 추가