Version Description
- Updated: changed text domain from ywctm to yith-woocommerce-catalog-mode
- Updated: changed all language file for the new text domain
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- class.yith-woocommerce-catalog-mode.php +9 -9
- init.php +6 -6
- languages/{ywctm.pot → yith-woocommerce-catalog-mode.pot} +2 -2
- plugin-fw/lib/yit-upgrade.php +21 -2
- plugin-options/settings-options.php +24 -24
- readme.txt +18 -3
- templates/admin/premium.php +21 -21
class.yith-woocommerce-catalog-mode.php
CHANGED
@@ -599,22 +599,22 @@ class YITH_WC_Catalog_Mode {
|
|
599 |
}
|
600 |
|
601 |
$admin_tabs = array(
|
602 |
-
'settings' => __( 'Settings', '
|
603 |
);
|
604 |
|
605 |
if ( defined( 'YWCTM_PREMIUM' ) ) {
|
606 |
-
$admin_tabs['premium'] = __( 'Premium Settings', '
|
607 |
-
$admin_tabs['exclusions'] = __( 'Exclusion List', '
|
608 |
}
|
609 |
else {
|
610 |
-
$admin_tabs['premium-landing'] = __( 'Premium Version', '
|
611 |
}
|
612 |
|
613 |
$args = array(
|
614 |
'create_menu_page' => true,
|
615 |
'parent_slug' => '',
|
616 |
-
'page_title' => __( 'Catalog Mode', '
|
617 |
-
'menu_title' => __( 'Catalog Mode', '
|
618 |
'capability' => 'manage_options',
|
619 |
'parent' => '',
|
620 |
'parent_page' => 'yit_plugin_panel',
|
@@ -668,10 +668,10 @@ class YITH_WC_Catalog_Mode {
|
|
668 |
*/
|
669 |
public function action_links( $links ) {
|
670 |
|
671 |
-
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', '
|
672 |
|
673 |
if ( defined( 'YWCTM_FREE_INIT' ) ) {
|
674 |
-
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', '
|
675 |
}
|
676 |
|
677 |
return $links;
|
@@ -697,7 +697,7 @@ class YITH_WC_Catalog_Mode {
|
|
697 |
( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
|
698 |
) {
|
699 |
|
700 |
-
$plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', '
|
701 |
}
|
702 |
|
703 |
return $plugin_meta;
|
599 |
}
|
600 |
|
601 |
$admin_tabs = array(
|
602 |
+
'settings' => __( 'Settings', 'yith-woocommerce-catalog-mode' ),
|
603 |
);
|
604 |
|
605 |
if ( defined( 'YWCTM_PREMIUM' ) ) {
|
606 |
+
$admin_tabs['premium'] = __( 'Premium Settings', 'yith-woocommerce-catalog-mode' );
|
607 |
+
$admin_tabs['exclusions'] = __( 'Exclusion List', 'yith-woocommerce-catalog-mode' );
|
608 |
}
|
609 |
else {
|
610 |
+
$admin_tabs['premium-landing'] = __( 'Premium Version', 'yith-woocommerce-catalog-mode' );
|
611 |
}
|
612 |
|
613 |
$args = array(
|
614 |
'create_menu_page' => true,
|
615 |
'parent_slug' => '',
|
616 |
+
'page_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
617 |
+
'menu_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
618 |
'capability' => 'manage_options',
|
619 |
'parent' => '',
|
620 |
'parent_page' => 'yit_plugin_panel',
|
668 |
*/
|
669 |
public function action_links( $links ) {
|
670 |
|
671 |
+
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
672 |
|
673 |
if ( defined( 'YWCTM_FREE_INIT' ) ) {
|
674 |
+
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
675 |
}
|
676 |
|
677 |
return $links;
|
697 |
( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
|
698 |
) {
|
699 |
|
700 |
+
$plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
701 |
}
|
702 |
|
703 |
return $plugin_meta;
|
init.php
CHANGED
@@ -4,8 +4,8 @@ Plugin Name: YITH WooCommerce Catalog Mode
|
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
|
5 |
Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
|
6 |
Author: Yithemes
|
7 |
-
Text Domain:
|
8 |
-
Version: 1.1.
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
@@ -20,7 +20,7 @@ if ( ! function_exists( 'is_plugin_active' ) ) {
|
|
20 |
function ywctm_install_woocommerce_admin_notice() {
|
21 |
?>
|
22 |
<div class="error">
|
23 |
-
<p><?php _e( 'YITH WooCommerce Catalog Mode is enabled but not effective. It requires WooCommerce in order to work.', '
|
24 |
</div>
|
25 |
<?php
|
26 |
}
|
@@ -28,13 +28,13 @@ function ywctm_install_woocommerce_admin_notice() {
|
|
28 |
function ywctm_install_free_admin_notice() {
|
29 |
?>
|
30 |
<div class="error">
|
31 |
-
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Catalog Mode while you are using the premium one.', '
|
32 |
</div>
|
33 |
<?php
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
37 |
-
define( 'YWCTM_VERSION', '1.1.
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
@@ -64,7 +64,7 @@ if ( ! defined( 'YWCTM_TEMPLATE_PATH' ) ) {
|
|
64 |
function ywctm_init() {
|
65 |
|
66 |
/* Load YWCTM text domain */
|
67 |
-
load_plugin_textdomain( '
|
68 |
|
69 |
global $YITH_WC_Catalog_Mode;
|
70 |
$YITH_WC_Catalog_Mode = new YITH_WC_Catalog_Mode();
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
|
5 |
Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
|
6 |
Author: Yithemes
|
7 |
+
Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
Version: 1.1.4
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
20 |
function ywctm_install_woocommerce_admin_notice() {
|
21 |
?>
|
22 |
<div class="error">
|
23 |
+
<p><?php _e( 'YITH WooCommerce Catalog Mode is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-catalog-mode' ); ?></p>
|
24 |
</div>
|
25 |
<?php
|
26 |
}
|
28 |
function ywctm_install_free_admin_notice() {
|
29 |
?>
|
30 |
<div class="error">
|
31 |
+
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Catalog Mode while you are using the premium one.', 'yith-woocommerce-catalog-mode' ); ?></p>
|
32 |
</div>
|
33 |
<?php
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
37 |
+
define( 'YWCTM_VERSION', '1.1.4' );
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
64 |
function ywctm_init() {
|
65 |
|
66 |
/* Load YWCTM text domain */
|
67 |
+
load_plugin_textdomain( 'yith-woocommerce-catalog-mode', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
68 |
|
69 |
global $YITH_WC_Catalog_Mode;
|
70 |
$YITH_WC_Catalog_Mode = new YITH_WC_Catalog_Mode();
|
languages/{ywctm.pot → yith-woocommerce-catalog-mode.pot}
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Catalog Mode\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Catalog Mode\n"
|
4 |
+
"POT-Creation-Date: 2015-10-02 09:48+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-10-02 09:48+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -190,15 +190,34 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
190 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
191 |
*/
|
192 |
protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
/**
|
195 |
* It isn't YITH Premium plugins, please wordpress update it for me!
|
196 |
*/
|
197 |
-
if( !
|
198 |
return $reply;
|
199 |
}
|
200 |
|
201 |
-
|
202 |
|
203 |
/**
|
204 |
* False ? It isn't YITH Premium plugins, please wordpress update it for me!
|
190 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
191 |
*/
|
192 |
protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
|
193 |
+
$plugin = false;
|
194 |
+
$is_bulk = $upgrader->skin instanceof Bulk_Plugin_Upgrader_Skin;
|
195 |
+
|
196 |
+
if( ! $is_bulk ){
|
197 |
+
$plugin = isset( $upgrader->skin->plugin ) ? $upgrader->skin->plugin : false;
|
198 |
+
}
|
199 |
+
|
200 |
+
else {
|
201 |
+
//Bulk action upgrade
|
202 |
+
$action_url = parse_url( $upgrader->skin->options['url'] );
|
203 |
+
parse_str( rawurldecode( htmlspecialchars_decode( $action_url['query'] ) ) );
|
204 |
+
$plugins = explode( ',', $plugins );
|
205 |
+
foreach( $plugins as $plugin_init ){
|
206 |
+
$to_upgrade = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $plugin_init );
|
207 |
+
if( $to_upgrade['Name'] == $upgrader->skin->plugin_info['Name'] ){
|
208 |
+
$plugin = $plugin_init;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
}
|
212 |
|
213 |
/**
|
214 |
* It isn't YITH Premium plugins, please wordpress update it for me!
|
215 |
*/
|
216 |
+
if( ! $plugin ) {
|
217 |
return $reply;
|
218 |
}
|
219 |
|
220 |
+
$plugin_info = YIT_Plugin_Licence()->get_product( $plugin );
|
221 |
|
222 |
/**
|
223 |
* False ? It isn't YITH Premium plugins, please wordpress update it for me!
|
plugin-options/settings-options.php
CHANGED
@@ -15,19 +15,19 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
15 |
global $YITH_WC_Catalog_Mode;
|
16 |
|
17 |
$videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
18 |
-
'name' => __( 'Upgrade to the PREMIUM VERSION', '
|
19 |
'type' => 'videobox',
|
20 |
'default' => array(
|
21 |
-
'plugin_name' => __( 'YITH WooCommerce Catalog Mode', '
|
22 |
-
'title_first_column' => __( 'Discover the Advanced Features', '
|
23 |
-
'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', '
|
24 |
'video' => array(
|
25 |
'video_id' => '120697979',
|
26 |
'video_image_url' => YWCTM_ASSETS_URL . '/images/yith-woocommerce-catalog-mode.jpg',
|
27 |
-
'video_description' => __( 'YITH WooCommerce Catalog Mode', '
|
28 |
),
|
29 |
-
'title_second_column' => __( 'Get Support and Pro Features', '
|
30 |
-
'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', '
|
31 |
'button' => array(
|
32 |
'href' => $YITH_WC_Catalog_Mode->get_premium_landing_uri(),
|
33 |
'title' => 'Get Support and Pro Features'
|
@@ -37,27 +37,27 @@ $videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
|
37 |
);
|
38 |
|
39 |
$exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
40 |
-
'name' => __( '"Add to cart" button', '
|
41 |
'type' => 'checkbox',
|
42 |
-
'desc' => __( 'Exclude selected products (See "Exclusions" tab)', '
|
43 |
'id' => 'ywctm_exclude_hide_add_to_cart',
|
44 |
'default' => 'no',
|
45 |
'checkboxgroup' => ''
|
46 |
);
|
47 |
|
48 |
$reverse_exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
49 |
-
'name' => __( '"Add to cart" button', '
|
50 |
'type' => 'checkbox',
|
51 |
-
'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', '
|
52 |
'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
|
53 |
'default' => 'no',
|
54 |
'checkboxgroup' => ''
|
55 |
);
|
56 |
|
57 |
$product_variations = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
58 |
-
'name' => __( 'Variable products', '
|
59 |
'type' => 'checkbox',
|
60 |
-
'desc' => __( 'Hide product variations', '
|
61 |
'id' => 'ywctm_hide_variations',
|
62 |
'default' => 'no',
|
63 |
'checkboxgroup' => 'end'
|
@@ -68,21 +68,21 @@ return array(
|
|
68 |
'section_general_settings_videobox' => $videobox,
|
69 |
|
70 |
'catalog_mode_general_title' => array(
|
71 |
-
'name' => __( 'General Settings', '
|
72 |
'type' => 'title',
|
73 |
'desc' => '',
|
74 |
),
|
75 |
'catalog_mode_general_enable_plugin' => array(
|
76 |
-
'name' => __( 'Enable YITH Woocommerce Catalog Mode', '
|
77 |
'type' => 'checkbox',
|
78 |
'desc' => '',
|
79 |
'id' => 'ywctm_enable_plugin',
|
80 |
'default' => 'yes',
|
81 |
),
|
82 |
'catalog_mode_general_admin_view' => array(
|
83 |
-
'name' => __( 'Admin View', '
|
84 |
'type' => 'checkbox',
|
85 |
-
'desc' => __( 'Enable Catalog Mode also for administrators', '
|
86 |
'id' => 'ywctm_admin_view',
|
87 |
'default' => 'yes',
|
88 |
),
|
@@ -91,22 +91,22 @@ return array(
|
|
91 |
),
|
92 |
|
93 |
'catalog_mode_section_title' => array(
|
94 |
-
'name' => __( 'Catalog Mode Settings', '
|
95 |
'type' => 'title',
|
96 |
'desc' => '',
|
97 |
),
|
98 |
'catalog_mode_settings_disable_add_to_cart_single' => array(
|
99 |
-
'name' => __( '"Add to cart" button', '
|
100 |
'type' => 'checkbox',
|
101 |
-
'desc' => __( 'Hide in product details page', '
|
102 |
'id' => 'ywctm_hide_add_to_cart_single',
|
103 |
'default' => 'no',
|
104 |
'checkboxgroup' => 'start'
|
105 |
),
|
106 |
'catalog_mode_settings_disable_add_to_cart_loop' => array(
|
107 |
-
'name' => __( '"Add to cart" button', '
|
108 |
'type' => 'checkbox',
|
109 |
-
'desc' => __( 'Hide in other pages', '
|
110 |
'id' => 'ywctm_hide_add_to_cart_loop',
|
111 |
'default' => 'no',
|
112 |
'checkboxgroup' => !defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
|
@@ -115,9 +115,9 @@ return array(
|
|
115 |
'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
|
116 |
'catalog_mode_settings_variable_products' => $product_variations,
|
117 |
'catalog_mode_settings_disable_cart_in_header' => array(
|
118 |
-
'name' => __( '"Cart" and "Checkout" pages', '
|
119 |
'type' => 'checkbox',
|
120 |
-
'desc' => __( 'Hide and disable all shop features', '
|
121 |
'id' => 'ywctm_hide_cart_header',
|
122 |
'default' => 'no',
|
123 |
),
|
15 |
global $YITH_WC_Catalog_Mode;
|
16 |
|
17 |
$videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
18 |
+
'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-woocommerce-catalog-mode' ),
|
19 |
'type' => 'videobox',
|
20 |
'default' => array(
|
21 |
+
'plugin_name' => __( 'YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
22 |
+
'title_first_column' => __( 'Discover the Advanced Features', 'yith-woocommerce-catalog-mode' ),
|
23 |
+
'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', 'yith-woocommerce-catalog-mode' ),
|
24 |
'video' => array(
|
25 |
'video_id' => '120697979',
|
26 |
'video_image_url' => YWCTM_ASSETS_URL . '/images/yith-woocommerce-catalog-mode.jpg',
|
27 |
+
'video_description' => __( 'YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
28 |
),
|
29 |
+
'title_second_column' => __( 'Get Support and Pro Features', 'yith-woocommerce-catalog-mode' ),
|
30 |
+
'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yith-woocommerce-catalog-mode' ),
|
31 |
'button' => array(
|
32 |
'href' => $YITH_WC_Catalog_Mode->get_premium_landing_uri(),
|
33 |
'title' => 'Get Support and Pro Features'
|
37 |
);
|
38 |
|
39 |
$exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
40 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
41 |
'type' => 'checkbox',
|
42 |
+
'desc' => __( 'Exclude selected products (See "Exclusions" tab)', 'yith-woocommerce-catalog-mode' ),
|
43 |
'id' => 'ywctm_exclude_hide_add_to_cart',
|
44 |
'default' => 'no',
|
45 |
'checkboxgroup' => ''
|
46 |
);
|
47 |
|
48 |
$reverse_exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
49 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
50 |
'type' => 'checkbox',
|
51 |
+
'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', 'yith-woocommerce-catalog-mode' ),
|
52 |
'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
|
53 |
'default' => 'no',
|
54 |
'checkboxgroup' => ''
|
55 |
);
|
56 |
|
57 |
$product_variations = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
58 |
+
'name' => __( 'Variable products', 'yith-woocommerce-catalog-mode' ),
|
59 |
'type' => 'checkbox',
|
60 |
+
'desc' => __( 'Hide product variations', 'yith-woocommerce-catalog-mode' ),
|
61 |
'id' => 'ywctm_hide_variations',
|
62 |
'default' => 'no',
|
63 |
'checkboxgroup' => 'end'
|
68 |
'section_general_settings_videobox' => $videobox,
|
69 |
|
70 |
'catalog_mode_general_title' => array(
|
71 |
+
'name' => __( 'General Settings', 'yith-woocommerce-catalog-mode' ),
|
72 |
'type' => 'title',
|
73 |
'desc' => '',
|
74 |
),
|
75 |
'catalog_mode_general_enable_plugin' => array(
|
76 |
+
'name' => __( 'Enable YITH Woocommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
77 |
'type' => 'checkbox',
|
78 |
'desc' => '',
|
79 |
'id' => 'ywctm_enable_plugin',
|
80 |
'default' => 'yes',
|
81 |
),
|
82 |
'catalog_mode_general_admin_view' => array(
|
83 |
+
'name' => __( 'Admin View', 'yith-woocommerce-catalog-mode' ),
|
84 |
'type' => 'checkbox',
|
85 |
+
'desc' => __( 'Enable Catalog Mode also for administrators', 'yith-woocommerce-catalog-mode' ),
|
86 |
'id' => 'ywctm_admin_view',
|
87 |
'default' => 'yes',
|
88 |
),
|
91 |
),
|
92 |
|
93 |
'catalog_mode_section_title' => array(
|
94 |
+
'name' => __( 'Catalog Mode Settings', 'yith-woocommerce-catalog-mode' ),
|
95 |
'type' => 'title',
|
96 |
'desc' => '',
|
97 |
),
|
98 |
'catalog_mode_settings_disable_add_to_cart_single' => array(
|
99 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
100 |
'type' => 'checkbox',
|
101 |
+
'desc' => __( 'Hide in product details page', 'yith-woocommerce-catalog-mode' ),
|
102 |
'id' => 'ywctm_hide_add_to_cart_single',
|
103 |
'default' => 'no',
|
104 |
'checkboxgroup' => 'start'
|
105 |
),
|
106 |
'catalog_mode_settings_disable_add_to_cart_loop' => array(
|
107 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
108 |
'type' => 'checkbox',
|
109 |
+
'desc' => __( 'Hide in other pages', 'yith-woocommerce-catalog-mode' ),
|
110 |
'id' => 'ywctm_hide_add_to_cart_loop',
|
111 |
'default' => 'no',
|
112 |
'checkboxgroup' => !defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
|
115 |
'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
|
116 |
'catalog_mode_settings_variable_products' => $product_variations,
|
117 |
'catalog_mode_settings_disable_cart_in_header' => array(
|
118 |
+
'name' => __( '"Cart" and "Checkout" pages', 'yith-woocommerce-catalog-mode' ),
|
119 |
'type' => 'checkbox',
|
120 |
+
'desc' => __( 'Hide and disable all shop features', 'yith-woocommerce-catalog-mode' ),
|
121 |
'id' => 'ywctm_hide_cart_header',
|
122 |
'default' => 'no',
|
123 |
),
|
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: 4.3.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -91,11 +91,18 @@ If none of the previous listed actions helps you solve the problem, then, submit
|
|
91 |
= How can I get more features for my WooCommerce plugin? =
|
92 |
You can get more features with the premium version of YITH WooCommerce Catalog Mode, available on [YIThemes page](https://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode). Here you can read more about the premium features of the plugin and make it give it its best shot!
|
93 |
|
94 |
-
|
95 |
= How can I try the full-featured plugin? =
|
96 |
|
97 |
If you want to see a demonstration version of the premium plugin, you can see that in [this page](http://plugins.yithemes.com/yith-woocommerce-catalog-mode). Browse it and try all options available so that you can see how your plugin looks like.
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
== Screenshots ==
|
100 |
|
101 |
1. This is the settings page of YITH WooCommerce Catalog Mode, you can find it in YIT Plugins menu item. You can hide WooCommerce "Add to Cart" buttons and WooCommerce Cart and Checkout pages.
|
@@ -106,6 +113,11 @@ If you want to see a demonstration version of the premium plugin, you can see th
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
109 |
= 1.1.3 =
|
110 |
|
111 |
* Various code improvements
|
@@ -168,7 +180,7 @@ If you want to see a demonstration version of the premium plugin, you can see th
|
|
168 |
|
169 |
== Upgrade Notice ==
|
170 |
|
171 |
-
Last Stable Tag 1.1.
|
172 |
|
173 |
== Suggestions ==
|
174 |
|
@@ -177,6 +189,9 @@ If you have suggestions about how to improve YITH WooCommerce Catalog Mode, you
|
|
177 |
== Translators ==
|
178 |
|
179 |
= Available Languages =
|
|
|
|
|
|
|
180 |
* English
|
181 |
|
182 |
If you have created your own language pack, or have an update for an existing one, you can send [gettext PO and MO file](http://codex.wordpress.org/Translating_WordPress "Translating WordPress")
|
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: 4.3.1
|
7 |
+
Stable tag: 1.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
91 |
= How can I get more features for my WooCommerce plugin? =
|
92 |
You can get more features with the premium version of YITH WooCommerce Catalog Mode, available on [YIThemes page](https://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode). Here you can read more about the premium features of the plugin and make it give it its best shot!
|
93 |
|
|
|
94 |
= How can I try the full-featured plugin? =
|
95 |
|
96 |
If you want to see a demonstration version of the premium plugin, you can see that in [this page](http://plugins.yithemes.com/yith-woocommerce-catalog-mode). Browse it and try all options available so that you can see how your plugin looks like.
|
97 |
|
98 |
+
= What are the main changes in plugin translation? =
|
99 |
+
Recently YITH WooCommerce Catalog Mode has been selected to be included in the "translate.wordpress.org" translate programme.
|
100 |
+
In order to import correctly the plugin strings in the new system, we had to change the text domain form 'ywctm' to 'yith-woocommerce-catalog-mode'.
|
101 |
+
Once the plugin will be imported in the translate.wordpress.org system, the translations of other languages will be downloaded directly from WordPress, without using any .po and .mo files. Moreover, users will be able to participate in a more direct way to plugin translations, suggesting texts in their languages in the dedicated tab on translate.wordpress.org.
|
102 |
+
During this transition step, .po and .mo files will be used as always, but in order to be recognized by WordPress, they will need to have a new nomenclature, renaming them in:
|
103 |
+
yith-woocommerce-catalog-mode-<WORDPRESS LOCALE>.po
|
104 |
+
yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
105 |
+
|
106 |
== Screenshots ==
|
107 |
|
108 |
1. This is the settings page of YITH WooCommerce Catalog Mode, you can find it in YIT Plugins menu item. You can hide WooCommerce "Add to Cart" buttons and WooCommerce Cart and Checkout pages.
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.1.4 =
|
117 |
+
|
118 |
+
* Updated: changed text domain from ywctm to yith-woocommerce-catalog-mode
|
119 |
+
* Updated: changed all language file for the new text domain
|
120 |
+
|
121 |
= 1.1.3 =
|
122 |
|
123 |
* Various code improvements
|
180 |
|
181 |
== Upgrade Notice ==
|
182 |
|
183 |
+
Last Stable Tag 1.1.4
|
184 |
|
185 |
== Suggestions ==
|
186 |
|
189 |
== Translators ==
|
190 |
|
191 |
= Available Languages =
|
192 |
+
|
193 |
+
**NOTE: The translation process of this plugin has been changed by WordPress. Please, read the correlated FAQ to be updated about the news changes.**
|
194 |
+
|
195 |
* English
|
196 |
|
197 |
If you have created your own language pack, or have an update for an existing one, you can send [gettext PO and MO file](http://codex.wordpress.org/Translating_WordPress "Translating WordPress")
|
templates/admin/premium.php
CHANGED
@@ -223,17 +223,17 @@
|
|
223 |
<div class="landing-container">
|
224 |
<div class="premium-cta">
|
225 |
<p>
|
226 |
-
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','
|
227 |
</p>
|
228 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
229 |
-
<span class="highlight"><?php _e('UPGRADE','
|
230 |
-
<span><?php _e('to the premium version','
|
231 |
</a>
|
232 |
</div>
|
233 |
</div>
|
234 |
</div>
|
235 |
<div class="one section section-even clear">
|
236 |
-
<h1><?php _e('Premium Features','
|
237 |
<div class="landing-container">
|
238 |
<div class="col-1">
|
239 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01.png" alt="Hide price" />
|
@@ -241,10 +241,10 @@
|
|
241 |
<div class="col-2">
|
242 |
<div class="section-title">
|
243 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01-icon.png" alt="icon 01"/>
|
244 |
-
<h2><?php _e('Hide price','
|
245 |
</div>
|
246 |
<p>
|
247 |
-
<?php echo sprintf(__('Hide the price of products in your shop and replace it with a text. Decide if some of the products have to be excluded and if %1$shiding price%2$s has to be applied to all or restricted only to unlogged users.', '
|
248 |
</p>
|
249 |
</div>
|
250 |
</div>
|
@@ -254,10 +254,10 @@
|
|
254 |
<div class="col-2">
|
255 |
<div class="section-title">
|
256 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/02-icon.png" alt="icon 02" />
|
257 |
-
<h2><?php _e('Inquiry form','
|
258 |
</div>
|
259 |
<p>
|
260 |
-
<?php echo sprintf(__('Improve single product page by adding a tab with an %1$sinquiry form%2$s explicitly thought to let them send messages to site administrator.', '
|
261 |
</p>
|
262 |
</div>
|
263 |
<div class="col-1">
|
@@ -273,10 +273,10 @@
|
|
273 |
<div class="col-2">
|
274 |
<div class="section-title">
|
275 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/03-icon.png" alt="icon 03" />
|
276 |
-
<h2><?php _e( 'Custom button','
|
277 |
</div>
|
278 |
<p>
|
279 |
-
<?php echo sprintf(__('Add a button in single product page to call users to a specific %1$saction%2$s, depending on the specified %1$slink%2$s (email sending, skype call, telephone call).', '
|
280 |
</p>
|
281 |
</div>
|
282 |
</div>
|
@@ -286,10 +286,10 @@
|
|
286 |
<div class="col-2">
|
287 |
<div class="section-title">
|
288 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/04-icon.png" alt="icon 04" />
|
289 |
-
<h2><?php _e('Product reviews','
|
290 |
</div>
|
291 |
<p>
|
292 |
-
<?php echo sprintf(__('You can disable product %1$sreviewing system%2$s of your shop and decide if applying it to all users or just to unlogged ones.', '
|
293 |
</p>
|
294 |
</div>
|
295 |
<div class="col-1">
|
@@ -305,10 +305,10 @@
|
|
305 |
<div class="col-2">
|
306 |
<div class="section-title">
|
307 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/05-icon.png" alt="icon 05" />
|
308 |
-
<h2><?php _e('Exclusion list','
|
309 |
</div>
|
310 |
<p>
|
311 |
-
<?php echo sprintf( __('Set plugin options, but if you want that options concerning price visibility and ‘Add to cart’ do not apply to specific products, add them to %1$sexclusion list%2$s and, voilà, problem solved.','
|
312 |
</p>
|
313 |
</div>
|
314 |
</div>
|
@@ -318,10 +318,10 @@
|
|
318 |
<div class="col-2">
|
319 |
<div class="section-title">
|
320 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/06-icon.png" alt="icon 06" />
|
321 |
-
<h2><?php _e('REVERSE EXCLUSION LIST','
|
322 |
</div>
|
323 |
<p>
|
324 |
-
<?php echo sprintf( __( 'Apply Catalog Mode to some items only: add them to the "Exclusion List" and %1$smake it work in the opposite way as usual%2$s. All items in the shop show price and “Add to Cart” button, while items in the list don’t.','
|
325 |
</p>
|
326 |
</div>
|
327 |
<div class="col-1">
|
@@ -337,10 +337,10 @@
|
|
337 |
<div class="col-2">
|
338 |
<div class="section-title">
|
339 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/07-icon.png" alt="icon 05" />
|
340 |
-
<h2><?php _e('Source page of the request','
|
341 |
</div>
|
342 |
<p>
|
343 |
-
<?php echo sprintf( __('Thanks to the %1$s"Product Permalink"%2$s option you will be able to know from which page your users have generated the request.%3$sThe email generated from the request form will include the address of the page: another important information that can be really useful for you.','
|
344 |
</p>
|
345 |
</div>
|
346 |
</div>
|
@@ -349,11 +349,11 @@
|
|
349 |
<div class="landing-container">
|
350 |
<div class="premium-cta">
|
351 |
<p>
|
352 |
-
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','
|
353 |
</p>
|
354 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
355 |
-
<span class="highlight"><?php _e('UPGRADE','
|
356 |
-
<span><?php _e('to the premium version','
|
357 |
</a>
|
358 |
</div>
|
359 |
</div>
|
223 |
<div class="landing-container">
|
224 |
<div class="premium-cta">
|
225 |
<p>
|
226 |
+
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','yith-woocommerce-catalog-mode'),'<span class="highlight">','</span>' );?>
|
227 |
</p>
|
228 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
229 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-catalog-mode');?></span>
|
230 |
+
<span><?php _e('to the premium version','yith-woocommerce-catalog-mode');?></span>
|
231 |
</a>
|
232 |
</div>
|
233 |
</div>
|
234 |
</div>
|
235 |
<div class="one section section-even clear">
|
236 |
+
<h1><?php _e('Premium Features','yith-woocommerce-catalog-mode');?></h1>
|
237 |
<div class="landing-container">
|
238 |
<div class="col-1">
|
239 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01.png" alt="Hide price" />
|
241 |
<div class="col-2">
|
242 |
<div class="section-title">
|
243 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01-icon.png" alt="icon 01"/>
|
244 |
+
<h2><?php _e('Hide price','yith-woocommerce-catalog-mode');?></h2>
|
245 |
</div>
|
246 |
<p>
|
247 |
+
<?php echo sprintf(__('Hide the price of products in your shop and replace it with a text. Decide if some of the products have to be excluded and if %1$shiding price%2$s has to be applied to all or restricted only to unlogged users.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
248 |
</p>
|
249 |
</div>
|
250 |
</div>
|
254 |
<div class="col-2">
|
255 |
<div class="section-title">
|
256 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/02-icon.png" alt="icon 02" />
|
257 |
+
<h2><?php _e('Inquiry form','yith-woocommerce-catalog-mode');?></h2>
|
258 |
</div>
|
259 |
<p>
|
260 |
+
<?php echo sprintf(__('Improve single product page by adding a tab with an %1$sinquiry form%2$s explicitly thought to let them send messages to site administrator.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
261 |
</p>
|
262 |
</div>
|
263 |
<div class="col-1">
|
273 |
<div class="col-2">
|
274 |
<div class="section-title">
|
275 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/03-icon.png" alt="icon 03" />
|
276 |
+
<h2><?php _e( 'Custom button','yith-woocommerce-catalog-mode');?></h2>
|
277 |
</div>
|
278 |
<p>
|
279 |
+
<?php echo sprintf(__('Add a button in single product page to call users to a specific %1$saction%2$s, depending on the specified %1$slink%2$s (email sending, skype call, telephone call).', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
280 |
</p>
|
281 |
</div>
|
282 |
</div>
|
286 |
<div class="col-2">
|
287 |
<div class="section-title">
|
288 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/04-icon.png" alt="icon 04" />
|
289 |
+
<h2><?php _e('Product reviews','yith-woocommerce-catalog-mode');?></h2>
|
290 |
</div>
|
291 |
<p>
|
292 |
+
<?php echo sprintf(__('You can disable product %1$sreviewing system%2$s of your shop and decide if applying it to all users or just to unlogged ones.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
293 |
</p>
|
294 |
</div>
|
295 |
<div class="col-1">
|
305 |
<div class="col-2">
|
306 |
<div class="section-title">
|
307 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/05-icon.png" alt="icon 05" />
|
308 |
+
<h2><?php _e('Exclusion list','yith-woocommerce-catalog-mode');?></h2>
|
309 |
</div>
|
310 |
<p>
|
311 |
+
<?php echo sprintf( __('Set plugin options, but if you want that options concerning price visibility and ‘Add to cart’ do not apply to specific products, add them to %1$sexclusion list%2$s and, voilà, problem solved.','yith-woocommerce-catalog-mode'),'<b>','</b>'); ?>
|
312 |
</p>
|
313 |
</div>
|
314 |
</div>
|
318 |
<div class="col-2">
|
319 |
<div class="section-title">
|
320 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/06-icon.png" alt="icon 06" />
|
321 |
+
<h2><?php _e('REVERSE EXCLUSION LIST','yith-woocommerce-catalog-mode');?></h2>
|
322 |
</div>
|
323 |
<p>
|
324 |
+
<?php echo sprintf( __( 'Apply Catalog Mode to some items only: add them to the "Exclusion List" and %1$smake it work in the opposite way as usual%2$s. All items in the shop show price and “Add to Cart” button, while items in the list don’t.','yith-woocommerce-catalog-mode' ),'<b>','</b>' ) ?>
|
325 |
</p>
|
326 |
</div>
|
327 |
<div class="col-1">
|
337 |
<div class="col-2">
|
338 |
<div class="section-title">
|
339 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/07-icon.png" alt="icon 05" />
|
340 |
+
<h2><?php _e('Source page of the request','yith-woocommerce-catalog-mode');?></h2>
|
341 |
</div>
|
342 |
<p>
|
343 |
+
<?php echo sprintf( __('Thanks to the %1$s"Product Permalink"%2$s option you will be able to know from which page your users have generated the request.%3$sThe email generated from the request form will include the address of the page: another important information that can be really useful for you.','yith-woocommerce-catalog-mode'),'<b>','</b>','<br>'); ?>
|
344 |
</p>
|
345 |
</div>
|
346 |
</div>
|
349 |
<div class="landing-container">
|
350 |
<div class="premium-cta">
|
351 |
<p>
|
352 |
+
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','yith-woocommerce-catalog-mode'),'<span class="highlight">','</span>' );?>
|
353 |
</p>
|
354 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
355 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-catalog-mode');?></span>
|
356 |
+
<span><?php _e('to the premium version','yith-woocommerce-catalog-mode');?></span>
|
357 |
</a>
|
358 |
</div>
|
359 |
</div>
|