Skip to content

Commit

Permalink
VERSION 3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Salazar Delgado committed Jun 2, 2022
1 parent 40d3354 commit eaae3a9
Show file tree
Hide file tree
Showing 118 changed files with 6,313 additions and 478 deletions.
2 changes: 1 addition & 1 deletion includes/class-yith-wcwl-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class YITH_WCWL_Frontend {
* @var string
* @since 1.0.0
*/
public $version = '3.8.0';
public $version = '3.9.0';

/**
* Plugin database version
Expand Down
6 changes: 3 additions & 3 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Plugin Name: YITH WooCommerce Wishlist
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
* Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
* Version: 3.8.0
* Version: 3.9.0
* Author: YITH
* Author URI: https://yithemes.com/
* Text Domain: yith-woocommerce-wishlist
* Domain Path: /languages/
* WC requires at least: 6.2
* WC tested up to: 6.4
* WC requires at least: 6.3
* WC tested up to: 6.5
*
* @author YITH
* @package YITH\Wishlist
Expand Down
Binary file modified languages/yith-woocommerce-wishlist-da_DK.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-de_DE.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-es_AR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-es_ES.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-es_MX.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-fa_IR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-fr_FR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-he_IL.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-hr.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-it_IT.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-ko_KR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-nl_NL.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-pl_PL.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-pt_BR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-pt_PT.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-ru_RU.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-sv_SE.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-tr_TR.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-uk_UA.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-zh_CN.mo
Binary file not shown.
Binary file modified languages/yith-woocommerce-wishlist-zh_TW.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion languages/yith-woocommerce-wishlist.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: YITH WooCommerce Wishlist Premium\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/yith-woocommerce-wishlist\n"
"POT-Creation-Date: 2022-04-06 11:10:27+00:00\n"
"POT-Creation-Date: 2022-06-02 10:46:55+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
198 changes: 198 additions & 0 deletions plugin-fw/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
const potInfo = {
languageFolderPath: './languages/',
filename : 'yith-plugin-fw.pot',
headers : {
poedit : true, // Includes common Poedit headers.
'x-poedit-keywordslist': true, // Include a list of all possible gettext functions.
'report-msgid-bugs-to' : 'YITH <[email protected]>',
'language-team' : 'YITH <[email protected]>'
}
};

module.exports = function ( grunt ) {
'use strict';

var sass = require( 'node-sass' );

grunt.initConfig( {
dirs: {
css : 'assets/css',
scss: 'assets/css/scss',
js : 'assets/js'
},

uglify: {
options: {
ie8 : true,
parse : {
strict: false
},
output: {
comments: /@license|@preserve|^!/
}
},
common : {
files: [{
expand: true,
cwd : '<%= dirs.js %>/',
src : ['*.js', '!*.min.js'],
dest : '<%= dirs.js %>/',
rename: function ( dst, src ) {
// To keep the source js files and make new files as `*.min.js`:
return dst + '/' + src.replace( '.js', '.min.js' );
}
}]
}
},

// Compile all .scss files.
sass: {
compile: {
options: {
implementation: sass,
outputStyle: 'expanded'
},
files : [{
expand: true,
cwd : '<%= dirs.scss %>/',
src : ['*.scss'],
dest : '<%= dirs.css %>/',
ext : '.css'
}]
}
},

jshint: {
options: {
jshintrc: '.jshintrc'
},
all : [
'<%= dirs.js %>/*.js',
'!<%= dirs.js %>/*.min.js'
]
},


// Watch changes for assets.
watch: {
css: {
files: ['<%= dirs.scss %>/**/*.scss'],
tasks: ['sass']
}
},

makepot : {
options: {
type : 'wp-plugin',
domainPath : 'languages',
domain : 'yith-plugin-fw',
potHeaders : potInfo.headers,
updatePoFiles: false
},
dist : {
options: {
potFilename: potInfo.filename,
exclude : [
'bin/.*',
'dist/.*',
'node_modules/.*',
'tests/.*',
'tmp/.*',
'vendor/.*'
]
}
}
},
update_po: {
options: {
template: potInfo.languageFolderPath + potInfo.filename
},
build : {
src: potInfo.languageFolderPath + '*.po'
}
},

// PHP Code Sniffer.
phpcs: {
options: {
bin: 'vendor/bin/phpcs'
},
dist : {
src: [
'**/*.php', // Include all php files.
'!bin/**',
'!dist/**',
'!node_modules/**',
'!tests/**',
'!tools/**',
'!tmp/**',
'!vendor/**'
]
}
}

} );

