diff --git a/assets/css/admin-main.css b/assets/css/admin-main.css index 04ec8266d..7742d7260 100644 --- a/assets/css/admin-main.css +++ b/assets/css/admin-main.css @@ -10471,8 +10471,11 @@ body.stop-scrolling { width: 100%; top: 0; left: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; right: 10px; @@ -10541,6 +10544,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; right: -10px; diff --git a/assets/css/admin-main.rtl.css b/assets/css/admin-main.rtl.css index 67ce97258..16734f389 100644 --- a/assets/css/admin-main.rtl.css +++ b/assets/css/admin-main.rtl.css @@ -10471,8 +10471,11 @@ body.stop-scrolling { width: 100%; top: 0; right: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; left: 10px; @@ -10541,6 +10544,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; left: -10px; diff --git a/assets/css/all-listings.css b/assets/css/all-listings.css index 7c2e36a6c..afd5a19f6 100644 --- a/assets/css/all-listings.css +++ b/assets/css/all-listings.css @@ -5320,8 +5320,11 @@ body.stop-scrolling { width: 100%; top: 0; left: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; right: 10px; @@ -5390,6 +5393,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; right: -10px; diff --git a/assets/css/all-listings.rtl.css b/assets/css/all-listings.rtl.css index c06beb02e..4d3b77b9c 100644 --- a/assets/css/all-listings.rtl.css +++ b/assets/css/all-listings.rtl.css @@ -5320,8 +5320,11 @@ body.stop-scrolling { width: 100%; top: 0; right: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; left: 10px; @@ -5390,6 +5393,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; left: -10px; diff --git a/assets/css/public-main.css b/assets/css/public-main.css index 4efede260..b3ed57eb0 100644 --- a/assets/css/public-main.css +++ b/assets/css/public-main.css @@ -5320,8 +5320,11 @@ body.stop-scrolling { width: 100%; top: 0; left: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; right: 10px; @@ -5390,6 +5393,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; right: -10px; diff --git a/assets/css/public-main.rtl.css b/assets/css/public-main.rtl.css index c06beb02e..4d3b77b9c 100644 --- a/assets/css/public-main.rtl.css +++ b/assets/css/public-main.rtl.css @@ -5320,8 +5320,11 @@ body.stop-scrolling { width: 100%; top: 0; right: 0; + z-index: 10; + pointer-events: none; } .plupload-thumbs .atbdp-thumb-actions .thumbremovelink { + pointer-events: auto; position: absolute; top: 10px; left: 10px; @@ -5390,6 +5393,84 @@ body.stop-scrolling { z-index: 1; } +.plupload-thumbs .thumb .atbdp-file-wrapper { + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + padding: 20px; + background: var(--directorist-color-bg-gray, #f8f9fa); + border-radius: 12px; + cursor: move; + position: relative; + -webkit-transition: background-color 0.3s ease; + transition: background-color 0.3s ease; + z-index: 1; + pointer-events: auto; +} +.plupload-thumbs .thumb .atbdp-file-wrapper:hover { + background: var(--directorist-color-border-gray, #e9ecef); +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon { + width: 64px; + height: 64px; + margin-bottom: 12px; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-icon::after { + width: 64px; + height: 64px; + background-color: var(--directorist-color-primary, #2563eb); + opacity: 0.15; + border-radius: 8px; +} +.plupload-thumbs .thumb .atbdp-file-wrapper .atbdp-file-name { + font-size: 12px; + font-weight: 500; + color: var(--directorist-color-body, #374151); + text-align: center; + word-break: break-word; + line-height: 1.4; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + margin-top: 4px; +} + .plupload-thumbs .thumb .thumbi { position: absolute; left: -10px; diff --git a/assets/js/account.js b/assets/js/account.js index 272bc89b7..6ee162daa 100644 --- a/assets/js/account.js +++ b/assets/js/account.js @@ -315,12 +315,6 @@ jQuery(function ($) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/add-listing-google-map.js b/assets/js/add-listing-google-map.js index 470ca6464..702df3318 100644 --- a/assets/js/add-listing-google-map.js +++ b/assets/js/add-listing-google-map.js @@ -73,12 +73,6 @@ function convertToSelect2(selector) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/add-listing-openstreet-map.js b/assets/js/add-listing-openstreet-map.js index 9981c91df..ba4bd857f 100644 --- a/assets/js/add-listing-openstreet-map.js +++ b/assets/js/add-listing-openstreet-map.js @@ -101,12 +101,6 @@ function convertToSelect2(selector) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/add-listing.js b/assets/js/add-listing.js index 6f30726d9..9c6ae21ab 100644 --- a/assets/js/add-listing.js +++ b/assets/js/add-listing.js @@ -1094,12 +1094,6 @@ function _unsupportedIterableToArray(r, a) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/admin-builder-archive.js b/assets/js/admin-builder-archive.js index 8442fae1e..1c91c0555 100644 --- a/assets/js/admin-builder-archive.js +++ b/assets/js/admin-builder-archive.js @@ -2257,12 +2257,6 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"axios","version":"0.21.4","de /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/admin-import-export.js b/assets/js/admin-import-export.js index e64f0242c..57c485b28 100644 --- a/assets/js/admin-import-export.js +++ b/assets/js/admin-import-export.js @@ -109,12 +109,6 @@ function _typeof(o) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/admin-main.js b/assets/js/admin-main.js index b296ffd44..efe241400 100644 --- a/assets/js/admin-main.js +++ b/assets/js/admin-main.js @@ -3168,12 +3168,6 @@ function _unsupportedIterableToArray(r, a) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/all-authors.js b/assets/js/all-authors.js index affa1b5b9..3f7b2e96e 100644 --- a/assets/js/all-authors.js +++ b/assets/js/all-authors.js @@ -110,12 +110,6 @@ /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/all-listings.js b/assets/js/all-listings.js index 1a6e6e2df..c245ace26 100644 --- a/assets/js/all-listings.js +++ b/assets/js/all-listings.js @@ -3379,12 +3379,6 @@ function _unsupportedIterableToArray(r, a) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/all-location-category.js b/assets/js/all-location-category.js index 4de59761e..298f3ce7e 100644 --- a/assets/js/all-location-category.js +++ b/assets/js/all-location-category.js @@ -112,12 +112,6 @@ window.addEventListener('load', function () { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/author-profile.js b/assets/js/author-profile.js index 5eb17891b..004c21feb 100644 --- a/assets/js/author-profile.js +++ b/assets/js/author-profile.js @@ -335,12 +335,6 @@ window.addEventListener('load', function () { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/directorist-dashboard.js b/assets/js/directorist-dashboard.js index 1ded7c4e9..b6e944090 100644 --- a/assets/js/directorist-dashboard.js +++ b/assets/js/directorist-dashboard.js @@ -1147,12 +1147,6 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed diff --git a/assets/js/directorist-plupload.js b/assets/js/directorist-plupload.js index b5a72e8c1..23a49a8d7 100644 --- a/assets/js/directorist-plupload.js +++ b/assets/js/directorist-plupload.js @@ -73,12 +73,6 @@ function convertToSelect2(selector) { /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } -/******/ // Check if module exists (development only) -/******/ if (__webpack_modules__[moduleId] === undefined) { -/******/ var e = new Error("Cannot find module '" + moduleId + "'"); -/******/ e.code = 'MODULE_NOT_FOUND'; -/******/ throw e; -/******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed @@ -407,25 +401,71 @@ function plu_show_thumbs(imgId) { image_caption_html = '' + image_caption + ''; } } else { - var file_type_class = 'la-file'; + // Map file extensions to Directorist icon classes + var icon_class = 'las la-file'; if (file_ext == 'pdf') { - file_type_class = 'la-file-pdf-o'; - } else if (file_ext == 'zip' || file_ext == 'tar') { - file_type_class = 'la-file-zip-o'; - } else if (file_ext == 'doc' || file_ext == 'odt') { - file_type_class = 'la-file-word-0'; + icon_class = 'fas fa-file-pdf'; + } else if (file_ext == 'zip' || file_ext == 'tar' || file_ext == 'rar' || file_ext == '7z') { + icon_class = 'fas fa-file-archive'; + } else if (file_ext == 'doc' || file_ext == 'docx' || file_ext == 'odt') { + icon_class = 'fas fa-file-word'; } else if (file_ext == 'txt' || file_ext == 'text') { - file_type_class = 'la-file-text-0'; - } else if (file_ext == 'csv' || file_ext == 'ods' || file_ext == 'ots') { - file_type_class = 'la-file-excel-0'; - } else if (file_ext == 'avi' || file_ext == 'mp4' || file_ext == 'mov') { - file_type_class = 'la-file-video-0'; + icon_class = 'far fa-file-alt'; + } else if (file_ext == 'csv' || file_ext == 'ods' || file_ext == 'ots' || file_ext == 'xls' || file_ext == 'xlsx') { + icon_class = 'fas fa-file-excel'; + } else if (file_ext == 'avi' || file_ext == 'mp4' || file_ext == 'mov' || file_ext == 'wmv' || file_ext == 'flv' || file_ext == 'mkv') { + icon_class = 'fas fa-file-video'; + } else if (file_ext == 'mp3' || file_ext == 'wav' || file_ext == 'ogg' || file_ext == 'm4a' || file_ext == 'flac') { + icon_class = 'fas fa-file-audio'; + } else if (file_ext == 'ppt' || file_ext == 'pptx') { + icon_class = 'fas fa-file-powerpoint'; + } else if (file_ext == 'xps') { + icon_class = 'fas fa-file-alt'; + } + + // Get icon URL using Directorist icon system + var iconURL = ''; + var iconPath = ''; + if (typeof directorist !== 'undefined' && directorist.assets_url) { + // Map icon class to file path + if (icon_class.indexOf('fa-file-pdf') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-pdf.svg'; + } else if (icon_class.indexOf('fa-file-archive') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-archive.svg'; + } else if (icon_class.indexOf('fa-file-word') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-word.svg'; + } else if (icon_class.indexOf('fa-file-alt') !== -1) { + iconPath = 'font-awesome/svgs/regular/file-alt.svg'; + } else if (icon_class.indexOf('fa-file-excel') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-excel.svg'; + } else if (icon_class.indexOf('fa-file-video') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-video.svg'; + } else if (icon_class.indexOf('fa-file-audio') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-audio.svg'; + } else if (icon_class.indexOf('fa-file-powerpoint') !== -1) { + iconPath = 'font-awesome/svgs/solid/file-powerpoint.svg'; + } else { + iconPath = 'font-awesome/svgs/regular/file.svg'; + } + iconURL = directorist.assets_url + 'icons/' + iconPath; + } + + // Generate Directorist icon HTML for file + var fileIconHTML = ''; + if (iconURL && typeof directorist !== 'undefined' && directorist.icon_markup) { + fileIconHTML = directorist.icon_markup.replace('##URL##', iconURL).replace('##CLASS##', 'atbdp-file-icon'); + } else if (iconURL) { + // Fallback to simple icon if directorist.icon_markup is not available + fileIconHTML = ''; + } else { + // Final fallback - use a generic file icon + fileIconHTML = ''; } file_display_class = 'file-thumb'; - file_display = ''; + file_display = '