Skip to content

Commit

Permalink
VERSION 3.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
alarocca130 committed May 7, 2020
1 parent 2376cd7 commit f92ff31
Show file tree
Hide file tree
Showing 117 changed files with 18,441 additions and 9,118 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,24 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h

## Changelog

### 3.0.9 - Released on 09 March 2020
### 3.0.10 - Released on 07 May 2020

* Tweak: use wp_kses_post instead of esc_html for browse wishlist text
* New: support for WooCommerce 4.1
* New: prevent some UserAgents from triggering wishlist handling (avoid spam)
* New: added minor css fixes for Storefront theme
* Update: plugin framework
* Tweak: review add process, to avoid unnecessary items update
* Tweak: improved localized date on wishlist table
* Tweak: added wishlist as gutenberg block in new wishlist page
* Tweak: added "Wishlist page" post status
* Tweak: added new check to avoid "Cannot read property contains of undefined" error
* Tweak: added search box to All Wishlist view
* Fix: show remove button on list mobile when at least one of the two buttons is shown on desktop
* Fix: fatal error on empty wishlist page
* Dev: added yith_wcwl_is_wishlist_responsive filter, to allow developers disable responsive behaviour for the wishlist
* Dev: added yith_wcwl_generated_default_wishlist action
* Dev: added yith_wcwl_default_wishlist filter
* Dev: added yith_wcwl_add_notice wrapper function, to avoid possible fatal errors when calling wc_add_notice


## Support
Expand Down
23 changes: 21 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Contributors: yithemes
Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
Requires at least: 4.0
Tested up to: 5.4
Stable tag: 3.0.9
Stable tag: 3.0.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work.
WooCommerce 4.0.x compatible.
WooCommerce 4.1.x compatible.

== Description ==

Expand Down Expand Up @@ -113,6 +113,25 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h

== Changelog ==

= 3.0.10 - Released on 07 May 2020 =

* New: support for WooCommerce 4.1
* New: prevent some UserAgents from triggering wishlist handling (avoid spam)
* New: added minor css fixes for Storefront theme
* Update: plugin framework
* Tweak: review add process, to avoid unnecessary items update
* Tweak: improved localized date on wishlist table
* Tweak: added wishlist as gutenberg block in new wishlist page
* Tweak: added "Wishlist page" post status
* Tweak: added new check to avoid "Cannot read property contains of undefined" error
* Tweak: added search box to All Wishlist view
* Fix: show remove button on list mobile when at least one of the two buttons is shown on desktop
* Fix: fatal error on empty wishlist page
* Dev: added yith_wcwl_is_wishlist_responsive filter, to allow developers disable responsive behaviour for the wishlist
* Dev: added yith_wcwl_generated_default_wishlist action
* Dev: added yith_wcwl_default_wishlist filter
* Dev: added yith_wcwl_add_notice wrapper function, to avoid possible fatal errors when calling wc_add_notice

= 3.0.9 - Released on 09 March 2020 =

* Tweak: use wp_kses_post instead of esc_html for browse wishlist text
Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/themes/storefront.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 36 additions & 1 deletion assets/css/unminified/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ select.selectBox.change-wishlist{
overflow: hidden;
}

.yith-wcwl-with-pretty-photo .pp_content{
height: auto!important;
}

/* === 3. BLOCK STYLE === */

.woocommerce .wishlist-fragment .blockUI.blockOverlay::before,
Expand Down Expand Up @@ -173,7 +177,7 @@ select.selectBox.change-wishlist{
}

.yith-wcwl-popup-footer {
margin-top: 15px;
margin: 15px 0;
}

.yith-wcwl-popup-footer .button.wishlist-submit{
Expand Down Expand Up @@ -944,10 +948,20 @@ div.product .woocommerce-price-and-add .single_add_to_wishlist.button {
float: left;
}

.yith_wcwl_wishlist_footer .yith_wcwl_wishlist_bulk_action label {
display: inline-block;
margin-right: 10px;
}

.yith_wcwl_wishlist_footer .yith_wcwl_wishlist_bulk_action #bulk_actions{
min-width: 250px;
}

.yith_wcwl_wishlist_footer .yith_wcwl_wishlist_bulk_action input[type="submit"]{
margin: 0;
margin-left: 10px;
}

