Skip to content

Commit

Permalink
1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Apr 8, 2020
1 parent 95e4328 commit a4dd289
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 49 deletions.
18 changes: 9 additions & 9 deletions assets/css/alg-wc-wish-list.css

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

4 changes: 2 additions & 2 deletions assets/css/alg-wc-wish-list.min.css

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

8 changes: 4 additions & 4 deletions assets/js/alg-wc-wish-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This js is mainly responsible for adding / removing WooCommerce product items from Wish list through Ajax,
* and to show a notification to user when Ajax response is complete.
*
* @version 1.6.3
* @version 1.6.5
* @since 1.0.0
* @requires jQuery.js
*/
Expand Down Expand Up @@ -196,13 +196,13 @@ jQuery(function ($) {
var icon = 'fa fa-heart';
switch (response.data.action) {
case 'added':
icon = alg_wc_wish_list.get_notification_option('icon_add', 'fa fa-heart');
icon = alg_wc_wish_list.get_notification_option('icon_add', 'fas fa-heart');
break;
case 'removed':
icon = alg_wc_wish_list.get_notification_option('icon_remove', 'fa fa-heart-o');
icon = alg_wc_wish_list.get_notification_option('icon_remove', 'far fa-heart-o');
break;
case 'error':
icon = alg_wc_wish_list.get_notification_option('icon_error', 'fa fa-exclamation-circle');
icon = alg_wc_wish_list.get_notification_option('icon_error', 'fas fa-exclamation-circle');
break;
default:
if (response.data.icon !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion assets/maps/alg-wc-wish-list.css.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions assets/scss/alg-wc-wish-list/modules/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
outline: none;
}
&:hover{
i.fa{
i{
transform: translateZ(0) scale(1.5, 1.5);
}
}
i.fa {
i{
transition: all 0.14s ease-in-out;
backface-visibility: hidden;
}
.fa.loading {
.loading {
position: absolute;
right: -30px;
top: 50%;
Expand All @@ -29,7 +29,7 @@
color: #333;
}
&.loading {
.fa.loading {
.loading {
opacity: 0.5;
display: block;
}
Expand All @@ -38,15 +38,15 @@
.alg-wc-wl-view-state-add{
display: block;
}
i.fa {
i {
opacity: 0.7;
}
}
&.remove{
.alg-wc-wl-view-state-remove{
display: block;
}
i.fa {
i {
opacity: 1;
&:first-child{
color:#DC3232;
Expand All @@ -63,7 +63,7 @@
padding:8px 12px;
float:none !important;

i.fa {
i {
transition: all 0.14s ease-in-out;
margin-left: 9px;
backface-visibility: hidden;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Main style of Wish List for WooCommerce plugin
*
* @version 1.6.3
* @version 1.6.5
* @since 1.0.0
* @author Thanks to IT
*/
Expand Down
38 changes: 31 additions & 7 deletions includes/admin/class-alg-wc-wish-list-settings-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Wish List for WooCommerce - General Section Settings
*
* @version 1.5.0
* @version 1.6.5
* @since 1.0.0
* @author Thanks to IT
*/
Expand All @@ -13,10 +13,11 @@

class Alg_WC_Wish_List_Settings_General extends Alg_WC_Wish_List_Settings_Section {

const OPTION_FONT_AWESOME = 'alg_wc_wl_fontawesome';
const OPTION_ENABLED = 'alg_wc_wl_enabled';
const OPTION_METABOX_PRO = 'alg_wc_wl_cmb_pro';
const OPTION_ADMIN_AJAX_URL = 'alg_wc_wl_admin_ajax_url';
const OPTION_FONT_AWESOME = 'alg_wc_wl_fontawesome';
const OPTION_FONT_AWESOME_URL = 'alg_wc_wl_fontawesome_url';
const OPTION_ENABLED = 'alg_wc_wl_enabled';
const OPTION_METABOX_PRO = 'alg_wc_wl_cmb_pro';
const OPTION_ADMIN_AJAX_URL = 'alg_wc_wl_admin_ajax_url';

protected $pro_version_url = 'https://wpcodefactory.com/item/wish-list-woocommerce/';

Expand Down Expand Up @@ -125,6 +126,12 @@ function get_settings( $settings = null ) {
array(
'trigger' => __( 'Allow / Disallow Unlogged users from interacting with the Wish List', 'wish-list-for-woocommerce' ),
),
array(
'trigger' => __( 'Add a column on admin users list informing which customers have added items to the Wish List', 'wish-list-for-woocommerce' ),
),
array(
'trigger' => __( 'Add a column on the admin products list informing how many times a product has been added to the Wish List', 'wish-list-for-woocommerce' ),
),
array(
'trigger'=>__( 'Support', 'wish-list-for-woocommerce' ),
),
Expand All @@ -144,18 +151,35 @@ function get_settings( $settings = null ) {
'id' => self::OPTION_ENABLED,
'default' => 'yes',
'type' => 'checkbox',
),
array(
'type' => 'sectionend',
'id' => 'alg_wc_wl_options',
),
array(
'title' => __( 'Font Awesome', 'wish-list-for-woocommerce' ),
'type' => 'title',
'id' => 'alg_wc_wl_fa',
),
array(
'title' => __( 'Load FontAwesome', 'wish-list-for-woocommerce' ),
'desc' => __( 'Load most recent version of Font Awesome', 'wish-list-for-woocommerce' ),
'desc' => __( 'Enable', 'wish-list-for-woocommerce' ),
'desc_tip' => __( 'Only mark this if you are not loading Font Awesome nowhere else. Font Awesome is responsible for creating icons', 'wish-list-for-woocommerce' ),
'id' => self::OPTION_FONT_AWESOME,
'default' => 'yes',
'type' => 'checkbox',
),
array(
'title' => __( 'FontAwesome URL', 'wish-list-for-woocommerce' ),
//'desc' => __( 'Enable', 'wish-list-for-woocommerce' ),
'desc_tip' => __( 'The URL address used to load FontAwesome.' ),
'id' => self::OPTION_FONT_AWESOME_URL,
'default' => 'https//use.fontawesome.com/releases/v5.5.0/css/all.css',
'type' => 'url',
),
array(
'type' => 'sectionend',
'id' => 'alg_wc_wl_options',
'id' => 'alg_wc_wl_fa',
),
array(
'title' => __( 'Advanced', 'wish-list-for-woocommerce' ),
Expand Down
Loading

0 comments on commit a4dd289

Please sign in to comment.