Version Description
Release Date - 07 November 2017
- Improved Wishlists storage functionality (empty wishlists that do not have a user will be removed after 7 days)
- Fixed an issue with the wrong metadata after sharing Wishlist on Facebook
- Added "Reset to Defaults" option in the admin panel
- Added an option to show the "Add to Wishlist" button above product thumbnail
- An option to change social icons from dark to white was moved to "Social Networks Sharing Options" section
- Added support for Comet Cache plugin
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.5.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.7 to 1.5.8
- admin/basestyle.helper.php +17 -1
- admin/settings/general.class.php +28 -3
- admin/settings/style.class.php +0 -12
- admin/tinvwl.class.php +71 -1
- asset/css/admin.css +23 -0
- asset/js/admin.js +7 -0
- asset/js/admin.min.js +1 -1
- asset/js/public.js +1 -0
- asset/js/public.min.js +1 -1
- languages/ti-woocommerce-wishlist.pot +130 -119
- public/addtowishlist.class.php +4 -1
- public/cart.class.php +3 -0
- public/tinvwl.class.php +28 -11
- public/topwishlist.class.php +1 -1
- readme.txt +11 -1
- templates/ti-wishlist-product-counter.php +1 -1
- templates/ti-wishlist-social.php +1 -1
- ti-woocommerce-wishlist.php +2 -2
- tinv-wishlists-function-integration.php +22 -0
admin/basestyle.helper.php
CHANGED
@@ -86,7 +86,7 @@ abstract class TInvWL_Admin_BaseStyle extends TInvWL_Admin_BaseSection {
|
|
86 |
'type' => 'checkboxonoff',
|
87 |
'name' => 'allow',
|
88 |
'text' => __( 'Template Custom CSS', 'ti-woocommerce-wishlist' ),
|
89 |
-
'std' =>
|
90 |
'extra' => array( 'tiwl-show' => '.tiwl-style-custom-allow' ),
|
91 |
'class' => 'tinvwl-header-row',
|
92 |
),
|
@@ -114,6 +114,12 @@ abstract class TInvWL_Admin_BaseStyle extends TInvWL_Admin_BaseSection {
|
|
114 |
'std' => '<span><i class="fa fa-check"></i></span>' . __( 'Save Settings', 'ti-woocommerce-wishlist' ),
|
115 |
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok' ),
|
116 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
array(
|
118 |
'type' => 'button_submit_quick',
|
119 |
'name' => 'setting_save_quick',
|
@@ -196,7 +202,17 @@ abstract class TInvWL_Admin_BaseStyle extends TInvWL_Admin_BaseSection {
|
|
196 |
$data['style_plain']['allow'] = false;
|
197 |
}
|
198 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
parent::constructor_save( $data );
|
|
|
|
|
|
|
200 |
}
|
201 |
|
202 |
/**
|
86 |
'type' => 'checkboxonoff',
|
87 |
'name' => 'allow',
|
88 |
'text' => __( 'Template Custom CSS', 'ti-woocommerce-wishlist' ),
|
89 |
+
'std' => false,
|
90 |
'extra' => array( 'tiwl-show' => '.tiwl-style-custom-allow' ),
|
91 |
'class' => 'tinvwl-header-row',
|
92 |
),
|
114 |
'std' => '<span><i class="fa fa-check"></i></span>' . __( 'Save Settings', 'ti-woocommerce-wishlist' ),
|
115 |
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok' ),
|
116 |
),
|
117 |
+
array(
|
118 |
+
'type' => 'button_submit',
|
119 |
+
'name' => 'setting_reset',
|
120 |
+
'std' => '<span><i class="fa fa-times"></i></span>' . __( 'Reset', 'ti-woocommerce-wishlist' ),
|
121 |
+
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok tinvwl-confirm-reset' ),
|
122 |
+
),
|
123 |
array(
|
124 |
'type' => 'button_submit_quick',
|
125 |
'name' => 'setting_save_quick',
|
202 |
$data['style_plain']['allow'] = false;
|
203 |
}
|
204 |
}
|
205 |
+
if ( filter_input( INPUT_POST, 'save_buttons-setting_reset' ) ) {
|
206 |
+
foreach ( $data as $key => $value ) {
|
207 |
+
if ( ! in_array( $key, array( 'style' ) ) ) {
|
208 |
+
$data[ $key ] = array();
|
209 |
+
}
|
210 |
+
}
|
211 |
+
}
|
212 |
parent::constructor_save( $data );
|
213 |
+
if ( filter_input( INPUT_POST, 'save_buttons-setting_reset' ) ) {
|
214 |
+
tinv_update_option( 'style_options', '', array() );
|
215 |
+
}
|
216 |
}
|
217 |
|
218 |
/**
|
admin/settings/general.class.php
CHANGED
@@ -317,9 +317,10 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
317 |
'text' => __( 'Button position', 'ti-woocommerce-wishlist' ),
|
318 |
'std' => 'after',
|
319 |
'options' => array(
|
320 |
-
'after'
|
321 |
-
'before'
|
322 |
-
'
|
|
|
323 |
),
|
324 |
'desc' => __( 'Note: if "Custom position with code" option is applied, the "Add to Wishlist" button should be added into template using <code>do_shortcode()</code> function like this:<br /><code>do_shortcode("[ti_wishlists_addtowishlist loop=yes]")</code>', 'ti-woocommerce-wishlist' ),
|
325 |
),
|
@@ -540,6 +541,16 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
540 |
'text' => __( '"Share on" Text', 'ti-woocommerce-wishlist' ),
|
541 |
'std' => 'Share on',
|
542 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
543 |
),
|
544 |
),
|
545 |
array(
|
@@ -619,6 +630,12 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
619 |
'std' => '<span><i class="fa fa-check"></i></span>' . __( 'Save Settings', 'ti-woocommerce-wishlist' ),
|
620 |
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok' ),
|
621 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
array(
|
623 |
'type' => 'button_submit_quick',
|
624 |
'name' => 'setting_save_quick',
|
@@ -659,6 +676,14 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
659 |
tinv_update_option( 'processing', 'autoremove', $data['general']['processing_autoremove'] );
|
660 |
tinv_update_option( 'processing', 'autoremove_anyone', $data['general']['processing_autoremove_anyone'] );
|
661 |
tinv_update_option( 'processing', 'autoremove_status', 'tinvwl-addcart' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
TInvWL_Public_TInvWL::update_rewrite_rules();
|
663 |
}
|
664 |
|
317 |
'text' => __( 'Button position', 'ti-woocommerce-wishlist' ),
|
318 |
'std' => 'after',
|
319 |
'options' => array(
|
320 |
+
'after' => __( 'After "Add to Cart" button', 'ti-woocommerce-wishlist' ),
|
321 |
+
'before' => __( 'Before "Add to Cart" button', 'ti-woocommerce-wishlist' ),
|
322 |
+
'above_thumb' => __( 'Above Thumbnail', 'ti-woocommerce-wishlist' ),
|
323 |
+
'shortcode' => __( 'Custom position with code', 'ti-woocommerce-wishlist' ),
|
324 |
),
|
325 |
'desc' => __( 'Note: if "Custom position with code" option is applied, the "Add to Wishlist" button should be added into template using <code>do_shortcode()</code> function like this:<br /><code>do_shortcode("[ti_wishlists_addtowishlist loop=yes]")</code>', 'ti-woocommerce-wishlist' ),
|
326 |
),
|
541 |
'text' => __( '"Share on" Text', 'ti-woocommerce-wishlist' ),
|
542 |
'std' => 'Share on',
|
543 |
),
|
544 |
+
array(
|
545 |
+
'type' => 'select',
|
546 |
+
'name' => 'icon_style',
|
547 |
+
'text' => __( 'Social Icons Color', 'ti-woocommerce-wishlist' ),
|
548 |
+
'options' => array(
|
549 |
+
'dark' => __( 'Dark', 'ti-woocommerce-wishlist' ),
|
550 |
+
'white' => __( 'White', 'ti-woocommerce-wishlist' ),
|
551 |
+
),
|
552 |
+
'validate' => FILTER_DEFAULT,
|
553 |
+
),
|
554 |
),
|
555 |
),
|
556 |
array(
|
630 |
'std' => '<span><i class="fa fa-check"></i></span>' . __( 'Save Settings', 'ti-woocommerce-wishlist' ),
|
631 |
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok' ),
|
632 |
),
|
633 |
+
array(
|
634 |
+
'type' => 'button_submit',
|
635 |
+
'name' => 'setting_reset',
|
636 |
+
'std' => '<span><i class="fa fa-times"></i></span>' . __( 'Reset', 'ti-woocommerce-wishlist' ),
|
637 |
+
'extra' => array( 'class' => 'tinvwl-btn split status-btn-ok tinvwl-confirm-reset' ),
|
638 |
+
),
|
639 |
array(
|
640 |
'type' => 'button_submit_quick',
|
641 |
'name' => 'setting_save_quick',
|
676 |
tinv_update_option( 'processing', 'autoremove', $data['general']['processing_autoremove'] );
|
677 |
tinv_update_option( 'processing', 'autoremove_anyone', $data['general']['processing_autoremove_anyone'] );
|
678 |
tinv_update_option( 'processing', 'autoremove_status', 'tinvwl-addcart' );
|
679 |
+
if ( filter_input( INPUT_POST, 'save_buttons-setting_reset' ) ) {
|
680 |
+
foreach ( $data as $key => $value ) {
|
681 |
+
if ( ! in_array( $key, array( 'page' ) ) ) {
|
682 |
+
$data[ $key ] = array();
|
683 |
+
}
|
684 |
+
}
|
685 |
+
parent::constructor_save( $data );
|
686 |
+
}
|
687 |
TInvWL_Public_TInvWL::update_rewrite_rules();
|
688 |
}
|
689 |
|
admin/settings/style.class.php
CHANGED
@@ -496,18 +496,6 @@ class TInvWL_Admin_Settings_Style extends TInvWL_Admin_BaseStyle {
|
|
496 |
'element' => 'background-color',
|
497 |
'text' => __( 'Social Icons Background Hover Color', 'ti-woocommerce-wishlist' ),
|
498 |
),
|
499 |
-
array(
|
500 |
-
'type' => 'select',
|
501 |
-
'selector' => '.tinv-wishlist .social-buttons li a',
|
502 |
-
'element' => '-ti-background',
|
503 |
-
'text' => __( 'Social Icons Color', 'ti-woocommerce-wishlist' ),
|
504 |
-
'options' => array(
|
505 |
-
'dark' => __( 'Dark', 'ti-woocommerce-wishlist' ),
|
506 |
-
'white' => __( 'White', 'ti-woocommerce-wishlist' ),
|
507 |
-
),
|
508 |
-
'validate' => FILTER_DEFAULT,
|
509 |
-
),
|
510 |
-
|
511 |
array(
|
512 |
'type' => 'group',
|
513 |
'title' => __( 'popups', 'ti-woocommerce-wishlist' ),
|
496 |
'element' => 'background-color',
|
497 |
'text' => __( 'Social Icons Background Hover Color', 'ti-woocommerce-wishlist' ),
|
498 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
array(
|
500 |
'type' => 'group',
|
501 |
'title' => __( 'popups', 'ti-woocommerce-wishlist' ),
|
admin/tinvwl.class.php
CHANGED
@@ -82,6 +82,9 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
|
|
82 |
add_action( 'switch_theme', array( $this, 'clear_notice_validation_template' ) );
|
83 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_validate_template' ) );
|
84 |
add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
|
|
|
|
|
|
|
85 |
}
|
86 |
|
87 |
/**
|
@@ -142,6 +145,7 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
|
|
142 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
143 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
144 |
add_filter( 'admin_footer_text', array( $this, 'footer_admin' ) );
|
|
|
145 |
|
146 |
add_filter( $this->_n . '_view_panelstatus', array( $this, 'status_panel' ), 9999 );
|
147 |
}
|
@@ -162,7 +166,11 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
|
|
162 |
function enqueue_scripts() {
|
163 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
164 |
wp_enqueue_script( $this->_n . '-bootstrap', TINVWL_URL . 'asset/js/bootstrap' . $suffix . '.js', array( 'jquery' ), $this->_v, 'all' );
|
165 |
-
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
|
168 |
/**
|
@@ -400,4 +408,66 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
|
|
400 |
tinv_update_option( 'template_checker', '', array() );
|
401 |
}
|
402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
}
|
82 |
add_action( 'switch_theme', array( $this, 'clear_notice_validation_template' ) );
|
83 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_validate_template' ) );
|
84 |
add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
|
85 |
+
add_action( 'tinvwl_remove_without_author_wishlist', array( $this, 'remove_empty_wishlists' ) );
|
86 |
+
add_action( 'tinvwl_remove_without_author_wishlist', array( $this, 'remove_old_wishlists' ) );
|
87 |
+
$this->scheduled_remove_wishlist();
|
88 |
}
|
89 |
|
90 |
/**
|
145 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
146 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
147 |
add_filter( 'admin_footer_text', array( $this, 'footer_admin' ) );
|
148 |
+
add_filter( 'screen_options_show_screen', array( $this, 'screen_options_hide_screen' ), 10, 2 );
|
149 |
|
150 |
add_filter( $this->_n . '_view_panelstatus', array( $this, 'status_panel' ), 9999 );
|
151 |
}
|
166 |
function enqueue_scripts() {
|
167 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
168 |
wp_enqueue_script( $this->_n . '-bootstrap', TINVWL_URL . 'asset/js/bootstrap' . $suffix . '.js', array( 'jquery' ), $this->_v, 'all' );
|
169 |
+
wp_register_script( $this->_n, TINVWL_URL . 'asset/js/admin' . $suffix . '.js', array( 'jquery', 'wp-color-picker' ), $this->_v, 'all' );
|
170 |
+
wp_localize_script( $this->_n, 'tinvwl_comfirm', array(
|
171 |
+
'text_comfirm_reset' => __( 'Are you sure you want to reset the settings?', 'ti-woocommerce-wishlist' ),
|
172 |
+
) );
|
173 |
+
wp_enqueue_script( $this->_n );
|
174 |
}
|
175 |
|
176 |
/**
|
408 |
tinv_update_option( 'template_checker', '', array() );
|
409 |
}
|
410 |
|
411 |
+
/**
|
412 |
+
* Disable screen option on plugin pages
|
413 |
+
*
|
414 |
+
* @param boolean $show_screen Show screen.
|
415 |
+
* @param \WP_Screen $_this Screen option page.
|
416 |
+
* @return boolean
|
417 |
+
*/
|
418 |
+
function screen_options_hide_screen( $show_screen, $_this ) {
|
419 |
+
if ( $this->_n === $_this->parent_base || $this->_n === $_this->parent_file ) {
|
420 |
+
return false;
|
421 |
+
}
|
422 |
+
return $show_screen;
|
423 |
+
}
|
424 |
+
|
425 |
+
/**
|
426 |
+
* Check if there is a hook in the cron
|
427 |
+
*/
|
428 |
+
function scheduled_remove_wishlist() {
|
429 |
+
$timestamp = wp_next_scheduled( 'tinvwl_remove_without_author_wishlist' );
|
430 |
+
if ( $timestamp ) {
|
431 |
+
$time = strtotime( '00:00 today +1 HOURS' );
|
432 |
+
wp_schedule_event( $time, 'daily', 'tinvwl_remove_without_author_wishlist' );
|
433 |
+
}
|
434 |
+
}
|
435 |
+
|
436 |
+
/**
|
437 |
+
* Removing empty wishlist without a user older than 7 days
|
438 |
+
*/
|
439 |
+
public function remove_empty_wishlists() {
|
440 |
+
$wl = new TInvWL_Wishlist();
|
441 |
+
$wishlists = $wl->get( array(
|
442 |
+
'author' => 0,
|
443 |
+
'type' => 'default',
|
444 |
+
'sql' => 'SELECT * FROM {table} {where} AND `date` < DATE_SUB( CURDATE(), INTERVAL 7 DAY)',
|
445 |
+
) );
|
446 |
+
foreach ( $wishlists as $wishlist ) {
|
447 |
+
$wlp = new TInvWL_Product( $wishlist );
|
448 |
+
$products = $wlp->get_wishlist( array(
|
449 |
+
'count' => 1,
|
450 |
+
'external' => true,
|
451 |
+
) );
|
452 |
+
if ( empty( $products ) ) {
|
453 |
+
$wl->remove( $wishlist['ID'] );
|
454 |
+
}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
/**
|
459 |
+
* Removing old wishlist without a user older than 34 days
|
460 |
+
*/
|
461 |
+
public function remove_old_wishlists() {
|
462 |
+
$wl = new TInvWL_Wishlist();
|
463 |
+
$wishlists = $wl->get( array(
|
464 |
+
'author' => 0,
|
465 |
+
'type' => 'default',
|
466 |
+
'sql' => 'SELECT * FROM {table} {where} AND `date` < DATE_SUB( CURDATE(), INTERVAL 34 DAY)',
|
467 |
+
) );
|
468 |
+
foreach ( $wishlists as $wishlist ) {
|
469 |
+
$wl->remove( $wishlist['ID'] );
|
470 |
+
}
|
471 |
+
}
|
472 |
+
|
473 |
}
|
asset/css/admin.css
CHANGED
@@ -623,6 +623,29 @@ h6 {
|
|
623 |
padding: 0;
|
624 |
}
|
625 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
#doaction,
|
627 |
#doaction2,
|
628 |
#post-query-submit {
|
623 |
padding: 0;
|
624 |
}
|
625 |
|
626 |
+
/* reset button */
|
627 |
+
.tinvwl-panel.only-button #save_buttons--setting_save,
|
628 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset{
|
629 |
+
display: inline-block;
|
630 |
+
}
|
631 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset{
|
632 |
+
float:right;
|
633 |
+
}
|
634 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset .form-control{
|
635 |
+
background-color: #ffffff;
|
636 |
+
color: #3e3e3e;
|
637 |
+
}
|
638 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split span{
|
639 |
+
background: #fbfaf9;
|
640 |
+
}
|
641 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset .form-control:hover{
|
642 |
+
color: #fff;
|
643 |
+
background-color: #515151;
|
644 |
+
}
|
645 |
+
.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split:hover span{
|
646 |
+
background: #434343;
|
647 |
+
}
|
648 |
+
|
649 |
#doaction,
|
650 |
#doaction2,
|
651 |
#post-query-submit {
|
asset/js/admin.js
CHANGED
@@ -324,5 +324,12 @@ function TInvWL( $, h ) {
|
|
324 |
popover.popover( 'hide' );
|
325 |
} );
|
326 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
} );
|
328 |
} )( jQuery );
|
324 |
popover.popover( 'hide' );
|
325 |
} );
|
326 |
}
|
327 |
+
$( 'body' ).on( 'click', '.tinvwl-confirm-reset', function ( e ) {
|
328 |
+
e.preventDefault();
|
329 |
+
var a = confirm( tinvwl_comfirm.text_comfirm_reset );
|
330 |
+
if ( a ) {
|
331 |
+
$( this ).removeClass('tinvwl-confirm-reset').trigger( 'click' );
|
332 |
+
}
|
333 |
+
} );
|
334 |
} );
|
335 |
} )( jQuery );
|
asset/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function TInvWL($,h){this.pf='tinvwl';this.g='_';this.ho=h||false;this.n='TInvWL';this.aj_act=function(a){return[this.pf,a].join(this.g);};this._csel=function(a,b){var b=b||'.';return'{0}{1}{2}'.format(b,this.pf,a);};this._tm=function(a){var c=$("script#{0}[type='text/template']".format(a));if(c.length){return c.html();} return'';};this.formElm=function(){$(this._csel("-form-onoff")).tiwl_onoff();$('input[type=checkbox][tiwl-show], input[type=checkbox][tiwl-hide]').tiwl_onoffblock();$('[tiwl-value][tiwl-show], [tiwl-value][tiwl-hide]').tiwl_byvalueblock();if(typeof($.fn.wpColorPicker)!=='undefined'){var calcLuminance=function(rgb){var c=rgb.substring(1);var _rgb=parseInt(c,16);var r=(_rgb>>16)&0xff;var g=(_rgb>>8)&0xff;var b=(_rgb>>0)&0xff;return 0.2126*r+0.7152*g+0.0722*b;};var formColor=this._csel("-form-color");$(formColor).each(function(){var picker=$(this);var pickerWrap=$(this).closest('.tinvwl-color-picker');var eyedropper=pickerWrap.find('.tinvwl-eyedropper');picker.css('background-color',picker.val());if(calcLuminance(picker.val())>175){picker.css('color','#000000');} picker.iris({mode:'hsv',target:$(this).parent().parent(),change:function(event,ui){if(calcLuminance(ui.color.toCSS())>175){$(this).css('color','#000000');}else{$(this).css('color','');} $(this).css('background-color',ui.color.toCSS());}});pickerWrap.on('click','.iris-square-value',function(e){e.preventDefault();picker.iris('toggle');});eyedropper.on('click',function(e){e.preventDefault();picker.iris('show');});picker.on('focusin',function(){picker.iris('show');});});$(document).on('click',function(e){if(!$(e.target).is(formColor+', .iris-picker, .iris-picker-inner, .iris-slider-offset, .tinvwl-eyedropper, .tinvwl-eyedropper .fa-eyedropper')){$(formColor).iris('hide');}else{$(formColor).not($(e.target).closest('.tinvwl-color-picker').find(formColor)).iris('hide');}});}};this.wizard_page=function(a){$(a).find('select').change(this._wizard_page_ch);this.wizard_page_ch($(a).find('select'));};this.wizard_page_ch=function(a){var a=$(a),b=a.parent(this._csel('-page-select')),c=b.find('input[type=hidden]').val(),d=b.find(this._csel('-error-icon')),e=b.find(this._csel('-error-desc'));if(''===a.val()){if(0==c){b.addClass('tinvwl-error');d.show();e.show();} return;} b.removeClass('tinvwl-error');d.hide();e.hide();};this.pageElm=function(){$(this._csel('-header','div.')).prependTo('#wpbody-content');$(this._csel('-page-select')).each(this._wizard_page);$('.bulkactions [type=submit]').each(this._control_bulkactions);$('.action-search [type=submit]').each(this._control_search);};this.control_bulkactions=function(a){$(a).on('click',this._control_bulkactions_ck);};this.control_bulkactions_ck=function(a,b){var a=$(a),c=a.parents('.bulkactions').eq(0).find('[name=action]'),d=a.parents('form').eq(0);if(c){if('-1'===c.val()){b.preventDefault();}else{if(!d.find('input[type=checkbox]:checked').length){b.preventDefault();}}}};this.control_search=function(a){$(a).on('click',this._control_search_ck);};this.control_search_ck=function(a,b){var a=$(a),c=a.parents('.action-search').eq(0).find('[name=s]');if(c){if(''===c.val()){b.preventDefault();}}};this.Run=function(){this.formElm();this.pageElm();};this.cg=function(){var n=this.n;if(this.ho){var t=new Date();n=n+t.getFullYear()+t.getMonth()+t.getDate();} window[n]=this;};this.cg();if(!String.prototype.format){String.prototype.format=function(){var args=arguments;return this.replace(/{(\d+)}/g,function(match,number){return typeof args[number]!=='undefined'?args[number]:match;});};} (function(o){var n=o.n,ho=o.ho,c='';if(ho){c='t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),';} for(var i in o){if('function'===typeof o[i]&&'_'!==i[0]&&!o.hasOwnProperty('_'+i)){eval("o._"+i+"=function(a,b,c,d){var n='"+n+"',"+c+"o=window[n]||null;if (o) {return o."+i+"(this,a,b,c,d);};};");}}})(this);} (function($){$.fn.tiwl_onoff=function(so){var sd={value:{on:'',off:''},class:'tiwlform-onoff',wrap:'container',button:'button'},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b1=$('<div>').attr({class:s.class+'-'+s.button}),d1c=s.class+'-'+s.wrap,d1=$('<div>').attr({id:a.attr('id')+'_'+s.wrap,class:d1c});if(!a.is('input')){return a;} d1.attr('class',(d1.attr('class')+' '+a.attr('class')));d1.toggleClass('disabled',a.is(':disabled'));d1.toggleClass('checked',a.is(':checked'));a.attr('type','checkbox').hide().removeAttr('class').wrap(d1).before(b1);d1=a.parent();a.on('change',function(){d1.toggleClass('checked',$(this).is(':checked'));d1.toggleClass('disabled',$(this).is(':disabled'));});d1.on('click',function(){if(a.is(':enabled')&&d1.hasClass('checked')===a.is(':checked')){a.click();}});return a;});};$.fn.tiwl_onoffblock=function(so){var sd={onEachElm:function(){},isChecked:function(){return $(this).is(':checked')}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),setAction=function(){var o=$(this),o_show=o.attr('tiwl-show'),o_hide=o.attr('tiwl-hide'),o_ch=s.isChecked.call(o),doAction=function(o_,on){o_=o_.match(/[\w\d-\>\.\#\:\=\[\]]+/igm)||[];$.each(o_,function(k,v){s.onEachElm.call($(v).toggle(on));});};if('string'===typeof o_show){doAction(o_show,o_ch);} if('string'===typeof o_hide){doAction(o_hide,!o_ch);} return o;};if(!a.is('input')||'checkbox'!=a.attr('type')){return a;} $(this).on('change',setAction);return setAction.call(a);});};$.fn.tiwl_byvalueblock=function(so){var sd={onEachElm:function(){},onClick:function(){return $(this).val()==$(this).attr('tiwl-value');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),setAction=function(s){var o=$(this),o_show=o.attr('tiwl-show'),o_hide=o.attr('tiwl-hide'),o_ch=s.onClick.call(o),doAction=function(o_,on){o_=o_.match(/[\w\d-\>\.\#\:\=\[\]]+/igm)||[];$.each(o_,function(k,v){s.onEachElm.call($(v).toggle(on));});};if('string'===typeof o_show){doAction(o_show,o_ch);} if('string'===typeof o_hide){doAction(o_hide,!o_ch);} return o;};if(!a.is('input')&&!a.is('select')){return a;} $(this).on('change',function(){setAction.call(this,s);});return setAction.call(a,s);});};var a=new TInvWL($);$(document).ready(function(){a.Run();$('.tablenav').each(function(){var tablenav=$(this);if(!$.trim(tablenav.find('.alignleft').html()).length){tablenav.find('.alignleft').remove();} if(!$.trim(tablenav.find('.alignright').html()).length||tablenav.find('.tablenav-pages').hasClass('one-page')){tablenav.find('.alignright').remove();tablenav.find('.tinv-wishlist-clear').remove();} if(!$.trim(tablenav.html()).length){tablenav.remove();}});$('.tablenav .bulkactions select').addClass('tinvwl-select grey').wrap('<span class="tinvwl-select-wrap">').parent().append('<span class="tinvwl-caret"><span></span></span>');$('.tablenav .bulkactions .button.action, .tablenav #search-submit').removeClass('button').addClass('tinvwl-btn grey');$('.tinvwl-modal-btn').on('click',function(){$(this).next('.tinvwl-modal').addClass('tinvwl-modal-open');});$('.tinvwl-overlay, .tinvwl-close-modal, .tinvwl_button_close').on('click',function(e){e.preventDefault();$(this).parents('.tinvwl-modal:first').removeClass('tinvwl-modal-open');});if(typeof($.fn.popover)!=='undefined'){var popover=$('.tinvwl-help');popover.popover({content:function(){return $(this).closest('.tinvwl-info-wrap').find('.tinvwl-info-desc').html();}});popover.on('click',function(){$(this).popover('toggle');});popover.on('focusout',function(){$(this).popover('hide');});$(window).on('resize',function(){popover.popover('hide');});}});})(jQuery);
|
1 |
+
function TInvWL($,h){this.pf='tinvwl';this.g='_';this.ho=h||false;this.n='TInvWL';this.aj_act=function(a){return[this.pf,a].join(this.g);};this._csel=function(a,b){var b=b||'.';return'{0}{1}{2}'.format(b,this.pf,a);};this._tm=function(a){var c=$("script#{0}[type='text/template']".format(a));if(c.length){return c.html();} return'';};this.formElm=function(){$(this._csel("-form-onoff")).tiwl_onoff();$('input[type=checkbox][tiwl-show], input[type=checkbox][tiwl-hide]').tiwl_onoffblock();$('[tiwl-value][tiwl-show], [tiwl-value][tiwl-hide]').tiwl_byvalueblock();if(typeof($.fn.wpColorPicker)!=='undefined'){var calcLuminance=function(rgb){var c=rgb.substring(1);var _rgb=parseInt(c,16);var r=(_rgb>>16)&0xff;var g=(_rgb>>8)&0xff;var b=(_rgb>>0)&0xff;return 0.2126*r+0.7152*g+0.0722*b;};var formColor=this._csel("-form-color");$(formColor).each(function(){var picker=$(this);var pickerWrap=$(this).closest('.tinvwl-color-picker');var eyedropper=pickerWrap.find('.tinvwl-eyedropper');picker.css('background-color',picker.val());if(calcLuminance(picker.val())>175){picker.css('color','#000000');} picker.iris({mode:'hsv',target:$(this).parent().parent(),change:function(event,ui){if(calcLuminance(ui.color.toCSS())>175){$(this).css('color','#000000');}else{$(this).css('color','');} $(this).css('background-color',ui.color.toCSS());}});pickerWrap.on('click','.iris-square-value',function(e){e.preventDefault();picker.iris('toggle');});eyedropper.on('click',function(e){e.preventDefault();picker.iris('show');});picker.on('focusin',function(){picker.iris('show');});});$(document).on('click',function(e){if(!$(e.target).is(formColor+', .iris-picker, .iris-picker-inner, .iris-slider-offset, .tinvwl-eyedropper, .tinvwl-eyedropper .fa-eyedropper')){$(formColor).iris('hide');}else{$(formColor).not($(e.target).closest('.tinvwl-color-picker').find(formColor)).iris('hide');}});}};this.wizard_page=function(a){$(a).find('select').change(this._wizard_page_ch);this.wizard_page_ch($(a).find('select'));};this.wizard_page_ch=function(a){var a=$(a),b=a.parent(this._csel('-page-select')),c=b.find('input[type=hidden]').val(),d=b.find(this._csel('-error-icon')),e=b.find(this._csel('-error-desc'));if(''===a.val()){if(0==c){b.addClass('tinvwl-error');d.show();e.show();} return;} b.removeClass('tinvwl-error');d.hide();e.hide();};this.pageElm=function(){$(this._csel('-header','div.')).prependTo('#wpbody-content');$(this._csel('-page-select')).each(this._wizard_page);$('.bulkactions [type=submit]').each(this._control_bulkactions);$('.action-search [type=submit]').each(this._control_search);};this.control_bulkactions=function(a){$(a).on('click',this._control_bulkactions_ck);};this.control_bulkactions_ck=function(a,b){var a=$(a),c=a.parents('.bulkactions').eq(0).find('[name=action]'),d=a.parents('form').eq(0);if(c){if('-1'===c.val()){b.preventDefault();}else{if(!d.find('input[type=checkbox]:checked').length){b.preventDefault();}}}};this.control_search=function(a){$(a).on('click',this._control_search_ck);};this.control_search_ck=function(a,b){var a=$(a),c=a.parents('.action-search').eq(0).find('[name=s]');if(c){if(''===c.val()){b.preventDefault();}}};this.Run=function(){this.formElm();this.pageElm();};this.cg=function(){var n=this.n;if(this.ho){var t=new Date();n=n+t.getFullYear()+t.getMonth()+t.getDate();} window[n]=this;};this.cg();if(!String.prototype.format){String.prototype.format=function(){var args=arguments;return this.replace(/{(\d+)}/g,function(match,number){return typeof args[number]!=='undefined'?args[number]:match;});};} (function(o){var n=o.n,ho=o.ho,c='';if(ho){c='t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),';} for(var i in o){if('function'===typeof o[i]&&'_'!==i[0]&&!o.hasOwnProperty('_'+i)){eval("o._"+i+"=function(a,b,c,d){var n='"+n+"',"+c+"o=window[n]||null;if (o) {return o."+i+"(this,a,b,c,d);};};");}}})(this);} (function($){$.fn.tiwl_onoff=function(so){var sd={value:{on:'',off:''},class:'tiwlform-onoff',wrap:'container',button:'button'},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b1=$('<div>').attr({class:s.class+'-'+s.button}),d1c=s.class+'-'+s.wrap,d1=$('<div>').attr({id:a.attr('id')+'_'+s.wrap,class:d1c});if(!a.is('input')){return a;} d1.attr('class',(d1.attr('class')+' '+a.attr('class')));d1.toggleClass('disabled',a.is(':disabled'));d1.toggleClass('checked',a.is(':checked'));a.attr('type','checkbox').hide().removeAttr('class').wrap(d1).before(b1);d1=a.parent();a.on('change',function(){d1.toggleClass('checked',$(this).is(':checked'));d1.toggleClass('disabled',$(this).is(':disabled'));});d1.on('click',function(){if(a.is(':enabled')&&d1.hasClass('checked')===a.is(':checked')){a.click();}});return a;});};$.fn.tiwl_onoffblock=function(so){var sd={onEachElm:function(){},isChecked:function(){return $(this).is(':checked')}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),setAction=function(){var o=$(this),o_show=o.attr('tiwl-show'),o_hide=o.attr('tiwl-hide'),o_ch=s.isChecked.call(o),doAction=function(o_,on){o_=o_.match(/[\w\d-\>\.\#\:\=\[\]]+/igm)||[];$.each(o_,function(k,v){s.onEachElm.call($(v).toggle(on));});};if('string'===typeof o_show){doAction(o_show,o_ch);} if('string'===typeof o_hide){doAction(o_hide,!o_ch);} return o;};if(!a.is('input')||'checkbox'!=a.attr('type')){return a;} $(this).on('change',setAction);return setAction.call(a);});};$.fn.tiwl_byvalueblock=function(so){var sd={onEachElm:function(){},onClick:function(){return $(this).val()==$(this).attr('tiwl-value');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),setAction=function(s){var o=$(this),o_show=o.attr('tiwl-show'),o_hide=o.attr('tiwl-hide'),o_ch=s.onClick.call(o),doAction=function(o_,on){o_=o_.match(/[\w\d-\>\.\#\:\=\[\]]+/igm)||[];$.each(o_,function(k,v){s.onEachElm.call($(v).toggle(on));});};if('string'===typeof o_show){doAction(o_show,o_ch);} if('string'===typeof o_hide){doAction(o_hide,!o_ch);} return o;};if(!a.is('input')&&!a.is('select')){return a;} $(this).on('change',function(){setAction.call(this,s);});return setAction.call(a,s);});};var a=new TInvWL($);$(document).ready(function(){a.Run();$('.tablenav').each(function(){var tablenav=$(this);if(!$.trim(tablenav.find('.alignleft').html()).length){tablenav.find('.alignleft').remove();} if(!$.trim(tablenav.find('.alignright').html()).length||tablenav.find('.tablenav-pages').hasClass('one-page')){tablenav.find('.alignright').remove();tablenav.find('.tinv-wishlist-clear').remove();} if(!$.trim(tablenav.html()).length){tablenav.remove();}});$('.tablenav .bulkactions select').addClass('tinvwl-select grey').wrap('<span class="tinvwl-select-wrap">').parent().append('<span class="tinvwl-caret"><span></span></span>');$('.tablenav .bulkactions .button.action, .tablenav #search-submit').removeClass('button').addClass('tinvwl-btn grey');$('.tinvwl-modal-btn').on('click',function(){$(this).next('.tinvwl-modal').addClass('tinvwl-modal-open');});$('.tinvwl-overlay, .tinvwl-close-modal, .tinvwl_button_close').on('click',function(e){e.preventDefault();$(this).parents('.tinvwl-modal:first').removeClass('tinvwl-modal-open');});if(typeof($.fn.popover)!=='undefined'){var popover=$('.tinvwl-help');popover.popover({content:function(){return $(this).closest('.tinvwl-info-wrap').find('.tinvwl-info-desc').html();}});popover.on('click',function(){$(this).popover('toggle');});popover.on('focusout',function(){$(this).popover('hide');});$(window).on('resize',function(){popover.popover('hide');});} $('body').on('click','.tinvwl-confirm-reset',function(e){e.preventDefault();var a=confirm(tinvwl_comfirm.text_comfirm_reset);if(a){$(this).removeClass('tinvwl-confirm-reset').trigger('click');}});});})(jQuery);
|
asset/js/public.js
CHANGED
@@ -133,6 +133,7 @@
|
|
133 |
$('.widget_wishlist_content').html(data);
|
134 |
},
|
135 |
top_wishlist_counter: function(data) {
|
|
|
136 |
$('.wishlist_products_counter_number').html(data);
|
137 |
}
|
138 |
}
|
133 |
$('.widget_wishlist_content').html(data);
|
134 |
},
|
135 |
top_wishlist_counter: function(data) {
|
136 |
+
$('.wishlist_products_counter').toggleClass('wishlist-counter-with-products', 0 < data );
|
137 |
$('.wishlist_products_counter_number').html(data);
|
138 |
}
|
139 |
}
|
asset/js/public.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){$.fn.tinvwl_to_wishlist=function(so){var sd={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist['text_create'],text_already_in:window.tinvwl_add_to_wishlist['text_already_in'],class:{dialogbox:'.tinvwl_add_to_select_wishlist',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_add'},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');},onCreateWishList:function(wishlist){$(this).append($('<option>').html(wishlist.title).attr('value',wishlist.ID).toggleClass('tinv_in_wishlist',wishlist.in));},onSelectWishList:function(){},onDialogShow:function(){$(this).addClass('tinv-modal-open');},onDialogHide:function(){$(this).removeClass('tinv-modal-open');},onInited:function(){},onClick:function(){if($(this).is('.disabled-add-wishlist')){return false;} if(this.tinvwl_dialog){this.tinvwl_dialog.show_list.call(this);}else{s.onActionProduct.call(this);}},onPrepareDataAction:function(){},filterProductAlreadyIn:function(WList){var WList=WList||[],data={};$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val();if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){data['form'+name_elm]=value_elm;}}else{data['form'+name_elm]=value_elm;}});data=data['formvariation_id'];return WList.filter(function(wishlist){if('object'===typeof wishlist.in&&'string'===typeof data){var number=parseInt(data);return 0<=wishlist.in.indexOf(number);} return wishlist.in;});},onMultiProductAlreadyIn:function(WList){var WList=WList||[];WList=s.onPrepareList.call(WList)||WList;WList=s.filterProductAlreadyIn.call(this,WList)||WList;$(this).parent().parent().find('.already-in').remove();var text='';switch(WList.length){case 0:break;default:var text=$('<ul>');$.each(WList,function(k,wishlist){text.append($('<li>').html($('<a>').html(wishlist.title).attr({href:wishlist.url})).attr('value',wishlist.ID));});break;} if(text.length){$(this).closest('.tinv-modal-inner').find('img').after($('<div>').addClass('already-in').html(s.text_already_in+' ').append(text));}},onAction:{redirect:function(url){if(s.redirectTimer){clearTimeout(s.redirectTimer);} s.redirectTimer=window.setTimeout(function(){window.location.href=url;},4000);},wishlists:function(wishlist){$(this).attr('tinv-wl-list',wishlist);},msg:function(html){if(!html){return false;} var $msg=$(html).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $('body > .tinv-wishlist').append($msg);$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}});},status:function(status){if(status){$(this).addClass('tinvwl-product-in-list');}},removed:function(status){if(status){$(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove').attr('tinv-wl-action','addto');}},make_remove:function(status){$(this).toggleClass('tinvwl-product-make-remove',status).attr('tinv-wl-action',status?'remove':'addto');},top_wishlist_content:function(data){$('.widget_wishlist_content').html(data);},top_wishlist_counter:function(data){$('.wishlist_products_counter_number').html(data);}}};sd.onActionProduct=function(id,name){var data={form:{},tinv_wishlist_id:id||'',tinv_wishlist_name:name||'',product_type:$(this).attr('tinv-wl-producttype'),product_id:$(this).attr('tinv-wl-product')||0,product_variation:$(this).attr('tinv-wl-productvariation')||0,product_action:$(this).attr('tinv-wl-action')||'addto'},a=this;$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val(),count=10,ti_merge_value=function(o1,o2){if('object'===typeof o2){if('undefined'===typeof o1){o1={};} for(var i in o2){if(''===i){var j=-1;for(j in o1){j=j;} j=parseInt(j)+1;o1[j]=ti_merge_value(o1[i],o2[i]);}else{o1[i]=ti_merge_value(o1[i],o2[i]);}} return o1;}else{return o2;}};while(/^(.+)\[([^\[\]]*?)\]$/.test(name_elm)&&0<count){var n_name=name_elm.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===n_name.length){var _value_elm={};_value_elm[n_name[2]]=value_elm;value_elm=_value_elm;} name_elm=n_name[1];count--;} if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){if(!value_elm.length&&'object'!==typeof value_elm){value_elm=true;} data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}}else{data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}});data=s.onPrepareDataAction.call(a,data)||data;$.post(s.api_url,data,function(body){s.onDialogHide.call(a.tinvwl_dialog);if('object'===typeof body){for(var k in body){if('function'===typeof s.onAction[k]){s.onAction[k].call(a,body[k]);}}}else{if('function'===typeof s.onAction['msg']){s.onAction['msg'].call(a,body);}}});};var s=$.extend(true,{},sd,so);return $(this).each(function(){if(!$(this).attr('tinv-wl-list')){return false;} if(s.dialogbox){if(s.dialogbox.length){this.tinvwl_dialog=s.dialogbox;}} if(!this.tinvwl_dialog){this.tinvwl_dialog=s.onGetDialogBox.call(this);} if(!this.tinvwl_dialog){var _tinvwl_dialog=$(this).nextAll(s.class.dialogbox).eq(0);if(_tinvwl_dialog.length){this.tinvwl_dialog=_tinvwl_dialog;}} if(this.tinvwl_dialog){s.onPrepareDialogBox.call(this.tinvwl_dialog);if('function'!==typeof this.tinvwl_dialog.update_list){this.tinvwl_dialog.update_list=function(WL){var $select=$(this).find(s.class.select).eq(0);$(this).find(s.class.newtitle).hide().val('');$select.html('');$.each(WL,function(k,v){s.onCreateWishList.call($select,v);});if(s.text_create){s.onCreateWishList.call($select,{ID:'',title:s.text_create,in:false});} s.onMultiProductAlreadyIn.call($select,WL);s.onSelectWishList.call($select,WL);$(this).find(s.class.newtitle).toggle(''===$select.val());}} if('function'!==typeof this.tinvwl_dialog.show_list){this.tinvwl_dialog.show_list=function(){var WList=$.parseJSON($(this).attr('tinv-wl-list'))||[];if(WList.length){WList=s.onPrepareList.call(WList)||WList;this.tinvwl_dialog.update_list(WList);s.onDialogShow.call(this.tinvwl_dialog);}else{s.onActionProduct.call(this);}}} var a=this;$(this.tinvwl_dialog).find(s.class.dialogbutton).off('click').on('click',function(){var b=$(a.tinvwl_dialog).find(s.class.select),c=$(a.tinvwl_dialog).find(s.class.newtitle),d;if(b.val()||c.val()){s.onActionProduct.call(a,b.val(),c.val());}else{d=c.is(':visible')?c:b;d.addClass('empty-name-wishlist');window.setTimeout(function(){d.removeClass('empty-name-wishlist');},1000);}});} $(this).off('click').on('click',s.onClick);s.onInited.call(this,s);});};$(document).ready(function(){$('body').on('click','.tinvwl_add_to_wishlist_button',function(e){if($(this).is('.disabled-add-wishlist')){e.preventDefault();window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);return;} if($(this).is('.inited-add-wishlist')){return;} $(this).tinvwl_to_wishlist({onInited:function(s){$(this).addClass('inited-add-wishlist');s.onClick.call(this);}});});$('.tinvwl_move_product_button').tinvwl_to_wishlist({class:{dialogbox:'.tinvwl_wishlist_move',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_move'},onPrepareDataAction:function(data){data.tinv_from_wishlist_id=$(this).attr('tinv-wl');data.tinv_to_wishlist_id=data.tinv_wishlist_id;if(!data.tinv_wishlist_name){data.tinv_wishlist_name='-';} delete data.tinv_wishlist_id;return data;},onPrepareList:function(){return this.filter(function(a){return!a.hide;});},onAction:{redirect:function(url){return window.location.href=url;}}});$('.global-cb').on('click',function(){$(this).closest('table').eq(0).find('.product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]').prop('checked',$(this).is(':checked'))});});})(jQuery);(function($){$.fn.tinvwl_break_submit=function(so){var sd={selector:'input, select, textarea',ifempty:true,invert:false,validate:function(){return $(this).val();},rule:function(){var form_elements=$(this).parents('form').eq(0).find(s.selector),trigger=s.invert;if(0===form_elements.length){return s.ifempty;} form_elements.each(function(){if((trigger&&!s.invert)||(!trigger&&s.invert)){return;} trigger=Boolean(s.validate.call($(this)));});return trigger;}};var s=$.extend(true,{},sd,so);return $(this).each(function(){$(this).on('click',function(event){if(!s.rule.call($(this))){event.preventDefault();}});});};$(document).ready(function(){$('.tinvwl-break-input').tinvwl_break_submit({selector:'.tinvwl-break-input-filed'});$('.tinvwl-break-checkbox').tinvwl_break_submit({selector:'table td input[type=checkbox]',validate:function(){return $(this).is(':checked');}});});})(jQuery);(function($){$('.variations_form').each(function(){var c=$(this),e=c.find('.tinvwl_add_to_wishlist_button');if(e.length){c.on('hide_variation',function(a){a.preventDefault();e.addClass('disabled-add-wishlist');}).on('show_variation',function(a,b,d){var f=JSON.parse(e.attr('tinv-wl-list')),j=false,g='1'==window.tinvwl_add_to_wishlist['simple_flow'];for(var i in f){if(f[i].hasOwnProperty('in')&&Array.isArray(f[i]['in'])&&-1<(f[i]['in']||[]).indexOf(b.variation_id)){j=true;}} e.toggleClass('tinvwl-product-in-list',j).toggleClass('tinvwl-product-make-remove',(j&&g)).attr('tinv-wl-action',((j&&g)?'remove':'addto'));a.preventDefault();e.removeClass('disabled-add-wishlist');});}});})(jQuery);(function($){$(document).ready(function(){$.fn.tinvwl_modal=function(so){var sd={showClass:'tinv-modal-open',modal:'.tinv-modal',onPrepare:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b=a.next(s.modal);s.onPrepare.call(b);a.on('click',function(){b.addClass(s.showClass);});});};$('.tinv-modal-btn').tinvwl_modal({});$('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="input-group tinvwl-no-full">').find('button').wrap('<span class="input-group-btn">');$('.tinv-lists-nav').each(function(){if(!$.trim($(this).html()).length){$(this).remove();}});$('body').on('click','.social-buttons .social[title!=email]',function(e){var newWind=window.open($(this).attr('href'),$(this).attr('title'),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");if(newWind){newWind.focus();e.preventDefault();}});$('.tinvwl-select-all').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',true);});$('.tinvwl-select-none').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',false);});$('body').on('click','.tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close',function(e){e.preventDefault();$(this).parents('.tinv-modal:first').removeClass('tinv-modal-open');});$('body').on('click','.tinv-wishlist .tinvwl-btn-onclick',function(e){var url=$(this).data('url');if(url){e.preventDefault();window.location=$(this).data('url');}});var navigationButton=$('.tinv-wishlist .navigation-button');if(navigationButton.length){navigationButton.each(function(){var navigationButtons=$(this).find('> li');if(navigationButtons.length<5){navigationButtons.parent().addClass('tinvwl-btns-count-'+navigationButtons.length);}});} $('.tinv-login .showlogin').unbind("click").on('click',function(e){e.preventDefault();$(this).closest('.tinv-login').find('.login').toggle();});$('.tinv-wishlist table.tinvwl-table-manage-list tfoot td').each(function(){$(this).toggle(!!$(this).children().not('.look_in').length||!!$(this).children('.look_in').children().length);});})})(jQuery);
|
1 |
+
(function($){$.fn.tinvwl_to_wishlist=function(so){var sd={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist['text_create'],text_already_in:window.tinvwl_add_to_wishlist['text_already_in'],class:{dialogbox:'.tinvwl_add_to_select_wishlist',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_add'},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');},onCreateWishList:function(wishlist){$(this).append($('<option>').html(wishlist.title).attr('value',wishlist.ID).toggleClass('tinv_in_wishlist',wishlist.in));},onSelectWishList:function(){},onDialogShow:function(){$(this).addClass('tinv-modal-open');},onDialogHide:function(){$(this).removeClass('tinv-modal-open');},onInited:function(){},onClick:function(){if($(this).is('.disabled-add-wishlist')){return false;} if(this.tinvwl_dialog){this.tinvwl_dialog.show_list.call(this);}else{s.onActionProduct.call(this);}},onPrepareDataAction:function(){},filterProductAlreadyIn:function(WList){var WList=WList||[],data={};$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val();if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){data['form'+name_elm]=value_elm;}}else{data['form'+name_elm]=value_elm;}});data=data['formvariation_id'];return WList.filter(function(wishlist){if('object'===typeof wishlist.in&&'string'===typeof data){var number=parseInt(data);return 0<=wishlist.in.indexOf(number);} return wishlist.in;});},onMultiProductAlreadyIn:function(WList){var WList=WList||[];WList=s.onPrepareList.call(WList)||WList;WList=s.filterProductAlreadyIn.call(this,WList)||WList;$(this).parent().parent().find('.already-in').remove();var text='';switch(WList.length){case 0:break;default:var text=$('<ul>');$.each(WList,function(k,wishlist){text.append($('<li>').html($('<a>').html(wishlist.title).attr({href:wishlist.url})).attr('value',wishlist.ID));});break;} if(text.length){$(this).closest('.tinv-modal-inner').find('img').after($('<div>').addClass('already-in').html(s.text_already_in+' ').append(text));}},onAction:{redirect:function(url){if(s.redirectTimer){clearTimeout(s.redirectTimer);} s.redirectTimer=window.setTimeout(function(){window.location.href=url;},4000);},wishlists:function(wishlist){$(this).attr('tinv-wl-list',wishlist);},msg:function(html){if(!html){return false;} var $msg=$(html).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $('body > .tinv-wishlist').append($msg);$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}});},status:function(status){if(status){$(this).addClass('tinvwl-product-in-list');}},removed:function(status){if(status){$(this).removeClass('tinvwl-product-in-list').removeClass('tinvwl-product-make-remove').attr('tinv-wl-action','addto');}},make_remove:function(status){$(this).toggleClass('tinvwl-product-make-remove',status).attr('tinv-wl-action',status?'remove':'addto');},top_wishlist_content:function(data){$('.widget_wishlist_content').html(data);},top_wishlist_counter:function(data){$('.wishlist_products_counter').toggleClass('wishlist-counter-with-products',0<data);$('.wishlist_products_counter_number').html(data);}}};sd.onActionProduct=function(id,name){var data={form:{},tinv_wishlist_id:id||'',tinv_wishlist_name:name||'',product_type:$(this).attr('tinv-wl-producttype'),product_id:$(this).attr('tinv-wl-product')||0,product_variation:$(this).attr('tinv-wl-productvariation')||0,product_action:$(this).attr('tinv-wl-action')||'addto'},a=this;$('form.cart[method=post], .woocommerce-variation-add-to-cart').find('input, select, textarea').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val(),count=10,ti_merge_value=function(o1,o2){if('object'===typeof o2){if('undefined'===typeof o1){o1={};} for(var i in o2){if(''===i){var j=-1;for(j in o1){j=j;} j=parseInt(j)+1;o1[j]=ti_merge_value(o1[i],o2[i]);}else{o1[i]=ti_merge_value(o1[i],o2[i]);}} return o1;}else{return o2;}};while(/^(.+)\[([^\[\]]*?)\]$/.test(name_elm)&&0<count){var n_name=name_elm.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===n_name.length){var _value_elm={};_value_elm[n_name[2]]=value_elm;value_elm=_value_elm;} name_elm=n_name[1];count--;} if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){if(!value_elm.length&&'object'!==typeof value_elm){value_elm=true;} data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}}else{data.form[name_elm]=ti_merge_value(data.form[name_elm],value_elm);}});data=s.onPrepareDataAction.call(a,data)||data;$.post(s.api_url,data,function(body){s.onDialogHide.call(a.tinvwl_dialog);if('object'===typeof body){for(var k in body){if('function'===typeof s.onAction[k]){s.onAction[k].call(a,body[k]);}}}else{if('function'===typeof s.onAction['msg']){s.onAction['msg'].call(a,body);}}});};var s=$.extend(true,{},sd,so);return $(this).each(function(){if(!$(this).attr('tinv-wl-list')){return false;} if(s.dialogbox){if(s.dialogbox.length){this.tinvwl_dialog=s.dialogbox;}} if(!this.tinvwl_dialog){this.tinvwl_dialog=s.onGetDialogBox.call(this);} if(!this.tinvwl_dialog){var _tinvwl_dialog=$(this).nextAll(s.class.dialogbox).eq(0);if(_tinvwl_dialog.length){this.tinvwl_dialog=_tinvwl_dialog;}} if(this.tinvwl_dialog){s.onPrepareDialogBox.call(this.tinvwl_dialog);if('function'!==typeof this.tinvwl_dialog.update_list){this.tinvwl_dialog.update_list=function(WL){var $select=$(this).find(s.class.select).eq(0);$(this).find(s.class.newtitle).hide().val('');$select.html('');$.each(WL,function(k,v){s.onCreateWishList.call($select,v);});if(s.text_create){s.onCreateWishList.call($select,{ID:'',title:s.text_create,in:false});} s.onMultiProductAlreadyIn.call($select,WL);s.onSelectWishList.call($select,WL);$(this).find(s.class.newtitle).toggle(''===$select.val());}} if('function'!==typeof this.tinvwl_dialog.show_list){this.tinvwl_dialog.show_list=function(){var WList=$.parseJSON($(this).attr('tinv-wl-list'))||[];if(WList.length){WList=s.onPrepareList.call(WList)||WList;this.tinvwl_dialog.update_list(WList);s.onDialogShow.call(this.tinvwl_dialog);}else{s.onActionProduct.call(this);}}} var a=this;$(this.tinvwl_dialog).find(s.class.dialogbutton).off('click').on('click',function(){var b=$(a.tinvwl_dialog).find(s.class.select),c=$(a.tinvwl_dialog).find(s.class.newtitle),d;if(b.val()||c.val()){s.onActionProduct.call(a,b.val(),c.val());}else{d=c.is(':visible')?c:b;d.addClass('empty-name-wishlist');window.setTimeout(function(){d.removeClass('empty-name-wishlist');},1000);}});} $(this).off('click').on('click',s.onClick);s.onInited.call(this,s);});};$(document).ready(function(){$('body').on('click','.tinvwl_add_to_wishlist_button',function(e){if($(this).is('.disabled-add-wishlist')){e.preventDefault();window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);return;} if($(this).is('.inited-add-wishlist')){return;} $(this).tinvwl_to_wishlist({onInited:function(s){$(this).addClass('inited-add-wishlist');s.onClick.call(this);}});});$('.tinvwl_move_product_button').tinvwl_to_wishlist({class:{dialogbox:'.tinvwl_wishlist_move',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_move'},onPrepareDataAction:function(data){data.tinv_from_wishlist_id=$(this).attr('tinv-wl');data.tinv_to_wishlist_id=data.tinv_wishlist_id;if(!data.tinv_wishlist_name){data.tinv_wishlist_name='-';} delete data.tinv_wishlist_id;return data;},onPrepareList:function(){return this.filter(function(a){return!a.hide;});},onAction:{redirect:function(url){return window.location.href=url;}}});$('.global-cb').on('click',function(){$(this).closest('table').eq(0).find('.product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]').prop('checked',$(this).is(':checked'))});});})(jQuery);(function($){$.fn.tinvwl_break_submit=function(so){var sd={selector:'input, select, textarea',ifempty:true,invert:false,validate:function(){return $(this).val();},rule:function(){var form_elements=$(this).parents('form').eq(0).find(s.selector),trigger=s.invert;if(0===form_elements.length){return s.ifempty;} form_elements.each(function(){if((trigger&&!s.invert)||(!trigger&&s.invert)){return;} trigger=Boolean(s.validate.call($(this)));});return trigger;}};var s=$.extend(true,{},sd,so);return $(this).each(function(){$(this).on('click',function(event){if(!s.rule.call($(this))){event.preventDefault();}});});};$(document).ready(function(){$('.tinvwl-break-input').tinvwl_break_submit({selector:'.tinvwl-break-input-filed'});$('.tinvwl-break-checkbox').tinvwl_break_submit({selector:'table td input[type=checkbox]',validate:function(){return $(this).is(':checked');}});});})(jQuery);(function($){$('.variations_form').each(function(){var c=$(this),e=c.find('.tinvwl_add_to_wishlist_button');if(e.length){c.on('hide_variation',function(a){a.preventDefault();e.addClass('disabled-add-wishlist');}).on('show_variation',function(a,b,d){var f=JSON.parse(e.attr('tinv-wl-list')),j=false,g='1'==window.tinvwl_add_to_wishlist['simple_flow'];for(var i in f){if(f[i].hasOwnProperty('in')&&Array.isArray(f[i]['in'])&&-1<(f[i]['in']||[]).indexOf(b.variation_id)){j=true;}} e.toggleClass('tinvwl-product-in-list',j).toggleClass('tinvwl-product-make-remove',(j&&g)).attr('tinv-wl-action',((j&&g)?'remove':'addto'));a.preventDefault();e.removeClass('disabled-add-wishlist');});}});})(jQuery);(function($){$(document).ready(function(){$.fn.tinvwl_modal=function(so){var sd={showClass:'tinv-modal-open',modal:'.tinv-modal',onPrepare:function(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));} $(this).appendTo('body > .tinv-wishlist');}},s=$.extend(true,{},sd,so);return $(this).each(function(){var a=$(this),b=a.next(s.modal);s.onPrepare.call(b);a.on('click',function(){b.addClass(s.showClass);});});};$('.tinv-modal-btn').tinvwl_modal({});$('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="input-group tinvwl-no-full">').find('button').wrap('<span class="input-group-btn">');$('.tinv-lists-nav').each(function(){if(!$.trim($(this).html()).length){$(this).remove();}});$('body').on('click','.social-buttons .social[title!=email]',function(e){var newWind=window.open($(this).attr('href'),$(this).attr('title'),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");if(newWind){newWind.focus();e.preventDefault();}});$('.tinvwl-select-all').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',true);});$('.tinvwl-select-none').on('click',function(e){e.preventDefault();$(this).parent().parent().find('ul li input[type="checkbox"]').attr('checked',false);});$('body').on('click','.tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close',function(e){e.preventDefault();$(this).parents('.tinv-modal:first').removeClass('tinv-modal-open');});$('body').on('click','.tinv-wishlist .tinvwl-btn-onclick',function(e){var url=$(this).data('url');if(url){e.preventDefault();window.location=$(this).data('url');}});var navigationButton=$('.tinv-wishlist .navigation-button');if(navigationButton.length){navigationButton.each(function(){var navigationButtons=$(this).find('> li');if(navigationButtons.length<5){navigationButtons.parent().addClass('tinvwl-btns-count-'+navigationButtons.length);}});} $('.tinv-login .showlogin').unbind("click").on('click',function(e){e.preventDefault();$(this).closest('.tinv-login').find('.login').toggle();});$('.tinv-wishlist table.tinvwl-table-manage-list tfoot td').each(function(){$(this).toggle(!!$(this).children().not('.look_in').length||!!$(this).children('.look_in').children().length);});})})(jQuery);
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WooCommerce Wishlist Plugin\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2017-
|
7 |
"POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
|
8 |
"sommartid)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
@@ -40,11 +40,15 @@ msgstr ""
|
|
40 |
msgid "Template Custom CSS"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin/basestyle.helper.php:114 admin/settings/general.class.php:
|
44 |
msgid "Save Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin/basestyle.helper.php:120 admin/settings/general.class.php:
|
|
|
|
|
|
|
|
|
48 |
msgid "Save"
|
49 |
msgstr ""
|
50 |
|
@@ -136,7 +140,6 @@ msgid "Wishlist Page Options"
|
|
136 |
msgstr ""
|
137 |
|
138 |
#: admin/settings/general.class.php:161 admin/settings/general.class.php:178
|
139 |
-
#: public/tinvwl.class.php:277
|
140 |
msgid "Coming soon"
|
141 |
msgstr ""
|
142 |
|
@@ -186,70 +189,70 @@ msgstr ""
|
|
186 |
msgid "Before \"Add to Cart\" button"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: admin/settings/general.class.php:222 admin/settings/general.class.php:
|
190 |
#: includes/wizard.class.php:402
|
191 |
msgid "Custom position with code"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: admin/settings/general.class.php:228 admin/settings/general.class.php:
|
195 |
msgid "Button type"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: admin/settings/general.class.php:231 admin/settings/general.class.php:
|
199 |
msgid "Link"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: admin/settings/general.class.php:232 admin/settings/general.class.php:
|
203 |
#: includes/wizard.class.php:389
|
204 |
msgid "Button"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: admin/settings/general.class.php:238 admin/settings/general.class.php:
|
208 |
msgid "\"Add to Wishlist\" Icon"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/settings/general.class.php:239 admin/settings/general.class.php:
|
212 |
msgid ""
|
213 |
"You can choose from our predefined icons or upload your custom icon. Custom "
|
214 |
"icon size is limited to 16x16 px."
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: admin/settings/general.class.php:242 admin/settings/general.class.php:
|
218 |
-
#: admin/settings/general.class.php:
|
219 |
msgid "None"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: admin/settings/general.class.php:243 admin/settings/general.class.php:
|
223 |
-
#: admin/settings/general.class.php:
|
224 |
msgid "Heart"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: admin/settings/general.class.php:244 admin/settings/general.class.php:
|
228 |
-
#: admin/settings/general.class.php:
|
229 |
msgid "Heart+"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: admin/settings/general.class.php:245 admin/settings/general.class.php:
|
233 |
-
#: admin/settings/general.class.php:
|
234 |
msgid "Custom"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: admin/settings/general.class.php:262 admin/settings/general.class.php:
|
238 |
-
#: admin/settings/general.class.php:
|
239 |
msgid "Upload"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: admin/settings/general.class.php:271 admin/settings/general.class.php:
|
243 |
msgid "\"Add to Wishlist\" Icon Color"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: admin/settings/general.class.php:273 admin/settings/general.class.php:
|
247 |
-
#: admin/settings/general.class.php:
|
248 |
msgid "Black"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: admin/settings/general.class.php:274 admin/settings/general.class.php:
|
252 |
-
#: admin/settings/general.class.php:
|
253 |
msgid "White"
|
254 |
msgstr ""
|
255 |
|
@@ -257,7 +260,7 @@ msgstr ""
|
|
257 |
msgid "\"Add to Wishlist\" button Text"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: admin/settings/general.class.php:287 admin/settings/general.class.php:
|
261 |
msgid "\"Remove from Wishlist\" Button Text"
|
262 |
msgstr ""
|
263 |
|
@@ -276,7 +279,11 @@ msgstr ""
|
|
276 |
msgid "Show in Product Listing"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: admin/settings/general.class.php:
|
|
|
|
|
|
|
|
|
280 |
msgid ""
|
281 |
"Note: if \"Custom position with code\" option is applied, the \"Add to "
|
282 |
"Wishlist\" button should be added into template using <code>do_shortcode()</"
|
@@ -284,79 +291,79 @@ msgid ""
|
|
284 |
"><code>do_shortcode(\"[ti_wishlists_addtowishlist loop=yes]\")</code>"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: admin/settings/general.class.php:
|
288 |
msgid "\"Add to Wishlist\" Text"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: admin/settings/general.class.php:
|
292 |
msgid "Wishlist Product Settings"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: admin/settings/general.class.php:
|
296 |
msgid ""
|
297 |
"Following options allows you to choose what information/functionality to "
|
298 |
"show/enable in wishlist table on wishlist page."
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: admin/settings/general.class.php:
|
302 |
msgid "Show \"Add to Cart\" button"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: admin/settings/general.class.php:
|
306 |
msgid "\"Add to Cart\" Text"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: admin/settings/general.class.php:
|
310 |
msgid "Show Unit price"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: admin/settings/general.class.php:
|
314 |
msgid "Show Stock status"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: admin/settings/general.class.php:
|
318 |
msgid "Show Date of addition"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: admin/settings/general.class.php:
|
322 |
msgid "Wishlist Table Settings"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: admin/settings/general.class.php:
|
326 |
msgid ""
|
327 |
"Following options will help user to manage and add products to cart from "
|
328 |
"wishlist table in bulk."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/settings/general.class.php:
|
332 |
msgid "Show Checkboxes"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/settings/general.class.php:
|
336 |
msgid "Show Actions button"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/settings/general.class.php:
|
340 |
msgid "Bulk actions drop down at the bottom of wishlist table"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/settings/general.class.php:
|
344 |
msgid "Show \"Add Selected to Cart\" button"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/settings/general.class.php:
|
348 |
msgid "\"Add Selected to Cart\" Button Text"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: admin/settings/general.class.php:
|
352 |
msgid "Show \"Add All to Cart\" button"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: admin/settings/general.class.php:
|
356 |
msgid "\"Add All to Cart\" Button Text"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: admin/settings/general.class.php:
|
360 |
msgid ""
|
361 |
"Following options enable/disable Social share icons below wishlist table on "
|
362 |
"wishlist page. Wishlist owner can easily share their wishlists using this "
|
@@ -364,39 +371,47 @@ msgid ""
|
|
364 |
"shared status, private wishlists can't be shared."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: admin/settings/general.class.php:
|
368 |
msgid "Social Networks Sharing Options"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/settings/general.class.php:
|
372 |
msgid "Show \"Share on Facebook\" Button"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/settings/general.class.php:
|
376 |
msgid "Show \"Tweet on Twitter\" Button"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/settings/general.class.php:
|
380 |
msgid "Show \"Pin on Pinterest\" Button"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: admin/settings/general.class.php:
|
384 |
msgid "Show \"Share on Google+\" Button"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: admin/settings/general.class.php:
|
388 |
msgid "Show \"Share on Email\" Button"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: admin/settings/general.class.php:
|
392 |
msgid "\"Share on\" Text"
|
393 |
msgstr ""
|
394 |
|
395 |
#: admin/settings/general.class.php:547
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
msgid "Wishlist Products Counter"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: admin/settings/general.class.php:
|
400 |
#, php-format
|
401 |
msgid ""
|
402 |
"Add this shortcode <code>[ti_wishlist_products_counter]</code> anywhere into "
|
@@ -405,23 +420,23 @@ msgid ""
|
|
405 |
"\">Appearance -> Widgets</a> section."
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: admin/settings/general.class.php:
|
409 |
msgid "\"Wishlist\" Icon"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: admin/settings/general.class.php:
|
413 |
msgid "\"Wishlist\" Icon Color"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: admin/settings/general.class.php:
|
417 |
msgid "Show counter text"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: admin/settings/general.class.php:
|
421 |
msgid "Counter Text"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: admin/settings/general.class.php:
|
425 |
msgid "Wishlist - "
|
426 |
msgstr ""
|
427 |
|
@@ -485,16 +500,16 @@ msgstr ""
|
|
485 |
msgid "text"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: admin/settings/style.class.php:71 admin/settings/style.class.php:
|
489 |
msgid "Title Color"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: admin/settings/style.class.php:77 admin/settings/style.class.php:
|
493 |
msgid "Title Font Size"
|
494 |
msgstr ""
|
495 |
|
496 |
#: admin/settings/style.class.php:83 admin/settings/style.class.php:439
|
497 |
-
#: admin/settings/style.class.php:
|
498 |
msgid "Content Text Color"
|
499 |
msgstr ""
|
500 |
|
@@ -536,7 +551,7 @@ msgstr ""
|
|
536 |
#: admin/settings/style.class.php:139 admin/settings/style.class.php:189
|
537 |
#: admin/settings/style.class.php:251 admin/settings/style.class.php:301
|
538 |
#: admin/settings/style.class.php:351 admin/settings/style.class.php:401
|
539 |
-
#: admin/settings/style.class.php:
|
540 |
msgid "Background Color"
|
541 |
msgstr ""
|
542 |
|
@@ -620,11 +635,11 @@ msgstr ""
|
|
620 |
msgid "Table Head Font Size"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: admin/settings/style.class.php:445 admin/settings/style.class.php:
|
624 |
msgid "Content Text Font"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: admin/settings/style.class.php:453 admin/settings/style.class.php:
|
628 |
msgid "Content Text Font Size"
|
629 |
msgstr ""
|
630 |
|
@@ -656,75 +671,67 @@ msgstr ""
|
|
656 |
msgid "Social Icons Background Hover Color"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: admin/settings/style.class.php:
|
660 |
-
msgid "Social Icons Color"
|
661 |
-
msgstr ""
|
662 |
-
|
663 |
-
#: admin/settings/style.class.php:505
|
664 |
-
msgid "Dark"
|
665 |
-
msgstr ""
|
666 |
-
|
667 |
-
#: admin/settings/style.class.php:513
|
668 |
msgid "popups"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: admin/settings/style.class.php:
|
672 |
msgid "Title Font"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: admin/settings/style.class.php:
|
676 |
msgid "Fields Background Color"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: admin/settings/style.class.php:
|
680 |
msgid "Fields Border Color"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: admin/settings/style.class.php:
|
684 |
msgid "Fields Border Radius"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: admin/settings/style.class.php:
|
688 |
msgid "Fields Text Color"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: admin/settings/style.class.php:
|
692 |
msgid "Fields Placeholder Text Color"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: admin/settings/style.class.php:
|
696 |
msgid "Normal Buttons Background Color"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: admin/settings/style.class.php:
|
700 |
msgid "Normal Buttons Background Hover Color"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: admin/settings/style.class.php:
|
704 |
msgid "Normal Buttons Text Color"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: admin/settings/style.class.php:
|
708 |
msgid "Normal Buttons Text Hover Color"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: admin/settings/style.class.php:
|
712 |
msgid "Accent Buttons Background Color"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: admin/settings/style.class.php:
|
716 |
msgid "Accent Buttons Background Hover Color"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: admin/settings/style.class.php:
|
720 |
msgid "Accent Buttons Text Color"
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: admin/settings/style.class.php:
|
724 |
msgid "Accent Buttons Text Hover Color"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:
|
728 |
msgid "Upgrade to Pro"
|
729 |
msgstr ""
|
730 |
|
@@ -746,44 +753,48 @@ msgstr ""
|
|
746 |
msgid "Share your love with us."
|
747 |
msgstr ""
|
748 |
|
749 |
-
#: admin/tinvwl.class.php:
|
750 |
msgid ""
|
751 |
"<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost ready "
|
752 |
"to start :)"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: admin/tinvwl.class.php:
|
756 |
msgid "Run the Setup Wizard"
|
757 |
msgstr ""
|
758 |
|
759 |
-
#: admin/tinvwl.class.php:
|
760 |
msgid "Skip Setup"
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: admin/tinvwl.class.php:
|
764 |
msgid "Dismiss"
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: admin/tinvwl.class.php:
|
768 |
msgid "Link to Wishlists does not work!"
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: admin/tinvwl.class.php:
|
772 |
msgid "Please apply the Wishlist page"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: admin/tinvwl.class.php:
|
776 |
msgid " or "
|
777 |
msgstr ""
|
778 |
|
779 |
-
#: admin/tinvwl.class.php:
|
|
|
|
|
|
|
|
|
780 |
#, php-format
|
781 |
msgid ""
|
782 |
"<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
|
783 |
"of date. The core version is <strong style=\"color:red\">%3$s</strong>"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: admin/tinvwl.class.php:
|
787 |
#, php-format
|
788 |
msgid ""
|
789 |
"<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
|
@@ -794,7 +805,7 @@ msgid ""
|
|
794 |
"the theme."
|
795 |
msgstr ""
|
796 |
|
797 |
-
#: admin/tinvwl.class.php:
|
798 |
#, php-format
|
799 |
msgid ""
|
800 |
"The \"Add to Wishlist\" button may work improperly in a product type \"%1$s"
|
@@ -926,7 +937,7 @@ msgid "Page Setup"
|
|
926 |
msgstr ""
|
927 |
|
928 |
#: includes/wizard.class.php:282 includes/wizard.class.php:312
|
929 |
-
#: public/tinvwl.class.php:
|
930 |
msgid "Wishlist"
|
931 |
msgstr ""
|
932 |
|
@@ -958,16 +969,16 @@ msgstr ""
|
|
958 |
msgid "Ready!"
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: public/tinvwl.class.php:
|
962 |
#, php-format
|
963 |
-
msgid "%1$s
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: public/tinvwl.class.php:
|
967 |
msgid "Create New"
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: public/tinvwl.class.php:
|
971 |
msgid ""
|
972 |
"Please select some product options before adding this product to your "
|
973 |
"wishlist."
|
@@ -1100,46 +1111,46 @@ msgid "Stock Status"
|
|
1100 |
msgstr ""
|
1101 |
|
1102 |
#: templates/ti-wishlist-user.php:110 templates/ti-wishlist.php:114
|
1103 |
-
#: tinv-wishlists-function-integration.php:
|
1104 |
-
#: tinv-wishlists-function-integration.php:
|
1105 |
-
#: tinv-wishlists-function-integration.php:
|
1106 |
-
#: tinv-wishlists-function-integration.php:
|
1107 |
msgid "In stock"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
-
#: tinv-wishlists-function-integration.php:
|
1111 |
msgid "Select options"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
-
#: tinv-wishlists-function-integration.php:
|
1115 |
msgid "Note"
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: tinv-wishlists-function-integration.php:
|
1119 |
msgid "To"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
-
#: tinv-wishlists-function-integration.php:
|
1123 |
msgid "To Email"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
-
#: tinv-wishlists-function-integration.php:
|
1127 |
msgid "Address"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
-
#: tinv-wishlists-function-integration.php:
|
1131 |
msgid "Reload existing Gift Card"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
-
#: tinv-wishlists-function-integration.php:
|
1135 |
msgid "Out of stock"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: tinv-wishlists-function-integration.php:
|
1139 |
msgid "Photos imported - "
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: tinv-wishlists-function-integration.php:
|
1143 |
#, php-format
|
1144 |
msgid ""
|
1145 |
"Please help us improve %2$s! If you opt-in, some data about your usage of "
|
@@ -1147,18 +1158,18 @@ msgid ""
|
|
1147 |
"work just fine."
|
1148 |
msgstr ""
|
1149 |
|
1150 |
-
#: tinv-wishlists-function-integration.php:
|
1151 |
#, php-format
|
1152 |
msgid ""
|
1153 |
"Allow %6$s to collect some usage data with %5$s to make the plugin even more "
|
1154 |
"awesome. If you skip this, that's okay! %2$s will still work just fine."
|
1155 |
msgstr ""
|
1156 |
|
1157 |
-
#: tinv-wishlists-function-integration.php:
|
1158 |
msgid "WooCommerce Wishlist Plugin"
|
1159 |
msgstr ""
|
1160 |
|
1161 |
-
#: tinv-wishlists-function-integration.php:
|
1162 |
msgid "TemplateInvaders"
|
1163 |
msgstr ""
|
1164 |
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WooCommerce Wishlist Plugin\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2017-11-08 00:31+0700\n"
|
7 |
"POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
|
8 |
"sommartid)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
40 |
msgid "Template Custom CSS"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: admin/basestyle.helper.php:114 admin/settings/general.class.php:630
|
44 |
msgid "Save Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin/basestyle.helper.php:120 admin/settings/general.class.php:636
|
48 |
+
msgid "Reset"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: admin/basestyle.helper.php:126 admin/settings/general.class.php:642
|
52 |
msgid "Save"
|
53 |
msgstr ""
|
54 |
|
140 |
msgstr ""
|
141 |
|
142 |
#: admin/settings/general.class.php:161 admin/settings/general.class.php:178
|
|
|
143 |
msgid "Coming soon"
|
144 |
msgstr ""
|
145 |
|
189 |
msgid "Before \"Add to Cart\" button"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: admin/settings/general.class.php:222 admin/settings/general.class.php:323
|
193 |
#: includes/wizard.class.php:402
|
194 |
msgid "Custom position with code"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: admin/settings/general.class.php:228 admin/settings/general.class.php:330
|
198 |
msgid "Button type"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: admin/settings/general.class.php:231 admin/settings/general.class.php:333
|
202 |
msgid "Link"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: admin/settings/general.class.php:232 admin/settings/general.class.php:334
|
206 |
#: includes/wizard.class.php:389
|
207 |
msgid "Button"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: admin/settings/general.class.php:238 admin/settings/general.class.php:340
|
211 |
msgid "\"Add to Wishlist\" Icon"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: admin/settings/general.class.php:239 admin/settings/general.class.php:573
|
215 |
msgid ""
|
216 |
"You can choose from our predefined icons or upload your custom icon. Custom "
|
217 |
"icon size is limited to 16x16 px."
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: admin/settings/general.class.php:242 admin/settings/general.class.php:343
|
221 |
+
#: admin/settings/general.class.php:568
|
222 |
msgid "None"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: admin/settings/general.class.php:243 admin/settings/general.class.php:344
|
226 |
+
#: admin/settings/general.class.php:569
|
227 |
msgid "Heart"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: admin/settings/general.class.php:244 admin/settings/general.class.php:345
|
231 |
+
#: admin/settings/general.class.php:570
|
232 |
msgid "Heart+"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: admin/settings/general.class.php:245 admin/settings/general.class.php:346
|
236 |
+
#: admin/settings/general.class.php:571
|
237 |
msgid "Custom"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: admin/settings/general.class.php:262 admin/settings/general.class.php:362
|
241 |
+
#: admin/settings/general.class.php:588
|
242 |
msgid "Upload"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: admin/settings/general.class.php:271 admin/settings/general.class.php:371
|
246 |
msgid "\"Add to Wishlist\" Icon Color"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: admin/settings/general.class.php:273 admin/settings/general.class.php:373
|
250 |
+
#: admin/settings/general.class.php:599
|
251 |
msgid "Black"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: admin/settings/general.class.php:274 admin/settings/general.class.php:374
|
255 |
+
#: admin/settings/general.class.php:550 admin/settings/general.class.php:600
|
256 |
msgid "White"
|
257 |
msgstr ""
|
258 |
|
260 |
msgid "\"Add to Wishlist\" button Text"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: admin/settings/general.class.php:287 admin/settings/general.class.php:387
|
264 |
msgid "\"Remove from Wishlist\" Button Text"
|
265 |
msgstr ""
|
266 |
|
279 |
msgid "Show in Product Listing"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: admin/settings/general.class.php:322
|
283 |
+
msgid "Above Thumbnail"
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: admin/settings/general.class.php:325
|
287 |
msgid ""
|
288 |
"Note: if \"Custom position with code\" option is applied, the \"Add to "
|
289 |
"Wishlist\" button should be added into template using <code>do_shortcode()</"
|
291 |
"><code>do_shortcode(\"[ti_wishlists_addtowishlist loop=yes]\")</code>"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: admin/settings/general.class.php:381 views/wizard/step-button.php:41
|
295 |
msgid "\"Add to Wishlist\" Text"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: admin/settings/general.class.php:395
|
299 |
msgid "Wishlist Product Settings"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: admin/settings/general.class.php:396
|
303 |
msgid ""
|
304 |
"Following options allows you to choose what information/functionality to "
|
305 |
"show/enable in wishlist table on wishlist page."
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: admin/settings/general.class.php:402
|
309 |
msgid "Show \"Add to Cart\" button"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: admin/settings/general.class.php:409
|
313 |
msgid "\"Add to Cart\" Text"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: admin/settings/general.class.php:416
|
317 |
msgid "Show Unit price"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: admin/settings/general.class.php:422
|
321 |
msgid "Show Stock status"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: admin/settings/general.class.php:428
|
325 |
msgid "Show Date of addition"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: admin/settings/general.class.php:435
|
329 |
msgid "Wishlist Table Settings"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: admin/settings/general.class.php:436
|
333 |
msgid ""
|
334 |
"Following options will help user to manage and add products to cart from "
|
335 |
"wishlist table in bulk."
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: admin/settings/general.class.php:442
|
339 |
msgid "Show Checkboxes"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: admin/settings/general.class.php:454
|
343 |
msgid "Show Actions button"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: admin/settings/general.class.php:455
|
347 |
msgid "Bulk actions drop down at the bottom of wishlist table"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: admin/settings/general.class.php:461
|
351 |
msgid "Show \"Add Selected to Cart\" button"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: admin/settings/general.class.php:468
|
355 |
msgid "\"Add Selected to Cart\" Button Text"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: admin/settings/general.class.php:479
|
359 |
msgid "Show \"Add All to Cart\" button"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: admin/settings/general.class.php:486
|
363 |
msgid "\"Add All to Cart\" Button Text"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: admin/settings/general.class.php:499
|
367 |
msgid ""
|
368 |
"Following options enable/disable Social share icons below wishlist table on "
|
369 |
"wishlist page. Wishlist owner can easily share their wishlists using this "
|
371 |
"shared status, private wishlists can't be shared."
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: admin/settings/general.class.php:505
|
375 |
msgid "Social Networks Sharing Options"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: admin/settings/general.class.php:511 views/wizard/step-social.php:26
|
379 |
msgid "Show \"Share on Facebook\" Button"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: admin/settings/general.class.php:517 views/wizard/step-social.php:35
|
383 |
msgid "Show \"Tweet on Twitter\" Button"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: admin/settings/general.class.php:523 views/wizard/step-social.php:44
|
387 |
msgid "Show \"Pin on Pinterest\" Button"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: admin/settings/general.class.php:529 views/wizard/step-social.php:53
|
391 |
msgid "Show \"Share on Google+\" Button"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: admin/settings/general.class.php:535 views/wizard/step-social.php:62
|
395 |
msgid "Show \"Share on Email\" Button"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: admin/settings/general.class.php:541
|
399 |
msgid "\"Share on\" Text"
|
400 |
msgstr ""
|
401 |
|
402 |
#: admin/settings/general.class.php:547
|
403 |
+
msgid "Social Icons Color"
|
404 |
+
msgstr ""
|
405 |
+
|
406 |
+
#: admin/settings/general.class.php:549
|
407 |
+
msgid "Dark"
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: admin/settings/general.class.php:558
|
411 |
msgid "Wishlist Products Counter"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: admin/settings/general.class.php:559
|
415 |
#, php-format
|
416 |
msgid ""
|
417 |
"Add this shortcode <code>[ti_wishlist_products_counter]</code> anywhere into "
|
420 |
"\">Appearance -> Widgets</a> section."
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: admin/settings/general.class.php:565
|
424 |
msgid "\"Wishlist\" Icon"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: admin/settings/general.class.php:597
|
428 |
msgid "\"Wishlist\" Icon Color"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: admin/settings/general.class.php:607 public/widget/topwishlist.class.php:36
|
432 |
msgid "Show counter text"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: admin/settings/general.class.php:616 public/widget/topwishlist.class.php:41
|
436 |
msgid "Counter Text"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: admin/settings/general.class.php:617
|
440 |
msgid "Wishlist - "
|
441 |
msgstr ""
|
442 |
|
500 |
msgid "text"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: admin/settings/style.class.php:71 admin/settings/style.class.php:514
|
504 |
msgid "Title Color"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: admin/settings/style.class.php:77 admin/settings/style.class.php:528
|
508 |
msgid "Title Font Size"
|
509 |
msgstr ""
|
510 |
|
511 |
#: admin/settings/style.class.php:83 admin/settings/style.class.php:439
|
512 |
+
#: admin/settings/style.class.php:534
|
513 |
msgid "Content Text Color"
|
514 |
msgstr ""
|
515 |
|
551 |
#: admin/settings/style.class.php:139 admin/settings/style.class.php:189
|
552 |
#: admin/settings/style.class.php:251 admin/settings/style.class.php:301
|
553 |
#: admin/settings/style.class.php:351 admin/settings/style.class.php:401
|
554 |
+
#: admin/settings/style.class.php:508
|
555 |
msgid "Background Color"
|
556 |
msgstr ""
|
557 |
|
635 |
msgid "Table Head Font Size"
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: admin/settings/style.class.php:445 admin/settings/style.class.php:540
|
639 |
msgid "Content Text Font"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: admin/settings/style.class.php:453 admin/settings/style.class.php:548
|
643 |
msgid "Content Text Font Size"
|
644 |
msgstr ""
|
645 |
|
671 |
msgid "Social Icons Background Hover Color"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: admin/settings/style.class.php:501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
675 |
msgid "popups"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: admin/settings/style.class.php:520
|
679 |
msgid "Title Font"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: admin/settings/style.class.php:554
|
683 |
msgid "Fields Background Color"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: admin/settings/style.class.php:560
|
687 |
msgid "Fields Border Color"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: admin/settings/style.class.php:566
|
691 |
msgid "Fields Border Radius"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: admin/settings/style.class.php:572
|
695 |
msgid "Fields Text Color"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: admin/settings/style.class.php:578
|
699 |
msgid "Fields Placeholder Text Color"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: admin/settings/style.class.php:584
|
703 |
msgid "Normal Buttons Background Color"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: admin/settings/style.class.php:590
|
707 |
msgid "Normal Buttons Background Hover Color"
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: admin/settings/style.class.php:596
|
711 |
msgid "Normal Buttons Text Color"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: admin/settings/style.class.php:602
|
715 |
msgid "Normal Buttons Text Hover Color"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: admin/settings/style.class.php:608
|
719 |
msgid "Accent Buttons Background Color"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: admin/settings/style.class.php:614
|
723 |
msgid "Accent Buttons Background Hover Color"
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: admin/settings/style.class.php:620
|
727 |
msgid "Accent Buttons Text Color"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: admin/settings/style.class.php:626
|
731 |
msgid "Accent Buttons Text Hover Color"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:198
|
735 |
msgid "Upgrade to Pro"
|
736 |
msgstr ""
|
737 |
|
753 |
msgid "Share your love with us."
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: admin/tinvwl.class.php:95
|
757 |
msgid ""
|
758 |
"<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost ready "
|
759 |
"to start :)"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: admin/tinvwl.class.php:97 admin/tinvwl.class.php:113
|
763 |
msgid "Run the Setup Wizard"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: admin/tinvwl.class.php:99
|
767 |
msgid "Skip Setup"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: admin/tinvwl.class.php:107 includes/notice.helper.php:111
|
771 |
msgid "Dismiss"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: admin/tinvwl.class.php:108
|
775 |
msgid "Link to Wishlists does not work!"
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: admin/tinvwl.class.php:110
|
779 |
msgid "Please apply the Wishlist page"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: admin/tinvwl.class.php:111
|
783 |
msgid " or "
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: admin/tinvwl.class.php:171
|
787 |
+
msgid "Are you sure you want to reset the settings?"
|
788 |
+
msgstr ""
|
789 |
+
|
790 |
+
#: admin/tinvwl.class.php:236
|
791 |
#, php-format
|
792 |
msgid ""
|
793 |
"<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
|
794 |
"of date. The core version is <strong style=\"color:red\">%3$s</strong>"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: admin/tinvwl.class.php:262
|
798 |
#, php-format
|
799 |
msgid ""
|
800 |
"<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
|
805 |
"the theme."
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: admin/tinvwl.class.php:384
|
809 |
#, php-format
|
810 |
msgid ""
|
811 |
"The \"Add to Wishlist\" button may work improperly in a product type \"%1$s"
|
937 |
msgstr ""
|
938 |
|
939 |
#: includes/wizard.class.php:282 includes/wizard.class.php:312
|
940 |
+
#: public/tinvwl.class.php:533
|
941 |
msgid "Wishlist"
|
942 |
msgstr ""
|
943 |
|
969 |
msgid "Ready!"
|
970 |
msgstr ""
|
971 |
|
972 |
+
#: public/tinvwl.class.php:285
|
973 |
#, php-format
|
974 |
+
msgid "%1$s by %2$s"
|
975 |
msgstr ""
|
976 |
|
977 |
+
#: public/tinvwl.class.php:437
|
978 |
msgid "Create New"
|
979 |
msgstr ""
|
980 |
|
981 |
+
#: public/tinvwl.class.php:440
|
982 |
msgid ""
|
983 |
"Please select some product options before adding this product to your "
|
984 |
"wishlist."
|
1111 |
msgstr ""
|
1112 |
|
1113 |
#: templates/ti-wishlist-user.php:110 templates/ti-wishlist.php:114
|
1114 |
+
#: tinv-wishlists-function-integration.php:793
|
1115 |
+
#: tinv-wishlists-function-integration.php:942
|
1116 |
+
#: tinv-wishlists-function-integration.php:1089
|
1117 |
+
#: tinv-wishlists-function-integration.php:1302
|
1118 |
msgid "In stock"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
+
#: tinv-wishlists-function-integration.php:224
|
1122 |
msgid "Select options"
|
1123 |
msgstr ""
|
1124 |
|
1125 |
+
#: tinv-wishlists-function-integration.php:518
|
1126 |
msgid "Note"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
+
#: tinv-wishlists-function-integration.php:521
|
1130 |
msgid "To"
|
1131 |
msgstr ""
|
1132 |
|
1133 |
+
#: tinv-wishlists-function-integration.php:524
|
1134 |
msgid "To Email"
|
1135 |
msgstr ""
|
1136 |
|
1137 |
+
#: tinv-wishlists-function-integration.php:527
|
1138 |
msgid "Address"
|
1139 |
msgstr ""
|
1140 |
|
1141 |
+
#: tinv-wishlists-function-integration.php:530
|
1142 |
msgid "Reload existing Gift Card"
|
1143 |
msgstr ""
|
1144 |
|
1145 |
+
#: tinv-wishlists-function-integration.php:1241
|
1146 |
msgid "Out of stock"
|
1147 |
msgstr ""
|
1148 |
|
1149 |
+
#: tinv-wishlists-function-integration.php:1432
|
1150 |
msgid "Photos imported - "
|
1151 |
msgstr ""
|
1152 |
|
1153 |
+
#: tinv-wishlists-function-integration.php:1539
|
1154 |
#, php-format
|
1155 |
msgid ""
|
1156 |
"Please help us improve %2$s! If you opt-in, some data about your usage of "
|
1158 |
"work just fine."
|
1159 |
msgstr ""
|
1160 |
|
1161 |
+
#: tinv-wishlists-function-integration.php:1553
|
1162 |
#, php-format
|
1163 |
msgid ""
|
1164 |
"Allow %6$s to collect some usage data with %5$s to make the plugin even more "
|
1165 |
"awesome. If you skip this, that's okay! %2$s will still work just fine."
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: tinv-wishlists-function-integration.php:1553
|
1169 |
msgid "WooCommerce Wishlist Plugin"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: tinv-wishlists-function-integration.php:1553
|
1173 |
msgid "TemplateInvaders"
|
1174 |
msgstr ""
|
1175 |
|
public/addtowishlist.class.php
CHANGED
@@ -107,6 +107,9 @@ class TInvWL_Public_AddToWishlist {
|
|
107 |
add_action( 'tinvwl_after_shop_loop_item', 'tinvwl_view_addto_htmlloop' );
|
108 |
add_action( 'woocommerce_after_shop_loop_item', 'tinvwl_view_addto_htmlloop', 9 );
|
109 |
break;
|
|
|
|
|
|
|
110 |
case 'shortcode':
|
111 |
break;
|
112 |
case 'after':
|
@@ -472,7 +475,7 @@ class TInvWL_Public_AddToWishlist {
|
|
472 |
}
|
473 |
|
474 |
$data = array(
|
475 |
-
'class_postion' => sprintf( 'tinvwl-%s-add-to-cart', $position ),
|
476 |
'product' => $this->product,
|
477 |
'variation_id' => ( $this->is_loop && 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $this->product->product_type : $this->product->get_type() ) ) ? $this->variation_id : ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $this->product->variation_id : ( $this->product->is_type( 'variation' ) ? $this->product->get_id() : 0 ) ),
|
478 |
'TInvWishlist' => $wishlists,
|
107 |
add_action( 'tinvwl_after_shop_loop_item', 'tinvwl_view_addto_htmlloop' );
|
108 |
add_action( 'woocommerce_after_shop_loop_item', 'tinvwl_view_addto_htmlloop', 9 );
|
109 |
break;
|
110 |
+
case 'above_thumb':
|
111 |
+
add_action( 'tinvwl_above_thumb_loop_item', 'tinvwl_view_addto_htmlloop' );
|
112 |
+
add_action( 'woocommerce_before_shop_loop_item', 'tinvwl_view_addto_htmlloop', 9 );
|
113 |
case 'shortcode':
|
114 |
break;
|
115 |
case 'after':
|
475 |
}
|
476 |
|
477 |
$data = array(
|
478 |
+
'class_postion' => sprintf( 'tinvwl-%s-add-to-cart', $this->is_loop ? tinv_get_option( 'add_to_wishlist_catalog', 'position' ) : $position ),
|
479 |
'product' => $this->product,
|
480 |
'variation_id' => ( $this->is_loop && 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $this->product->product_type : $this->product->get_type() ) ) ? $this->variation_id : ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $this->product->variation_id : ( $this->product->is_type( 'variation' ) ? $this->product->get_id() : 0 ) ),
|
481 |
'TInvWishlist' => $wishlists,
|
public/cart.class.php
CHANGED
@@ -159,6 +159,9 @@ class TInvWL_Public_Cart {
|
|
159 |
if ( array_key_exists( 'meta', $product ) && ! empty( $product['meta'] ) ) {
|
160 |
$_POST = $product['meta']; // May be a conflict there will be no GET attributes.
|
161 |
$_REQUEST = $product['meta'];
|
|
|
|
|
|
|
162 |
}
|
163 |
}
|
164 |
|
159 |
if ( array_key_exists( 'meta', $product ) && ! empty( $product['meta'] ) ) {
|
160 |
$_POST = $product['meta']; // May be a conflict there will be no GET attributes.
|
161 |
$_REQUEST = $product['meta'];
|
162 |
+
} else {
|
163 |
+
$_POST = array();
|
164 |
+
$_REQUEST = array();
|
165 |
}
|
166 |
}
|
167 |
|
public/tinvwl.class.php
CHANGED
@@ -91,7 +91,7 @@ class TInvWL_Public_TInvWL {
|
|
91 |
*/
|
92 |
function define_hooks() {
|
93 |
if ( tinv_get_option( 'social', 'facebook' ) || tinv_get_option( 'social', 'google' ) ) {
|
94 |
-
add_filter( 'language_attributes', array( $this, 'add_ogp' ) );
|
95 |
add_action( 'wp_head', array( $this, 'add_meta_tags' ), 0 );
|
96 |
}
|
97 |
|
@@ -260,23 +260,32 @@ class TInvWL_Public_TInvWL {
|
|
260 |
|
261 |
$wlp = new TInvWL_Product( $wishlist );
|
262 |
$products = $wlp->get_wishlist( array(
|
263 |
-
'count' =>
|
264 |
'order_by' => 'date',
|
265 |
'order' => 'DESC',
|
266 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
$product = array_shift( $products );
|
268 |
$image = '';
|
269 |
if ( ! empty( $product ) && ! empty( $product['data'] ) ) {
|
270 |
list( $image, $width, $height, $is_intermediate ) = wp_get_attachment_image_src( $product['data']->get_image_id(), 'full' );
|
271 |
}
|
272 |
|
273 |
-
$meta = array(
|
274 |
-
'url'
|
275 |
-
'type'
|
276 |
-
'title'
|
277 |
-
'description'
|
278 |
-
'image'
|
279 |
-
);
|
280 |
if ( tinv_get_option( 'social', 'facebook' ) ) {
|
281 |
foreach ( $meta as $name => $content ) {
|
282 |
echo sprintf( '<meta property="og:%s" content="%s" />', esc_attr( $name ), esc_attr( $content ) );
|
@@ -305,8 +314,16 @@ class TInvWL_Public_TInvWL {
|
|
305 |
* @return string
|
306 |
*/
|
307 |
function add_ogp( $text ) {
|
308 |
-
if ( is_page( apply_filters( 'wpml_object_id', tinv_get_option( 'page', 'wishlist' ), 'page', true ) )
|
309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
}
|
311 |
|
312 |
return $text;
|
91 |
*/
|
92 |
function define_hooks() {
|
93 |
if ( tinv_get_option( 'social', 'facebook' ) || tinv_get_option( 'social', 'google' ) ) {
|
94 |
+
add_filter( 'language_attributes', array( $this, 'add_ogp' ), 100 );
|
95 |
add_action( 'wp_head', array( $this, 'add_meta_tags' ), 0 );
|
96 |
}
|
97 |
|
260 |
|
261 |
$wlp = new TInvWL_Product( $wishlist );
|
262 |
$products = $wlp->get_wishlist( array(
|
263 |
+
'count' => 999999,
|
264 |
'order_by' => 'date',
|
265 |
'order' => 'DESC',
|
266 |
) );
|
267 |
+
$products_title = array();
|
268 |
+
foreach ( $products as $product ) {
|
269 |
+
if ( ! empty( $product ) && ! empty( $product['data'] ) ) {
|
270 |
+
$title = $product['data']->get_title();
|
271 |
+
if ( ! in_array( $title, $products_title ) ) {
|
272 |
+
$products_title[] = $title;
|
273 |
+
}
|
274 |
+
}
|
275 |
+
}
|
276 |
$product = array_shift( $products );
|
277 |
$image = '';
|
278 |
if ( ! empty( $product ) && ! empty( $product['data'] ) ) {
|
279 |
list( $image, $width, $height, $is_intermediate ) = wp_get_attachment_image_src( $product['data']->get_image_id(), 'full' );
|
280 |
}
|
281 |
|
282 |
+
$meta = apply_filters( 'tinvwl_social_header_meta', array(
|
283 |
+
'url' => tinv_url_wishlist( $wishlist['share_key'] ),
|
284 |
+
'type' => 'product.group',
|
285 |
+
'title' => sprintf( __( '%1$s by %2$s', 'ti-woocommerce-wishlist' ), $wishlist['title'], ( empty( $user_name ) ? $user : $user_name ) ),
|
286 |
+
'description' => implode( ', ', $products_title ),
|
287 |
+
'image' => $image,
|
288 |
+
) );
|
289 |
if ( tinv_get_option( 'social', 'facebook' ) ) {
|
290 |
foreach ( $meta as $name => $content ) {
|
291 |
echo sprintf( '<meta property="og:%s" content="%s" />', esc_attr( $name ), esc_attr( $content ) );
|
314 |
* @return string
|
315 |
*/
|
316 |
function add_ogp( $text ) {
|
317 |
+
if ( is_page( apply_filters( 'wpml_object_id', tinv_get_option( 'page', 'wishlist' ), 'page', true ) ) ) {
|
318 |
+
if ( ! preg_match( '/prefix\=/i', $text ) ) {
|
319 |
+
$text .= ' prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://ogp.me/ns/product#"';
|
320 |
+
}
|
321 |
+
if ( ! preg_match( '/itemscope/i', $text ) ) {
|
322 |
+
$text .= ' itemscope';
|
323 |
+
}
|
324 |
+
if ( ! preg_match( '/itemtype\=/i', $text ) ) {
|
325 |
+
$text .= ' itemtype="http://schema.org/Offer"';
|
326 |
+
}
|
327 |
}
|
328 |
|
329 |
return $text;
|
public/topwishlist.class.php
CHANGED
@@ -68,7 +68,7 @@ class TInvWL_Public_TopWishlist {
|
|
68 |
$data = array(
|
69 |
'icon' => tinv_get_option( 'topline', 'icon' ),
|
70 |
'icon_class' => ( $atts['show_icon'] && tinv_get_option( 'topline', 'icon' ) ) ? 'top_wishlist-' . tinv_get_option( 'topline', 'icon' ) : '',
|
71 |
-
'icon_style' => esc_attr( 'top_wishlist-' . tinv_get_option( 'topline', 'icon_style' ) ),
|
72 |
'icon_upload' => tinv_get_option( 'topline', 'icon_upload' ),
|
73 |
'text' => $atts['show_text'] ? $atts['text'] : '',
|
74 |
'counter' => $atts['show_counter'] ? self::counter() : 0,
|
68 |
$data = array(
|
69 |
'icon' => tinv_get_option( 'topline', 'icon' ),
|
70 |
'icon_class' => ( $atts['show_icon'] && tinv_get_option( 'topline', 'icon' ) ) ? 'top_wishlist-' . tinv_get_option( 'topline', 'icon' ) : '',
|
71 |
+
'icon_style' => ( $atts['show_icon'] && tinv_get_option( 'topline', 'icon' ) ) ? esc_attr( 'top_wishlist-' . tinv_get_option( 'topline', 'icon_style' ) ) : '',
|
72 |
'icon_upload' => tinv_get_option( 'topline', 'icon_upload' ),
|
73 |
'text' => $atts['show_text'] ? $atts['text'] : '',
|
74 |
'counter' => $atts['show_counter'] ? self::counter() : 0,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/?utm_source=wordpressorg&utm_content=d
|
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -129,6 +129,16 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 1.5.7 =
|
133 |
*Release Date - 21 October 2017*
|
134 |
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.5.8
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 1.5.8 =
|
133 |
+
*Release Date - 07 November 2017*
|
134 |
+
|
135 |
+
* Improved Wishlists storage functionality (empty wishlists that do not have a user will be removed after 7 days)
|
136 |
+
* Fixed an issue with the wrong metadata after sharing Wishlist on Facebook
|
137 |
+
* Added "Reset to Defaults" option in the admin panel
|
138 |
+
* Added an option to show the "Add to Wishlist" button above product thumbnail
|
139 |
+
* An option to change social icons from dark to white was moved to "Social Networks Sharing Options" section
|
140 |
+
* Added support for Comet Cache plugin
|
141 |
+
|
142 |
= 1.5.7 =
|
143 |
*Release Date - 21 October 2017*
|
144 |
|
templates/ti-wishlist-product-counter.php
CHANGED
@@ -14,7 +14,7 @@ if ( $icon_class && 'custom' === $icon && ! empty( $icon_upload ) ) {
|
|
14 |
$text = sprintf( '<img src="%s" /> %s', esc_url( $icon_upload ), $text );
|
15 |
}
|
16 |
?>
|
17 |
-
<a href="<?php echo esc_url( tinv_url_wishlist_default() ); ?>" class="wishlist_products_counter<?php echo ' ' . $icon_class . ' ' . $icon_style . ( empty( $text ) ? ' no-txt' : '' ); // WPCS: xss ok. ?>">
|
18 |
<span class="wishlist_products_counter_text"><?php echo $text; // WPCS: xss ok. ?></span>
|
19 |
<?php if ( $show_counter ) : ?>
|
20 |
<span class="wishlist_products_counter_number"><?php echo $counter; // WPCS: xss ok. ?></span>
|
14 |
$text = sprintf( '<img src="%s" /> %s', esc_url( $icon_upload ), $text );
|
15 |
}
|
16 |
?>
|
17 |
+
<a href="<?php echo esc_url( tinv_url_wishlist_default() ); ?>" class="wishlist_products_counter<?php echo ' ' . $icon_class . ' ' . $icon_style . ( empty( $text ) ? ' no-txt' : '' ) . ( 0 < $counter ? ' wishlist-counter-with-products' : '' ); // WPCS: xss ok. ?>">
|
18 |
<span class="wishlist_products_counter_text"><?php echo $text; // WPCS: xss ok. ?></span>
|
19 |
<?php if ( $show_counter ) : ?>
|
20 |
<span class="wishlist_products_counter_number"><?php echo $counter; // WPCS: xss ok. ?></span>
|
templates/ti-wishlist-social.php
CHANGED
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
18 |
<ul>
|
19 |
<?php foreach ( $social as $social_name => $social_url ) {
|
20 |
?>
|
21 |
-
<li><a title="<?php echo esc_attr( $social_name ); ?>" href="<?php echo esc_url( $social_url ); ?>" class="social social-<?php echo esc_attr( $social_name ) . ' ' . esc_attr(
|
22 |
<?php } ?>
|
23 |
</ul>
|
24 |
</div>
|
18 |
<ul>
|
19 |
<?php foreach ( $social as $social_name => $social_url ) {
|
20 |
?>
|
21 |
+
<li><a title="<?php echo esc_attr( $social_name ); ?>" href="<?php echo esc_url( $social_url ); ?>" class="social social-<?php echo esc_attr( $social_name ) . ' ' . esc_attr( tinv_get_option( 'social', 'icon_style' ) ); ?>"><?php echo esc_html( substr( $social_name, 0, 1 ) ); ?></a></li>
|
22 |
<?php } ?>
|
23 |
</ul>
|
24 |
</div>
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 1.5.
|
8 |
* Requires at least: 4.5
|
9 |
* Tested up to: 4.8
|
10 |
* WC requires at least: 2.6
|
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
-
define( 'TINVWL_FVERSION', '1.5.
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 1.5.8
|
8 |
* Requires at least: 4.5
|
9 |
* Tested up to: 4.8
|
10 |
* WC requires at least: 2.6
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
+
define( 'TINVWL_FVERSION', '1.5.8' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
tinv-wishlists-function-integration.php
CHANGED
@@ -176,6 +176,28 @@ if ( ! function_exists( 'tinvwl_w3total_reject_uri' ) ) {
|
|
176 |
add_action( 'admin_init', 'tinvwl_w3total_reject_uri' );
|
177 |
} // End if().
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
if ( ! function_exists( 'gf_productaddon_support' ) ) {
|
180 |
|
181 |
/**
|
176 |
add_action( 'admin_init', 'tinvwl_w3total_reject_uri' );
|
177 |
} // End if().
|
178 |
|
179 |
+
if ( function_exists( 'tinvwl_comet_cache_reject' ) ) {
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Set define disabled for Comet Cache
|
183 |
+
*
|
184 |
+
* @param mixed $data Any content.
|
185 |
+
* @return mixed
|
186 |
+
*/
|
187 |
+
function tinvwl_comet_cache_reject( $data = '' ) {
|
188 |
+
define( 'COMET_CACHE_ALLOWED', false );
|
189 |
+
|
190 |
+
return $data;
|
191 |
+
}
|
192 |
+
|
193 |
+
add_filter( 'tinvwl_addtowishlist_return_ajax', 'tinvwl_comet_cache_reject' );
|
194 |
+
add_action( 'tinvwl_before_action_owner', 'tinvwl_comet_cache_reject' );
|
195 |
+
add_action( 'tinvwl_before_action_user', 'tinvwl_comet_cache_reject' );
|
196 |
+
add_action( 'tinvwl_addproduct_tocart', 'tinvwl_comet_cache_reject' );
|
197 |
+
add_action( 'tinv_wishlist_addtowishlist_button', 'tinvwl_comet_cache_reject' );
|
198 |
+
add_action( 'tinv_wishlist_addtowishlist_dialogbox', 'tinvwl_comet_cache_reject' );
|
199 |
+
}
|
200 |
+
|
201 |
if ( ! function_exists( 'gf_productaddon_support' ) ) {
|
202 |
|
203 |
/**
|