Skip to content

Commit 7c8a417

Browse files
committed
Updates
1 parent a836d3f commit 7c8a417

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.zipignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ easy-file-uploader/.vscode/**
55
easy-file-uploader/.git/**
66

77
easy-file-uploader/.gitignore
8-
easy-file-uploader/LICENSE.txt
8+
easy-file-uploader/LICENSES.txt
99
easy-file-uploader/README.md
10-
easy-file-uploader/readme.txt
1110
easy-file-uploader/.cursorrc.json
1211
easy-file-uploader/.gitattributes
1312

includes/classes/class-assets.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,20 @@ class Assets {
3434
* Hooks asset loading into WordPress and Elementor.
3535
*/
3636
private function __construct() {
37+
/**
38+
* Load scripts and styles in the frontend.
39+
*/
3740
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 10 );
41+
42+
/**
43+
* Load scripts and styles in the Elementor editor.
44+
*/
3845
add_action( 'elementor/editor/after_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ), 10 );
46+
47+
/**
48+
* Load scripts and styles in WordPress admin.
49+
*/
50+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ), 10 );
3951
}
4052

4153
/**
@@ -44,6 +56,13 @@ private function __construct() {
4456
* @return void
4557
*/
4658
public function enqueue_admin_scripts() {
59+
wp_enqueue_style(
60+
'easy-dragdrop-uploader',
61+
ZIORWEBDEV_DRAGDROP_PLUGIN_URL . 'dist/admin/main.min.css',
62+
array(),
63+
ZIORWEBDEV_DRAGDROP_PLUGIN_VERSION
64+
);
65+
4766
wp_enqueue_script(
4867
'easy-dragdrop-uploader-editor',
4968
ZIORWEBDEV_DRAGDROP_PLUGIN_URL . 'dist/admin/main.min.js',

0 commit comments

Comments
 (0)