YITH WooCommerce Quick View - Version 1.0.3

Version Description

  • Minor bug fix
  • Updated Plugin Core
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Quick View
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

README.txt CHANGED
@@ -1,15 +1,17 @@
1
  === Plugin Name ===
2
  Contributors: yithemes
3
- Tags: yith, woocommerce, quick view, woocommerce quick view, yit, single product, products quick view, free quick view, woocommerce extension
4
  Requires at least: 4.0
5
  Tested up to: 4.1
6
- Stable tag: 1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Sometimes the halfway is better: what if you are looking to a product in a list and its image is still too small?
11
 
12
  == Description ==
 
 
13
  You have to open its product page, waiting for its loading and finally observe what you are interested into.
14
  So why don't use a simple way to look immediately at the product's distinctiveness? Here it is what Quick View can offer you.
15
 
@@ -17,6 +19,13 @@ People are more attracted to what they can see clearly. And often the classic pr
17
  That's when Quick View strikes successfully! Your clients will be free to look in a better way your products, reading also a small description with all the most important features and qualities you want to underline.
18
  In this way, they will be more focused on what they really want and they will proceed easily to the purchase step.
19
 
 
 
 
 
 
 
 
20
  Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-quick-view/).
21
 
22
  == Installation ==
@@ -25,9 +34,19 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
25
  2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
26
  3. Activate `YITH WooCommerce Quick View` from Plugins page.
27
 
 
 
 
 
 
28
 
29
  == Changelog ==
30
 
 
 
 
 
 
31
  = 1.0.2 =
32
 
33
  * Added: Action yith_quick_view_custom_style_scripts
@@ -41,13 +60,6 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
41
 
42
  * Initial release
43
 
44
- == Frequently Asked Questions ==
45
-
46
- * It's WooCommerce 2.3 ready?
47
-
48
- Yes, of course. This extension is full compatible with WooCommerce 2.3 and previous version 2.2.
49
-
50
-
51
  == Suggestions ==
52
 
53
  If you have suggestions about how to improve YITH WooCommerce Quick View, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into YITH WooCommerce Quick View.
@@ -62,6 +74,7 @@ If you have created your own language pack, or have an update for an existing on
62
 
63
  == Upgrade notice ==
64
 
65
- = 1.0.1 =
66
 
67
- * Minor bug fix
 
1
  === Plugin Name ===
2
  Contributors: yithemes
3
+ Tags: yith, woocommerce, quick view, woocommerce quick view, yit, single product, products quick view, free quick view, woocommerce extension, woocommerce plugin, product summary, summary, modal
4
  Requires at least: 4.0
5
  Tested up to: 4.1
6
+ Stable tag: 1.0.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ This plugin adds the possibility to have a quick preview of the products right from product list
11
 
12
  == Description ==
13
+ Sometimes the halfway is better: what if you are looking to a product in a list and its image is still too small?
14
+
15
  You have to open its product page, waiting for its loading and finally observe what you are interested into.
16
  So why don't use a simple way to look immediately at the product's distinctiveness? Here it is what Quick View can offer you.
17
 
19
  That's when Quick View strikes successfully! Your clients will be free to look in a better way your products, reading also a small description with all the most important features and qualities you want to underline.
20
  In this way, they will be more focused on what they really want and they will proceed easily to the purchase step.
21
 
22
+ **Main features:**
23
+
24
+ * Add a button in product loop to open a modal window with the product summary using ajax
25
+ * Choose to enable the prettyPhoto lightbox for images in quick view
26
+ * Customize style of modal
27
+
28
+
29
  Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-quick-view/).
30
 
31
  == Installation ==
34
  2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
35
  3. Activate `YITH WooCommerce Quick View` from Plugins page.
36
 
37
+ == Screenshots ==
38
+
39
+ 1. The plugin admin page.
40
+ 2. The quick view button in shop page.
41
+ 3. The quick view modal.
42
 
43
  == Changelog ==
44
 
45
+ = 1.0.3 =
46
+
47
+ * Minor bug fix
48
+ * Updated Plugin Core
49
+
50
  = 1.0.2 =
51
 
52
  * Added: Action yith_quick_view_custom_style_scripts
60
 
61
  * Initial release
62
 
 
 
 
 
 
 
 
63
  == Suggestions ==
64
 
65
  If you have suggestions about how to improve YITH WooCommerce Quick View, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into YITH WooCommerce Quick View.
74
 
75
  == Upgrade notice ==
76
 
77
+ = 1.0.3 =
78
 
