- updated minified scripts;

- fixed not-minified files;
This commit is contained in:
Mykyta Synelnikov
2023-09-27 14:50:43 +03:00
parent bd2cc5a69d
commit 45dbfffb0f
12 changed files with 38 additions and 23 deletions
+1 -10
View File
@@ -101,9 +101,7 @@ final class Enqueue extends \um\common\Enqueue {
wp_register_style( 'um_responsive', UM_URL . 'assets/css/um-responsive.css', array( 'um_profile', 'um_crop' ), UM_VERSION );
wp_register_style( 'um_account', UM_URL . 'assets/css/um-account.css', array(), UM_VERSION );
wp_register_style( 'um_default_css', UM_URL . 'assets/css/um-old-default.css', array(), UM_VERSION );
//wp_register_style( 'um_fonticons_fa', UM_URL . 'assets/css/um-fonticons-fa.css', array(), UM_VERSION );
wp_register_style( 'select2', UM_URL . 'assets/css/select2/select2' . $suffix . '.css', array(), UM_VERSION );
//wp_register_style( 'um_fonticons_ii', UM_URL . 'assets/css/um-fonticons-ii.css', array(), UM_VERSION );
wp_register_script( 'um_admin_blocks_shortcodes', UM_URL . 'assets/js/um-blocks' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), UM_VERSION, true );
wp_set_script_translations( 'um_admin_blocks_shortcodes', 'ultimate-member' );
@@ -183,10 +181,8 @@ final class Enqueue extends \um\common\Enqueue {
wp_enqueue_script( 'um_functions' );
wp_enqueue_script( 'um_responsive' );
//wp_enqueue_style( 'um_fonticons_ii' );
wp_enqueue_style( 'select2' );
wp_enqueue_style( 'um_default_css' );
// wp_enqueue_style( 'um_fonticons_fa' );
wp_enqueue_style( 'um_members' );
wp_enqueue_style( 'um_styles' );
wp_enqueue_style( 'um_profile' );
@@ -489,11 +485,6 @@ final class Enqueue extends \um\common\Enqueue {
* @depecated 2.6.12
*/
public function load_fonticons() {
// wp_register_style( 'um_fonticons_ii', UM_URL . 'assets/css/um-fonticons-ii.css', array(), ultimatemember_version );
// wp_enqueue_style( 'um_fonticons_ii' );
//
// wp_register_style( 'um_fonticons_fa', UM_URL . 'assets/css/um-fonticons-fa.css', array(), ultimatemember_version );
// wp_enqueue_style( 'um_fonticons_fa' );
}
@@ -504,7 +495,7 @@ final class Enqueue extends \um\common\Enqueue {
wp_register_script( 'um_admin_global', $this->js_url . 'um-admin-global.js', array( 'jquery' ), ultimatemember_version, true );
wp_enqueue_script( 'um_admin_global' );
wp_register_style( 'um_admin_global', $this->css_url . 'um-admin-global.css', array(), ultimatemember_version );
wp_register_style( 'um_admin_global', $this->css_url . 'um-admin-global.css', array( 'um_fonticons_ii', 'um_fonticons_fa' ), ultimatemember_version );
wp_enqueue_style( 'um_admin_global' );
}
-6
View File
@@ -169,11 +169,7 @@ final class Enqueue extends \um\common\Enqueue {
*/
public function register_styles() {
//FontAwesome and FontIcons styles
//wp_register_style( 'um_fonticons_ii', $this->css_baseurl . 'um-fonticons-ii.css', array(), UM_VERSION );
//wp_register_style( 'um_fonticons_fa', $this->css_baseurl . 'um-fonticons-fa.css', array(), UM_VERSION );
wp_register_style( 'um_crop', $this->css_baseurl . 'um-crop.css', array(), UM_VERSION );
//wp_register_style( 'um_tipsy', $this->css_baseurl . 'um-tipsy.css', array(), UM_VERSION );
//wp_register_style( 'um_raty', $this->css_baseurl . 'um-raty.css', array(), UM_VERSION );
wp_register_style( 'select2', $this->css_baseurl . 'select2/select2.min.css', array(), '4.0.13' );
wp_register_style( 'um_fileupload', $this->css_baseurl . 'um-fileupload.css', array(), UM_VERSION );
wp_register_style( 'um_datetime', $this->css_baseurl . 'pickadate/default.css', array(), UM_VERSION );
@@ -318,8 +314,6 @@ final class Enqueue extends \um\common\Enqueue {
* @depecated 2.6.12
*/
function load_fonticons() {
wp_enqueue_style( 'um_fonticons_ii' );
wp_enqueue_style( 'um_fonticons_fa' );
}