diff --git a/assets/src/js/admin/admin.js b/assets/src/js/admin/admin.js
index c92ebe4d8..8f3c2b5f3 100644
--- a/assets/src/js/admin/admin.js
+++ b/assets/src/js/admin/admin.js
@@ -67,19 +67,10 @@ import { AdminUtilsFunctions, Api, Utils } from './utils-admin.js';
attachmentIds = attachmentIds ? attachmentIds + ',' + attachment.id : attachment.id;
}
- if ( attachment.type === 'image' ) {
- const attachmentImage = attachment.sizes && attachment.sizes.thumbnail ? attachment.sizes.thumbnail.url : attachment.url;
-
- listImages.append(
- '
'
- );
- } else {
- listImages.append(
- '
' + attachment.filename + ''
- );
- }
+ listImages.append(
+ '
' + attachment.filename + ''
+ );
}
} );
diff --git a/inc/admin/class-lp-admin-assets.php b/inc/admin/class-lp-admin-assets.php
index b8226f165..175c0d703 100644
--- a/inc/admin/class-lp-admin-assets.php
+++ b/inc/admin/class-lp-admin-assets.php
@@ -64,6 +64,14 @@ public function localize_data_global(): array {
],
'current_screen' => $screen ? $screen->id : '',
'show_search_author_field' => empty( $html_search_author_field ) ? 0 : $html_search_author_field,
+ 'toast' => [
+ 'gravity' => 'bottom',
+ 'position' => 'center',
+ 'duration' => 3000,
+ 'close' => 1,
+ 'stopOnFocus' => 1,
+ 'classPrefix' => 'lp-toast',
+ ],
]
);
}
@@ -469,12 +477,12 @@ public function get_course_data_for_editor_vue() {
global $post, $pagenow;
if ( empty( $post ) || ( get_post_type() !== LP_COURSE_CPT ) || ! in_array(
- $pagenow,
- array(
- 'post.php',
- 'post-new.php',
- )
- ) ) {
+ $pagenow,
+ array(
+ 'post.php',
+ 'post-new.php',
+ )
+ ) ) {
return [];
}
diff --git a/inc/admin/views/meta-boxes/fields/file.php b/inc/admin/views/meta-boxes/fields/file.php
index 5118abb85..9331c9fd1 100644
--- a/inc/admin/views/meta-boxes/fields/file.php
+++ b/inc/admin/views/meta-boxes/fields/file.php
@@ -56,9 +56,9 @@ public function output( $thepostid ) {
';
echo '