79
+ * Minor bug fix
80
+ * Updated Plugin Core
assets/image/Thumbs.db DELETED
Binary file
assets/js/frontend.js CHANGED
@@ -9,8 +9,7 @@
9
  jQuery(document).ready(function($){
10
  "use strict";
11
 
12
- var trigger = $(document).find( '.yith-wcqv-button' ),
13
- qv_modal = $(document).find( '#yith-quick-view-modal' ),
14
  qv_overlay = qv_modal.find( '.yith-quick-view-overlay'),
15
  qv_content = qv_modal.find( '#yith-quick-view-content' ),
16
  qv_close = qv_modal.find( '#yith-quick-view-close' );
@@ -20,27 +19,38 @@ jQuery(document).ready(function($){
20
  *MAIN BUTTON OPEN
21
  ==================*/
22
 
23
- trigger.on( 'click', function(e){
24
 
25
- e.preventDefault();
26
 
27
- var t = $(this),
28
- product_id = t.data( 'product_id' ),
29
- is_blocked = false;
30
 
31
- if ( typeof yith_qv.loader !== 'undefined' ) {
32
- is_blocked = true;
33
- t.block({
34
- message: null,
35
- overlayCSS : {
36
- background: '#fff url(' + yith_qv.loader + ') no-repeat center',
37
- opacity : 0.5,
38
- cursor : 'none'
39
- }
40
- });
41
- }
42
- ajax_call( t, product_id, is_blocked );
43
- });
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  /*================
46
  * MAIN AJAX CALL
@@ -78,7 +88,6 @@ jQuery(document).ready(function($){
78
  });
79
  }
80
 
81
-
82
  if( ! qv_modal.hasClass( 'open' ) ) {
83
  qv_modal.addClass('open');
84
  if( is_blocked )
9
  jQuery(document).ready(function($){
10
  "use strict";
11
 
12
+ var qv_modal = $(document).find( '#yith-quick-view-modal' ),
 
13
  qv_overlay = qv_modal.find( '.yith-quick-view-overlay'),
14
  qv_content = qv_modal.find( '#yith-quick-view-content' ),
15
  qv_close = qv_modal.find( '#yith-quick-view-close' );
19
  *MAIN BUTTON OPEN
20
  ==================*/
21
 
22
+ $.yith_quick_view = function() {
23
 
24
+ var trigger = $(document).find( '.yith-wcqv-button' );
25
 
26
+ // remove prev click event
27
+ trigger.off( 'click' );
 
28
 
29
+ trigger.on( 'click', function(e){
30
+
31
+ e.preventDefault();
32
+
33
+ var t = $(this),
34
+ product_id = t.data( 'product_id' ),
35
+ is_blocked = false;
36
+
37
+ if ( typeof yith_qv.loader !== 'undefined' ) {
38
+ is_blocked = true;
39
+ t.block({
40
+ message: null,
41
+ overlayCSS : {
42
+ background: '#fff url(' + yith_qv.loader + ') no-repeat center',
43
+ opacity : 0.5,
44
+ cursor : 'none'
45
+ }
46
+ });
47
+ }
48
+ ajax_call( t, product_id, is_blocked );
49
+ });
50
+ };
51
+
52
+ // init
53
+ $.yith_quick_view();
54
 
55
  /*================
56
  * MAIN AJAX CALL
88
  });
89
  }
90
 
 
91
  if( ! qv_modal.hasClass( 'open' ) ) {
92
  qv_modal.addClass('open');
93
  if( is_blocked )
class.yith-wcqv-admin.php CHANGED
@@ -108,6 +108,7 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
108
 
109
  // YITH WCQV Loaded
110
  do_action( 'yith_wcqv_loaded' );
 
111
  }
112
 
113
 
@@ -127,7 +128,7 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
127
  public function action_links( $links ) {
128
 
129
  $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-wcqv' ) . '</a>';
130
- $links[] = '<a href="' . $this->_premium_landing . '" target="_blank">' . __( 'Premium Version', 'yith-wcqv' ) . '</a>';
131
 
132
  return $links;
133
  }
@@ -231,7 +232,7 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
231
  __( 'In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.
232
  With this menu, you can access to all the settings of our plugins that you have activated.
233
  YITH WooCommerce Quick View is available in an outstanding PREMIUM version with many new options,
234
- <a href="' . $this->_premium_landing . '">discover it now!</a>', 'yith-wcqv' )
235
  ),
236
  'position' => array( 'edge' => 'left', 'align' => 'center' ),
237
  'init' => YITH_WCQV_FREE_INIT
@@ -240,6 +241,18 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
240
  YIT_Pointers()->register( $args );
241
  }
242
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  }
244
  }
245
  /**
108
 
109
  // YITH WCQV Loaded
110
  do_action( 'yith_wcqv_loaded' );
111
+
112
  }
113
 
114
 
128
  public function action_links( $links ) {
129
 
130
  $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-wcqv' ) . '</a>';
131
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-wcqv' ) . '</a>';
132
 
133
  return $links;
134
  }
232
  __( 'In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.
233
  With this menu, you can access to all the settings of our plugins that you have activated.
234
  YITH WooCommerce Quick View is available in an outstanding PREMIUM version with many new options,
235
+ <a href="' . $this->get_premium_landing_uri() . '">discover it now!</a>', 'yith-wcqv' )
236
  ),
237
  'position' => array( 'edge' => 'left', 'align' => 'center' ),
238
  'init' => YITH_WCQV_FREE_INIT
241
  YIT_Pointers()->register( $args );
242
  }
243
 
244
+
245
+ /**
246
+ * Get the premium landing uri
247
+ *
248
+ * @since 1.0.0
249
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
250
+ * @return string The premium landing link
251
+ */
252
+ public function get_premium_landing_uri(){
253
+ return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing;
254
+ }
255
+
256
  }
257
  }
258
  /**
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Quick View allows your users to have a quick look about products.
6
- * Version: 1.0.2
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
@@ -11,7 +11,7 @@
11
  *
12
  * @author Yithemes
13
  * @package YITH WooCommerce Quick View
14
- * @version 1.0.1
15
  */
16
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
@@ -59,7 +59,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
 
60
 
61
  if ( ! defined( 'YITH_WCQV_VERSION' ) ){
62
- define( 'YITH_WCQV_VERSION', '1.0.2' );
63
  }
64
 
65
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Quick View allows your users to have a quick look about products.
6
+ * Version: 1.0.3
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
11
  *
12
  * @author Yithemes
13
  * @package YITH WooCommerce Quick View
14
+ * @version 1.0.3
15
  */
16
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
59
 
60
 
61
  if ( ! defined( 'YITH_WCQV_VERSION' ) ){
62
+ define( 'YITH_WCQV_VERSION', '1.0.3' );
63
  }
64
 
65
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
languages/default.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH Woocommerce Quick View\n"
4
- "POT-Creation-Date: 2015-03-06 09:27+0100\n"
5
- "PO-Revision-Date: 2015-03-06 09:27+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.5\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=n!=1;\n"
15
  "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
@@ -17,7 +17,7 @@ msgstr ""
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
- #: ../class.yith-wcqv-admin.php:129 ../class.yith-wcqv-admin.php:151
21
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
22
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
23
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
@@ -25,25 +25,25 @@ msgstr ""
25
  msgid "Settings"
26
  msgstr ""
27
 
28
- #: ../class.yith-wcqv-admin.php:130 ../class.yith-wcqv-admin.php:152
29
  msgid "Premium Version"
30
  msgstr ""
31
 
32
- #: ../class.yith-wcqv-admin.php:158 ../class.yith-wcqv-admin.php:159
33
  #: ../plugin-options/settings-options.php:49
34
  msgid "Quick View"
35
  msgstr ""
36
 
37
- #: ../class.yith-wcqv-admin.php:213
38
  msgid "Plugin Documentation"
39
  msgstr ""
40
 
41
- #: ../class.yith-wcqv-admin.php:230 ../plugin-options/settings-options.php:11
42
  #: ../plugin-options/settings-options.php:18
43
  msgid "YITH WooCommerce Quick View"
44
  msgstr ""
45
 
46
- #: ../class.yith-wcqv-admin.php:231
47
  msgid ""
48
  "In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.\n"
49
  "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
@@ -271,7 +271,7 @@ msgstr ""
271
  msgid "Add with multiupload"
272
  msgstr ""
273
 
274
- #: ../plugin-fw/lib/yit-plugin-panel-wc.php:345
275
  msgid "The changes you have made will be lost if you leave this page."
276
  msgstr ""
277
 
@@ -279,74 +279,74 @@ msgstr ""
279
  msgid "Plugin Settings"
280
  msgstr ""
281
 
282
- #: ../plugin-fw/lib/yit-plugin-panel.php:92
283
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:101
284
  msgid "YIT Plugins"
285
  msgstr ""
286
 
287
- #: ../plugin-fw/lib/yit-plugin-panel.php:271
288
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:142
289
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
290
  msgid "Save Changes"
291
  msgstr ""
292
 
293
- #: ../plugin-fw/lib/yit-plugin-panel.php:274
294
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
295
  msgid ""
296
  "If you continue with this action, you will reset all options in this page."
297
  msgstr ""
298
 
299
- #: ../plugin-fw/lib/yit-plugin-panel.php:276
300
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
301
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
302
  msgid "Reset Defaults"
303
  msgstr ""
304
 
305
- #: ../plugin-fw/lib/yit-plugin-panel.php:276
306
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
307
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
308
  msgid "Are you sure?"
309
  msgstr ""
310
 
311
- #: ../plugin-fw/lib/yit-plugin-panel.php:410
312
  msgid ""
313
  "The element you have entered already exists. Please, enter another name."
314
  msgstr ""
315
 
316
- #: ../plugin-fw/lib/yit-plugin-panel.php:411
317
  msgid "Settings saved"
318
  msgstr ""
319
 
320
- #: ../plugin-fw/lib/yit-plugin-panel.php:412
321
  msgid "Settings reset"
322
  msgstr ""
323
 
324
- #: ../plugin-fw/lib/yit-plugin-panel.php:413
325
  msgid "Element deleted correctly."
326
  msgstr ""
327
 
328
- #: ../plugin-fw/lib/yit-plugin-panel.php:414
329
- #: ../plugin-fw/lib/yit-plugin-panel.php:415
330
  msgid "Element updated correctly."
331
  msgstr ""
332
 
333
- #: ../plugin-fw/lib/yit-plugin-panel.php:416
334
  msgid "Database imported correctly."
335
  msgstr ""
336
 
337
- #: ../plugin-fw/lib/yit-plugin-panel.php:417
338
  msgid "An error has occurred during import. Please try again."
339
  msgstr ""
340
 
341
- #: ../plugin-fw/lib/yit-plugin-panel.php:418
342
  msgid "The added file is not valid."
343
  msgstr ""
344
 
345
- #: ../plugin-fw/lib/yit-plugin-panel.php:419
346
  msgid "Sorry, import is disabled."
347
  msgstr ""
348
 
349
- #: ../plugin-fw/lib/yit-plugin-panel.php:420
350
  msgid "Sorting successful."
351
  msgstr ""
352
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH Woocommerce Quick View\n"
4
+ "POT-Creation-Date: 2015-03-11 10:24+0100\n"
5
+ "PO-Revision-Date: 2015-03-11 10:24+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=n!=1;\n"
15
  "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../class.yith-wcqv-admin.php:130 ../class.yith-wcqv-admin.php:152
21
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
22
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
23
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
25
  msgid "Settings"
26
  msgstr ""
27
 
28
+ #: ../class.yith-wcqv-admin.php:131 ../class.yith-wcqv-admin.php:153
29
  msgid "Premium Version"
30
  msgstr ""
31
 
32
+ #: ../class.yith-wcqv-admin.php:159 ../class.yith-wcqv-admin.php:160
33
  #: ../plugin-options/settings-options.php:49
34
  msgid "Quick View"
35
  msgstr ""
36
 
37
+ #: ../class.yith-wcqv-admin.php:214
38
  msgid "Plugin Documentation"
39
  msgstr ""
40
 
41
+ #: ../class.yith-wcqv-admin.php:231 ../plugin-options/settings-options.php:11
42
  #: ../plugin-options/settings-options.php:18
43
  msgid "YITH WooCommerce Quick View"
44
  msgstr ""
45
 
46
+ #: ../class.yith-wcqv-admin.php:232
47
  msgid ""
48
  "In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.\n"
49
  "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
271
  msgid "Add with multiupload"
272
  msgstr ""
273
 
274
+ #: ../plugin-fw/lib/yit-plugin-panel-wc.php:315
275
  msgid "The changes you have made will be lost if you leave this page."
276
  msgstr ""
277
 
279
  msgid "Plugin Settings"
280
  msgstr ""
281
 
282
+ #: ../plugin-fw/lib/yit-plugin-panel.php:94
283
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:101
284
  msgid "YIT Plugins"
285
  msgstr ""
286
 
287
+ #: ../plugin-fw/lib/yit-plugin-panel.php:273
288
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:142
289
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
290
  msgid "Save Changes"
291
  msgstr ""
292
 
293
+ #: ../plugin-fw/lib/yit-plugin-panel.php:276
294
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
295
  msgid ""
296
  "If you continue with this action, you will reset all options in this page."
297
  msgstr ""
298
 
299
+ #: ../plugin-fw/lib/yit-plugin-panel.php:278
300
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
301
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
302
  msgid "Reset Defaults"
303
  msgstr ""
304
 
305
+ #: ../plugin-fw/lib/yit-plugin-panel.php:278
306
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
307
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
308
  msgid "Are you sure?"
309
  msgstr ""
310
 
311
+ #: ../plugin-fw/lib/yit-plugin-panel.php:412
312
  msgid ""
313
  "The element you have entered already exists. Please, enter another name."
314
  msgstr ""
315
 
316
+ #: ../plugin-fw/lib/yit-plugin-panel.php:413
317
  msgid "Settings saved"
318
  msgstr ""
319
 
320
+ #: ../plugin-fw/lib/yit-plugin-panel.php:414
321
  msgid "Settings reset"
322
  msgstr ""
323
 
324
+ #: ../plugin-fw/lib/yit-plugin-panel.php:415
325
  msgid "Element deleted correctly."
326
  msgstr ""
327
 
328
+ #: ../plugin-fw/lib/yit-plugin-panel.php:416
329
+ #: ../plugin-fw/lib/yit-plugin-panel.php:417
330
  msgid "Element updated correctly."
331
  msgstr ""
332
 
333
+ #: ../plugin-fw/lib/yit-plugin-panel.php:418
334
  msgid "Database imported correctly."
335
  msgstr ""
336
 
337
+ #: ../plugin-fw/lib/yit-plugin-panel.php:419
338
  msgid "An error has occurred during import. Please try again."
339
  msgstr ""
340
 
341
+ #: ../plugin-fw/lib/yit-plugin-panel.php:420
342
  msgid "The added file is not valid."
343
  msgstr ""
344
 
345
+ #: ../plugin-fw/lib/yit-plugin-panel.php:421
346
  msgid "Sorry, import is disabled."
347
  msgstr ""
348
 
349
+ #: ../plugin-fw/lib/yit-plugin-panel.php:422
350
  msgid "Sorting successful."
351
  msgstr ""
352
 
languages/yith-wcqv.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH Woocommerce Quick View\n"
4
- "POT-Creation-Date: 2015-03-06 09:27+0100\n"
5
- "PO-Revision-Date: 2015-03-06 09:27+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.5\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=n!=1;\n"
15
  "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
@@ -17,7 +17,7 @@ msgstr ""
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
- #: ../class.yith-wcqv-admin.php:129 ../class.yith-wcqv-admin.php:151
21
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
22
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
23
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
@@ -25,25 +25,25 @@ msgstr ""
25
  msgid "Settings"
26
  msgstr ""
27
 
28
- #: ../class.yith-wcqv-admin.php:130 ../class.yith-wcqv-admin.php:152
29
  msgid "Premium Version"
30
  msgstr ""
31
 
32
- #: ../class.yith-wcqv-admin.php:158 ../class.yith-wcqv-admin.php:159
33
  #: ../plugin-options/settings-options.php:49
34
  msgid "Quick View"
35
  msgstr ""
36
 
37
- #: ../class.yith-wcqv-admin.php:213
38
  msgid "Plugin Documentation"
39
  msgstr ""
40
 
41
- #: ../class.yith-wcqv-admin.php:230 ../plugin-options/settings-options.php:11
42
  #: ../plugin-options/settings-options.php:18
43
  msgid "YITH WooCommerce Quick View"
44
  msgstr ""
45
 
46
- #: ../class.yith-wcqv-admin.php:231
47
  msgid ""
48
  "In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.\n"
49
  "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
@@ -271,7 +271,7 @@ msgstr ""
271
  msgid "Add with multiupload"
272
  msgstr ""
273
 
274
- #: ../plugin-fw/lib/yit-plugin-panel-wc.php:345
275
  msgid "The changes you have made will be lost if you leave this page."
276
  msgstr ""
277
 
@@ -279,74 +279,74 @@ msgstr ""
279
  msgid "Plugin Settings"
280
  msgstr ""
281
 
282
- #: ../plugin-fw/lib/yit-plugin-panel.php:92
283
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:101
284
  msgid "YIT Plugins"
285
  msgstr ""
286
 
287
- #: ../plugin-fw/lib/yit-plugin-panel.php:271
288
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:142
289
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
290
  msgid "Save Changes"
291
  msgstr ""
292
 
293
- #: ../plugin-fw/lib/yit-plugin-panel.php:274
294
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
295
  msgid ""
296
  "If you continue with this action, you will reset all options in this page."
297
  msgstr ""
298
 
299
- #: ../plugin-fw/lib/yit-plugin-panel.php:276
300
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
301
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
302
  msgid "Reset Defaults"
303
  msgstr ""
304
 
305
- #: ../plugin-fw/lib/yit-plugin-panel.php:276
306
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
307
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
308
  msgid "Are you sure?"
309
  msgstr ""
310
 
311
- #: ../plugin-fw/lib/yit-plugin-panel.php:410
312
  msgid ""
313
  "The element you have entered already exists. Please, enter another name."
314
  msgstr ""
315
 
316
- #: ../plugin-fw/lib/yit-plugin-panel.php:411
317
  msgid "Settings saved"
318
  msgstr ""
319
 
320
- #: ../plugin-fw/lib/yit-plugin-panel.php:412
321
  msgid "Settings reset"
322
  msgstr ""
323
 
324
- #: ../plugin-fw/lib/yit-plugin-panel.php:413
325
  msgid "Element deleted correctly."
326
  msgstr ""
327
 
328
- #: ../plugin-fw/lib/yit-plugin-panel.php:414
329
- #: ../plugin-fw/lib/yit-plugin-panel.php:415
330
  msgid "Element updated correctly."
331
  msgstr ""
332
 
333
- #: ../plugin-fw/lib/yit-plugin-panel.php:416
334
  msgid "Database imported correctly."
335
  msgstr ""
336
 
337
- #: ../plugin-fw/lib/yit-plugin-panel.php:417
338
  msgid "An error has occurred during import. Please try again."
339
  msgstr ""
340
 
341
- #: ../plugin-fw/lib/yit-plugin-panel.php:418
342
  msgid "The added file is not valid."
343
  msgstr ""
344
 
345
- #: ../plugin-fw/lib/yit-plugin-panel.php:419
346
  msgid "Sorry, import is disabled."
347
  msgstr ""
348
 
349
- #: ../plugin-fw/lib/yit-plugin-panel.php:420
350
  msgid "Sorting successful."
351
  msgstr ""
352
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH Woocommerce Quick View\n"
4
+ "POT-Creation-Date: 2015-03-11 10:24+0100\n"
5
+ "PO-Revision-Date: 2015-03-11 10:24+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=n!=1;\n"
15
  "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../class.yith-wcqv-admin.php:130 ../class.yith-wcqv-admin.php:152
21
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
22
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
23
  #: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
25
  msgid "Settings"
26
  msgstr ""
27
 
28
+ #: ../class.yith-wcqv-admin.php:131 ../class.yith-wcqv-admin.php:153
29
  msgid "Premium Version"
30
  msgstr ""
31
 
32
+ #: ../class.yith-wcqv-admin.php:159 ../class.yith-wcqv-admin.php:160
33
  #: ../plugin-options/settings-options.php:49
34
  msgid "Quick View"
35
  msgstr ""
36
 
37
+ #: ../class.yith-wcqv-admin.php:214
38
  msgid "Plugin Documentation"
39
  msgstr ""
40
 
41
+ #: ../class.yith-wcqv-admin.php:231 ../plugin-options/settings-options.php:11
42
  #: ../plugin-options/settings-options.php:18
43
  msgid "YITH WooCommerce Quick View"
44
  msgstr ""
45
 
46
+ #: ../class.yith-wcqv-admin.php:232
47
  msgid ""
48
  "In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.\n"
49
  "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
271
  msgid "Add with multiupload"
272
  msgstr ""
273
 
274
+ #: ../plugin-fw/lib/yit-plugin-panel-wc.php:315
275
  msgid "The changes you have made will be lost if you leave this page."
276
  msgstr ""
277
 
279
  msgid "Plugin Settings"
280
  msgstr ""
281
 
282
+ #: ../plugin-fw/lib/yit-plugin-panel.php:94
283
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:101
284
  msgid "YIT Plugins"
285
  msgstr ""
286
 
287
+ #: ../plugin-fw/lib/yit-plugin-panel.php:273
288
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:142
289
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
290
  msgid "Save Changes"
291
  msgstr ""
292
 
293
+ #: ../plugin-fw/lib/yit-plugin-panel.php:276
294
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
295
  msgid ""
296
  "If you continue with this action, you will reset all options in this page."
297
  msgstr ""
298
 
299
+ #: ../plugin-fw/lib/yit-plugin-panel.php:278
300
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
301
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
302
  msgid "Reset Defaults"
303
  msgstr ""
304
 
305
+ #: ../plugin-fw/lib/yit-plugin-panel.php:278
306
  #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
307
  #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
308
  msgid "Are you sure?"
309
  msgstr ""
310
 
311
+ #: ../plugin-fw/lib/yit-plugin-panel.php:412
312
  msgid ""
313
  "The element you have entered already exists. Please, enter another name."
314
  msgstr ""
315
 
316
+ #: ../plugin-fw/lib/yit-plugin-panel.php:413
317
  msgid "Settings saved"
318
  msgstr ""
319
 
320
+ #: ../plugin-fw/lib/yit-plugin-panel.php:414
321
  msgid "Settings reset"
322
  msgstr ""
323
 
324
+ #: ../plugin-fw/lib/yit-plugin-panel.php:415
325
  msgid "Element deleted correctly."
326
  msgstr ""
327
 
328
+ #: ../plugin-fw/lib/yit-plugin-panel.php:416
329
+ #: ../plugin-fw/lib/yit-plugin-panel.php:417
330
  msgid "Element updated correctly."
331
  msgstr ""
332
 
333
+ #: ../plugin-fw/lib/yit-plugin-panel.php:418
334
  msgid "Database imported correctly."
335
  msgstr ""
336
 
337
+ #: ../plugin-fw/lib/yit-plugin-panel.php:419
338
  msgid "An error has occurred during import. Please try again."
339
  msgstr ""
340
 
341
+ #: ../plugin-fw/lib/yit-plugin-panel.php:420
342
  msgid "The added file is not valid."
343
  msgstr ""
344
 
345
+ #: ../plugin-fw/lib/yit-plugin-panel.php:421
346
  msgid "Sorry, import is disabled."
347
  msgstr ""
348
 
349
+ #: ../plugin-fw/lib/yit-plugin-panel.php:422
350
  msgid "Sorting successful."
351
  msgstr ""
352
 
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -65,9 +65,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
65
  add_action( 'admin_init', array( $this, 'woocommerce_update_options' ) );
66
  add_filter( 'woocommerce_screen_ids', array( $this, 'add_allowed_screen_id' ) );
67
 
68
- add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'yit_boxinfo' ), 10, 1 );
69
- add_action( 'woocommerce_admin_field_videobox', array( $this, 'yit_videobox' ), 10, 1 );
70
-
71
  }