grunt.registerMultiTask( 'update_po', 'This task update .po strings by .pot', function () {
grunt.log.writeln( 'Updating .po files.' );

var done = this.async(),
options = this.options(),
template = options.template;
this.files.forEach( function ( file ) {
if ( file.src.length ) {
var counter = file.src.length;

grunt.log.writeln( 'Processing ' + file.src.length + ' files.' );

file.src.forEach( function ( fileSrc ) {
grunt.util.spawn( {
cmd : 'msgmerge',
args: ['-U', fileSrc, template]
}, function ( error, result, code ) {
const output = fileSrc.replace( '.po', '.mo' );
grunt.log.writeln( 'Updating: ' + fileSrc + ' ...' );

if ( error ) {
grunt.verbose.error();
} else {
grunt.verbose.ok();
}

// Updating also the .mo files
grunt.util.spawn( {
cmd : 'msgfmt',
args: [fileSrc, '-o', output]
}, function ( moError, moResult, moCode ) {
grunt.log.writeln( 'Updating MO for: ' + fileSrc + ' ...' );
counter--;
if ( moError || counter === 0 ) {
done( moError );
}
} );
if ( error ) {
done( error );
}
} );
} );
} else {
grunt.log.writeln( 'No file to process.' );
}
} );
} );

// Load NPM tasks to be used here.
grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.loadNpmTasks( 'grunt-phpcs' );
grunt.loadNpmTasks( 'grunt-sass' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );

// Use uglify-es (instead of uglify) to uglify also JS for ES6.
grunt.loadNpmTasks( 'grunt-contrib-uglify-es' );

// Register tasks.
grunt.registerTask( 'js', ['uglify'] );

grunt.registerTask( 'css', ['sass'] );
grunt.registerTask( 'assets', ['js', 'css'] );
};
63 changes: 7 additions & 56 deletions plugin-fw/assets/css/metaboxes.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,6 @@
border : 0;
}

.metaboxes-tab ul.metaboxes-tabs {
background : #f1f1f1;
margin : 0;
padding : 10px 0 0 5px;
}

.metaboxes-tab ul.metaboxes-tabs li {
float : left;
background : #dedede;
margin : 0 0 0 5px;
}

.metaboxes-tab ul.metaboxes-tabs li a {
color : #555;
text-decoration : none;
padding : 8px 15px;
display : block;
box-shadow : none !important;
}

.metaboxes-tab ul.metaboxes-tabs li.tabs {
background : #fff;
}

.metaboxes-tab p.field-row {
margin : 20px 0;
}
Expand Down Expand Up @@ -186,38 +162,6 @@
padding : 15px 0;
}

.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs {
background : transparent;
border-bottom : 1px solid #d8d8d8;
padding : 10px 0 0 0;
margin : 0 10px
}


.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li {
background : #fff;
border-top : 1px solid #d8d8d8;
border-left : 1px solid #d8d8d8;
border-right : 1px solid #d8d8d8;
margin : 0 0 -1px -1px;
}

.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li.tabs {
border-bottom : 1px solid #fff;
}

.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li a {
color : #336374;
padding : 10px 18px;
text-transform : uppercase;
font-weight : 600;
display : inline-block;
}

.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li.tabs a {
color : #2a8db0;
}

/* sortable table posts */

#the-list.ui-sortable tr:hover {
Expand All @@ -236,6 +180,13 @@
box-shadow : 0 1px 8px rgba(0, 0, 0, 0.2);
}

.yith-plugin-ui.metaboxes-tab .yith-plugin-fw__tabs{
margin: 10px 10px 0;
}
.yith-plugin-ui.metaboxes-tab .tabs-panel.yith-plugin-fw__tab-panel{
padding: 0 10px;
}

/**************************************
FIELDS
***************************************/
Expand Down
8 changes: 8 additions & 0 deletions plugin-fw/assets/css/scss/yith-plugin-ui.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import "yith-plugin-ui/head_comment";

@import "yith-plugin-ui/variables";
@import "yith-plugin-ui/wp-pages";
@import "yith-plugin-ui/taxonomy";
@import "yith-plugin-ui/components";
@import "yith-plugin-ui/tables";
@import "yith-plugin-ui/animations";
Loading

0 comments on commit eaae3a9

Please sign in to comment.