diff --git a/src/admin/class-tainacan-admin.php b/src/admin/class-tainacan-admin.php index b79bf7b8f..43e8c6ff1 100644 --- a/src/admin/class-tainacan-admin.php +++ b/src/admin/class-tainacan-admin.php @@ -57,46 +57,51 @@ class Admin { wp_enqueue_style( 'tainacan-admin-page', $TAINACAN_BASE_URL . '/assets/css/tainacan-admin.css' ); $undesired_wp_styles = [ - 'admin-menu', - 'admin-bar', - 'code-editor', - 'color-picker', - 'customize-controls', - 'customize-nav-menus', - 'customize-widgets', - 'dashboard', - 'dashicons', - 'deprecated-media', - 'edit', - 'wp-pointer', - 'farbtastic', - 'forms', - 'common', - 'install', - 'wp-auth-check', - 'site-icon', - 'buttons', - 'l10n', - 'list-tables', - 'login', - 'media', - 'nav-menus', - 'revisions', - 'themes', - 'widgets', - 'wp-admin' + //'admin-menu', + //'admin-bar', + //'code-editor', + //'color-picker', + //'customize-controls', + //'customize-nav-menus', + //'customize-widgets', + //'dashboard', + //'dashicons', + //'deprecated-media', + //'edit', + //'wp-pointer', + //'farbtastic', + //'forms', + //'common', + //'install', + //'wp-auth-check', + //'site-icon', + //'buttons', + //'l10n', + //'list-tables', + //'login', + //'media', + //'nav-menus', + //'revisions', + //'themes', + //'widgets', + //'wp-admin' ]; wp_dequeue_style( $undesired_wp_styles ); wp_deregister_style( $undesired_wp_styles ); + + } function add_admin_js() { global $TAINACAN_BASE_URL; - - wp_enqueue_script( 'tainacan-user-admin', $TAINACAN_BASE_URL . '/assets/user_admin-components.js', [], null, true ); + wp_enqueue_media(); + wp_enqueue_script('jcrop'); + + wp_enqueue_script( 'tainacan-user-admin', $TAINACAN_BASE_URL . '/assets/user_admin-components.js', [], null, true ); + $settings = $this->get_admin_js_localization_params(); wp_localize_script( 'tainacan-user-admin', 'tainacan_plugin', $settings ); diff --git a/src/admin/components/edition/collection-edition-form.vue b/src/admin/components/edition/collection-edition-form.vue index c372f2b35..8f4e63ead 100644 --- a/src/admin/components/edition/collection-edition-form.vue +++ b/src/admin/components/edition/collection-edition-form.vue @@ -67,6 +67,44 @@ + + + + +