72
  }
73
 
@@ -97,36 +97,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
97
  require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-panel.php' );
98
  }
99
 
100
- /**
101
- * Show a box panel with specific content in two columns as a new woocommerce type
102
- *
103
- *
104
- * @return void
105
- * @since 1.0
106
- * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
107
- */
108
- public function yit_boxinfo( $args = array() ) {
109
- if ( !empty( $args ) ) {
110
- extract( $args );
111
- require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-boxinfo.php' );
112
- }
113
- }
114
-
115
- /**
116
- * Show a box panel with specific content in two columns as a new woocommerce type
117
- *
118
- *
119
- * @return void
120
- * @since 1.0
121
- * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
122
- */
123
- public function yit_videobox( $args = array() ) {
124
- if ( ! empty( $args ) ) {
125
- extract( $args );
126
- require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-videobox.php' );
127
- }
128
- }
129
-
130
  /**
131
  * Show a input fields to upload images
132
  *
65
  add_action( 'admin_init', array( $this, 'woocommerce_update_options' ) );
66
  add_filter( 'woocommerce_screen_ids', array( $this, 'add_allowed_screen_id' ) );
67
 
68
+ /* Add VideoBox and InfoBox */
69
+ add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'add_infobox' ), 10, 1 );
70
+ add_action( 'woocommerce_admin_field_videobox', array( $this, 'add_videobox' ), 10, 1 );
71
  }