.yith_wcwl_wishlist_footer .yith_wcwl_wishlist_update {
float: right;
}
Expand Down Expand Up @@ -1127,6 +1141,21 @@ table.wishlist_manage_table tfoot td{
margin: 0;
}

.wishlist_manage_table.modern_grid li .product-thumbnail .placeholder-item.empty-box{
display: flex;
background: #f2f2f2;
min-height: 400px;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}

.wishlist_manage_table.modern_grid li .product-thumbnail .placeholder-item.empty-box p{
font-size: 1em;
line-height: 1.5em;
font-weight: 600;
}

.wishlist_manage_table.modern_grid li .product-thumbnail img:first-child{
width: 100%;
margin-bottom: 15px;
Expand Down Expand Up @@ -1405,6 +1434,12 @@ table.wishlist_manage_table tfoot td{
margin-bottom: 40px!important;
}

.elementor-widget-wp-widget-yith-wcwl-items .mini ul.product_list_widget,
.widget_yith-wcwl-items .mini ul.product_list_widget{
max-height: 200px;
overflow-y: auto;
}

.elementor-widget-wp-widget-yith-wcwl-items p.empty-wishlist,
.widget_yith-wcwl-items p.empty-wishlist{
margin-bottom: 0!important;
Expand Down
35 changes: 35 additions & 0 deletions assets/css/unminified/themes/storefront.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.yith-wcwl-icon.fa-heart-o:before,
.widget_yith-wcwl-items .heading-icon .fa-heart-o:before{
content: '\f004';
filter: grayscale(1);
}

.yith-wcwl-share .share-button a.facebook i:before{
font-family: 'FontAwesome';
content: '\f09a'
}

.yith-wcwl-share .share-button a.twitter i:before{
font-family: 'FontAwesome';
content: '\f099';
}

.yith-wcwl-share .share-button a.pinterest i:before{
font-family: 'FontAwesome';
content: '\f231';
}

.yith-wcwl-share .share-button a.email i:before{
font-family: 'FontAwesome';
content: '\f003';
}

.yith-wcwl-share .share-button a.whatsapp i:before{
font-family: 'FontAwesome';
content: '\f232';
}

.wishlist-title.wishlist-title-with-form .show-title-form .fa-pencil{
font-family: 'FontAwesome';
content: '\f040';
}
2 changes: 1 addition & 1 deletion assets/js/jquery.yith-wcwl.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions assets/js/unminified/jquery.yith-wcwl.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ jQuery( document ).ready( function( $ ){
return false;
} );

t.on('click', '.yith-wfbt-add-wishlist', function(e){
t.on( 'click', '.yith-wfbt-add-wishlist', function(e){
e.preventDefault();
var t = $(this),
form = $( '#yith-wcwl-form' );
Expand Down Expand Up @@ -499,6 +499,10 @@ jQuery( document ).ready( function( $ ){
$( '.variations_form' ).find( '.variations select' ).last().change();
} );

t.on( 'click', '.yith-wcwl-popup-feedback .close-popup', function(){
close_pretty_photo();
} )

init_wishlist_popup();

init_wishlist_tooltip();
Expand Down Expand Up @@ -631,13 +635,13 @@ jQuery( document ).ready( function( $ ){
var mutation = mutationsList[ i ];
if ( mutation.type === 'childList' ) {
typeof mutation.addedNodes !== 'undefined' && mutation.addedNodes.forEach( function( currentValue ){
if( currentValue.classList.contains( 'yith-wcwl-overlay' ) ){
if( typeof currentValue.classList !== 'undefined' && currentValue.classList.contains( 'yith-wcwl-overlay' ) ){
$('body').addClass( 'yith-wcwl-with-pretty-photo' );
}
} );

typeof mutation.removedNodes !== 'undefined' && mutation.removedNodes.forEach( function( currentValue ){
if( currentValue.classList.contains( 'yith-wcwl-overlay' ) ){
if( typeof currentValue.classList !== 'undefined' && currentValue.classList.contains( 'yith-wcwl-overlay' ) ){
$('body').removeClass( 'yith-wcwl-with-pretty-photo' );
}
} );
Expand Down Expand Up @@ -1077,6 +1081,10 @@ jQuery( document ).ready( function( $ ){
function init_wishlist_responsive() {
var jqxhr = false;

if( ! yith_wcwl_l10n.is_wishlist_responsive ){
return;
}

$( window ).on( 'resize', function( ev ){
var table = $('.wishlist_table.responsive'),
mobile = table.is('.mobile'),
Expand Down Expand Up @@ -1431,7 +1439,9 @@ jQuery( document ).ready( function( $ ){
popup.addClass( 'feedback' );
popup.css( 'left', ( ( $( window ).innerWidth() / 2 ) - ( popup.outerWidth() / 2 ) ) + 'px' );

setTimeout( close_pretty_photo, yith_wcwl_l10n.popup_timeout );
if( typeof yith_wcwl_l10n.auto_close_popup == 'undefined' || yith_wcwl_l10n.auto_close_popup ) {
setTimeout(close_pretty_photo, yith_wcwl_l10n.popup_timeout);
}
}
}
else{
Expand Down
26 changes: 17 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,33 @@ var uglify = require('gulp-uglify');
var wpPot = require('gulp-wp-pot');
var poSync = require('gulp-po-sync');
var po2mo = require('gulp-po2mo');
var jshint = require('gulp-jshint');

/* Task to compile less */

var minify_css = function () {
var minifyCss = function () {
return gulp.src('assets/css/unminified/*.css')
.pipe(cleanCSS({debug: true}, (details) => {
console.log(`${details.name}: ${details.stats.originalSize}kb => ${details.stats.minifiedSize} kb`);
}))
.pipe(gulp.dest('./assets/css/'));
};

var minify_themes_css = function () {
var minifyThemesCss = function () {
return gulp.src('assets/css/unminified/themes/*.css')
.pipe(cleanCSS({debug: true}, (details) => {
console.log(`${details.name}: ${details.stats.originalSize}kb => ${details.stats.minifiedSize} kb`);
}))
.pipe(gulp.dest('./assets/css/themes/'));
};

var minify_main_js = function () {
var minifyMainJs = function () {
return gulp.src('./assets/js/unminified/jquery.yith-wcwl.js')
.pipe(uglify())
.pipe(gulp.dest('./assets/js/'))
};

var minify_admin_js = function () {
var minifyAdminJs = function () {
return gulp.src('./assets/js/unminified/admin/yith-wcwl.js')
.pipe(uglify())
.pipe(gulp.dest('./assets/js/admin/'))
Expand All @@ -46,7 +47,7 @@ var updatePot = function () {
"Project-Id-Version": "YITH WooCommerce Wishlist Premium",
"Content-Type": "text/plain; charset=UTF-8",
"Language-Team": "YITH <[email protected]>",
"X-Poedit-KeywordsList": "__;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2",
"X-Poedit-KeywordsList": "__;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_html__;esc_html_e",
"X-Poedit-Basepath": "..",
"X-Poedit-SearchPath-0": ".",
"X-Poedit-SearchPathExcluded-0": "plugin-fw",
Expand All @@ -69,9 +70,16 @@ var updateMo = function () {
.pipe(gulp.dest('./languages'));
};

exports.minify_js = gulp.series(minify_main_js, minify_admin_js);
exports.minify = gulp.series(minify_css, minify_themes_css);
var validateJs = function () {
return gulp.src('./assets/js/unminified/*yith*.js')
.pipe(jshint())
.pipe(jshint.reporter('default'));
};

exports.minify_js = gulp.series(minifyMainJs, minifyAdminJs);
exports.minify = gulp.series(minifyCss, minifyThemesCss);
exports.uppot = gulp.series(updatePot);
exports.localize = gulp.series(updatePot, updatePo, updateMo);
exports.deploy = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js, updatePot, updatePo, updateMo);
exports.default = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js);
exports.deploy = gulp.series(minifyCss, minifyThemesCss, minifyMainJs, minifyAdminJs, updatePot, updatePo, updateMo);
exports.default = gulp.series(minifyCss, minifyThemesCss, validateJs, minifyMainJs, minifyAdminJs);
exports.jshint = gulp.series(validateJs);
Loading

0 comments on commit f92ff31

Please sign in to comment.