Version Description
- 14/06/2014 =
- Dev - Added loading plugin textdomain.
Download this release
Release Info
Developer | algoritmika |
Plugin | Booster for WooCommerce |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
includes/admin/settings/class-wc-settings-jetpack.php
CHANGED
@@ -17,7 +17,7 @@ class WC_Settings_Jetpack extends WC_Settings_Page {
|
|
17 |
*/
|
18 |
public function __construct() {
|
19 |
$this->id = 'jetpack';
|
20 |
-
$this->label = __( 'Jetpack', '
|
21 |
|
22 |
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
23 |
add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
|
@@ -33,7 +33,7 @@ class WC_Settings_Jetpack extends WC_Settings_Page {
|
|
33 |
public function get_sections() {
|
34 |
|
35 |
return apply_filters( 'wcj_settings_sections', array(
|
36 |
-
'' => __( 'Dashboard', '
|
37 |
) );
|
38 |
}
|
39 |
|
@@ -75,7 +75,7 @@ class WC_Settings_Jetpack extends WC_Settings_Page {
|
|
75 |
}
|
76 |
else {
|
77 |
|
78 |
-
$settings[] = array( 'title' => __( 'Features', '
|
79 |
|
80 |
$settings = apply_filters( 'wcj_features_status', $settings );
|
81 |
|
17 |
*/
|
18 |
public function __construct() {
|
19 |
$this->id = 'jetpack';
|
20 |
+
$this->label = __( 'Jetpack', 'woocommerce-jetpack' );
|
21 |
|
22 |
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
23 |
add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
|
33 |
public function get_sections() {
|
34 |
|
35 |
return apply_filters( 'wcj_settings_sections', array(
|
36 |
+
'' => __( 'Dashboard', 'woocommerce-jetpack' ),
|
37 |
) );
|
38 |
}
|
39 |
|
75 |
}
|
76 |
else {
|
77 |
|
78 |
+
$settings[] = array( 'title' => __( 'Features', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => $desc, 'id' => 'wcj_options' );
|
79 |
|
80 |
$settings = apply_filters( 'wcj_features_status', $settings );
|
81 |
|
includes/class-wcj-currencies.php
CHANGED
@@ -5,11 +5,11 @@
|
|
5 |
* The WooCommerce Jetpack currencies class stores currencies data.
|
6 |
*
|
7 |
* @class WCJ_Currencies
|
8 |
-
* @
|
9 |
-
* @package WooJetpack/Classes
|
10 |
* @category Class
|
11 |
* @author Algoritmika Ltd.
|
12 |
*/
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
if ( ! class_exists( 'WCJ_Currencies' ) ) :
|
@@ -386,8 +386,8 @@ class WCJ_Currencies {
|
|
386 |
if ( isset( $section['id'] ) && 'woocommerce_currency_pos' == $section['id'] ) {
|
387 |
|
388 |
$updated_settings[] = array(
|
389 |
-
'name' => __( 'Currency Symbol', '
|
390 |
-
'desc_tip' => __( 'This sets the currency symbol.', '
|
391 |
'id' => 'wcj_currency_' . get_woocommerce_currency(),
|
392 |
'type' => 'text',
|
393 |
'default' => get_woocommerce_currency_symbol(),
|
@@ -407,12 +407,12 @@ class WCJ_Currencies {
|
|
407 |
|
408 |
$settings = array(
|
409 |
|
410 |
-
array( 'title' => __( 'Currencies Options', '
|
411 |
|
412 |
array(
|
413 |
-
'title' => __( 'Currencies', '
|
414 |
-
'desc' => __( 'Enable the Currencies feature', '
|
415 |
-
'desc_tip' => __( 'Add all world currencies, change currency symbol.', '
|
416 |
'id' => 'wcj_currency_enabled',
|
417 |
'default' => 'yes',
|
418 |
'type' => 'checkbox'
|
@@ -420,12 +420,12 @@ class WCJ_Currencies {
|
|
420 |
|
421 |
array( 'type' => 'sectionend', 'id' => 'wcj_currency_options' ),
|
422 |
|
423 |
-
array( 'title' => __( 'Currency Symbol Options', '
|
424 |
);
|
425 |
|
426 |
foreach ($this->currencies_list as $currency_id => $currency_name)
|
427 |
$settings[] = array(
|
428 |
-
'title' =>
|
429 |
'desc_tip' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc_no_link' ),
|
430 |
'id' => 'wcj_currency_' . $currency_id,
|
431 |
'default' => $this->currencies_symbols_list[ $currency_id ],
|
@@ -449,7 +449,7 @@ class WCJ_Currencies {
|
|
449 |
function add_all_currencies( $currencies ) {
|
450 |
|
451 |
foreach ($this->currencies_list as $currency_id => $currency_name)
|
452 |
-
$currencies[$currency_id] =
|
453 |
|
454 |
asort ($currencies);
|
455 |
|
5 |
* The WooCommerce Jetpack currencies class stores currencies data.
|
6 |
*
|
7 |
* @class WCJ_Currencies
|
8 |
+
* @package WC_Jetpack/Classes
|
|
|
9 |
* @category Class
|
10 |
* @author Algoritmika Ltd.
|
11 |
*/
|
12 |
+
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
if ( ! class_exists( 'WCJ_Currencies' ) ) :
|
386 |
if ( isset( $section['id'] ) && 'woocommerce_currency_pos' == $section['id'] ) {
|
387 |
|
388 |
$updated_settings[] = array(
|
389 |
+
'name' => __( 'Currency Symbol', 'woocommerce-jetpack' ), //TODO name or title?????
|
390 |
+
'desc_tip' => __( 'This sets the currency symbol.', 'woocommerce-jetpack' ),
|
391 |
'id' => 'wcj_currency_' . get_woocommerce_currency(),
|
392 |
'type' => 'text',
|
393 |
'default' => get_woocommerce_currency_symbol(),
|
407 |
|
408 |
$settings = array(
|
409 |
|
410 |
+
array( 'title' => __( 'Currencies Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_currency_options' ),
|
411 |
|
412 |
array(
|
413 |
+
'title' => __( 'Currencies', 'woocommerce-jetpack' ),
|
414 |
+
'desc' => __( 'Enable the Currencies feature', 'woocommerce-jetpack' ),
|
415 |
+
'desc_tip' => __( 'Add all world currencies, change currency symbol.', 'woocommerce-jetpack' ),
|
416 |
'id' => 'wcj_currency_enabled',
|
417 |
'default' => 'yes',
|
418 |
'type' => 'checkbox'
|
420 |
|
421 |
array( 'type' => 'sectionend', 'id' => 'wcj_currency_options' ),
|
422 |
|
423 |
+
array( 'title' => __( 'Currency Symbol Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_all_currencies_list_options' ),
|
424 |
);
|
425 |
|
426 |
foreach ($this->currencies_list as $currency_id => $currency_name)
|
427 |
$settings[] = array(
|
428 |
+
'title' => $currency_name,
|
429 |
'desc_tip' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc_no_link' ),
|
430 |
'id' => 'wcj_currency_' . $currency_id,
|
431 |
'default' => $this->currencies_symbols_list[ $currency_id ],
|
449 |
function add_all_currencies( $currencies ) {
|
450 |
|
451 |
foreach ($this->currencies_list as $currency_id => $currency_name)
|
452 |
+
$currencies[ $currency_id ] = $currency_name;
|
453 |
|
454 |
asort ($currencies);
|
455 |
|
includes/class-wcj-price-labels.php
CHANGED
@@ -240,9 +240,9 @@ class WCJ_Price_Labels {
|
|
240 |
array( 'title' => __( 'Custom Price Labels Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_price_labels_options' ),
|
241 |
|
242 |
array(
|
243 |
-
'title' => __( 'Custom Price Labels', '
|
244 |
-
'desc' => __( 'Enable the Custom Price Labels feature', '
|
245 |
-
'desc_tip' => __( 'Create any custom price label for any product.', '
|
246 |
'id' => 'wcj_price_labels_enabled',
|
247 |
'default' => 'yes',
|
248 |
'type' => 'checkbox',
|
240 |
array( 'title' => __( 'Custom Price Labels Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_price_labels_options' ),
|
241 |
|
242 |
array(
|
243 |
+
'title' => __( 'Custom Price Labels', 'woocommerce-jetpack' ),
|
244 |
+
'desc' => __( 'Enable the Custom Price Labels feature', 'woocommerce-jetpack' ),
|
245 |
+
'desc_tip' => __( 'Create any custom price label for any product.', 'woocommerce-jetpack' ),
|
246 |
'id' => 'wcj_price_labels_enabled',
|
247 |
'default' => 'yes',
|
248 |
'type' => 'checkbox',
|
includes/class-wcj-product-info.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*
|
7 |
* @class WCJ_Product_Info
|
8 |
* @version 1.0.0
|
9 |
-
* @package
|
10 |
* @category Class
|
11 |
* @author Algoritmika Ltd.
|
12 |
*/
|
@@ -56,9 +56,9 @@ class WCJ_Product_Info {
|
|
56 |
array( 'title' => __( 'Product Info Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_product_info_options' ),
|
57 |
|
58 |
array(
|
59 |
-
'title' => __( 'Product Info', '
|
60 |
-
'desc' => __( 'Enable the Product Info feature', '
|
61 |
-
'desc_tip' => __( 'Display total product sales etc.', '
|
62 |
'id' => 'wcj_product_info_enabled',
|
63 |
'default' => 'yes',
|
64 |
'type' => 'checkbox'
|
@@ -70,9 +70,9 @@ class WCJ_Product_Info {
|
|
70 |
array( 'title' => __( 'Total Sales Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_product_info_total_sales_options' ),
|
71 |
|
72 |
array(
|
73 |
-
'title' => __( 'Enable', '
|
74 |
-
'desc' => __( 'Enable Total Sales', '
|
75 |
-
//'desc_tip'=> __( 'Display total product sales etc.', '
|
76 |
'id' => 'wcj_product_info_total_sales_enabled',
|
77 |
'default' => 'no',
|
78 |
'type' => 'checkbox'
|
6 |
*
|
7 |
* @class WCJ_Product_Info
|
8 |
* @version 1.0.0
|
9 |
+
* @package WC_Jetpack/Classes
|
10 |
* @category Class
|
11 |
* @author Algoritmika Ltd.
|
12 |
*/
|
56 |
array( 'title' => __( 'Product Info Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_product_info_options' ),
|
57 |
|
58 |
array(
|
59 |
+
'title' => __( 'Product Info', 'woocommerce-jetpack' ),
|
60 |
+
'desc' => __( 'Enable the Product Info feature', 'woocommerce-jetpack' ),
|
61 |
+
'desc_tip' => __( 'Display total product sales etc.', 'woocommerce-jetpack' ),
|
62 |
'id' => 'wcj_product_info_enabled',
|
63 |
'default' => 'yes',
|
64 |
'type' => 'checkbox'
|
70 |
array( 'title' => __( 'Total Sales Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_product_info_total_sales_options' ),
|
71 |
|
72 |
array(
|
73 |
+
'title' => __( 'Enable', 'woocommerce-jetpack' ),
|
74 |
+
'desc' => __( 'Enable Total Sales', 'woocommerce-jetpack' ),
|
75 |
+
//'desc_tip'=> __( 'Display total product sales etc.', 'woocommerce-jetpack' ),
|
76 |
'id' => 'wcj_product_info_total_sales_enabled',
|
77 |
'default' => 'no',
|
78 |
'type' => 'checkbox'
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WooCommerce Jetpack ===
|
2 |
Contributors: algoritmika
|
3 |
Donate link: http://algoritmika.com/donate/
|
4 |
-
Tags: woocommerce,jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs
|
5 |
-
Requires at least: 3.9
|
6 |
-
Tested up to: 3.9
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GNU General Public License v3.0
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -16,18 +16,18 @@ WooCommerce Jetpack is a WordPress plugin that supercharges your site with aweso
|
|
16 |
|
17 |
**What features does it have?**
|
18 |
|
19 |
-
* Custom Price Labels
|
20 |
-
* Call for Price
|
21 |
-
* Currencies
|
22 |
-
* More Sorting Options
|
23 |
-
* Old Slugs
|
24 |
|
25 |
= Feedback =
|
26 |
* We are open to your suggestions and feedback - Thank you for using or trying out one of our plugins!
|
27 |
-
* Drop us a line at [www.woojetpack.com](http://woojetpack.com/contact-us/)
|
28 |
|
29 |
= More =
|
30 |
-
*
|
31 |
|
32 |
== Installation ==
|
33 |
|
@@ -47,13 +47,16 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
-
= 1.0.
|
51 |
-
*
|
52 |
|
53 |
-
= 1.0.
|
54 |
-
*
|
|
|
|
|
|
|
55 |
|
56 |
== Upgrade Notice ==
|
57 |
|
58 |
= 1.0.0 =
|
59 |
-
This version
|
1 |
=== WooCommerce Jetpack ===
|
2 |
Contributors: algoritmika
|
3 |
Donate link: http://algoritmika.com/donate/
|
4 |
+
Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs
|
5 |
+
Requires at least: 3.9.1
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.0.2
|
8 |
License: GNU General Public License v3.0
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
16 |
|
17 |
**What features does it have?**
|
18 |
|
19 |
+
* Custom Price Labels - Create any custom price label for any product.
|
20 |
+
* Call for Price - Create any custom price label, like "Call for price", for all products with empty price.
|
21 |
+
* Currencies - Add all world currencies, change currency symbol.
|
22 |
+
* More Sorting Options - Add more sorting options or remove sorting (including default) at all.
|
23 |
+
* Old Slugs - Remove old product slugs.
|
24 |
|
25 |
= Feedback =
|
26 |
* We are open to your suggestions and feedback - Thank you for using or trying out one of our plugins!
|
27 |
+
* Drop us a line at [www.woojetpack.com/contact-us/](http://woojetpack.com/contact-us/)
|
28 |
|
29 |
= More =
|
30 |
+
* Visit the [WooCommerce Jetpack plugin page](http://woojetpack.com/)
|
31 |
|
32 |
== Installation ==
|
33 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.0.2 - 14/06/2014 =
|
51 |
+
* Dev - Added loading plugin textdomain.
|
52 |
|
53 |
+
= 1.0.1 - 13/06/2014 =
|
54 |
+
* Fix - Error with Custom Price Labels feature, affecting Plus version.
|
55 |
+
|
56 |
+
= 1.0.0 - 13/06/2014 =
|
57 |
+
* Initial Release.
|
58 |
|
59 |
== Upgrade Notice ==
|
60 |
|
61 |
= 1.0.0 =
|
62 |
+
This is first release version of the plugin.
|
woocommerce-jetpack.php
CHANGED
@@ -3,13 +3,14 @@
|
|
3 |
Plugin Name: WooCommerce Jetpack
|
4 |
Plugin URI: http://woojetpack.com
|
5 |
Description: Supercharge your WooCommerce site with these awesome powerful features.
|
6 |
-
Version: 1.0.
|
7 |
Author: Algoritmika Ltd.
|
8 |
Author URI: http://www.algoritmika.com
|
9 |
Copyright: © 2014 Algoritmika Ltd.
|
10 |
License: GNU General Public License v3.0
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
*/
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) return; // Check if WooCommerce is active
|
@@ -34,13 +35,16 @@ final class WC_Jetpack {
|
|
34 |
* Ensures only one instance of WC_Jetpack is loaded or can be loaded.
|
35 |
*
|
36 |
* @static
|
37 |
-
* @see
|
38 |
* @return WC_Jetpack - Main instance
|
39 |
*/
|
40 |
public static function instance() {
|
|
|
41 |
if ( is_null( self::$_instance ) ) {
|
|
|
42 |
self::$_instance = new self();
|
43 |
}
|
|
|
44 |
return self::$_instance;
|
45 |
}
|
46 |
|
@@ -48,14 +52,14 @@ final class WC_Jetpack {
|
|
48 |
* Cloning is forbidden.
|
49 |
*
|
50 |
public function __clone() {
|
51 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce
|
52 |
}
|
53 |
|
54 |
/**
|
55 |
* Unserializing instances of this class is forbidden.
|
56 |
*
|
57 |
public function __wakeup() {
|
58 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce
|
59 |
}
|
60 |
|
61 |
/**
|
@@ -69,7 +73,7 @@ final class WC_Jetpack {
|
|
69 |
|
70 |
// HOOKS
|
71 |
//register_activation_hook( __FILE__, array( $this, 'install' ) );
|
72 |
-
//
|
73 |
add_action( 'init', array( $this, 'init' ), 0 );
|
74 |
|
75 |
add_filter( 'wcjpc_filter', array( $this, 'wcjpc' ), 100 );
|
@@ -85,7 +89,11 @@ final class WC_Jetpack {
|
|
85 |
do_action( 'wcj_loaded' );
|
86 |
}
|
87 |
|
|
|
|
|
|
|
88 |
public function wcjpc( $value ) {
|
|
|
89 |
return $value;
|
90 |
}
|
91 |
|
@@ -94,12 +102,11 @@ final class WC_Jetpack {
|
|
94 |
switch ( $message_type ) {
|
95 |
|
96 |
case 'global':
|
97 |
-
return
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
</div>' );
|
103 |
|
104 |
case 'desc':
|
105 |
return __( 'Get <a href="http://woojetpack.com/plus/" target="_blank">WooCommerce Jetpack Plus</a> to change value.', 'woocommerce-jetpack' );
|
@@ -108,7 +115,7 @@ final class WC_Jetpack {
|
|
108 |
return __( 'Get <a href="http://woojetpack.com/plus/" target="_blank">WooCommerce Jetpack Plus</a> to change values below.', 'woocommerce-jetpack' );
|
109 |
|
110 |
case 'desc_no_link':
|
111 |
-
return __( 'Get WooCommerce Jetpack Plus to change value.', '
|
112 |
|
113 |
case 'readonly':
|
114 |
return array( 'readonly' => 'readonly' );
|
@@ -117,10 +124,10 @@ final class WC_Jetpack {
|
|
117 |
return array( 'disabled' => 'disabled' );
|
118 |
|
119 |
case 'readonly_string':
|
120 |
-
return
|
121 |
|
122 |
case 'disabled_string':
|
123 |
-
return
|
124 |
}
|
125 |
|
126 |
return $value;
|
@@ -195,7 +202,8 @@ final class WC_Jetpack {
|
|
195 |
|
196 |
// Set up localisation
|
197 |
//$this->load_plugin_textdomain();
|
198 |
-
|
|
|
199 |
// Init action
|
200 |
do_action( 'wcj_init' );
|
201 |
}
|
3 |
Plugin Name: WooCommerce Jetpack
|
4 |
Plugin URI: http://woojetpack.com
|
5 |
Description: Supercharge your WooCommerce site with these awesome powerful features.
|
6 |
+
Version: 1.0.2
|
7 |
Author: Algoritmika Ltd.
|
8 |
Author URI: http://www.algoritmika.com
|
9 |
Copyright: © 2014 Algoritmika Ltd.
|
10 |
License: GNU General Public License v3.0
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
*/
|
13 |
+
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
15 |
|
16 |
if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) return; // Check if WooCommerce is active
|
35 |
* Ensures only one instance of WC_Jetpack is loaded or can be loaded.
|
36 |
*
|
37 |
* @static
|
38 |
+
* @see WCJ()
|
39 |
* @return WC_Jetpack - Main instance
|
40 |
*/
|
41 |
public static function instance() {
|
42 |
+
|
43 |
if ( is_null( self::$_instance ) ) {
|
44 |
+
|
45 |
self::$_instance = new self();
|
46 |
}
|
47 |
+
|
48 |
return self::$_instance;
|
49 |
}
|
50 |
|
52 |
* Cloning is forbidden.
|
53 |
*
|
54 |
public function __clone() {
|
55 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '3.9.1' );
|
56 |
}
|
57 |
|
58 |
/**
|
59 |
* Unserializing instances of this class is forbidden.
|
60 |
*
|
61 |
public function __wakeup() {
|
62 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '3.9.1' );
|
63 |
}
|
64 |
|
65 |
/**
|
73 |
|
74 |
// HOOKS
|
75 |
//register_activation_hook( __FILE__, array( $this, 'install' ) );
|
76 |
+
//add_action( 'admin_init', array( $this, 'install' ) );
|
77 |
add_action( 'init', array( $this, 'init' ), 0 );
|
78 |
|
79 |
add_filter( 'wcjpc_filter', array( $this, 'wcjpc' ), 100 );
|
89 |
do_action( 'wcj_loaded' );
|
90 |
}
|
91 |
|
92 |
+
/**
|
93 |
+
* wcjpc.
|
94 |
+
*/
|
95 |
public function wcjpc( $value ) {
|
96 |
+
|
97 |
return $value;
|
98 |
}
|
99 |
|
102 |
switch ( $message_type ) {
|
103 |
|
104 |
case 'global':
|
105 |
+
return '<div class="updated">
|
106 |
+
<p class="main"><strong>' . __( 'Install WooCommerce Jetpack Plus to unlock all features', 'woocommerce-jetpack' ) . '</strong></p>
|
107 |
+
<span>' . sprintf( __('Some settings fields are locked and you will need %s to modify all locked fields.', 'woocommerce-jetpack'), '<a href="http://woojetpack.com/plus/">WooCommerce Jetpack Plus</a>' ) . '</span>
|
108 |
+
<p><a href="http://woojetpack.com/plus/" target="_blank" class="button button-primary">' . sprintf( __( 'Buy now just for %s', 'woocommerce-jetpack' ), '$9' ). '</a> <a href="http://woojetpack.com" target="_blank" class="button">'. sprintf( __( 'Visit %s', 'woocommerce-jetpack' ), 'woojetpack.com' ) . '</a></p>
|
109 |
+
</div>';
|
|
|
110 |
|
111 |
case 'desc':
|
112 |
return __( 'Get <a href="http://woojetpack.com/plus/" target="_blank">WooCommerce Jetpack Plus</a> to change value.', 'woocommerce-jetpack' );
|
115 |
return __( 'Get <a href="http://woojetpack.com/plus/" target="_blank">WooCommerce Jetpack Plus</a> to change values below.', 'woocommerce-jetpack' );
|
116 |
|
117 |
case 'desc_no_link':
|
118 |
+
return __( 'Get WooCommerce Jetpack Plus to change value.', 'woocommerce-jetpack' );
|
119 |
|
120 |
case 'readonly':
|
121 |
return array( 'readonly' => 'readonly' );
|
124 |
return array( 'disabled' => 'disabled' );
|
125 |
|
126 |
case 'readonly_string':
|
127 |
+
return 'readonly';
|
128 |
|
129 |
case 'disabled_string':
|
130 |
+
return 'disabled';
|
131 |
}
|
132 |
|
133 |
return $value;
|
202 |
|
203 |
// Set up localisation
|
204 |
//$this->load_plugin_textdomain();
|
205 |
+
load_plugin_textdomain( 'woocommerce-jetpack', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
|
206 |
+
|
207 |
// Init action
|
208 |
do_action( 'wcj_init' );
|
209 |
}
|