72
  }
73
 
97
  require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-panel.php' );
98
  }
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  /**
101
  * Show a input fields to upload images
102
  *
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -75,7 +75,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
75
  add_action( 'admin_bar_menu', array( &$this, 'add_admin_bar_menu' ), 100 );
76
  add_action( 'admin_init', array( &$this, 'add_fields' ) );
77
 
78
-
 
 
79
  }
80
 
81
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
@@ -677,6 +679,16 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
677
  $option = $param ['option'];
678
  $db_options = $this->get_options();
679
 
 
 
 
 
 
 
 
 
 
 
680
  $db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : '';
681
  if ( isset( $option['deps'] ) ) {
682
  $deps = $option['deps'];
@@ -686,7 +698,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
686
  include $type;
687
  }
688
  else {
689
- do_action( "yit_panel_{$option['type']}" );
690
  }
691
  }
692
  }
@@ -709,6 +721,38 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
709
  return $options;
710
  }
711
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
 
713
  }
714
 
75
  add_action( 'admin_bar_menu', array( &$this, 'add_admin_bar_menu' ), 100 );
76
  add_action( 'admin_init', array( &$this, 'add_fields' ) );
77
 
78
+ /* Add VideoBox and InfoBox */
79
+ add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'add_infobox' ), 10, 1 );
80
+ add_action( 'woocommerce_admin_field_videobox', array( $this, 'add_videobox' ), 10, 1 );
81
  }
