Version Description
Last Stable Tag 2.0.3
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- class-yith-woocommerce-catalog-mode.php +95 -74
- includes/actions/update-2.0.0/ywctm-install.php +6 -4
- includes/actions/update-2.0.0/ywctm-update.php +7 -5
- includes/admin/fields/yith-multiple-field.php +9 -7
- includes/ywctm-functions.php +3 -1
- init.php +39 -9
- languages/yith-woocommerce-catalog-mode.pot +41 -41
- plugin-fw/assets/css/yit-plugin-panel.css +1 -1
- plugin-fw/assets/css/yith-fields.css +13 -18
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +27 -3
- plugin-fw/languages/yith-plugin-fw-es_ES.po +29 -5
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +30 -9
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +29 -5
- plugin-fw/languages/yith-plugin-fw.pot +26 -2
- plugin-fw/lib/yit-assets.php +105 -91
- plugin-fw/lib/yit-plugin-panel-wc.php +32 -9
- plugin-fw/lib/yit-plugin-panel.php +1 -1
- plugin-fw/package.json +1 -1
- plugin-fw/templates/fields/toggle-element.php +6 -1
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +4 -2
- plugin-options/premium-options.php +2 -0
- plugin-options/settings-options.php +2 -0
- readme.txt +3 -3
- templates/admin/premium.php +24 -11
class-yith-woocommerce-catalog-mode.php
CHANGED
@@ -1,9 +1,18 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
if ( ! defined( 'ABSPATH' ) ) {
|
5 |
-
exit;
|
6 |
-
}
|
7 |
|
8 |
if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
9 |
|
@@ -24,27 +33,35 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
24 |
* @var /Yit_Plugin_Panel object
|
25 |
* @see plugin-fw/lib/yit-plugin-panel.php
|
26 |
*/
|
27 |
-
protected $
|
28 |
|
29 |
/**
|
30 |
-
*
|
|
|
|
|
31 |
*/
|
32 |
-
protected $
|
33 |
|
34 |
/**
|
35 |
-
*
|
|
|
|
|
36 |
*/
|
37 |
-
protected $
|
38 |
|
39 |
/**
|
40 |
-
*
|
|
|
|
|
41 |
*/
|
42 |
-
protected $
|
43 |
|
44 |
/**
|
45 |
-
*
|
|
|
|
|
46 |
*/
|
47 |
-
protected $
|
48 |
|
49 |
/**
|
50 |
* Single instance of the class
|
@@ -63,7 +80,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
63 |
public static function get_instance() {
|
64 |
|
65 |
if ( is_null( self::$instance ) ) {
|
66 |
-
self::$instance = new self;
|
67 |
}
|
68 |
|
69 |
return self::$instance;
|
@@ -81,10 +98,10 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
81 |
*/
|
82 |
public function __construct() {
|
83 |
|
84 |
-
// Load Plugin Framework
|
85 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
86 |
|
87 |
-
//Add action links
|
88 |
add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
|
89 |
add_filter( 'yith_show_plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 5 );
|
90 |
add_action( 'init', array( $this, 'set_plugin_requirements' ), 20 );
|
@@ -122,13 +139,13 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
122 |
*/
|
123 |
public function include_files() {
|
124 |
|
125 |
-
//Check if options should be upgraded
|
126 |
$update_path = YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-install.php';
|
127 |
if ( ( '' === get_option( 'ywctm_update_version' ) || YWCTM_VERSION === get_transient( 'ywctm_prune_settings' ) ) && file_exists( $update_path ) ) {
|
128 |
-
include_once
|
129 |
}
|
130 |
|
131 |
-
include_once
|
132 |
|
133 |
}
|
134 |
|
@@ -139,8 +156,8 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
139 |
/**
|
140 |
* Initialize custom fields
|
141 |
*
|
142 |
-
* @param
|
143 |
-
* @param
|
144 |
*
|
145 |
* @return string
|
146 |
* @since 2.0.0
|
@@ -163,8 +180,8 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
163 |
/**
|
164 |
* Sanitize array fields
|
165 |
*
|
166 |
-
* @param
|
167 |
-
* @param
|
168 |
*
|
169 |
* @return string
|
170 |
* @since 2.0.0
|
@@ -199,7 +216,9 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
199 |
|
200 |
wp_register_style( 'ywctm-admin', yit_load_css_file( YWCTM_ASSETS_URL . 'css/admin.css' ), array(), YWCTM_VERSION );
|
201 |
|
202 |
-
|
|
|
|
|
203 |
wp_enqueue_style( 'ywctm-admin' );
|
204 |
}
|
205 |
|
@@ -216,7 +235,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
216 |
*/
|
217 |
public function add_menu_page() {
|
218 |
|
219 |
-
if ( ! empty( $this->
|
220 |
return;
|
221 |
}
|
222 |
|
@@ -247,13 +266,13 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
247 |
'capability' => 'manage_options',
|
248 |
'parent' => '',
|
249 |
'parent_page' => 'yith_plugin_panel',
|
250 |
-
'page' => $this->
|
251 |
'admin-tabs' => $admin_tabs,
|
252 |
'options-path' => YWCTM_DIR . '/plugin-options',
|
253 |
'class' => yith_set_wrapper_class(),
|
254 |
);
|
255 |
|
256 |
-
$this->
|
257 |
|
258 |
}
|
259 |
|
@@ -296,7 +315,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
296 |
/**
|
297 |
* Removes Cart and checkout pages from menu
|
298 |
*
|
299 |
-
* @param
|
300 |
*
|
301 |
* @return array
|
302 |
* @since 1.0.4
|
@@ -348,10 +367,10 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
348 |
$cart = is_page( wc_get_page_id( 'cart' ) );
|
349 |
$checkout = is_page( wc_get_page_id( 'checkout' ) );
|
350 |
|
351 |
-
|
352 |
|
353 |
if ( $cart || $checkout ) {
|
354 |
-
|
355 |
exit;
|
356 |
}
|
357 |
|
@@ -372,7 +391,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
372 |
|
373 |
global $post;
|
374 |
|
375 |
-
$post_id =
|
376 |
|
377 |
if ( ywctm_is_wpml_active() && apply_filters( 'ywctm_wpml_use_default_language_settings', false ) ) {
|
378 |
$post_id = yit_wpml_object_id( $post_id, 'product', true, wpml_get_default_language() );
|
@@ -389,7 +408,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
389 |
/**
|
390 |
* Check if Catalog mode must be applied to current user
|
391 |
*
|
392 |
-
* @param
|
393 |
*
|
394 |
* @return boolean
|
395 |
* @since 1.3.0
|
@@ -445,9 +464,9 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
445 |
/**
|
446 |
* Checks if "Add to cart" needs to be hidden
|
447 |
*
|
448 |
-
* @param
|
449 |
-
* @param
|
450 |
-
* @param
|
451 |
*
|
452 |
* @return boolean
|
453 |
* @since 1.0.0
|
@@ -492,7 +511,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
492 |
|
493 |
if ( ! $single ) {
|
494 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
495 |
-
//
|
496 |
$hide_variations = apply_filters( 'ywctm_hide_variations_on_loop', $hide_variations );
|
497 |
$is_variable = $product->is_type( 'variable' );
|
498 |
$is_grouped = $product->is_type( 'grouped' );
|
@@ -541,12 +560,12 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
541 |
}
|
542 |
}
|
543 |
|
544 |
-
//Set "Add to cart" button as hidden
|
545 |
if ( $hide_add_to_cart && $this->apply_catalog_mode( $product_id ) && $can_hide ) {
|
546 |
$hide = true;
|
547 |
}
|
548 |
|
549 |
-
//If "Add to cart" button is set as visible but price is hidden then hide it anyway
|
550 |
if ( apply_filters( 'ywctm_check_price_hidden', false, $product_id ) && $can_hide ) {
|
551 |
$hide = true;
|
552 |
}
|
@@ -571,7 +590,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
571 |
*/
|
572 |
public function enqueue_styles_frontend() {
|
573 |
|
574 |
-
//
|
575 |
$classes = apply_filters( 'ywctm_css_classes', array() );
|
576 |
|
577 |
if ( ! empty( $classes ) ) {
|
@@ -585,7 +604,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
585 |
/**
|
586 |
* Hide cart widget if needed
|
587 |
*
|
588 |
-
* @param
|
589 |
*
|
590 |
* @return array
|
591 |
* @since 1.3.7
|
@@ -604,7 +623,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
604 |
if ( 'storefront' === $theme_name ) {
|
605 |
$args[] = '.site-header-cart.menu';
|
606 |
}
|
607 |
-
//
|
608 |
$classes = array_merge( $classes, apply_filters( 'ywctm_cart_widget_classes', $args ) );
|
609 |
|
610 |
}
|
@@ -616,7 +635,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
616 |
/**
|
617 |
* Hides "Add to cart" button from single product page
|
618 |
*
|
619 |
-
* @param
|
620 |
*
|
621 |
* @return array
|
622 |
* @since 1.4.4
|
@@ -642,7 +661,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
642 |
$args[] = '.single_variation_wrap .variations_button';
|
643 |
}
|
644 |
|
645 |
-
//
|
646 |
$classes = array_merge( $classes, apply_filters( 'ywctm_catalog_classes', $args ) );
|
647 |
|
648 |
}
|
@@ -654,8 +673,8 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
654 |
/**
|
655 |
* Checks if "Add to cart" needs to be avoided
|
656 |
*
|
657 |
-
* @param
|
658 |
-
* @param
|
659 |
*
|
660 |
* @return boolean
|
661 |
* @since 1.0.5
|
@@ -693,12 +712,12 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
693 |
|
694 |
$hide_add_to_cart = ( 'hide' === $behavior && 'all' === $where );
|
695 |
|
696 |
-
//Set "Add to cart" button as hidden
|
697 |
if ( $hide_add_to_cart && $this->apply_catalog_mode( $product_id ) ) {
|
698 |
$passed = false;
|
699 |
}
|
700 |
|
701 |
-
//If "Add to cart" button is set as visible but price is hidden then hide it anyway
|
702 |
if ( apply_filters( 'ywctm_check_price_hidden', false, $product_id ) ) {
|
703 |
$passed = false;
|
704 |
}
|
@@ -715,8 +734,8 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
715 |
/**
|
716 |
* Checks if "Add to cart" needs to be hidden
|
717 |
*
|
718 |
-
* @param
|
719 |
-
* @param
|
720 |
*
|
721 |
* @return bool
|
722 |
* @since 1.0.2
|
@@ -751,15 +770,16 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
751 |
public function is_quick_view() {
|
752 |
|
753 |
$actions = apply_filters( 'ywctm_quick_view_actions', array( 'yith_load_product_quick_view', 'yit_load_product_quick_view' ) );
|
|
|
754 |
|
755 |
-
return defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $
|
756 |
}
|
757 |
|
758 |
/**
|
759 |
* Hides add to cart on wishlist
|
760 |
*
|
761 |
-
* @param
|
762 |
-
* @param
|
763 |
*
|
764 |
* @return string
|
765 |
* @since 1.2.2
|
@@ -813,19 +833,19 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
813 |
|
814 |
}
|
815 |
|
816 |
-
//
|
817 |
$classes = implode( ', ', apply_filters( 'ywctm_catalog_classes', $args ) );
|
818 |
|
819 |
ob_start();
|
820 |
?>
|
821 |
<style type="text/css">
|
822 |
-
<?php echo $classes; ?>
|
823 |
{
|
824 |
display: none !important
|
825 |
}
|
826 |
</style>
|
827 |
<?php
|
828 |
-
echo ob_get_clean();
|
829 |
}
|
830 |
|
831 |
}
|
@@ -839,14 +859,14 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
839 |
*
|
840 |
* @return void
|
841 |
* @since 1.0.0
|
842 |
-
* @author
|
843 |
*/
|
844 |
public function plugin_fw_loader() {
|
845 |
if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
|
846 |
global $plugin_fw_data;
|
847 |
if ( ! empty( $plugin_fw_data ) ) {
|
848 |
$plugin_fw_file = array_shift( $plugin_fw_data );
|
849 |
-
require_once
|
850 |
}
|
851 |
}
|
852 |
}
|
@@ -858,12 +878,12 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
858 |
*
|
859 |
* @return void
|
860 |
* @since 1.0.0
|
861 |
-
* @author
|
862 |
*/
|
863 |
public function premium_tab() {
|
864 |
-
$premium_tab_template = YWCTM_TEMPLATE_PATH . '/admin/' . $this->
|
865 |
if ( file_exists( $premium_tab_template ) ) {
|
866 |
-
include_once
|
867 |
}
|
868 |
}
|
869 |
|
@@ -872,27 +892,28 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
872 |
*
|
873 |
* @return string The premium landing link
|
874 |
* @since 1.0.0
|
875 |
-
* @author
|
876 |
*/
|
877 |
public function get_premium_landing_uri() {
|
878 |
-
return $this->
|
879 |
}
|
880 |
|
881 |
/**
|
882 |
* Action Links
|
883 |
*
|
884 |
-
*
|
885 |
*
|
886 |
-
* @param
|
887 |
*
|
888 |
-
* @return
|
889 |
* @since 1.0.0
|
890 |
-
*
|
|
|
891 |
* @use plugin_action_links_{$plugin_file_name}
|
892 |
*/
|
893 |
public function action_links( $links ) {
|
894 |
|
895 |
-
$links = yith_add_action_links( $links, $this->
|
896 |
|
897 |
return $links;
|
898 |
|
@@ -901,18 +922,18 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
901 |
/**
|
902 |
* Plugin row meta
|
903 |
*
|
904 |
-
*
|
905 |
*
|
906 |
-
* @param
|
907 |
-
* @param
|
908 |
-
* @param
|
909 |
-
* @param
|
910 |
-
* @param
|
911 |
-
* @param
|
912 |
*
|
913 |
* @return array
|
914 |
* @since 1.0.0
|
915 |
-
* @author
|
916 |
* @use plugin_row_meta
|
917 |
*/
|
918 |
public function plugin_row_meta( $new_row_meta_args, $plugin_meta, $plugin_file, $plugin_data, $status, $init_file = 'YWCTM_FREE_INIT' ) {
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
+
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
+
}
|
16 |
|
17 |
if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
18 |
|
33 |
* @var /Yit_Plugin_Panel object
|
34 |
* @see plugin-fw/lib/yit-plugin-panel.php
|
35 |
*/
|
36 |
+
protected $panel;
|
37 |
|
38 |
/**
|
39 |
+
* Premium tab template file name
|
40 |
+
*
|
41 |
+
* @var string
|
42 |
*/
|
43 |
+
protected $premium = 'premium.php';
|
44 |
|
45 |
/**
|
46 |
+
* Premium version landing link
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
*/
|
50 |
+
protected $premium_landing = 'https://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/';
|
51 |
|
52 |
/**
|
53 |
+
* Plugin official documentation
|
54 |
+
*
|
55 |
+
* @var string
|
56 |
*/
|
57 |
+
protected $official_documentation = 'https://docs.yithemes.com/yith-woocommerce-catalog-mode/';
|
58 |
|
59 |
/**
|
60 |
+
* Yith WooCommerce Catalog Mode panel page
|
61 |
+
*
|
62 |
+
* @var string
|
63 |
*/
|
64 |
+
protected $panel_page = 'yith_wc_catalog_mode_panel';
|
65 |
|
66 |
/**
|
67 |
* Single instance of the class
|
80 |
public static function get_instance() {
|
81 |
|
82 |
if ( is_null( self::$instance ) ) {
|
83 |
+
self::$instance = new self();
|
84 |
}
|
85 |
|
86 |
return self::$instance;
|
98 |
*/
|
99 |
public function __construct() {
|
100 |
|
101 |
+
// Load Plugin Framework.
|
102 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
103 |
|
104 |
+
// Add action links.
|
105 |
add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
|
106 |
add_filter( 'yith_show_plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 5 );
|
107 |
add_action( 'init', array( $this, 'set_plugin_requirements' ), 20 );
|
139 |
*/
|
140 |
public function include_files() {
|
141 |
|
142 |
+
// Check if options should be upgraded.
|
143 |
$update_path = YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-install.php';
|
144 |
if ( ( '' === get_option( 'ywctm_update_version' ) || YWCTM_VERSION === get_transient( 'ywctm_prune_settings' ) ) && file_exists( $update_path ) ) {
|
145 |
+
include_once $update_path;
|
146 |
}
|
147 |
|
148 |
+
include_once 'includes/ywctm-functions.php';
|
149 |
|
150 |
}
|
151 |
|
156 |
/**
|
157 |
* Initialize custom fields
|
158 |
*
|
159 |
+
* @param string $path Template Path.
|
160 |
+
* @param array $field Field options.
|
161 |
*
|
162 |
* @return string
|
163 |
* @since 2.0.0
|
180 |
/**
|
181 |
* Sanitize array fields
|
182 |
*
|
183 |
+
* @param mixed $value Option value.
|
184 |
+
* @param array $option Option array.
|
185 |
*
|
186 |
* @return string
|
187 |
* @since 2.0.0
|
216 |
|
217 |
wp_register_style( 'ywctm-admin', yit_load_css_file( YWCTM_ASSETS_URL . 'css/admin.css' ), array(), YWCTM_VERSION );
|
218 |
|
219 |
+
$getted = $_GET; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
220 |
+
|
221 |
+
if ( ! empty( $getted['page'] ) && ( $getted['page'] === $this->panel_page || 'yith_vendor_ctm_settings' === $getted['page'] ) ) {
|
222 |
wp_enqueue_style( 'ywctm-admin' );
|
223 |
}
|
224 |
|
235 |
*/
|
236 |
public function add_menu_page() {
|
237 |
|
238 |
+
if ( ! empty( $this->panel ) ) {
|
239 |
return;
|
240 |
}
|
241 |
|
266 |
'capability' => 'manage_options',
|
267 |
'parent' => '',
|
268 |
'parent_page' => 'yith_plugin_panel',
|
269 |
+
'page' => $this->panel_page,
|
270 |
'admin-tabs' => $admin_tabs,
|
271 |
'options-path' => YWCTM_DIR . '/plugin-options',
|
272 |
'class' => yith_set_wrapper_class(),
|
273 |
);
|
274 |
|
275 |
+
$this->panel = new YIT_Plugin_Panel_WooCommerce( $args );
|
276 |
|
277 |
}
|
278 |
|
315 |
/**
|
316 |
* Removes Cart and checkout pages from menu
|
317 |
*
|
318 |
+
* @param array $pages Menu pages.
|
319 |
*
|
320 |
* @return array
|
321 |
* @since 1.0.4
|
367 |
$cart = is_page( wc_get_page_id( 'cart' ) );
|
368 |
$checkout = is_page( wc_get_page_id( 'checkout' ) );
|
369 |
|
370 |
+
wp_reset_postdata();
|
371 |
|
372 |
if ( $cart || $checkout ) {
|
373 |
+
wp_safe_redirect( home_url() );
|
374 |
exit;
|
375 |
}
|
376 |
|
391 |
|
392 |
global $post;
|
393 |
|
394 |
+
$post_id = $post && $post instanceof WP_Post ? $post->ID : '';
|
395 |
|
396 |
if ( ywctm_is_wpml_active() && apply_filters( 'ywctm_wpml_use_default_language_settings', false ) ) {
|
397 |
$post_id = yit_wpml_object_id( $post_id, 'product', true, wpml_get_default_language() );
|
408 |
/**
|
409 |
* Check if Catalog mode must be applied to current user
|
410 |
*
|
411 |
+
* @param integer $post_id The post ID.
|
412 |
*
|
413 |
* @return boolean
|
414 |
* @since 1.3.0
|
464 |
/**
|
465 |
* Checks if "Add to cart" needs to be hidden
|
466 |
*
|
467 |
+
* @param boolean $single Check if is single page.
|
468 |
+
* @param integer|boolean $product_id The product ID.
|
469 |
+
* @param boolean $ignore_variations Should ignore variations.
|
470 |
*
|
471 |
* @return boolean
|
472 |
* @since 1.0.0
|
511 |
|
512 |
if ( ! $single ) {
|
513 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
514 |
+
// APPLY_FILTER: ywctm_hide_variations_on_loop: hide variations only on loop.
|
515 |
$hide_variations = apply_filters( 'ywctm_hide_variations_on_loop', $hide_variations );
|
516 |
$is_variable = $product->is_type( 'variable' );
|
517 |
$is_grouped = $product->is_type( 'grouped' );
|
560 |
}
|
561 |
}
|
562 |
|
563 |
+
// Set "Add to cart" button as hidden.
|
564 |
if ( $hide_add_to_cart && $this->apply_catalog_mode( $product_id ) && $can_hide ) {
|
565 |
$hide = true;
|
566 |
}
|
567 |
|
568 |
+
// If "Add to cart" button is set as visible but price is hidden then hide it anyway.
|
569 |
if ( apply_filters( 'ywctm_check_price_hidden', false, $product_id ) && $can_hide ) {
|
570 |
$hide = true;
|
571 |
}
|
590 |
*/
|
591 |
public function enqueue_styles_frontend() {
|
592 |
|
593 |
+
// APPLY_FILTER: ywctm_css_classes: CSS selector of elements that should be hidden.
|
594 |
$classes = apply_filters( 'ywctm_css_classes', array() );
|
595 |
|
596 |
if ( ! empty( $classes ) ) {
|
604 |
/**
|
605 |
* Hide cart widget if needed
|
606 |
*
|
607 |
+
* @param array $classes CSS Classes array.
|
608 |
*
|
609 |
* @return array
|
610 |
* @since 1.3.7
|
623 |
if ( 'storefront' === $theme_name ) {
|
624 |
$args[] = '.site-header-cart.menu';
|
625 |
}
|
626 |
+
// APPLY_FILTER: ywctm_cart_widget_classes: CSS selector of cart widgets.
|
627 |
$classes = array_merge( $classes, apply_filters( 'ywctm_cart_widget_classes', $args ) );
|
628 |
|
629 |
}
|
635 |
/**
|
636 |
* Hides "Add to cart" button from single product page
|
637 |
*
|
638 |
+
* @param array $classes CSS Classes array.
|
639 |
*
|
640 |
* @return array
|
641 |
* @since 1.4.4
|
661 |
$args[] = '.single_variation_wrap .variations_button';
|
662 |
}
|
663 |
|
664 |
+
// APPLY_FILTER: ywctm_cart_widget_classes: CSS selector of add to cart buttons.
|
665 |
$classes = array_merge( $classes, apply_filters( 'ywctm_catalog_classes', $args ) );
|
666 |
|
667 |
}
|
673 |
/**
|
674 |
* Checks if "Add to cart" needs to be avoided
|
675 |
*
|
676 |
+
* @param boolean $passed Add to cart valid checker.
|
677 |
+
* @param integer $product_id The product ID.
|
678 |
*
|
679 |
* @return boolean
|
680 |
* @since 1.0.5
|
712 |
|
713 |
$hide_add_to_cart = ( 'hide' === $behavior && 'all' === $where );
|
714 |
|
715 |
+
// Set "Add to cart" button as hidden.
|
716 |
if ( $hide_add_to_cart && $this->apply_catalog_mode( $product_id ) ) {
|
717 |
$passed = false;
|
718 |
}
|
719 |
|
720 |
+
// If "Add to cart" button is set as visible but price is hidden then hide it anyway.
|
721 |
if ( apply_filters( 'ywctm_check_price_hidden', false, $product_id ) ) {
|
722 |
$passed = false;
|
723 |
}
|
734 |
/**
|
735 |
* Checks if "Add to cart" needs to be hidden
|
736 |
*
|
737 |
+
* @param boolean $x Unused.
|
738 |
+
* @param integer|boolean $product_id The Product ID.
|
739 |
*
|
740 |
* @return bool
|
741 |
* @since 1.0.2
|
770 |
public function is_quick_view() {
|
771 |
|
772 |
$actions = apply_filters( 'ywctm_quick_view_actions', array( 'yith_load_product_quick_view', 'yit_load_product_quick_view' ) );
|
773 |
+
$request = $_REQUEST; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
774 |
|
775 |
+
return defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $request['action'] ) && in_array( $request['action'], $actions, true );
|
776 |
}
|
777 |
|
778 |
/**
|
779 |
* Hides add to cart on wishlist
|
780 |
*
|
781 |
+
* @param string $value Wishlist button.
|
782 |
+
* @param WC_Product $product The Product object.
|
783 |
*
|
784 |
* @return string
|
785 |
* @since 1.2.2
|
833 |
|
834 |
}
|
835 |
|
836 |
+
// APPLY_FILTER: ywctm_cart_widget_classes: CSS selector of add to cart buttons.
|
837 |
$classes = implode( ', ', apply_filters( 'ywctm_catalog_classes', $args ) );
|
838 |
|
839 |
ob_start();
|
840 |
?>
|
841 |
<style type="text/css">
|
842 |
+
<?php echo esc_attr( $classes ); ?>
|
843 |
{
|
844 |
display: none !important
|
845 |
}
|
846 |
</style>
|
847 |
<?php
|
848 |
+
echo ob_get_clean(); //phpcs:ignore
|
849 |
}
|
850 |
|
851 |
}
|
859 |
*
|
860 |
* @return void
|
861 |
* @since 1.0.0
|
862 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
863 |
*/
|
864 |
public function plugin_fw_loader() {
|
865 |
if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
|
866 |
global $plugin_fw_data;
|
867 |
if ( ! empty( $plugin_fw_data ) ) {
|
868 |
$plugin_fw_file = array_shift( $plugin_fw_data );
|
869 |
+
require_once $plugin_fw_file;
|
870 |
}
|
871 |
}
|
872 |
}
|
878 |
*
|
879 |
* @return void
|
880 |
* @since 1.0.0
|
881 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
882 |
*/
|
883 |
public function premium_tab() {
|
884 |
+
$premium_tab_template = YWCTM_TEMPLATE_PATH . '/admin/' . $this->premium;
|
885 |
if ( file_exists( $premium_tab_template ) ) {
|
886 |
+
include_once $premium_tab_template;
|
887 |
}
|
888 |
}
|
889 |
|
892 |
*
|
893 |
* @return string The premium landing link
|
894 |
* @since 1.0.0
|
895 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
896 |
*/
|
897 |
public function get_premium_landing_uri() {
|
898 |
+
return $this->premium_landing;
|
899 |
}
|
900 |
|
901 |
/**
|
902 |
* Action Links
|
903 |
*
|
904 |
+
* Add the action links to plugin admin page
|
905 |
*
|
906 |
+
* @param array $links links plugin array.
|
907 |
*
|
908 |
+
* @return array
|
909 |
* @since 1.0.0
|
910 |
+
*
|
911 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
912 |
* @use plugin_action_links_{$plugin_file_name}
|
913 |
*/
|
914 |
public function action_links( $links ) {
|
915 |
|
916 |
+
$links = yith_add_action_links( $links, $this->panel_page, false );
|
917 |
|
918 |
return $links;
|
919 |
|
922 |
/**
|
923 |
* Plugin row meta
|
924 |
*
|
925 |
+
* Add the action links to plugin admin page
|
926 |
*
|
927 |
+
* @param array $new_row_meta_args Row meta args.
|
928 |
+
* @param array $plugin_meta Plugin meta.
|
929 |
+
* @param string $plugin_file Plugin File.
|
930 |
+
* @param array $plugin_data Plugin data.
|
931 |
+
* @param string $status Status.
|
932 |
+
* @param string $init_file Init file.
|
933 |
*
|
934 |
* @return array
|
935 |
* @since 1.0.0
|
936 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
937 |
* @use plugin_row_meta
|
938 |
*/
|
939 |
public function plugin_row_meta( $new_row_meta_args, $plugin_meta, $plugin_file, $plugin_data, $status, $init_file = 'YWCTM_FREE_INIT' ) {
|
includes/actions/update-2.0.0/ywctm-install.php
CHANGED
@@ -6,22 +6,24 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly
|
13 |
}
|
14 |
|
15 |
if ( defined( 'YWCTM_PREMIUM' ) && YWCTM_PREMIUM ) {
|
16 |
|
17 |
if ( '' !== get_option( 'ywctm_enable_plugin' ) ) {
|
18 |
-
include_once
|
19 |
} else {
|
20 |
-
include_once
|
21 |
}
|
22 |
} else {
|
23 |
if ( '' !== get_option( 'ywctm_enable_plugin' ) ) {
|
24 |
-
include_once
|
25 |
} else {
|
26 |
update_option( 'ywctm_update_version', YWCTM_VERSION );
|
27 |
}
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
}
|
16 |
|
17 |
if ( defined( 'YWCTM_PREMIUM' ) && YWCTM_PREMIUM ) {
|
18 |
|
19 |
if ( '' !== get_option( 'ywctm_enable_plugin' ) ) {
|
20 |
+
include_once YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-update-premium.php';
|
21 |
} else {
|
22 |
+
include_once YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-default-buttons.php';
|
23 |
}
|
24 |
} else {
|
25 |
if ( '' !== get_option( 'ywctm_enable_plugin' ) ) {
|
26 |
+
include_once YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-update.php';
|
27 |
} else {
|
28 |
update_option( 'ywctm_update_version', YWCTM_VERSION );
|
29 |
}
|
includes/actions/update-2.0.0/ywctm-update.php
CHANGED
@@ -6,10 +6,12 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly
|
13 |
}
|
14 |
|
15 |
if ( ! function_exists( 'ywctm_upgrade_2_0_0' ) ) {
|
@@ -78,8 +80,8 @@ if ( ! function_exists( 'ywctm_update_callback' ) ) {
|
|
78 |
/**
|
79 |
* Run an update callback when triggered by ActionScheduler.
|
80 |
*
|
81 |
-
* @param
|
82 |
-
* @param
|
83 |
*
|
84 |
* @return void
|
85 |
* @since 2.0.0
|
@@ -108,12 +110,12 @@ if ( ! function_exists( 'ywctm_upgrade_settings_premium' ) ) {
|
|
108 |
|
109 |
update_option( 'ywctm_apply_users', 'all' );
|
110 |
|
111 |
-
//Disable shop settings
|
112 |
if ( 'yes' === get_option( 'ywctm_hide_cart_header' ) ) {
|
113 |
update_option( 'ywctm_disable_shop', 'yes' );
|
114 |
}
|
115 |
|
116 |
-
//Add to cart and exclusions settings
|
117 |
$hide_single = get_option( 'ywctm_hide_add_to_cart_single' );
|
118 |
$hide_loop = get_option( 'ywctm_hide_add_to_cart_loop' );
|
119 |
if ( 'no' === $hide_loop && 'no' === $hide_single ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
}
|
16 |
|
17 |
if ( ! function_exists( 'ywctm_upgrade_2_0_0' ) ) {
|
80 |
/**
|
81 |
* Run an update callback when triggered by ActionScheduler.
|
82 |
*
|
83 |
+
* @param string $callback The callback.
|
84 |
+
* @param array $args The arguments.
|
85 |
*
|
86 |
* @return void
|
87 |
* @since 2.0.0
|
110 |
|
111 |
update_option( 'ywctm_apply_users', 'all' );
|
112 |
|
113 |
+
// Disable shop settings.
|
114 |
if ( 'yes' === get_option( 'ywctm_hide_cart_header' ) ) {
|
115 |
update_option( 'ywctm_disable_shop', 'yes' );
|
116 |
}
|
117 |
|
118 |
+
// Add to cart and exclusions settings.
|
119 |
$hide_single = get_option( 'ywctm_hide_add_to_cart_single' );
|
120 |
$hide_loop = get_option( 'ywctm_hide_add_to_cart_loop' );
|
121 |
if ( 'no' === $hide_loop && 'no' === $hide_single ) {
|
includes/admin/fields/yith-multiple-field.php
CHANGED
@@ -7,15 +7,17 @@
|
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*
|
10 |
-
* @
|
11 |
*/
|
12 |
|
13 |
-
! defined( 'ABSPATH' )
|
|
|
|
|
14 |
|
15 |
-
extract( $field );
|
16 |
$value = maybe_unserialize( $value );
|
17 |
if ( ! empty( $fields ) && is_array( $fields ) ) { ?>
|
18 |
-
<div id="<?php echo esc_attr( $id ); ?>" class="<?php echo isset( $class ) ? $class : ''; ?>">
|
19 |
<?php
|
20 |
foreach ( $fields as $key => $field ) {
|
21 |
$allowed_types = array( 'select', 'select-buttons', 'number', 'slider', 'hidden' );
|
@@ -34,12 +36,12 @@ if ( ! empty( $fields ) && is_array( $fields ) ) { ?>
|
|
34 |
?>
|
35 |
<?php if ( isset( $field['inline-label'] ) && '' !== $field['inline-label'] ) : ?>
|
36 |
<div class="option-element">
|
37 |
-
<span><?php echo $field['inline-label']; ?></span>
|
38 |
</div>
|
39 |
<?php endif; ?>
|
40 |
-
<div class="option-element <?php echo $field['type']; ?>">
|
41 |
<?php if ( isset( $field['label'] ) && '' !== $field['label'] ) : ?>
|
42 |
-
<label for="<?php echo $field['id']; ?>"><?php echo $field['label']; ?></label>
|
43 |
<?php endif; ?>
|
44 |
<?php yith_plugin_fw_get_field( $field, true ); ?>
|
45 |
</div>
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
+
}
|
16 |
|
17 |
+
extract( $field ); //phpcs:ignore
|
18 |
$value = maybe_unserialize( $value );
|
19 |
if ( ! empty( $fields ) && is_array( $fields ) ) { ?>
|
20 |
+
<div id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( isset( $class ) ? $class : '' ); ?>">
|
21 |
<?php
|
22 |
foreach ( $fields as $key => $field ) {
|
23 |
$allowed_types = array( 'select', 'select-buttons', 'number', 'slider', 'hidden' );
|
36 |
?>
|
37 |
<?php if ( isset( $field['inline-label'] ) && '' !== $field['inline-label'] ) : ?>
|
38 |
<div class="option-element">
|
39 |
+
<span><?php echo esc_attr( $field['inline-label'] ); ?></span>
|
40 |
</div>
|
41 |
<?php endif; ?>
|
42 |
+
<div class="option-element <?php echo esc_attr( $field['type'] ); ?>">
|
43 |
<?php if ( isset( $field['label'] ) && '' !== $field['label'] ) : ?>
|
44 |
+
<label for="<?php echo esc_attr( $field['id'] ); ?>"><?php echo esc_attr( $field['label'] ); ?></label>
|
45 |
<?php endif; ?>
|
46 |
<?php yith_plugin_fw_get_field( $field, true ); ?>
|
47 |
</div>
|
includes/ywctm-functions.php
CHANGED
@@ -6,10 +6,12 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly
|
13 |
}
|
14 |
|
15 |
if ( ! function_exists( 'ywctm_get_theme_name' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
}
|
16 |
|
17 |
if ( ! function_exists( 'ywctm_get_theme_name' ) ) {
|
init.php
CHANGED
@@ -5,20 +5,29 @@
|
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
-
* Version: 2.0.
|
9 |
* Author URI: https://yithemes.com/
|
10 |
* WC requires at least: 4.0.0
|
11 |
-
* WC tested up to: 4.
|
|
|
|
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
-
exit;
|
16 |
-
}
|
17 |
|
18 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
19 |
-
require_once
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
function ywctm_install_woocommerce_admin_notice() {
|
23 |
?>
|
24 |
<div class="error">
|
@@ -32,6 +41,13 @@ function ywctm_install_woocommerce_admin_notice() {
|
|
32 |
<?php
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
function ywctm_install_free_admin_notice() {
|
36 |
?>
|
37 |
<div class="error">
|
@@ -45,7 +61,7 @@ function ywctm_install_free_admin_notice() {
|
|
45 |
<?php
|
46 |
}
|
47 |
|
48 |
-
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.0.
|
49 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
50 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
51 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
@@ -57,10 +73,17 @@ function ywctm_install_free_admin_notice() {
|
|
57 |
|
58 |
/* Plugin Framework Version Check */
|
59 |
if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) && file_exists( YWCTM_DIR . 'plugin-fw/init.php' ) ) {
|
60 |
-
require_once
|
61 |
}
|
62 |
yit_maybe_plugin_fw_loader( YWCTM_DIR );
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
function ywctm_init() {
|
65 |
|
66 |
/* Load YWCTM text domain */
|
@@ -71,6 +94,13 @@ function ywctm_init() {
|
|
71 |
|
72 |
add_action( 'ywctm_init', 'ywctm_init' );
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
function ywctm_install() {
|
75 |
|
76 |
if ( ! function_exists( 'WC' ) ) {
|
@@ -105,8 +135,8 @@ if ( ! function_exists( 'YITH_WCTM' ) ) {
|
|
105 |
*/
|
106 |
function YITH_WCTM() { //phpcs:ignore
|
107 |
|
108 |
-
// Load required classes and functions
|
109 |
-
require_once
|
110 |
|
111 |
return YITH_WooCommerce_Catalog_Mode::get_instance();
|
112 |
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
* Version: 2.0.3
|
9 |
* Author URI: https://yithemes.com/
|
10 |
* WC requires at least: 4.0.0
|
11 |
+
* WC tested up to: 4.4.x
|
12 |
+
*
|
13 |
+
* @package YITH WooCommerce Catalog Mode
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
17 |
+
exit; // Exit if accessed directly.
|
18 |
+
}
|
19 |
|
20 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
21 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
22 |
}
|
23 |
|
24 |
+
/**
|
25 |
+
* Show error message if WooCommerce is disabled
|
26 |
+
*
|
27 |
+
* @return void
|
28 |
+
* @since 1.0.0
|
29 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
30 |
+
*/
|
31 |
function ywctm_install_woocommerce_admin_notice() {
|
32 |
?>
|
33 |
<div class="error">
|
41 |
<?php
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Show error message if premium version is enabled
|
46 |
+
*
|
47 |
+
* @return void
|
48 |
+
* @since 1.0.0
|
49 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
50 |
+
*/
|
51 |
function ywctm_install_free_admin_notice() {
|
52 |
?>
|
53 |
<div class="error">
|
61 |
<?php
|
62 |
}
|
63 |
|
64 |
+
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.0.3' );
|
65 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
66 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
67 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
73 |
|
74 |
/* Plugin Framework Version Check */
|
75 |
if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) && file_exists( YWCTM_DIR . 'plugin-fw/init.php' ) ) {
|
76 |
+
require_once YWCTM_DIR . 'plugin-fw/init.php';
|
77 |
}
|
78 |
yit_maybe_plugin_fw_loader( YWCTM_DIR );
|
79 |
|
80 |
+
/**
|
81 |
+
* Run plugin
|
82 |
+
*
|
83 |
+
* @return void
|
84 |
+
* @since 1.0.0
|
85 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
86 |
+
*/
|
87 |
function ywctm_init() {
|
88 |
|
89 |
/* Load YWCTM text domain */
|
94 |
|
95 |
add_action( 'ywctm_init', 'ywctm_init' );
|
96 |
|
97 |
+
/**
|
98 |
+
* Initialize plugin
|
99 |
+
*
|
100 |
+
* @return void
|
101 |
+
* @since 1.0.0
|
102 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
103 |
+
*/
|
104 |
function ywctm_install() {
|
105 |
|
106 |
if ( ! function_exists( 'WC' ) ) {
|
135 |
*/
|
136 |
function YITH_WCTM() { //phpcs:ignore
|
137 |
|
138 |
+
// Load required classes and functions.
|
139 |
+
require_once YWCTM_DIR . 'class-yith-woocommerce-catalog-mode.php';
|
140 |
|
141 |
return YITH_WooCommerce_Catalog_Mode::get_instance();
|
142 |
|
languages/yith-woocommerce-catalog-mode.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Catalog Mode package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.0.
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,96 +24,96 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
28 |
-
#: plugin-options/settings-options.php:
|
29 |
msgid "Settings"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
33 |
msgid "Premium Version"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: init.php:
|
37 |
#. translators: %s name of the plugin
|
38 |
msgid "%s is enabled but not effective. In order to work, it requires WooCommerce."
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: init.php:
|
42 |
#. translators: %s name of the plugin
|
43 |
msgid ""
|
44 |
"You can't activate the free version of %s while you are using the premium "
|
45 |
"one."
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: plugin-options/settings-options.php:
|
49 |
msgid "Catalog mode for administrators"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: plugin-options/settings-options.php:
|
53 |
msgid "Choose to enable the Catalog Mode for admins."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: plugin-options/settings-options.php:
|
57 |
msgid "Disable shop"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: plugin-options/settings-options.php:
|
61 |
msgid ""
|
62 |
"Use this option to hide the \"Cart\" page, \"Checkout\" page and all the "
|
63 |
"\"Add to Cart\" buttons in the shop."
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: plugin-options/settings-options.php:
|
67 |
msgid "Hide \"Add to Cart\" in:"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: plugin-options/settings-options.php:
|
71 |
msgid "Choose where to hide \"Add to Cart\"."
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: plugin-options/settings-options.php:
|
75 |
msgid "All pages"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: plugin-options/settings-options.php:
|
79 |
msgid "Shop page"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: plugin-options/settings-options.php:
|
83 |
msgid "Product page"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: plugin-options/settings-options.php:
|
87 |
msgid "Hide product variations"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: plugin-options/settings-options.php:
|
91 |
msgid "Use this option to hide product variations where \"add to cart\" is hidden."
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: templates/admin/premium.php:
|
95 |
#. translators: %1$s opening span, %2$s closing span, %3$s BR tag
|
96 |
msgid ""
|
97 |
"Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog "
|
98 |
"Mode%2$s to benefit from all features!"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: templates/admin/premium.php:
|
102 |
msgid "Upgrade"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: templates/admin/premium.php:
|
106 |
msgid "Premium Features"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: templates/admin/premium.php:
|
110 |
msgid ""
|
111 |
"Build up a catalogue of products and online services and encourage your "
|
112 |
"customers to contact you to get a dedicated price estimate or additional "
|
113 |
"information."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: templates/admin/premium.php:
|
117 |
msgid ""
|
118 |
"Are you starting an e-commerce website, but still it is not ready for "
|
119 |
"automatic sales? Your store might be temporarily closed due to holidays or "
|
@@ -122,7 +122,7 @@ msgid ""
|
|
122 |
"their shop into an online catalog."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: templates/admin/premium.php:
|
126 |
msgid ""
|
127 |
"Are you interested in displaying a catalogue with products without making "
|
128 |
"them immediately available for sale? Or do you want to filter buyers and "
|
@@ -130,7 +130,7 @@ msgid ""
|
|
130 |
"would like to leave products online?"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: templates/admin/premium.php:
|
134 |
msgid ""
|
135 |
"YITH WooCommerce Catalog Mode allows you to turn your online shop into a "
|
136 |
"catalogue, by removing Add to Cart buttons and any access to checkout "
|
@@ -138,13 +138,13 @@ msgid ""
|
|
138 |
"text labels and inquiry forms."
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: templates/admin/premium.php:
|
142 |
msgid ""
|
143 |
"Enable ‘Massive catalog mode’ with one click and disable the Cart, the "
|
144 |
"Checkout and all add to cart buttons of your shop in a few quick moves."
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: templates/admin/premium.php:
|
148 |
msgid ""
|
149 |
"If you have a catalogue with many products and you want to quickly hide the "
|
150 |
"Cart button and the Cart page, you will be able to do that with one click. "
|
@@ -152,13 +152,13 @@ msgid ""
|
|
152 |
"be immediately converted into an e-commerce shop in full swing."
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: templates/admin/premium.php:
|
156 |
msgid ""
|
157 |
"Hide prices and Cart buttons from all products or only from selected "
|
158 |
"products, tags or categories."
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: templates/admin/premium.php:
|
162 |
msgid ""
|
163 |
"Do you want to make only some products purchasable and set up the catalog "
|
164 |
"mode for others that cannot be purchased straight away? You’ll be able to "
|
@@ -166,13 +166,13 @@ msgid ""
|
|
166 |
"choice."
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: templates/admin/premium.php:
|
170 |
msgid ""
|
171 |
"Enable the catalog mode for unregistered users or only for users from "
|
172 |
"specific countries."
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: templates/admin/premium.php:
|
176 |
msgid ""
|
177 |
"Do you want to show your product prices only to users who have registered "
|
178 |
"an account? Or maybe restrict purchases only to users from a specific "
|
@@ -180,13 +180,13 @@ msgid ""
|
|
180 |
"Catalog Mode can help you deal with."
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: templates/admin/premium.php:
|
184 |
msgid ""
|
185 |
"Create custom calls to action and labels to replace the price and Cart "
|
186 |
"buttons."
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: templates/admin/premium.php:
|
190 |
msgid ""
|
191 |
"If your products cannot be purchased straight away, you probably need to "
|
192 |
"push users to contact you and ask for a dedicated price estimate or simply "
|
@@ -195,13 +195,13 @@ msgid ""
|
|
195 |
"persuasive texts and calls to action for your products."
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: templates/admin/premium.php:
|
199 |
msgid ""
|
200 |
"Enable an inquiry form on your product pages to help your customers contact "
|
201 |
"you easily."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: templates/admin/premium.php:
|
205 |
msgid ""
|
206 |
"Choose whether you want to enable a contact form on your product pages to "
|
207 |
"make it easier for your users to get in touch with you. The enquiry form is "
|
@@ -211,11 +211,11 @@ msgid ""
|
|
211 |
"request has been submitted."
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: templates/admin/premium.php:
|
215 |
msgid "Integrate the catalog mode with YITH WooCommerce Multi-vendor"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: templates/admin/premium.php:
|
219 |
msgid ""
|
220 |
"If you use YITH Multi Vendor, you can let every vendor set up and control "
|
221 |
"the catalog mode for their own shop."
|
@@ -231,22 +231,22 @@ msgid ""
|
|
231 |
"e-commerce shop on <strong>YITH</strong></a>"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
235 |
msgctxt "general settings tab name"
|
236 |
msgid "Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
240 |
msgctxt "exclusion settings tab name"
|
241 |
msgid "Exclusion List"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
245 |
msgctxt "inquiry form settings tab name"
|
246 |
msgid "Inquiry Form"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
250 |
msgctxt "buttons & labels settings tab name"
|
251 |
msgid "Buttons & Labels"
|
252 |
msgstr ""
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Catalog Mode package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.0.3\n"
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-23 11:50:23+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: class-yith-woocommerce-catalog-mode.php:254
|
28 |
+
#: plugin-options/settings-options.php:20
|
29 |
msgid "Settings"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: class-yith-woocommerce-catalog-mode.php:255
|
33 |
msgid "Premium Version"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: init.php:37
|
37 |
#. translators: %s name of the plugin
|
38 |
msgid "%s is enabled but not effective. In order to work, it requires WooCommerce."
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: init.php:57
|
42 |
#. translators: %s name of the plugin
|
43 |
msgid ""
|
44 |
"You can't activate the free version of %s while you are using the premium "
|
45 |
"one."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: plugin-options/settings-options.php:24
|
49 |
msgid "Catalog mode for administrators"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: plugin-options/settings-options.php:27
|
53 |
msgid "Choose to enable the Catalog Mode for admins."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: plugin-options/settings-options.php:32
|
57 |
msgid "Disable shop"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: plugin-options/settings-options.php:35
|
61 |
msgid ""
|
62 |
"Use this option to hide the \"Cart\" page, \"Checkout\" page and all the "
|
63 |
"\"Add to Cart\" buttons in the shop."
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: plugin-options/settings-options.php:42
|
67 |
msgid "Hide \"Add to Cart\" in:"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: plugin-options/settings-options.php:43
|
71 |
msgid "Choose where to hide \"Add to Cart\"."
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: plugin-options/settings-options.php:52
|
75 |
msgid "All pages"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: plugin-options/settings-options.php:53
|
79 |
msgid "Shop page"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: plugin-options/settings-options.php:54
|
83 |
msgid "Product page"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: plugin-options/settings-options.php:72
|
87 |
msgid "Hide product variations"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: plugin-options/settings-options.php:75
|
91 |
msgid "Use this option to hide product variations where \"add to cart\" is hidden."
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: templates/admin/premium.php:210 templates/admin/premium.php:337
|
95 |
#. translators: %1$s opening span, %2$s closing span, %3$s BR tag
|
96 |
msgid ""
|
97 |
"Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog "
|
98 |
"Mode%2$s to benefit from all features!"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: templates/admin/premium.php:214 templates/admin/premium.php:341
|
102 |
msgid "Upgrade"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: templates/admin/premium.php:220
|
106 |
msgid "Premium Features"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: templates/admin/premium.php:227
|
110 |
msgid ""
|
111 |
"Build up a catalogue of products and online services and encourage your "
|
112 |
"customers to contact you to get a dedicated price estimate or additional "
|
113 |
"information."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: templates/admin/premium.php:230
|
117 |
msgid ""
|
118 |
"Are you starting an e-commerce website, but still it is not ready for "
|
119 |
"automatic sales? Your store might be temporarily closed due to holidays or "
|
122 |
"their shop into an online catalog."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: templates/admin/premium.php:233
|
126 |
msgid ""
|
127 |
"Are you interested in displaying a catalogue with products without making "
|
128 |
"them immediately available for sale? Or do you want to filter buyers and "
|
130 |
"would like to leave products online?"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: templates/admin/premium.php:236
|
134 |
msgid ""
|
135 |
"YITH WooCommerce Catalog Mode allows you to turn your online shop into a "
|
136 |
"catalogue, by removing Add to Cart buttons and any access to checkout "
|
138 |
"text labels and inquiry forms."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: templates/admin/premium.php:245
|
142 |
msgid ""
|
143 |
"Enable ‘Massive catalog mode’ with one click and disable the Cart, the "
|
144 |
"Checkout and all add to cart buttons of your shop in a few quick moves."
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: templates/admin/premium.php:248
|
148 |
msgid ""
|
149 |
"If you have a catalogue with many products and you want to quickly hide the "
|
150 |
"Cart button and the Cart page, you will be able to do that with one click. "
|
152 |
"be immediately converted into an e-commerce shop in full swing."
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: templates/admin/premium.php:263
|
156 |
msgid ""
|
157 |
"Hide prices and Cart buttons from all products or only from selected "
|
158 |
"products, tags or categories."
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: templates/admin/premium.php:266
|
162 |
msgid ""
|
163 |
"Do you want to make only some products purchasable and set up the catalog "
|
164 |
"mode for others that cannot be purchased straight away? You’ll be able to "
|
166 |
"choice."
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: templates/admin/premium.php:275
|
170 |
msgid ""
|
171 |
"Enable the catalog mode for unregistered users or only for users from "
|
172 |
"specific countries."
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: templates/admin/premium.php:278
|
176 |
msgid ""
|
177 |
"Do you want to show your product prices only to users who have registered "
|
178 |
"an account? Or maybe restrict purchases only to users from a specific "
|
180 |
"Catalog Mode can help you deal with."
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: templates/admin/premium.php:293
|
184 |
msgid ""
|
185 |
"Create custom calls to action and labels to replace the price and Cart "
|
186 |
"buttons."
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: templates/admin/premium.php:296
|
190 |
msgid ""
|
191 |
"If your products cannot be purchased straight away, you probably need to "
|
192 |
"push users to contact you and ask for a dedicated price estimate or simply "
|
195 |
"persuasive texts and calls to action for your products."
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: templates/admin/premium.php:305
|
199 |
msgid ""
|
200 |
"Enable an inquiry form on your product pages to help your customers contact "
|
201 |
"you easily."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: templates/admin/premium.php:308
|
205 |
msgid ""
|
206 |
"Choose whether you want to enable a contact form on your product pages to "
|
207 |
"make it easier for your users to get in touch with you. The enquiry form is "
|
211 |
"request has been submitted."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: templates/admin/premium.php:323
|
215 |
msgid "Integrate the catalog mode with YITH WooCommerce Multi-vendor"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: templates/admin/premium.php:326
|
219 |
msgid ""
|
220 |
"If you use YITH Multi Vendor, you can let every vendor set up and control "
|
221 |
"the catalog mode for their own shop."
|
231 |
"e-commerce shop on <strong>YITH</strong></a>"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: class-yith-woocommerce-catalog-mode.php:245
|
235 |
msgctxt "general settings tab name"
|
236 |
msgid "Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: class-yith-woocommerce-catalog-mode.php:246
|
240 |
msgctxt "exclusion settings tab name"
|
241 |
msgid "Exclusion List"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: class-yith-woocommerce-catalog-mode.php:247
|
245 |
msgctxt "inquiry form settings tab name"
|
246 |
msgid "Inquiry Form"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: class-yith-woocommerce-catalog-mode.php:248
|
250 |
msgctxt "buttons & labels settings tab name"
|
251 |
msgid "Buttons & Labels"
|
252 |
msgstr ""
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -670,7 +670,7 @@ li.yith-plugin-fw-tab-element {
|
|
670 |
margin: 0;
|
671 |
padding: 0;
|
672 |
display: inline-block;
|
673 |
-
|
674 |
overflow: visible;
|
675 |
z-index:10;
|
676 |
}
|
670 |
margin: 0;
|
671 |
padding: 0;
|
672 |
display: inline-block;
|
673 |
+
height: 37px;
|
674 |
overflow: visible;
|
675 |
z-index:10;
|
676 |
}
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -286,17 +286,22 @@ ul.yit-icons-manager-list li.active {
|
|
286 |
|
287 |
.yith-plugin-fw-checkbox-array__row {
|
288 |
margin-bottom : 10px;
|
|
|
289 |
}
|
290 |
|
291 |
.yith-plugin-fw-checkbox-array__row label {
|
292 |
display : inline-block !important;
|
293 |
width : auto !important;
|
294 |
float : none !important;
|
295 |
-
margin : 0 !important;
|
296 |
padding : 0 !important;
|
297 |
font-weight : 400 !important;
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
300 |
/* ------- Sidebar Layout ------- */
|
301 |
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
302 |
display : none;
|
@@ -662,7 +667,7 @@ YITH UI
|
|
662 |
.yith-plugin-fw-banner {
|
663 |
width : 100%;
|
664 |
height : 45px;
|
665 |
-
background : url(
|
666 |
display : flex;
|
667 |
align-items : center;
|
668 |
padding-right : -23px;
|
@@ -862,7 +867,7 @@ YITH UI
|
|
862 |
font-size : 30px;
|
863 |
font-weight : normal;
|
864 |
display : block;
|
865 |
-
margin-top : -
|
866 |
float : left;
|
867 |
margin-right : 15px;
|
868 |
}
|
@@ -1284,9 +1289,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1284 |
text-indent : -9999px;
|
1285 |
}
|
1286 |
|
1287 |
-
|
1288 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
|
1289 |
-
.woocommerce .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
|
1290 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
|
1291 |
float : right;
|
1292 |
color : #fff;
|
@@ -1297,15 +1300,6 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1297 |
text-indent : 0;
|
1298 |
}
|
1299 |
|
1300 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
|
1301 |
-
color : #000;
|
1302 |
-
}
|
1303 |
-
|
1304 |
-
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after
|
1305 |
-
.yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
|
1306 |
-
color : #000;
|
1307 |
-
}
|
1308 |
-
|
1309 |
.yith-plugin-ui .select2-container .select2-selection--multiple,
|
1310 |
.yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple {
|
1311 |
border : 0;
|
@@ -2061,8 +2055,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2061 |
line-height : 33px;
|
2062 |
}
|
2063 |
|
2064 |
-
.yith-plugin-ui .
|
2065 |
-
margin :
|
2066 |
}
|
2067 |
|
2068 |
.yith-plugin-ui .form-table td p.yith-section-description {
|
@@ -2119,6 +2113,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2119 |
.yith-plugin-ui span.description {
|
2120 |
margin-top : 10px;
|
2121 |
line-height : 20px;
|
|
|
2122 |
}
|
2123 |
|
2124 |
.yith-plugin-fw-option-with-description {
|
@@ -2399,4 +2394,4 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2399 |
.yith-plugin-ui input {
|
2400 |
font-size: 14px;
|
2401 |
}
|
2402 |
-
}
|
286 |
|
287 |
.yith-plugin-fw-checkbox-array__row {
|
288 |
margin-bottom : 10px;
|
289 |
+
display:flex;
|
290 |
}
|
291 |
|
292 |
.yith-plugin-fw-checkbox-array__row label {
|
293 |
display : inline-block !important;
|
294 |
width : auto !important;
|
295 |
float : none !important;
|
296 |
+
margin : 0 0 0 10px !important;
|
297 |
padding : 0 !important;
|
298 |
font-weight : 400 !important;
|
299 |
}
|
300 |
|
301 |
+
.yith-plugin-fw-checkbox-array__row label small{
|
302 |
+
display:block;
|
303 |
+
line-height: 2em;
|
304 |
+
}
|
305 |
/* ------- Sidebar Layout ------- */
|
306 |
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
307 |
display : none;
|
667 |
.yith-plugin-fw-banner {
|
668 |
width : 100%;
|
669 |
height : 45px;
|
670 |
+
background : #cfd9dd url(../images/banner-premium.png) no-repeat;
|
671 |
display : flex;
|
672 |
align-items : center;
|
673 |
padding-right : -23px;
|
867 |
font-size : 30px;
|
868 |
font-weight : normal;
|
869 |
display : block;
|
870 |
+
margin-top : -12px;
|
871 |
float : left;
|
872 |
margin-right : 15px;
|
873 |
}
|
1289 |
text-indent : -9999px;
|
1290 |
}
|
1291 |
|
1292 |
+
.yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
|
|
|
|
|
1293 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
|
1294 |
float : right;
|
1295 |
color : #fff;
|
1300 |
text-indent : 0;
|
1301 |
}
|
1302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
.yith-plugin-ui .select2-container .select2-selection--multiple,
|
1304 |
.yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple {
|
1305 |
border : 0;
|
2055 |
line-height : 33px;
|
2056 |
}
|
2057 |
|
2058 |
+
.yith-plugin-ui .tablenav {
|
2059 |
+
margin : 20px 0;
|
2060 |
}
|
2061 |
|
2062 |
.yith-plugin-ui .form-table td p.yith-section-description {
|
2113 |
.yith-plugin-ui span.description {
|
2114 |
margin-top : 10px;
|
2115 |
line-height : 20px;
|
2116 |
+
max-width : 40%;
|
2117 |
}
|
2118 |
|
2119 |
.yith-plugin-fw-option-with-description {
|
2394 |
.yith-plugin-ui input {
|
2395 |
font-size: 14px;
|
2396 |
}
|
2397 |
+
}
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.4.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @version 3.4.
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.4.28
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.4.28
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-07
|
8 |
-
"PO-Revision-Date: 2020-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: el_GR\n"
|
@@ -22,6 +22,30 @@ msgstr ""
|
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
26 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
27 |
msgid "Add %s"
|
@@ -202,7 +226,7 @@ msgstr "Προσθήκη %s από εικόνες"
|
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Ανέβασμα πολλαπλών αρχείων"
|
204 |
|
205 |
-
#: lib/yit-plugin-panel-wc.php:
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr ""
|
208 |
"Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-07 14:15:08+00:00\n"
|
8 |
+
"PO-Revision-Date: 2020-08-13 10:05+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: el_GR\n"
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
+
#: lib/yit-assets.php:102
|
26 |
+
msgid "Clear"
|
27 |
+
msgstr "Καθαρισμός"
|
28 |
+
|
29 |
+
#: lib/yit-assets.php:103
|
30 |
+
msgid "Clear color"
|
31 |
+
msgstr "Καθαρισμός χρώματος"
|
32 |
+
|
33 |
+
#: lib/yit-assets.php:104
|
34 |
+
msgid "Default"
|
35 |
+
msgstr "Προεπιλεγμένο"
|
36 |
+
|
37 |
+
#: lib/yit-assets.php:105
|
38 |
+
msgid "Select default color"
|
39 |
+
msgstr "Επιλογή προεπιλεγμένου χρώματος"
|
40 |
+
|
41 |
+
#: lib/yit-assets.php:106
|
42 |
+
msgid "Select Color"
|
43 |
+
msgstr "Επιλογή Χρώματος"
|
44 |
+
|
45 |
+
#: lib/yit-assets.php:107
|
46 |
+
msgid "Color value"
|
47 |
+
msgstr "Αξία χρώματος"
|
48 |
+
|
49 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
50 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
51 |
msgid "Add %s"
|
226 |
msgid "Upload multiple files"
|
227 |
msgstr "Ανέβασμα πολλαπλών αρχείων"
|
228 |
|
229 |
+
#: lib/yit-plugin-panel-wc.php:426
|
230 |
msgid "The changes you have made will be lost if you leave this page."
|
231 |
msgstr ""
|
232 |
"Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-07
|
8 |
"PO-Revision-Date: 2020-04-06 10:45+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -22,6 +22,33 @@ msgstr ""
|
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
26 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
27 |
msgid "Add %s"
|
@@ -203,7 +230,7 @@ msgstr "Añadir %s desde imágenes"
|
|
203 |
msgid "Upload multiple files"
|
204 |
msgstr "Cargar archivos múltiples"
|
205 |
|
206 |
-
#: lib/yit-plugin-panel-wc.php:
|
207 |
msgid "The changes you have made will be lost if you leave this page."
|
208 |
msgstr "Los cambios que has hecho se perderán si abandonas esta página."
|
209 |
|
@@ -1209,9 +1236,6 @@ msgstr "Ajustes"
|
|
1209 |
#~ msgid "Renew license"
|
1210 |
#~ msgstr "Renovar licencia"
|
1211 |
|
1212 |
-
#~ msgid "Select All"
|
1213 |
-
#~ msgstr "Seleccionar todo"
|
1214 |
-
|
1215 |
#~ msgid "Deselect All"
|
1216 |
#~ msgstr "Deseleccionar todo"
|
1217 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-07 14:15:08+00:00\n"
|
8 |
"PO-Revision-Date: 2020-04-06 10:45+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
+
#: lib/yit-assets.php:102
|
26 |
+
msgid "Clear"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: lib/yit-assets.php:103
|
30 |
+
msgid "Clear color"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: lib/yit-assets.php:104
|
34 |
+
#, fuzzy
|
35 |
+
msgid "Default"
|
36 |
+
msgstr "Establecer por defecto"
|
37 |
+
|
38 |
+
#: lib/yit-assets.php:105
|
39 |
+
#, fuzzy
|
40 |
+
msgid "Select default color"
|
41 |
+
msgstr "Establecer por defecto"
|
42 |
+
|
43 |
+
#: lib/yit-assets.php:106
|
44 |
+
#, fuzzy
|
45 |
+
msgid "Select Color"
|
46 |
+
msgstr "Seleccionar todo"
|
47 |
+
|
48 |
+
#: lib/yit-assets.php:107
|
49 |
+
msgid "Color value"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
53 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
54 |
msgid "Add %s"
|
230 |
msgid "Upload multiple files"
|
231 |
msgstr "Cargar archivos múltiples"
|
232 |
|
233 |
+
#: lib/yit-plugin-panel-wc.php:426
|
234 |
msgid "The changes you have made will be lost if you leave this page."
|
235 |
msgstr "Los cambios que has hecho se perderán si abandonas esta página."
|
236 |
|
1236 |
#~ msgid "Renew license"
|
1237 |
#~ msgstr "Renovar licencia"
|
1238 |
|
|
|
|
|
|
|
1239 |
#~ msgid "Deselect All"
|
1240 |
#~ msgstr "Deseleccionar todo"
|
1241 |
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -4,15 +4,15 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-07
|
8 |
-
"PO-Revision-Date: 2020-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Poedit 2.
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c\n"
|
@@ -22,6 +22,30 @@ msgstr ""
|
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
26 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
27 |
msgid "Add %s"
|
@@ -202,7 +226,7 @@ msgstr "Aggiungi %s dalla immagini"
|
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Carica file multipli"
|
204 |
|
205 |
-
#: lib/yit-plugin-panel-wc.php:
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
|
208 |
|
@@ -287,7 +311,7 @@ msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
|
287 |
|
288 |
#: lib/yit-plugin-panel.php:1284
|
289 |
msgid "help us by leaving a five-star rating"
|
290 |
-
msgstr "
|
291 |
|
292 |
#: lib/yit-plugin-panel.php:1285
|
293 |
msgid ":) Thanks!"
|
@@ -447,7 +471,7 @@ msgstr "Disabilitato"
|
|
447 |
|
448 |
#: lib/yith-system-status.php:478
|
449 |
msgid "N/A"
|
450 |
-
msgstr "
|
451 |
|
452 |
#. translators: %1$s plugin name, %2$s requirement name
|
453 |
#: lib/yith-system-status.php:506
|
@@ -1183,9 +1207,6 @@ msgstr "Impostazioni"
|
|
1183 |
#~ msgid "Renew license"
|
1184 |
#~ msgstr "Rinnova la licenza"
|
1185 |
|
1186 |
-
#~ msgid "Select All"
|
1187 |
-
#~ msgstr "Seleziona tutto"
|
1188 |
-
|
1189 |
#~ msgid "Deselect All"
|
1190 |
#~ msgstr "Deseleziona tutto"
|
1191 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-07 14:15:08+00:00\n"
|
8 |
+
"PO-Revision-Date: 2020-08-10 19:15+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 2.3.1\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c\n"
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
+
#: lib/yit-assets.php:102
|
26 |
+
msgid "Clear"
|
27 |
+
msgstr "Cancella"
|
28 |
+
|
29 |
+
#: lib/yit-assets.php:103
|
30 |
+
msgid "Clear color"
|
31 |
+
msgstr "Cancella colore"
|
32 |
+
|
33 |
+
#: lib/yit-assets.php:104
|
34 |
+
msgid "Default"
|
35 |
+
msgstr "Predefinito"
|
36 |
+
|
37 |
+
#: lib/yit-assets.php:105
|
38 |
+
msgid "Select default color"
|
39 |
+
msgstr "Imposta colore predefinito"
|
40 |
+
|
41 |
+
#: lib/yit-assets.php:106
|
42 |
+
msgid "Select Color"
|
43 |
+
msgstr "Seleziona colore"
|
44 |
+
|
45 |
+
#: lib/yit-assets.php:107
|
46 |
+
msgid "Color value"
|
47 |
+
msgstr "Colore"
|
48 |
+
|
49 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
50 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
51 |
msgid "Add %s"
|
226 |
msgid "Upload multiple files"
|
227 |
msgstr "Carica file multipli"
|
228 |
|
229 |
+
#: lib/yit-plugin-panel-wc.php:426
|
230 |
msgid "The changes you have made will be lost if you leave this page."
|
231 |
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
|
232 |
|
311 |
|
312 |
#: lib/yit-plugin-panel.php:1284
|
313 |
msgid "help us by leaving a five-star rating"
|
314 |
+
msgstr "puoi darci una mano lasciando una recensione a 5 stelle"
|
315 |
|
316 |
#: lib/yit-plugin-panel.php:1285
|
317 |
msgid ":) Thanks!"
|
471 |
|
472 |
#: lib/yith-system-status.php:478
|
473 |
msgid "N/A"
|
474 |
+
msgstr "n.a."
|
475 |
|
476 |
#. translators: %1$s plugin name, %2$s requirement name
|
477 |
#: lib/yith-system-status.php:506
|
1207 |
#~ msgid "Renew license"
|
1208 |
#~ msgstr "Rinnova la licenza"
|
1209 |
|
|
|
|
|
|
|
1210 |
#~ msgid "Deselect All"
|
1211 |
#~ msgstr "Deseleziona tutto"
|
1212 |
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-07
|
8 |
"PO-Revision-Date: 2020-04-06 15:05+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -22,6 +22,33 @@ msgstr ""
|
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
26 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
27 |
msgid "Add %s"
|
@@ -206,7 +233,7 @@ msgstr "Voeg %s toe vanaf afbeeldingen"
|
|
206 |
msgid "Upload multiple files"
|
207 |
msgstr "Upload meerdere bestanden"
|
208 |
|
209 |
-
#: lib/yit-plugin-panel-wc.php:
|
210 |
msgid "The changes you have made will be lost if you leave this page."
|
211 |
msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
|
212 |
|
@@ -1196,8 +1223,5 @@ msgstr "Instellingen"
|
|
1196 |
#~ msgid "Renew license"
|
1197 |
#~ msgstr "Licentie vernieuwen"
|
1198 |
|
1199 |
-
#~ msgid "Select All"
|
1200 |
-
#~ msgstr "Selecteer alles"
|
1201 |
-
|
1202 |
#~ msgid "Deselect All"
|
1203 |
#~ msgstr "Selectie ongedaan maken"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-07 14:15:08+00:00\n"
|
8 |
"PO-Revision-Date: 2020-04-06 15:05+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
22 |
"X-Textdomain-Support: yes\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
+
#: lib/yit-assets.php:102
|
26 |
+
msgid "Clear"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: lib/yit-assets.php:103
|
30 |
+
msgid "Clear color"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: lib/yit-assets.php:104
|
34 |
+
#, fuzzy
|
35 |
+
msgid "Default"
|
36 |
+
msgstr "Instellen als standaard"
|
37 |
+
|
38 |
+
#: lib/yit-assets.php:105
|
39 |
+
#, fuzzy
|
40 |
+
msgid "Select default color"
|
41 |
+
msgstr "Instellen als standaard"
|
42 |
+
|
43 |
+
#: lib/yit-assets.php:106
|
44 |
+
#, fuzzy
|
45 |
+
msgid "Select Color"
|
46 |
+
msgstr "Selecteer alles"
|
47 |
+
|
48 |
+
#: lib/yit-assets.php:107
|
49 |
+
msgid "Color value"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
53 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
54 |
msgid "Add %s"
|
233 |
msgid "Upload multiple files"
|
234 |
msgstr "Upload meerdere bestanden"
|
235 |
|
236 |
+
#: lib/yit-plugin-panel-wc.php:426
|
237 |
msgid "The changes you have made will be lost if you leave this page."
|
238 |
msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
|
239 |
|
1223 |
#~ msgid "Renew license"
|
1224 |
#~ msgstr "Licentie vernieuwen"
|
1225 |
|
|
|
|
|
|
|
1226 |
#~ msgid "Deselect All"
|
1227 |
#~ msgstr "Selectie ongedaan maken"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-07
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,6 +24,30 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
28 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
29 |
msgid "Add %s"
|
@@ -198,7 +222,7 @@ msgstr ""
|
|
198 |
msgid "Upload multiple files"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: lib/yit-plugin-panel-wc.php:
|
202 |
msgid "The changes you have made will be lost if you leave this page."
|
203 |
msgstr ""
|
204 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-08-07 14:15:08+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: lib/yit-assets.php:102
|
28 |
+
msgid "Clear"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: lib/yit-assets.php:103
|
32 |
+
msgid "Clear color"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: lib/yit-assets.php:104
|
36 |
+
msgid "Default"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: lib/yit-assets.php:105
|
40 |
+
msgid "Select default color"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: lib/yit-assets.php:106
|
44 |
+
msgid "Select Color"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: lib/yit-assets.php:107
|
48 |
+
msgid "Color value"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
#: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
|
52 |
#: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
|
53 |
msgid "Add %s"
|
222 |
msgid "Upload multiple files"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: lib/yit-plugin-panel-wc.php:426
|
226 |
msgid "The changes you have made will be lost if you leave this page."
|
227 |
msgstr ""
|
228 |
|
plugin-fw/lib/yit-assets.php
CHANGED
@@ -7,97 +7,111 @@
|
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
|
10 |
-
!defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
11 |
-
|
12 |
-
if ( !class_exists( 'YIT_Assets' ) ) {
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
|
103 |
YIT_Assets::instance();
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
|
10 |
+
! defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
11 |
+
|
12 |
+
if ( ! class_exists( 'YIT_Assets' ) ) {
|
13 |
+
/**
|
14 |
+
* YIT Assets
|
15 |
+
*
|
16 |
+
* @class YIT_Assets
|
17 |
+
* @package YITH
|
18 |
+
* @since 3.0.0
|
19 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
20 |
+
*/
|
21 |
+
class YIT_Assets {
|
22 |
+
/** @var string */
|
23 |
+
public $version = '1.0.0';
|
24 |
+
|
25 |
+
/** @var YIT_Assets */
|
26 |
+
private static $_instance;
|
27 |
+
|
28 |
+
/** @return YIT_Assets */
|
29 |
+
public static function instance() {
|
30 |
+
return ! is_null( self::$_instance ) ? self::$_instance : self::$_instance = new self();
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Constructor
|
35 |
+
*
|
36 |
+
* @since 1.0
|
37 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
38 |
+
*/
|
39 |
+
private function __construct() {
|
40 |
+
$this->version = yith_plugin_fw_get_version();
|
41 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Register styles and scripts
|
46 |
+
*/
|
47 |
+
public function register_styles_and_scripts() {
|
48 |
+
global $wp_scripts, $woocommerce, $wp_version;
|
49 |
+
|
50 |
+
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
51 |
+
|
52 |
+
//scripts
|
53 |
+
wp_register_script( 'yith-colorpicker', YIT_CORE_PLUGIN_URL . '/assets/js/yith-colorpicker.min.js', array( 'jquery', 'wp-color-picker' ), $this->version, true );
|
54 |
+
wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'yith-colorpicker', 'codemirror', 'codemirror-javascript', 'jquery-ui-slider', 'jquery-ui-sortable' ), $this->version, true );
|
55 |
+
|
56 |
+
wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'yith-plugin-fw-fields' ), $this->version, true );
|
57 |
+
wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'yith-plugin-fw-fields' ), $this->version, true );
|
58 |
+
wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), '3.15', true );
|
59 |
+
wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), '3.15', true );
|
60 |
+
wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
|
61 |
+
wp_register_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
62 |
+
wp_register_script( 'yith-plugin-fw-wp-pages', YIT_CORE_PLUGIN_URL . '/assets/js/wp-pages' . $suffix . '.js', array( 'jquery' ), $this->version, false );
|
63 |
+
|
64 |
+
//styles
|
65 |
+
$jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
|
66 |
+
wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
|
67 |
+
wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', array(), $this->version );
|
68 |
+
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
69 |
+
wp_register_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
70 |
+
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
71 |
+
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
72 |
+
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css', array(), $this->version );
|
73 |
+
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css', false, $this->version );
|
74 |
+
|
75 |
+
$wc_version_suffix = '';
|
76 |
+
if ( function_exists( 'WC' ) || ! empty( $woocommerce ) ) {
|
77 |
+
$woocommerce_version = function_exists( 'WC' ) ? WC()->version : $woocommerce->version;
|
78 |
+
$wc_version_suffix = version_compare( $woocommerce_version, '3.0.0', '>=' ) ? '' : '-wc-2.6';
|
79 |
+
|
80 |
+
wp_register_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce_version );
|
81 |
+
} else {
|
82 |
+
wp_register_script( 'select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js', array( 'jquery' ), '4.0.3', true );
|
83 |
+
wp_register_style( 'yith-select2-no-wc', YIT_CORE_PLUGIN_URL . '/assets/css/yith-select2-no-wc.css', false, $this->version );
|
84 |
+
}
|
85 |
+
|
86 |
+
wp_register_script( 'yith-enhanced-select', YIT_CORE_PLUGIN_URL . '/assets/js/yith-enhanced-select' . $wc_version_suffix . $suffix . '.js', array( 'jquery', 'select2' ), $this->version, true );
|
87 |
+
wp_localize_script( 'yith-enhanced-select', 'yith_framework_enhanced_select_params', array(
|
88 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
89 |
+
'search_posts_nonce' => wp_create_nonce( 'search-posts' ),
|
90 |
+
'search_terms_nonce' => wp_create_nonce( 'search-terms' ),
|
91 |
+
'search_customers_nonce' => wp_create_nonce( 'search-customers' ),
|
92 |
+
) );
|
93 |
+
|
94 |
+
wp_localize_script( 'yith-plugin-fw-fields', 'yith_framework_fw_fields', array(
|
95 |
+
'admin_url' => admin_url( 'admin.php' ),
|
96 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
97 |
+
) );
|
98 |
+
|
99 |
+
|
100 |
+
// Localize Colorpicker to avoid issues with WordPress 5.5
|
101 |
+
if ( version_compare( $wp_version, '5.5-RC', '>=' ) ) {
|
102 |
+
wp_localize_script( 'yith-colorpicker', 'wpColorPickerL10n', array(
|
103 |
+
'clear' => __( 'Clear' ),
|
104 |
+
'clearAriaLabel' => __( 'Clear color' ),
|
105 |
+
'defaultString' => __( 'Default' ),
|
106 |
+
'defaultAriaLabel' => __( 'Select default color' ),
|
107 |
+
'pick' => __( 'Select Color' ),
|
108 |
+
'defaultLabel' => __( 'Color value' ),
|
109 |
+
) );
|
110 |
+
}
|
111 |
+
|
112 |
+
wp_enqueue_style( 'yith-plugin-fw-admin', YIT_CORE_PLUGIN_URL . '/assets/css/admin.css', array(), $this->version );
|
113 |
+
}
|
114 |
+
}
|
115 |
}
|
116 |
|
117 |
YIT_Assets::instance();
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -343,18 +343,41 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
343 |
$option_key = $this->get_current_option_key();
|
344 |
$yit_options = $this->check_for_save_single_option( $yit_options );
|
345 |
|
|
|
|
|
|
|
346 |
foreach ( $yit_options[ $option_key ] as $id => $option ) {
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
}
|
357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
do_action( 'yit_panel_wc_after_reset' );
|
359 |
}
|
360 |
}
|
343 |
$option_key = $this->get_current_option_key();
|
344 |
$yit_options = $this->check_for_save_single_option( $yit_options );
|
345 |
|
346 |
+
// Collect an array of options to be saved as array and not as single option.
|
347 |
+
$array_options = array();
|
348 |
+
|
349 |
foreach ( $yit_options[ $option_key ] as $id => $option ) {
|
350 |
+
|
351 |
+
// make sure option id is not an array
|
352 |
+
$matches = array();
|
353 |
+
isset( $option['id'] ) && preg_match('/(.*)\[(.*)\]/', $option['id'], $matches );
|
354 |
+
|
355 |
+
if( ! empty( $matches ) && isset( $option['default'] ) ) {
|
356 |
+
if( ! empty( $matches[2] ) ) {
|
357 |
+
$array_options[ $matches[1] ][ $matches[2] ] = $option[ 'default' ];
|
358 |
+
} else {
|
359 |
+
$array_options[ $matches[1] ][] = $option[ 'default' ];
|
360 |
+
}
|
361 |
+
}
|
362 |
+
else {
|
363 |
+
if ( isset( $option['yith-type'] ) && $option['yith-type'] == 'multi-colorpicker' && ! empty( $option['colorpickers'] ) ) {
|
364 |
+
$default = [];
|
365 |
+
foreach ( $option['colorpickers'] as $colorpicker ) {
|
366 |
+
$default[ $colorpicker['id'] ] = isset( $colorpicker['default'] ) ? $colorpicker['default'] : '';
|
367 |
+
}
|
368 |
+
update_option( $option['id'], $default );
|
369 |
+
} elseif ( isset( $option['default'] ) ) {
|
370 |
+
update_option( $option['id'], $option['default'] );
|
371 |
+
}
|
372 |
+
}
|
373 |
}
|
374 |
|
375 |
+
// Save array options if any
|
376 |
+
foreach ( $array_options as $key => $value ) {
|
377 |
+
update_option( $key, $value );
|
378 |
+
}
|
379 |
+
|
380 |
+
|
381 |
do_action( 'yit_panel_wc_after_reset' );
|
382 |
}
|
383 |
}
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -1310,7 +1310,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1310 |
if ( 'admin.php' === $pagenow && $screen && strpos( $screen->id, $this->settings['page'] ) !== false ) {
|
1311 |
switch ( $field['type'] ) {
|
1312 |
case 'datepicker':
|
1313 |
-
echo '<span class="yith-icon icon-calendar"></span>';
|
1314 |
break;
|
1315 |
default:
|
1316 |
break;
|
1310 |
if ( 'admin.php' === $pagenow && $screen && strpos( $screen->id, $this->settings['page'] ) !== false ) {
|
1311 |
switch ( $field['type'] ) {
|
1312 |
case 'datepicker':
|
1313 |
+
echo '<span class="yith-icon yith-icon-calendar"></span>';
|
1314 |
break;
|
1315 |
default:
|
1316 |
break;
|
plugin-fw/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "yith-plugin-framewowrk",
|
3 |
-
"version": "3.4.
|
4 |
"description": "YITH Plugin Framework",
|
5 |
"main": "Gruntfile.js",
|
6 |
"scripts": {
|
1 |
{
|
2 |
"name": "yith-plugin-framewowrk",
|
3 |
+
"version": "3.4.27",
|
4 |
"description": "YITH Plugin Framework",
|
5 |
"main": "Gruntfile.js",
|
6 |
"scripts": {
|
plugin-fw/templates/fields/toggle-element.php
CHANGED
@@ -44,6 +44,11 @@ if ( empty( $values ) && !$show_add_button && $elements ) {
|
|
44 |
|
45 |
?>
|
46 |
<div class="yith-toggle_wrapper <?php echo $class_wrapper ?>" id="<?php echo $id ?>" data-nonce="<?php echo $ajax_nonce; ?>">
|
|
|
|
|
|
|
|
|
|
|
47 |
<?php
|
48 |
|
49 |
if ( $show_add_button ):
|
@@ -287,4 +292,4 @@ if ( empty( $values ) && !$show_add_button && $elements ) {
|
|
287 |
</div>
|
288 |
</script>
|
289 |
|
290 |
-
</div>
|
44 |
|
45 |
?>
|
46 |
<div class="yith-toggle_wrapper <?php echo $class_wrapper ?>" id="<?php echo $id ?>" data-nonce="<?php echo $ajax_nonce; ?>">
|
47 |
+
<?php
|
48 |
+
if( !empty( $label ) ):
|
49 |
+
?>
|
50 |
+
<label for="<?php esc_attr_e($id);?>"><?php echo esc_html( $label );?></label>
|
51 |
+
<?php endif;?>
|
52 |
<?php
|
53 |
|
54 |
if ( $show_add_button ):
|
292 |
</div>
|
293 |
</script>
|
294 |
|
295 |
+
</div>
|
plugin-fw/templates/panel/woocommerce/woocommerce-form.php
CHANGED
@@ -10,8 +10,10 @@ $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admi
|
|
10 |
<div class="<?php echo $panel_content_class; ?>">
|
11 |
<form id="plugin-fw-wc" method="post">
|
12 |
<?php $this->add_fields() ?>
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
</form>
|
16 |
<form id="plugin-fw-wc-reset" method="post">
|
17 |
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
|
10 |
<div class="<?php echo $panel_content_class; ?>">
|
11 |
<form id="plugin-fw-wc" method="post">
|
12 |
<?php $this->add_fields() ?>
|
13 |
+
<p class="submit" style="float: left;margin: 0 10px 0 0;">
|
14 |
+
<?php wp_nonce_field( 'yit_panel_wc_options_' . $this->settings[ 'page' ], 'yit_panel_wc_options_nonce' ); ?>
|
15 |
+
<input class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>"/>
|
16 |
+
</p>
|
17 |
</form>
|
18 |
<form id="plugin-fw-wc-reset" method="post">
|
19 |
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
|
plugin-options/premium-options.php
CHANGED
@@ -6,6 +6,8 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
plugin-options/settings-options.php
CHANGED
@@ -6,6 +6,8 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -362,7 +362,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
362 |
|
363 |
== Upgrade Notice ==
|
364 |
|
365 |
-
Last Stable Tag 2.0.
|
366 |
|
367 |
== Suggestions ==
|
368 |
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 2.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
362 |
|
363 |
== Upgrade Notice ==
|
364 |
|
365 |
+
Last Stable Tag 2.0.3
|
366 |
|
367 |
== Suggestions ==
|
368 |
|
templates/admin/premium.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
img {
|
4 |
width: 90%;
|
@@ -193,11 +206,11 @@
|
|
193 |
<div class="premium-cta">
|
194 |
<p>
|
195 |
<?php
|
196 |
-
/* translators: %1$s opening span, %2$s closing span, %3$s BR tag*/
|
197 |
echo sprintf( esc_html__( 'Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!', 'yith-woocommerce-catalog-mode' ), '<span class="highlight">', '</span>', '<br />' );
|
198 |
?>
|
199 |
</p>
|
200 |
-
<a href="<?php echo $this->get_premium_landing_uri(); ?>" target="_blank" class="premium-cta-button button btn">
|
201 |
<?php esc_html_e( 'Upgrade', 'yith-woocommerce-catalog-mode' ); ?>
|
202 |
</a>
|
203 |
</div>
|
@@ -207,7 +220,7 @@
|
|
207 |
<h1><?php esc_html_e( 'Premium Features', 'yith-woocommerce-catalog-mode' ); ?></h1>
|
208 |
<div class="landing-container">
|
209 |
<div class="col-1">
|
210 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-01.jpg" alt="" />
|
211 |
</div>
|
212 |
<div class="col-2">
|
213 |
<div class="section-title">
|
@@ -236,14 +249,14 @@
|
|
236 |
</p>
|
237 |
</div>
|
238 |
<div class="col-1">
|
239 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-02.jpg" alt="" />
|
240 |
</div>
|
241 |
</div>
|
242 |
</div>
|
243 |
<div class="three section section-even clear">
|
244 |
<div class="landing-container">
|
245 |
<div class="col-1">
|
246 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-03.jpg" alt="" />
|
247 |
</div>
|
248 |
<div class="col-2">
|
249 |
<div class="section-title">
|
@@ -266,14 +279,14 @@
|
|
266 |
</p>
|
267 |
</div>
|
268 |
<div class="col-1">
|
269 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-04.jpg" alt="" />
|
270 |
</div>
|
271 |
</div>
|
272 |
</div>
|
273 |
<div class="five section section-even clear">
|
274 |
<div class="landing-container">
|
275 |
<div class="col-1">
|
276 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-05.jpg" alt="" />
|
277 |
</div>
|
278 |
<div class="col-2">
|
279 |
<div class="section-title">
|
@@ -296,14 +309,14 @@
|
|
296 |
</p>
|
297 |
</div>
|
298 |
<div class="col-1">
|
299 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-06.jpg" alt="" />
|
300 |
</div>
|
301 |
</div>
|
302 |
</div>
|
303 |
<div class="seven section section-even clear">
|
304 |
<div class="landing-container">
|
305 |
<div class="col-1">
|
306 |
-
<img src="<?php echo YWCTM_ASSETS_URL; ?>/images/premium-07.jpg" alt="" />
|
307 |
</div>
|
308 |
<div class="col-2">
|
309 |
<div class="section-title">
|
@@ -324,7 +337,7 @@
|
|
324 |
echo sprintf( esc_html__( 'Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!', 'yith-woocommerce-catalog-mode' ), '<span class="highlight">', '</span>', '<br />' );
|
325 |
?>
|
326 |
</p>
|
327 |
-
<a href="<?php echo $this->get_premium_landing_uri(); ?>" target="_blank" class="premium-cta-button button btn">
|
328 |
<?php esc_html_e( 'Upgrade', 'yith-woocommerce-catalog-mode' ); ?>
|
329 |
</a>
|
330 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @package YITH WooCommerce Catalog Mode
|
11 |
+
*/
|
12 |
+
|
13 |
+
?>
|
14 |
+
<style type="text/css">
|
15 |
|
16 |
img {
|
17 |
width: 90%;
|
206 |
<div class="premium-cta">
|
207 |
<p>
|
208 |
<?php
|
209 |
+
/* translators: %1$s opening span, %2$s closing span, %3$s BR tag */
|
210 |
echo sprintf( esc_html__( 'Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!', 'yith-woocommerce-catalog-mode' ), '<span class="highlight">', '</span>', '<br />' );
|
211 |
?>
|
212 |
</p>
|
213 |
+
<a href="<?php echo esc_url( $this->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
214 |
<?php esc_html_e( 'Upgrade', 'yith-woocommerce-catalog-mode' ); ?>
|
215 |
</a>
|
216 |
</div>
|
220 |
<h1><?php esc_html_e( 'Premium Features', 'yith-woocommerce-catalog-mode' ); ?></h1>
|
221 |
<div class="landing-container">
|
222 |
<div class="col-1">
|
223 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-01.jpg" alt="" />
|
224 |
</div>
|
225 |
<div class="col-2">
|
226 |
<div class="section-title">
|
249 |
</p>
|
250 |
</div>
|
251 |
<div class="col-1">
|
252 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-02.jpg" alt="" />
|
253 |
</div>
|
254 |
</div>
|
255 |
</div>
|
256 |
<div class="three section section-even clear">
|
257 |
<div class="landing-container">
|
258 |
<div class="col-1">
|
259 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-03.jpg" alt="" />
|
260 |
</div>
|
261 |
<div class="col-2">
|
262 |
<div class="section-title">
|
279 |
</p>
|
280 |
</div>
|
281 |
<div class="col-1">
|
282 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-04.jpg" alt="" />
|
283 |
</div>
|
284 |
</div>
|
285 |
</div>
|
286 |
<div class="five section section-even clear">
|
287 |
<div class="landing-container">
|
288 |
<div class="col-1">
|
289 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-05.jpg" alt="" />
|
290 |
</div>
|
291 |
<div class="col-2">
|
292 |
<div class="section-title">
|
309 |
</p>
|
310 |
</div>
|
311 |
<div class="col-1">
|
312 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-06.jpg" alt="" />
|
313 |
</div>
|
314 |
</div>
|
315 |
</div>
|
316 |
<div class="seven section section-even clear">
|
317 |
<div class="landing-container">
|
318 |
<div class="col-1">
|
319 |
+
<img src="<?php echo esc_url( YWCTM_ASSETS_URL ); ?>/images/premium-07.jpg" alt="" />
|
320 |
</div>
|
321 |
<div class="col-2">
|
322 |
<div class="section-title">
|
337 |
echo sprintf( esc_html__( 'Upgrade to %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!', 'yith-woocommerce-catalog-mode' ), '<span class="highlight">', '</span>', '<br />' );
|
338 |
?>
|
339 |
</p>
|
340 |
+
<a href="<?php echo esc_url( $this->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
341 |
<?php esc_html_e( 'Upgrade', 'yith-woocommerce-catalog-mode' ); ?>
|
342 |
</a>
|
343 |
</div>
|