Version Description
Last Stable Tag 1.6.15
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 1.6.15 |
Comparing to | |
See all releases |
Code changes from version 1.6.14 to 1.6.15
- class.yith-woocommerce-catalog-mode.php +1 -1
- init.php +2 -2
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +3 -3
- plugin-fw/lib/promo/yith-promo.php +13 -2
- plugin-fw/lib/yit-plugin-panel-wc.php +8 -1
- plugin-fw/lib/yit-plugin-panel.php +1 -1
- plugin-fw/yit-plugin.php +2 -1
- plugin-options/settings-options.php +62 -86
- readme.txt +6 -2
class.yith-woocommerce-catalog-mode.php
CHANGED
@@ -832,7 +832,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
832 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
833 |
*/
|
834 |
public function get_premium_landing_uri() {
|
835 |
-
return
|
836 |
}
|
837 |
|
838 |
/**
|
832 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
833 |
*/
|
834 |
public function get_premium_landing_uri() {
|
835 |
+
return $this->_premium_landing;
|
836 |
}
|
837 |
|
838 |
/**
|
init.php
CHANGED
@@ -5,7 +5,7 @@
|
|
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: 1.6.
|
9 |
* Author URI: http://yithemes.com/
|
10 |
* WC requires at least: 3.6.0
|
11 |
* WC tested up to: 3.8.x
|
@@ -36,7 +36,7 @@ function ywctm_install_free_admin_notice() {
|
|
36 |
}
|
37 |
|
38 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
39 |
-
define( 'YWCTM_VERSION', '1.6.
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
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: 1.6.15
|
9 |
* Author URI: http://yithemes.com/
|
10 |
* WC requires at least: 3.6.0
|
11 |
* WC tested up to: 3.8.x
|
36 |
}
|
37 |
|
38 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
39 |
+
define( 'YWCTM_VERSION', '1.6.15' );
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.4.
|
5 |
* Author: YITHEMES
|
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.5
|
5 |
* Author: YITHEMES
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.4.5
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
plugin-fw/languages/yith-plugin-fw-es_ES.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -5,14 +5,14 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
"POT-Creation-Date: 2019-02-04 16:04+0100\n"
|
8 |
-
"PO-Revision-Date: 2019-02
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: es_ES\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
|
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"
|
@@ -921,7 +921,7 @@ msgstr "Barra lateral derecha"
|
|
921 |
#: templates/fields/upload.php:18 templates/metaboxes/types/icon-list.php:70
|
922 |
#: templates/panel/woocommerce/woocommerce-upload.php:40
|
923 |
msgid "Upload"
|
924 |
-
msgstr "
|
925 |
|
926 |
#: templates/fields/upload.php:19
|
927 |
msgid "Reset"
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
"POT-Creation-Date: 2019-02-04 16:04+0100\n"
|
8 |
+
"PO-Revision-Date: 2019-12-02 10:38+0000\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: es_ES\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 1.8.12\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"
|
921 |
#: templates/fields/upload.php:18 templates/metaboxes/types/icon-list.php:70
|
922 |
#: templates/panel/woocommerce/woocommerce-upload.php:40
|
923 |
msgid "Upload"
|
924 |
+
msgstr "Subir"
|
925 |
|
926 |
#: templates/fields/upload.php:19
|
927 |
msgid "Reset"
|
plugin-fw/lib/promo/yith-promo.php
CHANGED
@@ -21,11 +21,22 @@ if( ! function_exists( 'yith_plugin_fw_promo_notices' ) ){
|
|
21 |
global $pagenow;
|
22 |
$not_administrator = function_exists( 'current_user_can' ) && ! current_user_can( 'administrator' );
|
23 |
$is_dashboard = 'index.php' == $pagenow;
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
return false;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
$base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_URL . '/lib/promo/' );
|
30 |
$xml = apply_filters( 'yith_plugin_fw_promo_xml_url', YIT_CORE_PLUGIN_PATH . '/lib/promo/yith-promo.xml' );
|
31 |
$transient = "yith_promo_message";
|
21 |
global $pagenow;
|
22 |
$not_administrator = function_exists( 'current_user_can' ) && ! current_user_can( 'administrator' );
|
23 |
$is_dashboard = 'index.php' == $pagenow;
|
24 |
+
$is_wc_pages = '';
|
25 |
+
$is_plugin_page = 'plugins.php' == $pagenow || 'plugin-install.php' == $pagenow && 'plugin-editor.php' == $pagenow;
|
26 |
+
$wc_post_types = array( 'shop_order', 'shop_coupon', );
|
27 |
+
$is_wc_post_types = isset( $_GET['post_type'] ) && in_array( $_GET['post_type'], $wc_post_types );
|
28 |
+
$wc_pages = array( 'wc-reports', 'wc-settings', 'wc-status', 'wc-addons' );
|
29 |
+
$is_wc_pages = isset( $_GET['page'] ) && in_array( $_GET['page'], $wc_pages );
|
30 |
+
$is_yith_page = isset( $_GET['page'] ) && false !== strstr( $_GET['page'], 'yith' ) ;
|
31 |
+
|
32 |
+
if( $not_administrator ){
|
33 |
return false;
|
34 |
}
|
35 |
|
36 |
+
if( ! $is_plugin_page && ! $is_wc_pages && ! $is_wc_post_types && ! $is_yith_page ){
|
37 |
+
return false;
|
38 |
+
}
|
39 |
+
|
40 |
$base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_URL . '/lib/promo/' );
|
41 |
$xml = apply_filters( 'yith_plugin_fw_promo_xml_url', YIT_CORE_PLUGIN_PATH . '/lib/promo/yith-promo.xml' );
|
42 |
$transient = "yith_promo_message";
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -549,6 +549,12 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
549 |
|
550 |
if ( $value && isset( $option[ 'elements' ] ) && !empty( $option[ 'elements' ] ) ) {
|
551 |
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
foreach ( $value as $index => $single_toggle ) {
|
553 |
|
554 |
if ( $value && isset( $option[ 'onoff_field' ] ) && !empty( $option[ 'onoff_field' ] ) ) {
|
@@ -561,7 +567,8 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
561 |
}
|
562 |
|
563 |
foreach ( $option[ 'elements' ] as $element ) {
|
564 |
-
|
|
|
565 |
}
|
566 |
}
|
567 |
}
|
549 |
|
550 |
if ( $value && isset( $option[ 'elements' ] ) && !empty( $option[ 'elements' ] ) ) {
|
551 |
|
552 |
+
$value = maybe_unserialize( $value );
|
553 |
+
|
554 |
+
if( isset( $value['box_id'] ) ){
|
555 |
+
unset( $value['box_id'] );
|
556 |
+
}
|
557 |
+
|
558 |
foreach ( $value as $index => $single_toggle ) {
|
559 |
|
560 |
if ( $value && isset( $option[ 'onoff_field' ] ) && !empty( $option[ 'onoff_field' ] ) ) {
|
567 |
}
|
568 |
|
569 |
foreach ( $option[ 'elements' ] as $element ) {
|
570 |
+
$element_value = isset( $value[ $index ][ $element[ 'id' ] ] ) ? $value[ $index ][ $element[ 'id' ] ] : false;
|
571 |
+
$value[ $index ][ $element[ 'id' ] ] = self::sanitize_option( $element_value, $element, $element_value );
|
572 |
}
|
573 |
}
|
574 |
}
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -496,7 +496,7 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
496 |
$url = admin_url( "admin.php{$url}" );
|
497 |
}
|
498 |
|
499 |
-
return $url;
|
500 |
}
|
501 |
|
502 |
/**
|
496 |
$url = admin_url( "admin.php{$url}" );
|
497 |
}
|
498 |
|
499 |
+
return apply_filters( 'yith_plugin_fw_panel_url', $url, $page, $tab, $sub_tab, $parent_page );
|
500 |
}
|
501 |
|
502 |
/**
|
plugin-fw/yit-plugin.php
CHANGED
@@ -158,7 +158,8 @@ if( ! function_exists( 'yit_plugin_fw_row_meta' ) ){
|
|
158 |
}
|
159 |
|
160 |
if( ! empty( $url ) && ! empty( $label ) ){
|
161 |
-
|
|
|
162 |
}
|
163 |
}
|
164 |
|
158 |
}
|
159 |
|
160 |
if( ! empty( $url ) && ! empty( $label ) ){
|
161 |
+
$url = trailingslashit( $url );
|
162 |
+
$plugin_meta[] = sprintf( '<a href="%s" target="_blank"><span class="%s"></span>%s</a>', $url, $icon, $label );
|
163 |
}
|
164 |
}
|
165 |
|
plugin-options/settings-options.php
CHANGED
@@ -8,97 +8,73 @@
|
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*/
|
10 |
|
11 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
|
13 |
} // Exit if accessed directly
|
14 |
|
15 |
-
global $YITH_WC_Catalog_Mode;
|
16 |
-
|
17 |
return array(
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
'button' => array(
|
34 |
-
'href' => $YITH_WC_Catalog_Mode->get_premium_landing_uri(),
|
35 |
-
'title' => 'Get Support and Pro Features'
|
36 |
-
)
|
37 |
-
),
|
38 |
-
'id' => 'ywctm_general_videobox'
|
39 |
-
),
|
40 |
-
|
41 |
-
'ywctm_general_title' => array(
|
42 |
-
'name' => __( 'General Settings', 'yith-woocommerce-catalog-mode' ),
|
43 |
-
'type' => 'title',
|
44 |
-
),
|
45 |
-
'ywctm_enable_plugin' => array(
|
46 |
-
'name' => __( 'Enable YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
47 |
-
'type' => 'checkbox',
|
48 |
-
'desc' => '',
|
49 |
-
'id' => 'ywctm_enable_plugin',
|
50 |
-
'default' => 'yes',
|
51 |
-
),
|
52 |
-
'ywctm_general_end' => array(
|
53 |
-
'type' => 'sectionend',
|
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 |
|
104 |
);
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*/
|
10 |
|
11 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
+
exit;
|
13 |
} // Exit if accessed directly
|
14 |
|
|
|
|
|
15 |
return array(
|
16 |
+
'settings' => array(
|
17 |
+
'ywctm_general_title' => array(
|
18 |
+
'name' => __( 'General Settings', 'yith-woocommerce-catalog-mode' ),
|
19 |
+
'type' => 'title',
|
20 |
+
),
|
21 |
+
'ywctm_enable_plugin' => array(
|
22 |
+
'name' => __( 'Enable YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
23 |
+
'type' => 'checkbox',
|
24 |
+
'desc' => '',
|
25 |
+
'id' => 'ywctm_enable_plugin',
|
26 |
+
'default' => 'yes',
|
27 |
+
),
|
28 |
+
'ywctm_general_end' => array(
|
29 |
+
'type' => 'sectionend',
|
30 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
+
'ywctm_catalog_mode_title' => array(
|
33 |
+
'name' => __( 'Catalog Mode Settings', 'yith-woocommerce-catalog-mode' ),
|
34 |
+
'type' => 'title',
|
35 |
+
),
|
36 |
+
'ywctm_catalog_mode_disable_add_to_cart_single' => array(
|
37 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
38 |
+
'type' => 'checkbox',
|
39 |
+
'desc' => __( 'Hide in product detail page', 'yith-woocommerce-catalog-mode' ),
|
40 |
+
'id' => 'ywctm_hide_add_to_cart_single',
|
41 |
+
'default' => 'no',
|
42 |
+
'checkboxgroup' => 'start'
|
43 |
+
),
|
44 |
+
'ywctm_catalog_mode_disable_add_to_cart_loop' => array(
|
45 |
+
'type' => 'checkbox',
|
46 |
+
'desc' => __( 'Hide in other shop pages', 'yith-woocommerce-catalog-mode' ),
|
47 |
+
'id' => 'ywctm_hide_add_to_cart_loop',
|
48 |
+
'default' => 'no',
|
49 |
+
'checkboxgroup' => ''
|
50 |
|
51 |
+
),
|
52 |
+
'ywctm_catalog_mode_admin_view' => array(
|
53 |
+
'name' => __( 'Admin View', 'yith-woocommerce-catalog-mode' ),
|
54 |
+
'type' => 'checkbox',
|
55 |
+
'desc' => __( 'Enable Catalog Mode also for administrators', 'yith-woocommerce-catalog-mode' ),
|
56 |
+
'id' => 'ywctm_admin_view',
|
57 |
+
'default' => 'yes',
|
58 |
+
),
|
59 |
+
'ywctm_catalog_mode_section_end' => array(
|
60 |
+
'type' => 'sectionend',
|
61 |
+
),
|
62 |
|
63 |
+
'ywctm_other_section_title' => array(
|
64 |
+
'name' => __( 'Other Settings', 'yith-woocommerce-catalog-mode' ),
|
65 |
+
'type' => 'title',
|
66 |
+
'desc' => '',
|
67 |
+
),
|
68 |
+
'ywctm_other_disable_cart_in_header' => array(
|
69 |
+
'name' => __( 'Disable shop', 'yith-woocommerce-catalog-mode' ),
|
70 |
+
'type' => 'checkbox',
|
71 |
+
'desc' => __( 'Hide and disable "Cart" page, "Checkout" page and all "Add to Cart" buttons', 'yith-woocommerce-catalog-mode' ),
|
72 |
+
'id' => 'ywctm_hide_cart_header',
|
73 |
+
'default' => 'no',
|
74 |
+
),
|
75 |
+
'ywctm_other_section_end' => array(
|
76 |
+
'type' => 'sectionend',
|
77 |
+
)
|
78 |
+
)
|
79 |
|
80 |
);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.3
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -113,6 +113,10 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
116 |
= Version 1.6.14 - Released: 29 November 2019 =
|
117 |
|
118 |
* Update: plugin framework
|
@@ -313,7 +317,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
313 |
|
314 |
== Upgrade Notice ==
|
315 |
|
316 |
-
Last Stable Tag 1.6.
|
317 |
|
318 |
== Suggestions ==
|
319 |
|
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.3
|
7 |
+
Stable tag: 1.6.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= Version 1.6.15 - Released: 11 December 2019 =
|
117 |
+
|
118 |
+
* Update: plugin framework
|
119 |
+
|
120 |
= Version 1.6.14 - Released: 29 November 2019 =
|
121 |
|
122 |
* Update: plugin framework
|
317 |
|
318 |
== Upgrade Notice ==
|
319 |
|
320 |
+
Last Stable Tag 1.6.15
|
321 |
|
322 |
== Suggestions ==
|
323 |
|