82
 
83
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
679
  $option = $param ['option'];
680
  $db_options = $this->get_options();
681
 
682
+ $custom_attributes = array();
683
+
684
+ if ( ! empty( $option['custom_attributes'] ) && is_array( $option['custom_attributes'] ) ) {
685
+ foreach ( $option['custom_attributes'] as $attribute => $attribute_value ) {
686
+ $custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
687
+ }
688
+ }
689
+
690
+ $custom_attributes = implode( ' ', $custom_attributes );
691
+
692
  $db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : '';
693
  if ( isset( $option['deps'] ) ) {
694
  $deps = $option['deps'];
698
  include $type;
699
  }
700
  else {
701
+ do_action( "yit_panel_{$option['type']}", $option, $db_value );
702
  }
703
  }
704
  }
721
  return $options;
722
  }
723
 
724
+ /**
725
+ * Show a box panel with specific content in two columns as a new woocommerce type
726
+ *
727
+ *
728
+ * @param array $args
729
+ *
730
+ * @return void
731
+ * @since 1.0
732
+ * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
733
+ */
734
+ public function add_infobox( $args = array() ) {
735
+ if ( ! empty( $args ) ) {
736
+ extract( $args );
737
+ require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/boxinfo.php' );
738
+ }
739
+ }
740
+
741
+ /**
742
+ * Show a box panel with specific content in two columns as a new woocommerce type
743
+ *
744
+ * @param array $args
745
+ *
746
+ * @return void
747
+ * @since 1.0
748
+ * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
749
+ */
750
+ public function add_videobox( $args = array() ) {
751
+ if ( ! empty( $args ) ) {
752
+ extract( $args );
753
+ require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/videobox.php' );
754
+ }
755
+ }
756
 
