mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- updated minified scripts;
- fixed not-minified files;
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -2,11 +2,11 @@
|
||||
font-family: "raty";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: url("../font/raty.eot");
|
||||
src: url("../font/raty.eot?#iefix") format("embedded-opentype");
|
||||
src: url("../font/raty.svg#raty") format("svg");
|
||||
src: url("../font/raty.ttf") format("truetype");
|
||||
src: url("../font/raty.woff") format("woff");
|
||||
src: url("font/raty.eot");
|
||||
src: url("font/raty.eot?#iefix") format("embedded-opentype");
|
||||
src: url("font/raty.svg#raty") format("svg");
|
||||
src: url("font/raty.ttf") format("truetype");
|
||||
src: url("font/raty.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
@font-face{font-family:raty;font-style:normal;font-weight:400;src:url(font/raty.eot);src:url(font/raty.eot?#iefix) format("embedded-opentype");src:url(font/raty.svg#raty) format("svg");src:url(font/raty.ttf) format("truetype");src:url(font/raty.woff) format("woff");font-display:swap}.cancel-off-png,.cancel-on-png,.star-half-png,.star-off-png,.star-on-png{font-family:raty;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-right:.2em;color:#ccc}.star-half-png,.star-on-png{color:#ffbe32}.cancel-on-png:before{content:"\e600"}.cancel-off-png:before{content:"\e601"}.star-on-png:before{content:"\f005"}.star-off-png:before{content:"\f006"}.star-half-png:before{content:"\f123"}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
.tipsy{padding:5px;position:absolute;z-index:9999999999!important}.tipsy-inner{font-size:13px!important;line-height:17px!important;background-color:#333!important;color:#fff!important;max-width:250px!important;padding:6px 10px!important;text-align:left!important;word-wrap:break-word!important;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.tipsy-inner{border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}.tipsy-arrow{position:absolute!important;width:0!important;height:0!important;line-height:0!important;border:5px dashed #333}.tipsy-arrow-n{border-bottom-color:#333!important}.tipsy-arrow-s{border-top-color:#333!important}.tipsy-arrow-e{border-left-color:#333!important}.tipsy-arrow-w{border-right-color:#333!important}.tipsy-n .tipsy-arrow{top:0;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent}
|
||||
+27
-1
@@ -5,7 +5,8 @@
|
||||
var gulp = require('gulp')
|
||||
, uglify = require('gulp-uglify'),
|
||||
sass = require('gulp-sass'),
|
||||
rename = require("gulp-rename");
|
||||
rename = require('gulp-rename'),
|
||||
cleanCSS = require( 'gulp-clean-css' );
|
||||
|
||||
// task
|
||||
gulp.task( 'default', function ( done ) {
|
||||
@@ -18,5 +19,30 @@ gulp.task( 'default', function ( done ) {
|
||||
.pipe( rename({ suffix: '.min' }) )
|
||||
.pipe( gulp.dest( 'assets/js/' ) );
|
||||
|
||||
gulp.src(['assets/libs/legacy/fonticons/*.css', '!assets/libs/legacy/fonticons/*.min.css',])
|
||||
.pipe( cleanCSS() )
|
||||
.pipe( rename( { suffix: '.min' } ) )
|
||||
.pipe( gulp.dest( 'assets/libs/legacy/fonticons/' ) );
|
||||
|
||||
// Raty lib
|
||||
gulp.src(['assets/libs/raty/*.css', '!assets/libs/raty/*.min.css',])
|
||||
.pipe( cleanCSS() )
|
||||
.pipe( rename( { suffix: '.min' } ) )
|
||||
.pipe( gulp.dest( 'assets/libs/raty/' ) );
|
||||
gulp.src(['assets/libs/raty/*.js', '!assets/libs/raty/*.min.js',])
|
||||
.pipe( uglify() )
|
||||
.pipe( rename({ suffix: '.min' }) )
|
||||
.pipe( gulp.dest( 'assets/libs/raty/' ) );
|
||||
|
||||
// Tipsy lib
|
||||
gulp.src(['assets/libs/tipsy/*.css', '!assets/libs/tipsy/*.min.css',])
|
||||
.pipe( cleanCSS() )
|
||||
.pipe( rename( { suffix: '.min' } ) )
|
||||
.pipe( gulp.dest( 'assets/libs/tipsy/' ) );
|
||||
gulp.src(['assets/libs/tipsy/*.js', '!assets/libs/tipsy/*.min.js',])
|
||||
.pipe( uglify() )
|
||||
.pipe( rename({ suffix: '.min' }) )
|
||||
.pipe( gulp.dest( 'assets/libs/tipsy/' ) );
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user