757
  }
758
 
plugin-fw/templates/panel/{woocommerce/woocommerce-boxinfo.php → infobox.php} RENAMED
File without changes
plugin-fw/templates/panel/types/chosen.php CHANGED
@@ -23,7 +23,7 @@ $db_value = ( $is_multiple && ! is_array( $db_value ) ) ? array() : $db_value;
23
  <div id="<?php echo $id ?>-container" class="chosen yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
24
  <div class="option">
25
  <div class="select_wrapper">
26
- <select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="chosen" id="<?php echo $id ?>" <?php echo $multiple ?> >
27
  <?php foreach ( $option['options'] as $key => $value ) : ?>
28
  <option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
29
  <?php endforeach; ?>
23
  <div id="<?php echo $id ?>-container" class="chosen yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
24
  <div class="option">
25
  <div class="select_wrapper">
26
+ <select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="chosen" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
27
  <?php foreach ( $option['options'] as $key => $value ) : ?>
28
  <option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
29
  <?php endforeach; ?>
plugin-fw/templates/panel/types/connected-list.php CHANGED
@@ -11,7 +11,7 @@ $name = $this->get_name_field( $option['id'] );
11
  <?php foreach( $lists as $list => $options ): ?>
12
  <div class="list_container">
13
  <h4><?php echo $option['heads'][ $list ] ?></h4>
14
- <ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>">
15
  <?php foreach( $options as $value => $label ): ?>
16
  <li data-option="<?php echo $value ?>" class="ui-state-default"><?php echo $label ?></li>
17
  <?php endforeach ?>
11
  <?php foreach( $lists as $list => $options ): ?>
12
  <div class="list_container">
13
  <h4><?php echo $option['heads'][ $list ] ?></h4>
14
+ <ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>" <?php echo $custom_attributes ?>>
15
  <?php foreach( $options as $value => $label ): ?>
16
  <li data-option="<?php echo $value ?>" class="ui-state-default"><?php echo $label ?></li>
17
  <?php endforeach ?>
plugin-fw/templates/panel/types/on-off.php CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
26
  ?>
27
  <div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="on_off_container yit_options rm_option rm_input rm_onoff">
28
  <div class="option">
29
- <input type="checkbox" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php checked( $db_value, 'yes' ); ?> class="on_off<?php if ( $db_value == 'yes' ): ?> onoffchecked<?php endif ?>" />
30
  <span>&nbsp;</span>
31
  </div>
32
  <span class="description"><?php echo $option['desc'] ?></span>
26
  ?>
27
  <div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="on_off_container yit_options rm_option rm_input rm_onoff">
28
  <div class="option">
29
+ <input type="checkbox" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php checked( $db_value, 'yes' ); ?> class="on_off<?php if ( $db_value == 'yes' ): ?> onoffchecked<?php endif ?>" <?php echo $custom_attributes ?>/>
30
  <span>&nbsp;</span>
31
  </div>
32
  <span class="description"><?php echo $option['desc'] ?></span>
plugin-fw/templates/panel/types/select-mailchimp.php CHANGED
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
22
  <div id="<?php echo $this->get_id_field( $option['id'] ) ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
23
  <div class="option">
24
  <div class="select_wrapper">
25
- <select name="<?php echo $this->get_name_field( $option['id'] ) ?>" id="<?php echo $this->get_id_field( $option['id'] ) ?>">
26
  <?php foreach( $option['options'] as $key => $value ) : ?>
27
  <option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $db_value ) ?>><?php echo $value ?></option>
28
  <?php endforeach; ?>
22
  <div id="<?php echo $this->get_id_field( $option['id'] ) ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
23
  <div class="option">
24
  <div class="select_wrapper">
25
+ <select name="<?php echo $this->get_name_field( $option['id'] ) ?>" id="<?php echo $this->get_id_field( $option['id'] ) ?>" <?php echo $custom_attributes ?>>
26
  <?php foreach( $option['options'] as $key => $value ) : ?>
27
  <option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $db_value ) ?>><?php echo $value ?></option>
28
  <?php endforeach; ?>
plugin-fw/templates/panel/types/select.php CHANGED
@@ -28,7 +28,7 @@ $multiple = ( $is_multiple ) ? ' multiple' : '';
28
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
29
  <div class="option">
30
  <div class="select_wrapper">
31
- <select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" id="<?php echo $id ?>" <?php echo $multiple ?> >
32
  <?php foreach ( $option['options'] as $key => $value ) : ?>
33
  <option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
34
  <?php endforeach; ?>
28
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
29
  <div class="option">
30
  <div class="select_wrapper">
31
+ <select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
32
  <?php foreach ( $option['options'] as $key => $value ) : ?>
33
  <option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
34
  <?php endforeach; ?>
plugin-fw/templates/panel/types/text.php CHANGED
@@ -20,13 +20,13 @@ if ( ! defined( 'ABSPATH' ) ) {
20
  exit;
21
  } // Exit if accessed directly
22
 
23
- $id = $this->get_id_field( $option['id'] );
24
- $name = $this->get_name_field( $option['id'] );
25
 
26
  ?>
27
  <div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
28
  <div class="option">
29
- <input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" />
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
20
  exit;
21
  } // Exit if accessed directly
22
 
23
+ $id = $this->get_id_field( $option['id'] );
24
+ $name = $this->get_name_field( $option['id'] );
25
 
26
  ?>
27
  <div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
28
  <div class="option">
29
+ <input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php echo $custom_attributes ?> />
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
plugin-fw/templates/panel/types/textarea-codemirror.php CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
26
  ?>
27
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
28
  <div class="option">
29
- <textarea name="<?php echo $name ?>" class="codemirror" id="<?php echo $id ?>" rows="8" cols="50"><?php echo $db_value ?></textarea>
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
26
  ?>
27
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
28
  <div class="option">
29
+ <textarea name="<?php echo $name ?>" class="codemirror" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
plugin-fw/templates/panel/types/textarea.php CHANGED
@@ -26,7 +26,7 @@ $name = $this->get_name_field( $option['id'] );
26
  ?>
27
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
28
  <div class="option">
29
- <textarea name="<?php echo $name ?>" id="<?php echo $id ?>" rows="8" cols="50"><?php echo $db_value ?></textarea>
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
26
  ?>
27
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
28
  <div class="option">
29
+ <textarea name="<?php echo $name ?>" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
30
  </div>
31
  <span class="description"><?php echo $option['desc'] ?></span>
32
 
plugin-fw/templates/panel/{woocommerce/woocommerce-videobox.php → videobox.php} RENAMED
File without changes
plugin-options/premium-options.php CHANGED
@@ -4,7 +4,7 @@ return array(
4
  'premium' => array(
5
  'home' => array(
6
  'type' => 'custom_tab',
7
- 'action' => 'yith_quick_view_premium'
8
  )
9
  )
10
  );
4
  'premium' => array(
5
  'home' => array(
6
  'type' => 'custom_tab',
7
+ 'action' => 'yith_quick_view_premium',
8
  )
9
  )
10
  );
plugin-options/settings-options.php CHANGED
@@ -20,7 +20,7 @@ $settings = array(
20
  'title_second_column' => __( 'Get Support and Pro Features', 'yith-wcqv' ),
21
  '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-wcqv' ),
22
  'button' => array(
23
- 'href' => 'http://yithemes.com/themes/plugins/yith-woocommerce-quick-view/',
24
  'title' => 'Get Support and Pro Features'
25
  )
26
  ),
20
  'title_second_column' => __( 'Get Support and Pro Features', 'yith-wcqv' ),
21
  '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-wcqv' ),
22
  'button' => array(
23
+ 'href' => YITH_WCQV_Admin()->get_premium_landing_uri(),
24
  'title' => 'Get Support and Pro Features'
25
  )
26
  ),
screenshot-1.jpg ADDED
Binary file
screenshot-2.jpg ADDED
Binary file
screenshot-3.jpg ADDED
Binary file
templates/admin/premium.php CHANGED
@@ -205,7 +205,7 @@
205
  Upgrade to the <span class="highlight">premium version</span>
206
  of <span class="highlight">YITH WooCommerce Quick View</span> to benefit from all features!
207
  </p>
208
- <a href="http://yithemes.com/themes/plugins/yith-woocommerce-quick-view/" target="_blank" class="premium-cta-button button btn">
209
  <span class="highlight">UPGRADE</span>
210
  <span>to the premium version</span>
211
  </a>
@@ -332,7 +332,7 @@
332
  Upgrade to the <span class="highlight">premium version</span>
333
  of <span class="highlight">YITH WooCommerce Quick View</span> to benefit from all features!
334
  </p>
335
- <a href="http://yithemes.com/themes/plugins/yith-woocommerce-quick-view/" target="_blank" class="premium-cta-button button btn">
336
  <span class="highlight">UPGRADE</span>
337
  <span>to the premium version</span>
338
  </a>
205
  Upgrade to the <span class="highlight">premium version</span>
206
  of <span class="highlight">YITH WooCommerce Quick View</span> to benefit from all features!
207
  </p>
208
+ <a href="<?php echo YITH_WCQV_Admin()->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
209
  <span class="highlight">UPGRADE</span>
210
  <span>to the premium version</span>
211
  </a>
332
  Upgrade to the <span class="highlight">premium version</span>
333
  of <span class="highlight">YITH WooCommerce Quick View</span> to benefit from all features!
334
  </p>
335
+ <a href="<?php echo YITH_WCQV_Admin()->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
336
  <span class="highlight">UPGRADE</span>
337
  <span>to the premium version</span>
338
  </a>
uninstall.php CHANGED
@@ -11,5 +11,3 @@
11
  if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
12
  exit;
13
  }
14
-
15
- global $wpdb;
11
  if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
12
  exit;
13
  }