YITH WooCommerce Quick View - Version 1.1.0

Version Description

  • Added: Compatibility with YITH WooCommerce Wishlist
  • Added: Compatibility with YITH WooCommerce Badge Management
  • Added: Italian Language
  • Updated: Language file .pot. Changed textdomain to yith-wcqv to yith-woocommerce-quick-view
  • Updated: Plugin Core
Download this release

Release Info

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

Code changes from version 1.0.8 to 1.1.0

Files changed (37) hide show
  1. README.txt +12 -3
  2. assets/css/yith-quick-view.css +11 -0
  3. assets/image/09-bg.png +0 -0
  4. assets/image/09-icon.png +0 -0
  5. assets/image/09.png +0 -0
  6. assets/image/10.png +0 -0
  7. assets/js/frontend.js +10 -9
  8. class.yith-wcqv-admin.php +7 -35
  9. class.yith-wcqv-frontend.php +1 -0
  10. class.yith-wcqv.php +7 -4
  11. init.php +11 -6
  12. languages/yith-wcqv.pot +0 -137
  13. languages/yith-woocommerce-quick-view-it_IT.mo +0 -0
  14. languages/yith-woocommerce-quick-view-it_IT.po +582 -0
  15. languages/yith-woocommerce-quick-view.pot +271 -0
  16. plugin-fw/assets/css/yit-plugin-panel.css +7 -0
  17. plugin-fw/assets/js/yit-cpt-unlimited.js +1 -1
  18. plugin-fw/assets/js/yit-cpt-unlimited.min.js +1 -1
  19. plugin-fw/assets/js/yit-plugin-panel.js +6 -0
  20. plugin-fw/assets/js/yit-plugin-panel.min.js +1 -10
  21. plugin-fw/init.php +59 -0
  22. plugin-fw/lib/yit-cpt-unlimited.php +2 -2
  23. plugin-fw/lib/yit-metabox.php +135 -123
  24. plugin-fw/lib/yit-plugin-panel-wc.php +18 -4
  25. plugin-fw/lib/yit-plugin-panel.php +15 -19
  26. plugin-fw/lib/yit-upgrade.php +26 -6
  27. plugin-fw/lib/yit-video.php +12 -4
  28. plugin-fw/licence/lib/yit-licence.php +2 -2
  29. plugin-fw/licence/lib/yit-plugin-licence.php +0 -2
  30. plugin-fw/licence/lib/yit-theme-licence.php +0 -2
  31. plugin-fw/templates/metaboxes/types/categories.php +1 -1
  32. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +1 -0
  33. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +14 -7
  34. plugin-fw/yit-functions.php +5 -0
  35. plugin-fw/yit-plugin.php +4 -16
  36. plugin-options/settings-options.php +20 -20
  37. templates/admin/premium.php +68 -38
README.txt CHANGED
@@ -3,7 +3,7 @@ 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.3
6
- Stable tag: 1.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -42,6 +42,14 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
42
 
43
  == Changelog ==
44
 
 
 
 
 
 
 
 
 
45
  = 1.0.8 =
46
 
47
  * Fixed: Main template issue
@@ -103,6 +111,7 @@ If you have created your own language pack, or have an update for an existing on
103
 
104
  == Upgrade notice ==
105
 
106
- = 1.0.8 =
107
 
108
- * Fixed: Main template issue
 
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.3
6
+ Stable tag: 1.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
42
 
43
  == Changelog ==
44
 
45
+ = 1.1.0 =
46
+
47
+ * Added: Compatibility with YITH WooCommerce Wishlist
48
+ * Added: Compatibility with YITH WooCommerce Badge Management
49
+ * Added: Italian Language
50
+ * Updated: Language file .pot. Changed textdomain to yith-wcqv to yith-woocommerce-quick-view
51
+ * Updated: Plugin Core
52
+
53
  = 1.0.8 =
54
 
55
  * Fixed: Main template issue
111
 
112
  == Upgrade notice ==
113
 
114
+ = 1.1.0 =
115
 
116
+ * Added: Compatibility with YITH WooCommerce Wishlist
117
+ * Updated: Plugin Core
assets/css/yith-quick-view.css CHANGED
@@ -36,12 +36,14 @@
36
  vertical-align: middle;
37
  min-width: 300px;
38
  max-width: 1000px;
 
39
  z-index: 2000;
40
  visibility: hidden;
41
  -webkit-backface-visibility: hidden;
42
  -moz-backface-visibility: hidden;
43
  backface-visibility: hidden;
44
  text-align: initial;
 
45
  }
46
  #yith-quick-view-modal.open .yith-wcqv-wrapper {
47
  visibility: visible;
@@ -71,6 +73,15 @@
71
  -ms-transform: translateY(0);
72
  transform: translateY(0);
73
  opacity: 1;
 
 
 
 
 
 
 
 
 
74
  }
75
 
76
  #yith-quick-view-close {
36
  vertical-align: middle;
37
  min-width: 300px;
38
  max-width: 1000px;
39
+ overflow: hidden;
40
  z-index: 2000;
41
  visibility: hidden;
42
  -webkit-backface-visibility: hidden;
43
  -moz-backface-visibility: hidden;
44
  backface-visibility: hidden;
45
  text-align: initial;
46
+ padding: 15px;
47
  }
48
  #yith-quick-view-modal.open .yith-wcqv-wrapper {
49
  visibility: visible;
73
  -ms-transform: translateY(0);
74
  transform: translateY(0);
75
  opacity: 1;
76
+ height: 100%;
77
+ }
78
+ @media screen and ( max-height: 800px ){
79
+ #yith-quick-view-modal .yith-wcqv-wrapper {
80
+ height: 80%;
81
+ }
82
+ #yith-quick-view-modal.open .yith-wcqv-main {
83
+ overflow-y: scroll;
84
+ }
85
  }
86
 
87
  #yith-quick-view-close {
assets/image/09-bg.png ADDED
Binary file
assets/image/09-icon.png ADDED
Binary file
assets/image/09.png ADDED
Binary file
assets/image/10.png ADDED
Binary file
assets/js/frontend.js CHANGED
@@ -25,13 +25,7 @@ jQuery(document).ready(function($){
25
 
26
  $.fn.yith_quick_view = function() {
27
 
28
- var button = $(document).find( '.yith-wcqv-button' );
29
-
30
- // remove prev click event
31
- button.off( 'click' );
32
-
33
- button.on( 'click', function(e){
34
-
35
  e.preventDefault();
36
 
37
  var t = $(this),
@@ -48,6 +42,13 @@ jQuery(document).ready(function($){
48
  cursor : 'none'
49
  }
50
  });
 
 
 
 
 
 
 
51
  }
52
  ajax_call( t, product_id, is_blocked );
53
  });
@@ -91,7 +92,7 @@ jQuery(document).ready(function($){
91
  }
92
 
93
  if( ! qv_modal.hasClass( 'open' ) ) {
94
- qv_modal.addClass('open');
95
  if( is_blocked )
96
  t.unblock();
97
  }
@@ -124,7 +125,7 @@ jQuery(document).ready(function($){
124
  });
125
 
126
  var close_qv = function() {
127
- qv_modal.removeClass('open');
128
 
129
  setTimeout(function () {
130
  qv_content.html('');
25
 
26
  $.fn.yith_quick_view = function() {
27
 
28
+ $(document).off( 'click', '.yith-wcqv-button' ).on( 'click', '.yith-wcqv-button', function(e){
 
 
 
 
 
 
29
  e.preventDefault();
30
 
31
  var t = $(this),
42
  cursor : 'none'
43
  }
44
  });
45
+
46
+ if( ! qv_modal.hasClass( 'loading' ) ) {
47
+ qv_modal.addClass('loading');
48
+ }
49
+
50
+ // stop loader
51
+ $(document).trigger( 'qv_loading' );
52
  }
53
  ajax_call( t, product_id, is_blocked );
54
  });
92
  }
93
 
94
  if( ! qv_modal.hasClass( 'open' ) ) {
95
+ qv_modal.removeClass('loading').addClass('open');
96
  if( is_blocked )
97
  t.unblock();
98
  }
125
  });
126
 
127
  var close_qv = function() {
128
+ qv_modal.removeClass('open').removeClass('loading');
129
 
130
  setTimeout(function () {
131
  qv_content.html('');
class.yith-wcqv-admin.php CHANGED
@@ -104,8 +104,6 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
104
 
105
  add_action( 'yith_quick_view_premium', array( $this, 'premium_tab' ) );
106
 
107
- add_action( 'admin_init', array( $this, 'register_pointer' ) );
108
-
109
  // YITH WCQV Loaded
110
  do_action( 'yith_wcqv_loaded' );
111
 
@@ -127,8 +125,8 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
127
  */
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
  }
@@ -149,15 +147,15 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
149
  }
150
 
151
  $admin_tabs = array(
152
- 'settings' => __( 'Settings', 'yith-wcqv' ),
153
- 'premium' => __( 'Premium Version', 'yith-wcqv' ),
154
  );
155
 
156
  $args = array(
157
  'create_menu_page' => true,
158
  'parent_slug' => '',
159
- 'page_title' => __( 'Quick View', 'yith-wcqv' ),
160
- 'menu_title' => __( 'Quick View', 'yith-wcqv' ),
161
  'capability' => 'manage_options',
162
  'parent' => '',
163
  'parent_page' => 'yit_plugin_panel',
@@ -211,37 +209,11 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
211
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
212
 
213
  if ( defined( 'YITH_WCQV_FREE_INIT' ) && YITH_WCQV_FREE_INIT == $plugin_file ) {
214
- $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yith-wcqv' ) . '</a>';
215
  }
216
  return $plugin_meta;
217
  }
218
 
219
-
220
- public function register_pointer(){
221
-
222
- if( ! class_exists( 'YIT_Pointers' ) ){
223
- include_once( 'plugin-fw/lib/yit-pointers.php' );
224
- }
225
-
226
- $args[] = array(
227
- 'screen_id' => 'plugins',
228
- 'pointer_id' => 'yith_wcqv_panel',
229
- 'target' => '#toplevel_page_yit_plugin_panel',
230
- 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
231
- __( 'YITH WooCommerce Quick View', 'yith_wcqv' ),
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
239
- );
240
-
241
- YIT_Pointers()->register( $args );
242
- }
243
-
244
-
245
  /**
246
  * Get the premium landing uri
247
  *
104
 
105
  add_action( 'yith_quick_view_premium', array( $this, 'premium_tab' ) );
106
 
 
 
107
  // YITH WCQV Loaded
108
  do_action( 'yith_wcqv_loaded' );
109
 
125
  */
126
  public function action_links( $links ) {
127
 
128
+ $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-quick-view' ) . '</a>';
129
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-quick-view' ) . '</a>';
130
 
131
  return $links;
132
  }
147
  }
148
 
149
  $admin_tabs = array(
150
+ 'settings' => __( 'Settings', 'yith-woocommerce-quick-view' ),
151
+ 'premium' => __( 'Premium Version', 'yith-woocommerce-quick-view' ),
152
  );
153
 
154
  $args = array(
155
  'create_menu_page' => true,
156
  'parent_slug' => '',
157
+ 'page_title' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
158
+ 'menu_title' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
159
  'capability' => 'manage_options',
160
  'parent' => '',
161
  'parent_page' => 'yit_plugin_panel',
209
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
210
 
211
  if ( defined( 'YITH_WCQV_FREE_INIT' ) && YITH_WCQV_FREE_INIT == $plugin_file ) {
212
+ $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-quick-view' ) . '</a>';
213
  }
214
  return $plugin_meta;
215
  }
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  /**
218
  * Get the premium landing uri
219
  *
class.yith-wcqv-frontend.php CHANGED
@@ -67,6 +67,7 @@ if( ! class_exists( 'YITH_WCQV_Frontend' ) ) {
67
 
68
  // add button
69
  add_action( 'woocommerce_after_shop_loop_item', array( $this, 'yith_add_quick_view_button' ), 15 );
 
70
 
71
  // load modal template
72
  add_action( 'wp_footer', array( $this, 'yith_quick_view' ) );
67
 
68
  // add button
69
  add_action( 'woocommerce_after_shop_loop_item', array( $this, 'yith_add_quick_view_button' ), 15 );
70
+ add_action( 'yith_wccl_table_after_product_name', array( $this, 'yith_add_quick_view_button' ), 15 );
71
 
72
  // load modal template
73
  add_action( 'wp_footer', array( $this, 'yith_quick_view' ) );
class.yith-wcqv.php CHANGED
@@ -67,7 +67,7 @@ if ( ! class_exists( 'YITH_WCQV' ) ) {
67
  public function __construct() {
68
 
69
  // Load Plugin Framework
70
- add_action( 'after_setup_theme', array( $this, 'plugin_fw_loader' ), 1 );
71
 
72
  // Class admin
73
  if ( is_admin() ) {
@@ -95,10 +95,13 @@ if ( ! class_exists( 'YITH_WCQV' ) ) {
95
  */
96
  public function plugin_fw_loader() {
97
 
98
- if ( ! defined( 'YIT' ) || ! defined( 'YIT_CORE_PLUGIN' ) ) {
99
- require_once( 'plugin-fw/yit-plugin.php' );
 
 
 
 
100
  }
101
-
102
  }
103
  }
104
  }
67
  public function __construct() {
68
 
69
  // Load Plugin Framework
70
+ add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
71
 
72
  // Class admin
73
  if ( is_admin() ) {
95
  */
96
  public function plugin_fw_loader() {
97
 
98
+ if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
99
+ global $plugin_fw_data;
100
+ if ( ! empty( $plugin_fw_data ) ) {
101
+ $plugin_fw_file = array_shift($plugin_fw_data);
102
+ require_once( $plugin_fw_file );
103
+ }
104
  }
 
105
  }
106
  }
107
  }
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.8
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-wcqv
@@ -11,7 +11,7 @@
11
  *
12
  * @author Yithemes
13
  * @package YITH WooCommerce Quick View
14
- * @version 1.0.8
15
  */
16
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
@@ -38,7 +38,7 @@ if ( ! function_exists( 'is_plugin_active' ) ) {
38
  function yith_wcqv_install_woocommerce_admin_notice() {
39
  ?>
40
  <div class="error">
41
- <p><?php _e( 'YITH WooCommerce Quick View is enabled but not effective. It requires WooCommerce in order to work.', 'yith-wcqv' ); ?></p>
42
  </div>
43
  <?php
44
  }
@@ -47,7 +47,7 @@ function yith_wcqv_install_woocommerce_admin_notice() {
47
  function yith_wcqv_install_free_admin_notice() {
48
  ?>
49
  <div class="error">
50
- <p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Quick View while you are using the premium one.', 'yith-wcqv' ); ?></p>
51
  </div>
52
  <?php
53
  }
@@ -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.8' );
63
  }
64
 
65
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
@@ -90,10 +90,15 @@ if ( ! defined( 'YITH_WCQV_ASSETS_URL' ) ) {
90
  define( 'YITH_WCQV_ASSETS_URL', YITH_WCQV_URL . 'assets' );
91
  }
92
 
 
 
 
 
 
93
 
94
  function yith_wcqv_init() {
95
 
96
- load_plugin_textdomain( 'yith-wcqv', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
97
 
98
  // Load required classes and functions
99
  require_once('class.yith-wcqv-admin.php');
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.1.0
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-wcqv
11
  *
12
  * @author Yithemes
13
  * @package YITH WooCommerce Quick View
14
+ * @version 1.1.0
15
  */
16
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
38
  function yith_wcqv_install_woocommerce_admin_notice() {
39
  ?>
40
  <div class="error">
41
+ <p><?php _e( 'YITH WooCommerce Quick View is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-quick-view' ); ?></p>
42
  </div>
43
  <?php
44
  }
47
  function yith_wcqv_install_free_admin_notice() {
48
  ?>
49
  <div class="error">
50
+ <p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Quick View while you are using the premium one.', 'yith-woocommerce-quick-view' ); ?></p>
51
  </div>
52
  <?php
53
  }
59
 
60
 
61
  if ( ! defined( 'YITH_WCQV_VERSION' ) ){
62
+ define( 'YITH_WCQV_VERSION', '1.1.0' );
63
  }
64
 
65
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
90
  define( 'YITH_WCQV_ASSETS_URL', YITH_WCQV_URL . 'assets' );
91
  }
92
 
93
+ /* Plugin Framework Version Check */
94
+ if( ! function_exists( 'yit_maybe_plugin_fw_loader' ) && file_exists( YITH_WCQV_DIR . 'plugin-fw/init.php' ) ) {
95
+ require_once( YITH_WCQV_DIR . 'plugin-fw/init.php' );
96
+ }
97
+ yit_maybe_plugin_fw_loader( YITH_WCQV_DIR );
98
 
99
  function yith_wcqv_init() {
100
 
101
+ load_plugin_textdomain( 'yith-woocommerce-quick-view', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
102
 
103
  // Load required classes and functions
104
  require_once('class.yith-wcqv-admin.php');
languages/yith-wcqv.pot DELETED
@@ -1,137 +0,0 @@
1
- #, fuzzy
2
- msgid ""
3
- msgstr ""
4
- "Project-Id-Version: YITH Woocommerce Quick View\n"
5
- "POT-Creation-Date: 2015-08-21 13:23+0200\n"
6
- "PO-Revision-Date: 2015-05-18 11:52+0100\n"
7
- "Last-Translator: \n"
8
- "Language-Team: YIThemes <plugins@yithemes.com>\n"
9
- "Language: en\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.2\n"
14
- "X-Poedit-Basepath: .\n"
15
- "Plural-Forms: nplurals=2; plural=n!=1;\n"
16
- "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
17
- "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
18
- "X-Poedit-SourceCharset: UTF-8\n"
19
- "X-Poedit-SearchPath-0: ..\n"
20
- "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
21
-
22
- #: ../class.yith-wcqv-admin.php:130 ../class.yith-wcqv-admin.php:152
23
- msgid "Settings"
24
- msgstr ""
25
-
26
- #: ../class.yith-wcqv-admin.php:131 ../class.yith-wcqv-admin.php:153
27
- msgid "Premium Version"
28
- msgstr ""
29
-
30
- #: ../class.yith-wcqv-admin.php:159 ../class.yith-wcqv-admin.php:160
31
- #: ../plugin-options/settings-options.php:57
32
- msgid "Quick View"
33
- msgstr ""
34
-
35
- #: ../class.yith-wcqv-admin.php:214
36
- msgid "Plugin Documentation"
37
- msgstr ""
38
-
39
- #: ../class.yith-wcqv-admin.php:231 ../plugin-options/settings-options.php:11
40
- #: ../plugin-options/settings-options.php:18
41
- msgid "YITH WooCommerce Quick View"
42
- msgstr ""
43
-
44
- #: ../class.yith-wcqv-admin.php:232
45
- msgid ""
46
- "In the YIT Plugin tab you can find the YITH WooCommerce Quick View options.\n"
47
- "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
48
- "our plugins that you have activated.\n"
49
- "\t\t\t\t\t\t\t\t\t\tYITH WooCommerce Quick View is available in an "
50
- "outstanding PREMIUM version with many new options,\n"
51
- "\t\t\t\t\t\t\t\t\t\t<a href=\""
52
- msgstr ""
53
-
54
- #: ../init.php:41
55
- msgid ""
56
- "YITH WooCommerce Quick View is enabled but not effective. It requires "
57
- "WooCommerce in order to work."
58
- msgstr ""
59
-
60
- #: ../init.php:50
61
- msgid ""
62
- "You can't activate the free version of YITH WooCommerce Quick View while you "
63
- "are using the premium one."
64
- msgstr ""
65
-
66
- #: ../plugin-options/settings-options.php:8
67
- msgid "Upgrade to the PREMIUM VERSION"
68
- msgstr ""
69
-
70
- #: ../plugin-options/settings-options.php:12
71
- msgid "Discover the Advanced Features"
72
- msgstr ""
73
-
74
- #: ../plugin-options/settings-options.php:13
75
- msgid ""
76
- "Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit "
77
- "from all features!"
78
- msgstr ""
79
-
80
- #: ../plugin-options/settings-options.php:20
81
- msgid "Get Support and Pro Features"
82
- msgstr ""
83
-
84
- #: ../plugin-options/settings-options.php:21
85
- msgid ""
86
- "By purchasing the premium version of the plugin, you will take advantage of "
87
- "the advanced features of the product and you will get one year of free "
88
- "updates and support through our platform available 24h/24."
89
- msgstr ""
90
-
91
- #: ../plugin-options/settings-options.php:31
92
- msgid "General Options"
93
- msgstr ""
94
-
95
- #: ../plugin-options/settings-options.php:39
96
- msgid "Enable Quick View"
97
- msgstr ""
98
-
99
- #: ../plugin-options/settings-options.php:46
100
- msgid "Enable Quick View on mobile"
101
- msgstr ""
102
-
103
- #: ../plugin-options/settings-options.php:47
104
- msgid "Enable quick view features on mobile device too"
105
- msgstr ""
106
-
107
- #: ../plugin-options/settings-options.php:54
108
- msgid "Quick View Button Label"
109
- msgstr ""
110
-
111
- #: ../plugin-options/settings-options.php:55
112
- msgid "Label for the quick view button in the WooCommerce loop."
113
- msgstr ""
114
-
115
- #: ../plugin-options/settings-options.php:62
116
- msgid "Enable Lightbox"
117
- msgstr ""
118
-
119
- #: ../plugin-options/settings-options.php:63
120
- msgid "Enable lightbox. Product images will open in a lightbox."
121
- msgstr ""
122
-
123
- #: ../plugin-options/settings-options.php:74
124
- msgid "Style Options"
125
- msgstr ""
126
-
127
- #: ../plugin-options/settings-options.php:81
128
- msgid "Modal Window Background Color"
129
- msgstr ""
130
-
131
- #: ../plugin-options/settings-options.php:89
132
- msgid "Closing Button Color"
133
- msgstr ""
134
-
135
- #: ../plugin-options/settings-options.php:97
136
- msgid "Closing Button Hover Color"
137
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/yith-woocommerce-quick-view-it_IT.mo ADDED
Binary file
languages/yith-woocommerce-quick-view-it_IT.po ADDED
@@ -0,0 +1,582 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: YITH WooCommerce Quick View\n"
4
+ "POT-Creation-Date: 2015-10-30 12:22+0100\n"
5
+ "PO-Revision-Date: 2015-10-30 12:23+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: YIThemes <plugins@yithemes.com>\n"
8
+ "Language: it_IT\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.8.2\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;"
16
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-SearchPath-0: ..\n"
19
+ "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
20
+
21
+ #: ../class.yith-wcqv-admin.php:128 ../class.yith-wcqv-admin.php:150
22
+ msgid "Settings"
23
+ msgstr "Impostazioni"
24
+
25
+ #: ../class.yith-wcqv-admin.php:129 ../class.yith-wcqv-admin.php:151
26
+ msgid "Premium Version"
27
+ msgstr "Versione premium"
28
+
29
+ #: ../class.yith-wcqv-admin.php:157 ../class.yith-wcqv-admin.php:158
30
+ #: ../plugin-options/settings-options.php:57
31
+ msgid "Quick View"
32
+ msgstr "Quick view"
33
+
34
+ #: ../class.yith-wcqv-admin.php:212
35
+ msgid "Plugin Documentation"
36
+ msgstr "Documentazione plugin"
37
+
38
+ #: ../init.php:41
39
+ msgid ""
40
+ "YITH WooCommerce Quick View is enabled but not effective. It requires "
41
+ "WooCommerce in order to work."
42
+ msgstr ""
43
+ "YITH WooCommerce Quick View è abilitato ma non in funzione. Devi aver "
44
+ "installato WooCommerce perché questo possa funzionare correttamente."
45
+
46
+ #: ../init.php:50
47
+ msgid ""
48
+ "You can't activate the free version of YITH WooCommerce Quick View while you "
49
+ "are using the premium one."
50
+ msgstr ""
51
+ "Non è possibile attivare la versione free di YITH WooCommerce Colors and "
52
+ "Labels Variations se stai già utilizzando la premium."
53
+
54
+ #: ../plugin-options/settings-options.php:8
55
+ msgid "Upgrade to the PREMIUM VERSION"
56
+ msgstr "Aggiorna alla VERSIONE PREMIUM"
57
+
58
+ #: ../plugin-options/settings-options.php:11
59
+ #: ../plugin-options/settings-options.php:18
60
+ msgid "YITH WooCommerce Quick View"
61
+ msgstr "YITH WooCommerce Quick View"
62
+
63
+ #: ../plugin-options/settings-options.php:12
64
+ msgid "Discover the Advanced Features"
65
+ msgstr "Scopri le funzionalità avanzate"
66
+
67
+ #: ../plugin-options/settings-options.php:13
68
+ msgid ""
69
+ "Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit "
70
+ "from all features!"
71
+ msgstr ""
72
+ "Aggiorna alla VERSIONE PREMIUM di YITH WooCommerce Quick View per usufruire "
73
+ "di tutte le sue funzionalità!"
74
+
75
+ #: ../plugin-options/settings-options.php:20
76
+ msgid "Get Support and Pro Features"
77
+ msgstr "Ottieni supporto e funzionalità aggiuntive"
78
+
79
+ #: ../plugin-options/settings-options.php:21
80
+ msgid ""
81
+ "By purchasing the premium version of the plugin, you will take advantage of "
82
+ "the advanced features of the product and you will get one year of free "
83
+ "updates and support through our platform available 24h/24."
84
+ msgstr ""
85
+ "Acquistando la versione premium del plugin, potrai beneficiare delle "
86
+ "funzionalità avanzate del prodotto ed otterrai un anno di aggiornamenti "
87
+ "gratuiti e supporto per mezzo della nostra piattaforma disponibile 24h/24."
88
+
89
+ #: ../plugin-options/settings-options.php:31
90
+ msgid "General Options"
91
+ msgstr "Opzioni generali"
92
+
93
+ #: ../plugin-options/settings-options.php:39
94
+ msgid "Enable Quick View"
95
+ msgstr "Abilita quick view"
96
+
97
+ #: ../plugin-options/settings-options.php:46
98
+ msgid "Enable Quick View on mobile"
99
+ msgstr "Abilita quick view su dispositivi mobili"
100
+
101
+ #: ../plugin-options/settings-options.php:47
102
+ msgid "Enable quick view features on mobile device too"
103
+ msgstr "Abilita funzionalità quick view anche sui dispositivi mobili"
104
+
105
+ #: ../plugin-options/settings-options.php:54
106
+ msgid "Quick View Button Label"
107
+ msgstr "Testo pulsante quick view"
108
+
109
+ #: ../plugin-options/settings-options.php:55
110
+ msgid "Label for the quick view button in the WooCommerce loop."
111
+ msgstr "Testo per il pulsante Quick view nella pagina shop di WooCommerce"
112
+
113
+ #: ../plugin-options/settings-options.php:62
114
+ msgid "Enable Lightbox"
115
+ msgstr "Abilita lightbox"
116
+
117
+ #: ../plugin-options/settings-options.php:63
118
+ msgid "Enable lightbox. Product images will open in a lightbox."
119
+ msgstr ""
120
+ "Abilita la lightbox. Le immagini dei prodotti si apriranno in una lightbox."
121
+
122
+ #: ../plugin-options/settings-options.php:74
123
+ #: ../templates/admin/premium.php:322 ../templates/admin/premium.php:327
124
+ msgid "Style Options"
125
+ msgstr "Opzioni di stile"
126
+
127
+ #: ../plugin-options/settings-options.php:81
128
+ msgid "Modal Window Background Color"
129
+ msgstr "Colore finestra modale"
130
+
131
+ #: ../plugin-options/settings-options.php:89
132
+ msgid "Closing Button Color"
133
+ msgstr "Colore pulsante chiusura"
134
+
135
+ #: ../plugin-options/settings-options.php:97
136
+ msgid "Closing Button Hover Color"
137
+ msgstr "Colore pulsante chiusura al passaggio del mouse"
138
+
139
+ #: ../templates/admin/premium.php:209 ../templates/admin/premium.php:363
140
+ #, php-format
141
+ msgid ""
142
+ "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
143
+ "benefit from all features!"
144
+ msgstr ""
145
+ "Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Quick View"
146
+ "%2$s per usufruire di tutte le sue funzionalità!"
147
+
148
+ #: ../templates/admin/premium.php:212 ../templates/admin/premium.php:366
149
+ msgid "UPGRADE"
150
+ msgstr "AGGIORNA"
151
+
152
+ #: ../templates/admin/premium.php:213 ../templates/admin/premium.php:367
153
+ msgid "to the premium version"
154
+ msgstr "alla versione premium"
155
+
156
+ #: ../templates/admin/premium.php:219
157
+ msgid "Premium Features"
158
+ msgstr "Funzionalità premium"
159
+
160
+ #: ../templates/admin/premium.php:222
161
+ msgid "Button type"
162
+ msgstr "Tipologia pulsante"
163
+
164
+ #: ../templates/admin/premium.php:227
165
+ msgid "BUTTON TYPE"
166
+ msgstr "TIPOLOGIA PULSANTE"
167
+
168
+ #: ../templates/admin/premium.php:229
169
+ #, php-format
170
+ msgid ""
171
+ "Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
172
+ "you can choose to place it after the \"Add To Cart\" button or inside the "
173
+ "thumbnail of the product."
174
+ msgstr ""
175
+ "Scegli tra il pulsante o un’icona personalizzata per avviare la %1$squick "
176
+ "view%2$s: scegli tu se dopo il pulsante “Aggiungi al carrello” o sulla "
177
+ "immagine thumbnail del prodotto."
178
+
179
+ #: ../templates/admin/premium.php:237 ../templates/admin/premium.php:238
180
+ #: ../templates/admin/premium.php:243
181
+ msgid "Product Navigation"
182
+ msgstr "Navigazione prodotti"
183
+
184
+ #: ../templates/admin/premium.php:240
185
+ #, php-format
186
+ msgid ""
187
+ "The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
188
+ "displayed in it. The navigation arrows show on mousehover the image of the "
189
+ "next/previous product."
190
+ msgstr ""
191
+ "La navigazione all’interno della visualizzazione rapida permette di scorrere "
192
+ "tra i %1$sprodotti%2$s visualizzati. Quando si passa il cursore sulle frecce "
193
+ "di navigazione, queste mostrano l’immagine del prodotto immediatamente "
194
+ "successivo o precedente."
195
+
196
+ #: ../templates/admin/premium.php:254 ../templates/admin/premium.php:255
197
+ msgid "Content to display"
198
+ msgstr "Contenuto da mostrare"
199
+
200
+ #: ../templates/admin/premium.php:257
201
+ #, php-format
202
+ msgid ""
203
+ "The display of the product information in the \"Quick View\" are managed by "
204
+ "%1$sadministrators%2$s who can decide whether to show everything or only a "
205
+ "part of it."
206
+ msgstr ""
207
+ "La visualizzazione delle informazioni del prodotto all’interno della “Quick "
208
+ "View” sono gestite dall’%1$samministratore%2$s che può decidere se mostrare "
209
+ "tutto o solo una parte di esse."
210
+
211
+ #: ../templates/admin/premium.php:266
212
+ msgid "Quick View Type"
213
+ msgstr "Tipologia quick view"
214
+
215
+ #: ../templates/admin/premium.php:268
216
+ #, php-format
217
+ msgid ""
218
+ "Quick view has two different displaying modes: the first one opens it as a "
219
+ "%1$smodal window%2$s, the other one opens it in the page itself with a "
220
+ "%1$scascading effect%2$s above content page."
221
+ msgstr ""
222
+ "La visualizzazione rapida del prodotto può avvenire in due modi: all’interno "
223
+ "di una %1$sfinestra modale%2$s o all’interno della stessa pagina con "
224
+ "%1$seffetto a cascata%2$s sul resto del contenuto."
225
+
226
+ #: ../templates/admin/premium.php:271
227
+ msgid "Quick view type"
228
+ msgstr "Tipologia quick view"
229
+
230
+ #: ../templates/admin/premium.php:283
231
+ msgid "\"View details\" button"
232
+ msgstr "Pulsante “Visualizza dettagli”"
233
+
234
+ #: ../templates/admin/premium.php:285
235
+ msgid ""
236
+ "An additional button that allows users to access product detail page "
237
+ "directly from quick view window just with a click of the mouse."
238
+ msgstr ""
239
+ "Un pulsante aggiuntivo per permettere all’utente di accedere alla pagina "
240
+ "dettaglio del prodotto direttamente dalla quick view con un semplice clic."
241
+
242
+ #: ../templates/admin/premium.php:294
243
+ msgid "Type of product images"
244
+ msgstr "Tipologia immagini prodotto"
245
+
246
+ #: ../templates/admin/premium.php:296
247
+ #, php-format
248
+ msgid ""
249
+ "Each product can have more than one image: choose whether to hide or show "
250
+ "them with the %1$sslider%2$s effect or in the classic %1$sWooCommerce%2$s "
251
+ "display."
252
+ msgstr ""
253
+ "Ogni prodotto può avere ulteriori immagini oltre a quella in evidenza: "
254
+ "scegli se nasconderle o mostrarle con %1$seffetto scorrimento%2$s o nella "
255
+ "classica visualizzazione di %1$sWooCommerce%2$s."
256
+
257
+ #: ../templates/admin/premium.php:311
258
+ msgid "SHARE"
259
+ msgstr "Condivisione"
260
+
261
+ #: ../templates/admin/premium.php:313
262
+ #, php-format
263
+ msgid ""
264
+ "%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
265
+ "be able to share the Quick View on Facebook, Twitter, Pinterest, Google+, or "
266
+ "sending an email."
267
+ msgstr ""
268
+ "%1$sLa quick view è anche social%2$s! Abilitando l’opzione, potrà essere "
269
+ "condivisa su Facebook, Twitter, Pinterest, Google+ e per email."
270
+
271
+ #: ../templates/admin/premium.php:324
272
+ #, php-format
273
+ msgid ""
274
+ "A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
275
+ "button and of everything that is within the modal window generated."
276
+ msgstr ""
277
+ "Un ricco pannello opzioni per modificare i colori del pulsante %1$s“Quick "
278
+ "View”%2$s e di tutto ciò che è all’interno della finestra modale generata."
279
+
280
+ #: ../templates/admin/premium.php:339
281
+ msgid "SHORTCODE"
282
+ msgstr ""
283
+
284
+ #: ../templates/admin/premium.php:341
285
+ msgid ""
286
+ "The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
287
+ "can add a button in any spot of the page to allow your users to see the "
288
+ "quick view of a specific product in your store."
289
+ msgstr ""
290
+
291
+ #: ../templates/admin/premium.php:350
292
+ msgid "Compatibility with other YITH's plugins"
293
+ msgstr ""
294
+
295
+ #: ../templates/admin/premium.php:352
296
+ #, php-format
297
+ msgid ""
298
+ "Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
299
+ "WooCommerce Badge Management%2$s and %1$sYITH WooCommerce Wishlist%2$s, you "
300
+ "will be free to enrich further the content of your quick view.%3$s Zoom the "
301
+ "product image, show a badge, or add the button to open the quick view in all "
302
+ "products available in your users' wishlists. With YITH's plugins you make "
303
+ "the difference."
304
+ msgstr ""
305
+
306
+ #~ msgid ""
307
+ #~ "In the YIT Plugin tab you can find the YITH WooCommerce Quick View "
308
+ #~ "options.\r\n"
309
+ #~ "\t\t\t\t\t\t\t\t\t\tWith this menu, you can access to all the settings of "
310
+ #~ "our plugins that you have activated.\r\n"
311
+ #~ "\t\t\t\t\t\t\t\t\t\tYITH WooCommerce Quick View is available in an "
312
+ #~ "outstanding PREMIUM version with many new options,\r\n"
313
+ #~ "\t\t\t\t\t\t\t\t\t\t<a href=\""
314
+ #~ msgstr ""
315
+ #~ "Nella scheda YIT Plugins puoi trovare tutte le opzioni di YITH "
316
+ #~ "WooCommerce Quick View.<br>Da questo menu potrai accedere a tutte le "
317
+ #~ "impostazioni dei plugin YITH installati."
318
+
319
+ #~ msgid ""
320
+ #~ "The navigation in the \"Quick View\" allows browsing between the "
321
+ #~ "%1$sproducts%2$s within the same %1$scategory%2$s. The navigation arrows "
322
+ #~ "show on mousehover the image of the next/previous product."
323
+ #~ msgstr ""
324
+ #~ "La navigazione all’interno della visualizzazione rapida permette di "
325
+ #~ "scorrere tra i %1$sprodotti%2$s visualizzati. Quando si passa il cursore "
326
+ #~ "sulle frecce di navigazione, queste mostrano l’immagine del prodotto "
327
+ #~ "immediatamente successivo o precedente."
328
+
329
+ #~ msgid "General"
330
+ #~ msgstr "Generali"
331
+
332
+ #~ msgid "Product"
333
+ #~ msgstr "Prodotto"
334
+
335
+ #~ msgid "Style"
336
+ #~ msgstr "Stile"
337
+
338
+ #~ msgid "Quick View Navigation"
339
+ #~ msgstr "Navigazione quick view"
340
+
341
+ #~ msgid ""
342
+ #~ "Enable product navigation on quick view. NOTE: only available on modal "
343
+ #~ "window style."
344
+ #~ msgstr ""
345
+ #~ "Abilita scorrimento prodotti all\\’interno della quick view. NOTA: "
346
+ #~ "disponibile solo per lo stile finestra modale."
347
+
348
+ #~ msgid "Enable navigation in the same product category"
349
+ #~ msgstr "Abilita navigazione nella stessa categoria prodotti"
350
+
351
+ #~ msgid "Quick View Navigation Style"
352
+ #~ msgstr "Stile navigazione quick view"
353
+
354
+ #~ msgid "Slide ( thumbnail and product name )"
355
+ #~ msgstr "Scorrimento (miniatura e nome prodotto)"
356
+
357
+ #~ msgid "Rotate ( thumbnail )"
358
+ #~ msgstr "Rotazione (miniatura)"
359
+
360
+ #~ msgid "Modal Window"
361
+ #~ msgstr "Finestra modale"
362
+
363
+ #~ msgid "Cascading"
364
+ #~ msgstr "A cascata"
365
+
366
+ #~ msgid "Select modal effect"
367
+ #~ msgstr "Selezione effetto modale"
368
+
369
+ #~ msgid "Slide in"
370
+ #~ msgstr "Scorrimento"
371
+
372
+ #~ msgid "Fade in"
373
+ #~ msgstr "Dissolvenza"
374
+
375
+ #~ msgid "Scale up"
376
+ #~ msgstr "Ingrandimento"
377
+
378
+ #~ msgid "Modal Width"
379
+ #~ msgstr "Larghezza finestra"
380
+
381
+ #~ msgid "Set width of modal window."
382
+ #~ msgstr "Selezione la larghezza della finestra modale"
383
+
384
+ #~ msgid "Modal Height"
385
+ #~ msgstr "Altezza finestra"
386
+
387
+ #~ msgid "Set height of modal window."
388
+ #~ msgstr "Seleziona l\\’altezza della finestra modale"
389
+
390
+ #~ msgid "Button Options"
391
+ #~ msgstr "Opzioni pulsante"
392
+
393
+ #~ msgid "Quick View Button Type"
394
+ #~ msgstr "Tipo di pulsante quick view"
395
+
396
+ #~ msgid "Use button"
397
+ #~ msgstr "Usa pulsante"
398
+
399
+ #~ msgid "Use icon"
400
+ #~ msgstr "Usa icona"
401
+
402
+ #~ msgid "Quick View Button Icon"
403
+ #~ msgstr "Icona pulsante quick view"
404
+
405
+ #~ msgid "Icon for the quick view button in the WooCommerce loop."
406
+ #~ msgstr "Icona per il pulsante Quick view nella pagina shop di WooCommerce"
407
+
408
+ #~ msgid "Quick View Button Position"
409
+ #~ msgstr "Posizione pulsante Quick view"
410
+
411
+ #~ msgid "Position of the quick view button."
412
+ #~ msgstr "Posizione del pulsante Quick view"
413
+
414
+ #~ msgid "After 'add to cart' button"
415
+ #~ msgstr "Dopo il pulsante \\‘Aggiungi al carrello\\’"
416
+
417
+ #~ msgid "Inside product image"
418
+ #~ msgstr "Dentro l\\’immagine prodotto"
419
+
420
+ #~ msgid "Content Options"
421
+ #~ msgstr "Opzioni contenuto"
422
+
423
+ #~ msgid "Select Element to Show"
424
+ #~ msgstr "Seleziona elemento da mostrare"
425
+
426
+ #~ msgid "Show Product Image"
427
+ #~ msgstr "Mostra immagine prodotto"
428
+
429
+ #~ msgid "Show Product Name"
430
+ #~ msgstr "Mostra nome prodotto"
431
+
432
+ #~ msgid "Show Product Rating"
433
+ #~ msgstr "Mostra valutazione prodotto"
434
+
435
+ #~ msgid "Show Product Price"
436
+ #~ msgstr "Mostra prezzo prodotto"
437
+
438
+ #~ msgid "Show Product Excerpt"
439
+ #~ msgstr "Mostra riepilogo prodotto"
440
+
441
+ #~ msgid "Show Product Add To Cart"
442
+ #~ msgstr "Mostra \\”Aggiungi al carrello\\” del prodotto"
443
+
444
+ #~ msgid "Show Product Meta"
445
+ #~ msgstr "Mostra meta prodotto"
446
+
447
+ #~ msgid "Product Image Width"
448
+ #~ msgstr "Larghezza immagine prodotto"
449
+
450
+ #~ msgid "Set width of product image."
451
+ #~ msgstr "Imposta la larghezza dell\\’immagine del prodotto."
452
+
453
+ #~ msgid "Product Image Height"
454
+ #~ msgstr "Altezza immagine prodotto"
455
+
456
+ #~ msgid "Set height of product image."
457
+ #~ msgstr "Imposta l\\’altezza dell\\’immagine del prodotto."
458
+
459
+ #~ msgid "Select Thumbnails Type"
460
+ #~ msgstr "Seleziona tipo di miniatura"
461
+
462
+ #~ msgid "Don't show"
463
+ #~ msgstr "Non mostrare"
464
+
465
+ #~ msgid "Slider mode"
466
+ #~ msgstr "Modalità scorrimento"
467
+
468
+ #~ msgid "Classic mode"
469
+ #~ msgstr "Modalità classica"
470
+
471
+ #~ msgid "Add 'View Details' Button"
472
+ #~ msgstr "Aggiungi pulsante \\’Visualizza dettagli\\’"
473
+
474
+ #~ msgid "Check this option to add a button to go to the single product page."
475
+ #~ msgstr ""
476
+ #~ "Seleziona questa opzione per aggiungere un pulsante che riporti alla "
477
+ #~ "pagina singolo prodotto."
478
+
479
+ #~ msgid "'View Details' Button Label"
480
+ #~ msgstr "Testo pulsante \\’Visualizza dettagli\\’"
481
+
482
+ #~ msgid "Set label for 'View Details' button"
483
+ #~ msgstr "Scegli il testo del pulsante \\’Visualizza dettagli\\’"
484
+
485
+ #~ msgid "View Details"
486
+ #~ msgstr "Visualizza dettagli"
487
+
488
+ #~ msgid "Enable Ajax Add To Cart"
489
+ #~ msgstr "Abilita \\“Aggiungi al carrello\\” in ajax"
490
+
491
+ #~ msgid "Check this option to enable add to cart in ajax"
492
+ #~ msgstr ""
493
+ #~ "Seleziona questa opzione per abilitare il pulsante \\”Aggiungi al carrello"
494
+ #~ "\\” in ajax"
495
+
496
+ #~ msgid "Share Options"
497
+ #~ msgstr "Opzioni di condivisione"
498
+
499
+ #~ msgid "Enable Share"
500
+ #~ msgstr "Abilita condivisione"
501
+
502
+ #~ msgid ""
503
+ #~ "Check this option if you want to show the share link for products in "
504
+ #~ "quick view"
505
+ #~ msgstr ""
506
+ #~ "Seleziona questa opzione se vuoi mostrare il link di condivisione per i "
507
+ #~ "prodotti nella quick view"
508
+
509
+ #~ msgid "Select Socials"
510
+ #~ msgstr "Seleziona social"
511
+
512
+ #~ msgid "Facebook"
513
+ #~ msgstr "Facebook"
514
+
515
+ #~ msgid "Twitter"
516
+ #~ msgstr "Twitter"
517
+
518
+ #~ msgid "Google+"
519
+ #~ msgstr "Google+"
520
+
521
+ #~ msgid "Pinterest"
522
+ #~ msgstr "Pinterest"
523
+
524
+ #~ msgid "eMail"
525
+ #~ msgstr "email"
526
+
527
+ #~ msgid "General Style"
528
+ #~ msgstr "Stile generale"
529
+
530
+ #~ msgid "'Quick View' Button Color"
531
+ #~ msgstr "Colore pulsante 'Quick View'"
532
+
533
+ #~ msgid "'Quick View' Button Text Color"
534
+ #~ msgstr "Colore testo pulsante 'Quick View'"
535
+
536
+ #~ msgid "'Quick View' Button Hover Color "
537
+ #~ msgstr "Colore pulsante 'Quick View' al passaggio del mouse"
538
+
539
+ #~ msgid "'Quick View' Button Hover Text Color"
540
+ #~ msgstr "Colore testo pulsante 'Quick View' al passaggio del mouse"
541
+
542
+ #~ msgid "Content Style"
543
+ #~ msgstr "Stile contenuto"
544
+
545
+ #~ msgid "Main Text Color"
546
+ #~ msgstr "Colore principale testo"
547
+
548
+ #~ msgid "Star Color"
549
+ #~ msgstr "Colore stellina"
550
+
551
+ #~ msgid "'Add to Cart' Button Color"
552
+ #~ msgstr "Colore pulsante ‘Aggiungi al carrello’"
553
+
554
+ #~ msgid "'Add to Cart' Button Text Color"
555
+ #~ msgstr "Colore testo pulsante ‘Aggiungi al carrello’"
556
+
557
+ #~ msgid "'Add to Cart' Button Hover Color "
558
+ #~ msgstr "Colore pulsante ‘Aggiungi al carrello’ al passaggio del mouse"
559
+
560
+ #~ msgid "'Add to Cart' Button Hover Text Color"
561
+ #~ msgstr "Colore testo pulsante ‘Aggiungi al carrello’ al passaggio del mouse"
562
+
563
+ #~ msgid "'View Details' Button Color"
564
+ #~ msgstr "Colore pulsante ‘Visualizza dettagli’"
565
+
566
+ #~ msgid "'View Details' Button Text Color"
567
+ #~ msgstr "Colore testo pulsante ‘Visualizza dettagli’"
568
+
569
+ #~ msgid "'View Details' Button Hover Color "
570
+ #~ msgstr "Colore pulsante ‘Visualizza dettagli’ al passaggio del mouse "
571
+
572
+ #~ msgid "'View Details' Button Hover Text Color"
573
+ #~ msgstr "Colore testo pulsante ‘Visualizza dettagli’ al passaggio del mouse "
574
+
575
+ #~ msgid "Closing Icon Color"
576
+ #~ msgstr "Colore icona chiusura"
577
+
578
+ #~ msgid "Closing Icon Hover Color"
579
+ #~ msgstr "Colore icona chiusura al passaggio del mouse"
580
+
581
+ #~ msgid "May I ask you to see this product, please?"
582
+ #~ msgstr "Posso chiederti di guardare questo prodotto, per favore?"
languages/yith-woocommerce-quick-view.pot ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #, fuzzy
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: YITH WooCommerce Quick View\n"
5
+ "POT-Creation-Date: 2015-10-30 12:22+0100\n"
6
+ "PO-Revision-Date: 2015-05-18 11:52+0100\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: YIThemes <plugins@yithemes.com>\n"
9
+ "Language: en\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=2; plural=n!=1;\n"
16
+ "X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
21
+
22
+ #: ../class.yith-wcqv-admin.php:128 ../class.yith-wcqv-admin.php:150
23
+ msgid "Settings"
24
+ msgstr ""
25
+
26
+ #: ../class.yith-wcqv-admin.php:129 ../class.yith-wcqv-admin.php:151
27
+ msgid "Premium Version"
28
+ msgstr ""
29
+
30
+ #: ../class.yith-wcqv-admin.php:157 ../class.yith-wcqv-admin.php:158
31
+ #: ../plugin-options/settings-options.php:57
32
+ msgid "Quick View"
33
+ msgstr ""
34
+
35
+ #: ../class.yith-wcqv-admin.php:212
36
+ msgid "Plugin Documentation"
37
+ msgstr ""
38
+
39
+ #: ../init.php:41
40
+ msgid ""
41
+ "YITH WooCommerce Quick View is enabled but not effective. It requires "
42
+ "WooCommerce in order to work."
43
+ msgstr ""
44
+
45
+ #: ../init.php:50
46
+ msgid ""
47
+ "You can't activate the free version of YITH WooCommerce Quick View while you "
48
+ "are using the premium one."
49
+ msgstr ""
50
+
51
+ #: ../plugin-options/settings-options.php:8
52
+ msgid "Upgrade to the PREMIUM VERSION"
53
+ msgstr ""
54
+
55
+ #: ../plugin-options/settings-options.php:11
56
+ #: ../plugin-options/settings-options.php:18
57
+ msgid "YITH WooCommerce Quick View"
58
+ msgstr ""
59
+
60
+ #: ../plugin-options/settings-options.php:12
61
+ msgid "Discover the Advanced Features"
62
+ msgstr ""
63
+
64
+ #: ../plugin-options/settings-options.php:13
65
+ msgid ""
66
+ "Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit "
67
+ "from all features!"
68
+ msgstr ""
69
+
70
+ #: ../plugin-options/settings-options.php:20
71
+ msgid "Get Support and Pro Features"
72
+ msgstr ""
73
+
74
+ #: ../plugin-options/settings-options.php:21
75
+ msgid ""
76
+ "By purchasing the premium version of the plugin, you will take advantage of "
77
+ "the advanced features of the product and you will get one year of free "
78
+ "updates and support through our platform available 24h/24."
79
+ msgstr ""
80
+
81
+ #: ../plugin-options/settings-options.php:31
82
+ msgid "General Options"
83
+ msgstr ""
84
+
85
+ #: ../plugin-options/settings-options.php:39
86
+ msgid "Enable Quick View"
87
+ msgstr ""
88
+
89
+ #: ../plugin-options/settings-options.php:46
90
+ msgid "Enable Quick View on mobile"
91
+ msgstr ""
92
+
93
+ #: ../plugin-options/settings-options.php:47
94
+ msgid "Enable quick view features on mobile device too"
95
+ msgstr ""
96
+
97
+ #: ../plugin-options/settings-options.php:54
98
+ msgid "Quick View Button Label"
99
+ msgstr ""
100
+
101
+ #: ../plugin-options/settings-options.php:55
102
+ msgid "Label for the quick view button in the WooCommerce loop."
103
+ msgstr ""
104
+
105
+ #: ../plugin-options/settings-options.php:62
106
+ msgid "Enable Lightbox"
107
+ msgstr ""
108
+
109
+ #: ../plugin-options/settings-options.php:63
110
+ msgid "Enable lightbox. Product images will open in a lightbox."
111
+ msgstr ""
112
+
113
+ #: ../plugin-options/settings-options.php:74
114
+ #: ../templates/admin/premium.php:322 ../templates/admin/premium.php:327
115
+ msgid "Style Options"
116
+ msgstr ""
117
+
118
+ #: ../plugin-options/settings-options.php:81
119
+ msgid "Modal Window Background Color"
120
+ msgstr ""
121
+
122
+ #: ../plugin-options/settings-options.php:89
123
+ msgid "Closing Button Color"
124
+ msgstr ""
125
+
126
+ #: ../plugin-options/settings-options.php:97
127
+ msgid "Closing Button Hover Color"
128
+ msgstr ""
129
+
130
+ #: ../templates/admin/premium.php:209 ../templates/admin/premium.php:363
131
+ #, php-format
132
+ msgid ""
133
+ "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
134
+ "benefit from all features!"
135
+ msgstr ""
136
+
137
+ #: ../templates/admin/premium.php:212 ../templates/admin/premium.php:366
138
+ msgid "UPGRADE"
139
+ msgstr ""
140
+
141
+ #: ../templates/admin/premium.php:213 ../templates/admin/premium.php:367
142
+ msgid "to the premium version"
143
+ msgstr ""
144
+
145
+ #: ../templates/admin/premium.php:219
146
+ msgid "Premium Features"
147
+ msgstr ""
148
+
149
+ #: ../templates/admin/premium.php:222
150
+ msgid "Button type"
151
+ msgstr ""
152
+
153
+ #: ../templates/admin/premium.php:227
154
+ msgid "BUTTON TYPE"
155
+ msgstr ""
156
+
157
+ #: ../templates/admin/premium.php:229
158
+ #, php-format
159
+ msgid ""
160
+ "Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
161
+ "you can choose to place it after the \"Add To Cart\" button or inside the "
162
+ "thumbnail of the product."
163
+ msgstr ""
164
+
165
+ #: ../templates/admin/premium.php:237 ../templates/admin/premium.php:238
166
+ #: ../templates/admin/premium.php:243
167
+ msgid "Product Navigation"
168
+ msgstr ""
169
+
170
+ #: ../templates/admin/premium.php:240
171
+ #, php-format
172
+ msgid ""
173
+ "The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
174
+ "displayed in it. The navigation arrows show on mousehover the image of the "
175
+ "next/previous product."
176
+ msgstr ""
177
+
178
+ #: ../templates/admin/premium.php:254 ../templates/admin/premium.php:255
179
+ msgid "Content to display"
180
+ msgstr ""
181
+
182
+ #: ../templates/admin/premium.php:257
183
+ #, php-format
184
+ msgid ""
185
+ "The display of the product information in the \"Quick View\" are managed by "
186
+ "%1$sadministrators%2$s who can decide whether to show everything or only a "
187
+ "part of it."
188
+ msgstr ""
189
+
190
+ #: ../templates/admin/premium.php:266
191
+ msgid "Quick View Type"
192
+ msgstr ""
193
+
194
+ #: ../templates/admin/premium.php:268
195
+ #, php-format
196
+ msgid ""
197
+ "Quick view has two different displaying modes: the first one opens it as a "
198
+ "%1$smodal window%2$s, the other one opens it in the page itself with a "
199
+ "%1$scascading effect%2$s above content page."
200
+ msgstr ""
201
+
202
+ #: ../templates/admin/premium.php:271
203
+ msgid "Quick view type"
204
+ msgstr ""
205
+
206
+ #: ../templates/admin/premium.php:283
207
+ msgid "\"View details\" button"
208
+ msgstr ""
209
+
210
+ #: ../templates/admin/premium.php:285
211
+ msgid ""
212
+ "An additional button that allows users to access product detail page "
213
+ "directly from quick view window just with a click of the mouse."
214
+ msgstr ""
215
+
216
+ #: ../templates/admin/premium.php:294
217
+ msgid "Type of product images"
218
+ msgstr ""
219
+
220
+ #: ../templates/admin/premium.php:296
221
+ #, php-format
222
+ msgid ""
223
+ "Each product can have more than one image: choose whether to hide or show "
224
+ "them with the %1$sslider%2$s effect or in the classic %1$sWooCommerce%2$s "
225
+ "display."
226
+ msgstr ""
227
+
228
+ #: ../templates/admin/premium.php:311
229
+ msgid "SHARE"
230
+ msgstr ""
231
+
232
+ #: ../templates/admin/premium.php:313
233
+ #, php-format
234
+ msgid ""
235
+ "%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
236
+ "be able to share the Quick View on Facebook, Twitter, Pinterest, Google+, or "
237
+ "sending an email."
238
+ msgstr ""
239
+
240
+ #: ../templates/admin/premium.php:324
241
+ #, php-format
242
+ msgid ""
243
+ "A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
244
+ "button and of everything that is within the modal window generated."
245
+ msgstr ""
246
+
247
+ #: ../templates/admin/premium.php:339
248
+ msgid "SHORTCODE"
249
+ msgstr ""
250
+
251
+ #: ../templates/admin/premium.php:341
252
+ msgid ""
253
+ "The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
254
+ "can add a button in any spot of the page to allow your users to see the "
255
+ "quick view of a specific product in your store."
256
+ msgstr ""
257
+
258
+ #: ../templates/admin/premium.php:350
259
+ msgid "Compatibility with other YITH's plugins"
260
+ msgstr ""
261
+
262
+ #: ../templates/admin/premium.php:352
263
+ #, php-format
264
+ msgid ""
265
+ "Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
266
+ "WooCommerce Badge Management%2$s and %1$sYITH WooCommerce Wishlist%2$s, you "
267
+ "will be free to enrich further the content of your quick view.%3$s Zoom the "
268
+ "product image, show a badge, or add the button to open the quick view in all "
269
+ "products available in your users' wishlists. With YITH's plugins you make "
270
+ "the difference."
271
+ msgstr ""
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -631,6 +631,13 @@
631
  width: 6em;
632
  }
633
 
 
 
 
 
 
 
 
634
  /* === Responsive === */
635
 
636
  @media (max-width: 767px) {}
631
  width: 6em;
632
  }
633
 
634
+ /* === YIT FRAMEWORK === */
635
+ .plugin-card .plugin-icon img {
636
+ max-width: 100%;
637
+ width: auto;
638
+ height: auto;
639
+ }
640
+
641
  /* === Responsive === */
642
 
643
  @media (max-width: 767px) {}
plugin-fw/assets/js/yit-cpt-unlimited.js CHANGED
@@ -12,7 +12,7 @@
12
  // Author code here
13
 
14
  // open media box
15
- $('.wrap h2').on( 'click', 'a.multi-uploader', function(event){
16
  event.preventDefault();
17
 
18
  var file_frame,
12
  // Author code here
13
 
14
  // open media box
15
+ $('.wrap h1, .wrap h2').on( 'click', 'a.multi-uploader', function(event){
16
  event.preventDefault();
17
 
18
  var file_frame,
plugin-fw/assets/js/yit-cpt-unlimited.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(c){c(".wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a,b=c(this),d=!1;b.next("span.spinner").css("display","inline-block");a||(a=wp.media.frames.file_frame=wp.media({title:b.data("uploader_title"),button:{text:b.data("uploader_button_text")},library:{type:"image"},multiple:!0}),a.on("select",function(){var e=[];a.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});c.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader"},
2
  function(a){location.reload()});b.next("span.spinner").css("display","inline-block");d=!0}),a.on("close",function(){d||b.next("span.spinner").hide()}));a.open()})})(jQuery);
1
+ (function(c){c(".wrap h1, .wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a,b=c(this),d=!1;b.next("span.spinner").css("display","inline-block");a||(a=wp.media.frames.file_frame=wp.media({title:b.data("uploader_title"),button:{text:b.data("uploader_button_text")},library:{type:"image"},multiple:!0}),a.on("select",function(){var e=[];a.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});c.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader"},
2
  function(a){location.reload()});b.next("span.spinner").css("display","inline-block");d=!0}),a.on("close",function(){d||b.next("span.spinner").hide()}));a.open()})})(jQuery);
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -165,6 +165,12 @@
165
  var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
166
 
167
  $("#" + id).val( attachment.url );
 
 
 
 
 
 
168
  $('.plugin-option .upload_img_url').trigger('change');
169
  });
170
 
165
  var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
166
 
167
  $("#" + id).val( attachment.url );
168
+ // Save the id of the selected element to an element which name is the same with
169
+ // a suffix "-yith-attachment-id"
170
+ if ($("#" + id + "-yith-attachment-id")) {
171
+ $("#" + id + "-yith-attachment-id").val(attachment.id);
172
+ }
173
+
174
  $('.plugin-option .upload_img_url').trigger('change');
175
  });
176
 
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -1,10 +1 @@
1
- (function(a){var l=function(){var b="";a(this).attr("multiple")?(a(this).children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()}),""==b&&a(this).children().children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()})):(b=a(this).children("option:selected").text(),""==b&&(b=a(this).children().children("option:selected").text()));0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+
2
- "</span>")};a(".plugin-option .select_wrapper select").not(".chosen").each(l).change(l);a(".plugin-option .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".plugin-option .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".plugin-option .select_wrapper select[multiple]").not(".chosen").hide()});a(".plugin-option .chosen .select_wrapper select").chosen();a(".plugin-option .on_off_container span").on("click",
3
- function(){var b=a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()});a(".plugin-option .slider_container .ui-slider-horizontal").each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),f=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);
4
- a(this).siblings(".feedback").find("strong").text(c.value+f)}})});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(a(".plugin-option .upload_img_url").change(function(){var b=a(this).val(),c=a(this).parents().siblings(".upload_img_preview");/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)/.test(b)?c.html('<img src="'+b+'" style="max-width:600px; max-height:300px;" />'):c.html("")}).trigger("change"),a(document).on("click",".plugin-option .upload_button",function(b){b.preventDefault();
5
- var c,d=a(this).attr("id").replace(/-button$/,"");c||(b=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})],c=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:b}),c.on("select",function(){var b=c.state().get("selection").first().toJSON();a("#"+d).val(b.url);a(".plugin-option .upload_img_url").trigger("change")}));c.open()}));a(".plugin-option .add_media").on("click",
6
- function(){});a("[data-field]").each(function(){var b=a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");a(d).on("change",function(){var b=d,g=e.toString(),h=!0;if("string"==typeof b){":radio"==b.substr(0,6)&&(b+=":checked");for(var g=g.split(","),k=0;k<g.length;k++)if(a(b).val()!=g[k])h=!1;else{h=!0;break}}h?a(c+"-container").closest("tr").show():a(c+"-container").closest("tr").hide()}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),c=a(this).find(":hidden");
7
- b.sortable({connectWith:b,update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".yith-video-link").click(function(b){b.preventDefault();b=a(this).data("video-id");a("."+b).dialog({dialogClass:"wp-dialog yit-dialog yit-video-dialog",modal:!0,closeOnEscape:!0,width:"auto",
8
- resizable:!1,draggable:!1,create:function(b,d){a(this).css("maxWidth","853px")},open:function(b,d){a(".ui-widget-overlay").bind("click",function(){a(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}});a(".ui-dialog :button").blur()})});a(document).ready(function(){a(".codemirror").each(function(b,c){var d=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",d)})});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=
9
- a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename"),e;e="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n";e+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n";e+="ga('create', '"+c+"', '"+d+"');\n";e+="ga('send', 'pageview');\n";
10
- b.replaceRange(e,b.getCursor("start"),b.getCursor("end"))})})})(jQuery);
1
+ !function(e){function t(t,i,n){var a=!0;if("string"==typeof i){":radio"==i.substr(0,6)&&(i+=":checked");for(var n=n.split(","),o=0;o<n.length;o++){if(e(i).val()==n[o]){a=!0;break}a=!1}}a?e(t+"-container").closest("tr").show():e(t+"-container").closest("tr").hide()}var i=function(){var t="";e(this).attr("multiple")?(e(this).children("option:selected").each(function(i,n){0!=i&&(t+=", "),t+=e(n).text()}),""==t&&e(this).children().children("option:selected").each(function(i,n){0!=i&&(t+=", "),t+=e(n).text()})):(t=e(this).children("option:selected").text(),""==t&&(t=e(this).children().children("option:selected").text())),e(this).parent().find("span").length<=0&&e(this).before("<span></span>"),e(this).parent().children("span").replaceWith("<span>"+t+"</span>")};if(e(".plugin-option .select_wrapper select").not(".chosen").each(i).change(i),e(".plugin-option .select_wrapper").click(function(t){t.stopPropagation(),e(this).find("select[multiple]").not(".chosen").toggle()}),e(".plugin-option .select_wrapper select[multiple]").not(".chosen").click(function(e){e.stopPropagation()}),e(window).click(function(){e(".plugin-option .select_wrapper select[multiple]").not(".chosen").hide()}),e(".plugin-option .chosen .select_wrapper select").chosen(),e(".plugin-option .on_off_container span").on("click",function(){var t=e(this).prev("input"),i=t.prop("checked");i?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e(".plugin-option .slider_container .ui-slider-horizontal").each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),o=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,slide:function(t,i){e(this).find("input").val(i.value),e(this).siblings(".feedback").find("strong").text(i.value+o)}})}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media){{var n=!0;wp.media.editor.send.attachment}e(".plugin-option .upload_img_url").change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),n=e(this).parents().siblings(".upload_img_preview");n.html(i.test(t)?'<img src="'+t+'" style="max-width:600px; max-height:300px;" />':"")}).trigger("change"),e(document).on("click",".plugin-option .upload_button",function(t){t.preventDefault();var i,n=e(this),a=n.attr("id").replace(/-button$/,"");if(i)return void i.open();var o=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:o}),i.on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),e(".plugin-option .upload_img_url").trigger("change")}),i.open()})}e(".plugin-option .add_media").on("click",function(){n=!1}),e("[data-field]").each(function(){var i=e(this),n="#"+i.data("field"),a="#"+i.data("dep"),o=i.data("value");e(a).on("change",function(){t(n,a,o.toString())}).change()}),e(".rm_connectedlist").each(function(){{var t=e(this).find("ul"),i=e(this).find(":hidden");t.sortable({connectWith:t,update:function(){var n={};t.each(function(){var t={};e(this).children().each(function(){t[e(this).data("option")]=e(this).text()}),n[e(this).data("list")]=t}),i.val(JSON.stringify(n).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}}),e(document).ready(function(){e(".yith-video-link").click(function(t){t.preventDefault();var i=e(this).data("video-id");e("."+i).dialog({dialogClass:"wp-dialog yit-dialog yit-video-dialog",modal:!0,closeOnEscape:!0,width:"auto",resizable:!1,draggable:!1,create:function(){e(this).css("maxWidth","853px")},open:function(){e(".ui-widget-overlay").bind("click",function(){e(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}}),e(".ui-dialog :button").blur()})}),e(document).ready(function(){e(".codemirror").each(function(t,i){var n=CodeMirror.fromTextArea(i,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});e(i).data("codemirrorInstance",n)})}),e(document).ready(function(){e(".google-analytic-generate").click(function(){var t=e("#"+e(this).data("textarea")).data("codemirrorInstance"),i=e("#"+e(this).data("input")).val(),n=e(this).data("basename"),a="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";a+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",a+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",a+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",a+="ga('create', '"+i+"', '"+n+"');\n",a+="ga('send', 'pageview');\n",t.replaceRange(a,t.getCursor("start"),t.getCursor("end"))})})}(jQuery);
 
 
 
 
 
 
 
 
 
plugin-fw/init.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Framework Name: YIT Plugin Framework
4
+ * Version: 2.1
5
+ * Author: Yithemes
6
+ * Text Domain: yith-plugin-fw
7
+ * Domain Path: /languages/
8
+ *
9
+ * @author Your Inspiration Themes
10
+ * @package YITH WooCommerce Ajax Navigation
11
+ * @version 2.0
12
+ */
13
+ /**
14
+ * This file belongs to the YIT Plugin Framework.
15
+ *
16
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
17
+ * that is bundled with this package in the file LICENSE.txt.
18
+ * It is also available through the world-wide-web at this URL:
19
+ * http://www.gnu.org/licenses/gpl-3.0.txt
20
+ */
21
+
22
+
23
+ if ( ! defined( 'ABSPATH' ) ) {
24
+ exit;
25
+ } // Exit if accessed directly
26
+
27
+ if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) ) {
28
+ /**
29
+ * YITH WooCommerce Ajax Navigation
30
+ *
31
+ * @since 1.0.0
32
+ */
33
+ function yit_maybe_plugin_fw_loader( $plugin_path ) {
34
+ global $plugin_fw_data;
35
+
36
+ $default_headers = array(
37
+ 'Name' => 'Framework Name',
38
+ 'Version' => 'Version',
39
+ 'Author' => 'Author',
40
+ 'TextDomain' => 'Text Domain',
41
+ 'DomainPath' => 'Domain Path',
42
+ );
43
+
44
+ $framework_data = get_file_data( trailingslashit( $plugin_path ) .'plugin-fw/init.php', $default_headers );
45
+ $plugin_fw_main_file = trailingslashit( $plugin_path ) . 'plugin-fw/yit-plugin.php';
46
+
47
+ if( ! empty( $plugin_fw_data ) ){
48
+ foreach( $plugin_fw_data as $version => $path ){
49
+ if( version_compare( $version, $framework_data['Version'], '<' ) ){
50
+ $plugin_fw_data = array( $framework_data['Version'] => $plugin_fw_main_file );
51
+ }
52
+ }
53
+ }
54
+
55
+ else {
56
+ $plugin_fw_data = array( $framework_data['Version'] => $plugin_fw_main_file );
57
+ }
58
+ }
59
+ }
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
@@ -1049,7 +1049,7 @@ class YIT_CPT_Unlimited {
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
  'label' => __( 'Type', 'yith-plugin-fw' ),
1052
- 'desc' => __( 'Layout for this '.strtolower( $this->_labels['singular'] ) , 'yith-plugin-fw' ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
@@ -1637,7 +1637,7 @@ class YIT_CPT_Unlimited {
1637
  style: 'float: none;'
1638
  });
1639
 
1640
- button.appendTo('.wrap h2').after(spinner);
1641
 
1642
  })(jQuery);
1643
  </script>
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
  'label' => __( 'Type', 'yith-plugin-fw' ),
1052
+ 'desc' => sprintf( __( 'Layout for this %s' , 'yith-plugin-fw' ), strtolower( $this->_labels['singular'] ) ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
1637
  style: 'float: none;'
1638
  });
1639
 
1640
+ button.appendTo('.wrap h2, .wrap h1').after(spinner);
1641
 
1642
  })(jQuery);
1643
  </script>
plugin-fw/lib/yit-metabox.php CHANGED
@@ -9,11 +9,11 @@
9
  */
10
 
11
 
12
- if ( ! defined( 'ABSPATH' ) ) {
13
  exit;
14
  } // Exit if accessed directly
15
 
16
- if ( ! class_exists( 'YIT_Metabox' ) ) {
17
  /**
18
  * YIT Metabox
19
  *
@@ -48,8 +48,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
48
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
49
  *
50
  */
51
-
52
- class YIT_Metabox {
53
 
54
  /**
55
  * @var string the id of metabox
@@ -91,9 +91,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
91
  * @since 1.0
92
  * @author Antonino Scarfi' <antonino.scarfi@yithemes.com>
93
  */
94
- public static function instance( $id ) {
95
- if ( ! isset( self::$_instance[$id] ) ) {
96
- self::$_instance[$id] = new self( $id );
 
97
  }
98
  return self::$_instance[$id];
99
  }
@@ -107,7 +108,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
107
  * @since 1.0
108
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
109
  */
110
- function __construct( $id = '' ) {
 
111
  $this->id = $id;
112
 
113
  }
@@ -124,15 +126,16 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
124
  * @since 1.0
125
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
126
  */
127
- public function init( $options = array() ) {
 
128
 
129
- $this->set_options( $options );
130
  $this->set_tabs();
131
 
132
 
133
- add_action( 'add_meta_boxes', array( $this, 'register_metabox' ) );
134
- add_action( 'save_post', array( $this, 'save_postdata' ) );
135
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ), 15 );
136
 
137
  }
138
 
@@ -145,20 +148,19 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
145
  * @since 1.0
146
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
147
  */
148
- public function enqueue() {
 
149
 
150
  wp_enqueue_media();
151
- wp_enqueue_style( 'wp-color-picker' );
152
- wp_enqueue_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css' );
153
- wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
154
- wp_enqueue_script( 'jquery-ui-datepicker' );
155
- wp_enqueue_script( 'yit-spinner', YIT_CORE_PLUGIN_URL . '/assets/js/panel.spinner.js', array( 'jquery' ), '0.0.1', true );
156
- wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
157
- wp_enqueue_script( 'ajax-chosen', yit_load_js_file( YIT_CORE_PLUGIN_URL . '/assets/js/chosen/ajax-chosen.jquery.js' ), array( 'jquery' ), '1.1.0', true );
158
- wp_enqueue_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox.js', array( 'jquery', 'wp-color-picker' ), '1.0.0', true );
159
- wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
160
-
161
-
162
  }
163
 
164
  /**
@@ -172,7 +174,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
172
  * @since 1.0
173
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
174
  */
175
- public function set_options( $options = array() ) {
 
176
  $this->options = $options;
177
 
178
  }
@@ -188,13 +191,14 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
188
  * @since 1.0
189
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
190
  */
191
- public function set_tabs() {
192
- if ( ! isset( $this->options['tabs'] ) ) {
 
193
  return;
194
  }
195
- $this->tabs = $this->options['tabs'] ;
196
- if( isset($this->tabs['settings']['fields']) ){
197
- $this->tabs['settings']['fields'] = array_filter( $this->tabs['settings']['fields'] );
198
  }
199
  }
200
 
@@ -206,32 +210,31 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
206
  *
207
  * @internal param array $tabs
208
  *
209
- * @param array $tab the new tab to add to the metabox
210
- * @param string $where tell where insert the tab if after or before a $refer
211
- * @param null $refer an existent tab inside metabox
212
  *
213
  * @return void
214
  * @since 1.0
215
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
216
  */
217
- public function add_tab( $tab, $where = 'after', $refer = null ) {
218
- if ( ! is_null( $refer ) ) {
219
- $ref_pos = array_search( $refer, array_keys( $this->tabs ) );
220
- if ( $ref_pos !== false ) {
221
- if ( $where == 'after' ) {
222
- $this->tabs = array_slice( $this->tabs, 0, $ref_pos + 1, true ) +
 
223
  $tab +
224
- array_slice( $this->tabs, $ref_pos + 1, count( $this->tabs ) - 1, true );
225
- }
226
- else {
227
- $this->tabs = array_slice( $this->tabs, 0, $ref_pos, true ) +
228
  $tab +
229
- array_slice( $this->tabs, $ref_pos, count( $this->tabs ), true );
230
  }
231
  }
232
- }
233
- else {
234
- $this->tabs = array_merge( $tab, $this->tabs );
235
  }
236
 
237
  }
@@ -249,9 +252,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
249
  * @since 1.0
250
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
251
  */
252
- public function remove_tab( $id_tab ) {
253
- if ( isset( $this->tabs[$id_tab] ) ) {
254
- unset ( $this->tabs[$id_tab] );
 
255
  }
256
  }
257
 
@@ -264,40 +268,40 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
264
  * @internal param array $tabs
265
  *
266
  * @param string $tab_id the id of the tabs where add the field
267
- * @param array $args the field to add
268
- * @param string $where tell where insert the field if after or before a $refer
269
- * @param null $refer an existent field inside tab
270
  *
271
  * @return void
272
  * @since 1.0
273
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
274
  */
275
- public function add_field( $tab_id, $args, $where = 'after', $refer = null ) {
276
- if ( isset( $this->tabs[$tab_id] ) ) {
 
277
 
278
  $cf = $this->tabs[$tab_id]['fields'];
279
- if ( ! is_null( $refer ) ) {
280
- $ref_pos = array_search( $refer, array_keys( $cf ) );
281
- if ( $ref_pos !== false ) {
282
- if ( $where == 'after' ) {
283
- $this->tabs[$tab_id]['fields'] = array_slice( $cf, 0, $ref_pos + 1, true ) +
284
  $args +
285
- array_slice( $cf, $ref_pos, count( $cf ) - 1, true );
286
 
287
- } elseif ( $where == 'before' ) {
288
- $this->tabs[$tab_id]['fields'] = array_slice( $cf, 0, $ref_pos, true ) +
289
  $args +
290
- array_slice( $cf, $ref_pos, count( $cf ), true );
291
 
292
  }
293
  }
294
- }
295
- else {
296
- if ( $where == 'first' ) {
297
  $this->tabs[$tab_id]['fields'] = $args + $cf;
298
 
299
  } else {
300
- $this->tabs[$tab_id]['fields'] = array_merge( $this->tabs[$tab_id]['fields'], $args );
301
  }
302
  }
303
 
@@ -317,10 +321,11 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
317
  * @since 1.0
318
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
319
  */
320
- public function remove_field( $id_field ) {
321
- foreach ( $this->tabs as $tab_name => $tab ) {
322
- if ( isset( $tab['fields'][$id_field] ) ) {
323
- unset ( $this->tabs[$tab_name]['fields'][$id_field] );
 
324
  }
325
  }
326
  }
@@ -336,12 +341,13 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
336
  * @since 1.0
337
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
338
  */
339
- public function reorder_tabs() {
340
- foreach ( $this->tabs as $tab_name => $tab ) {
341
- foreach ( $tab['fields'] as $id_field => $field ) {
342
- $this->tabs[$tab_name]['fields'][$id_field]['private'] = ( isset( $field['private'] ) ) ? $field['private'] : true;
343
- $this->tabs[$tab_name]['fields'][$id_field]['id'] = $this->get_option_metabox_id( $id_field, $this->tabs[$tab_name]['fields'][$id_field]['private'] );
344
- $this->tabs[$tab_name]['fields'][$id_field]['name'] = $this->get_option_metabox_name( $this->tabs[$tab_name]['fields'][$id_field]['id'] );
 
345
  }
346
  }
347
 
@@ -360,11 +366,11 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
360
  * @since 1.0
361
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
362
  */
363
- public function get_option_metabox_id( $id_field, $private = true ) {
364
- if ( $private ) {
 
365
  return '_' . $id_field;
366
- }
367
- else {
368
  return $id_field;
369
  }
370
  }
@@ -381,16 +387,17 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
381
  * @since 1.0
382
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
383
  */
384
- public function get_option_metabox_name( $id_field, $private = true ) {
385
- $db_name = apply_filters( 'yit_metaboxes_option_main_name', 'yit_metaboxes' );
386
- $return = $db_name . '[';
 
387
 
388
- if ( ! strpos( $id_field, '[' ) ) {
389
  return $return . $id_field . ']';
390
  }
391
- $return .= substr( $id_field, 0, strpos( $id_field, '[' ) );
392
  $return .= ']';
393
- $return .= substr( $id_field, strpos( $id_field, '[' ) );
394
 
395
  return $return;
396
  }
@@ -405,9 +412,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
405
  * @since 1.0
406
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
407
  */
408
- public function register_metabox( $post_type ) {
409
- if( in_array( $post_type, (array) $this->options['pages'] ) ){
410
- add_meta_box( $this->id, $this->options['label'], array( $this, 'show' ), $post_type, $this->options['context'], $this->options['priority'] );
 
411
  }
412
  }
413
 
@@ -421,10 +429,11 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
421
  * @since 1.0
422
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
423
  */
424
- public function show() {
 
425
  $this->reorder_tabs();
426
 
427
- yit_plugin_get_template( YIT_CORE_PLUGIN_PATH, 'metaboxes/tab.php', array( 'tabs' => $this->tabs ) );
428
  }
429
 
430
  /**
@@ -438,61 +447,62 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
438
  * @since 1.0
439
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
440
  */
441
- public function save_postdata( $post_id ) {
442
-
443
 
444
 
445
- if ( ! isset( $_POST['yit_metaboxes_nonce'] ) || ! wp_verify_nonce( $_POST['yit_metaboxes_nonce'], 'metaboxes-fields-nonce' ) ) {
446
  return $post_id;
447
  }
448
 
449
 
450
- if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
451
  return $post_id;
452
  }
453
 
454
- if ( isset( $_POST['post_type'] ) ) {
455
  $post_type = $_POST['post_type'];
456
- }
457
- else {
458
  return $post_id;
459
  }
460
 
461
- if ( 'page' == $post_type ) {
462
- if ( ! current_user_can( 'edit_page', $post_id ) ) {
463
  return $post_id;
464
  }
465
- }
466
- else {
467
- if ( ! current_user_can( 'edit_post', $post_id ) ) {
468
  return $post_id;
469
  }
470
  }
471
 
 
 
 
 
472
  $this->reorder_tabs();
473
 
474
 
475
- foreach ( $this->tabs as $tab ) {
476
 
477
- foreach ( $tab['fields'] as $field ) {
478
 
479
- if ( in_array( $field['type'], array( 'title' ) ) ) {
480
  continue;
481
  }
482
 
483
- if ( isset( $_POST['yit_metaboxes'][$field['id']] ) ) {
484
 
485
- add_post_meta( $post_id, $field['id'], $_POST['yit_metaboxes'][$field['id']], true ) || update_post_meta( $post_id, $field['id'], $_POST['yit_metaboxes'][$field['id']] );
486
- }
487
- elseif ( in_array( $field['type'], array( 'onoff', 'checkbox' ) ) ) {
488
- add_post_meta( $post_id, $field['id'], '0', true ) || update_post_meta( $post_id, $field['id'], '0' );
489
- }
490
- else {
491
- delete_post_meta( $post_id, $field['id'] );
492
  }
493
  }
494
  }
495
 
 
496
  }
497
 
498
  /**
@@ -506,15 +516,16 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
506
  * @since 2.0.0
507
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
508
  */
509
- public function remove_fields( $id_fields ) {
510
- foreach ( $id_fields as $k => $field ) {
511
- $this->remove_field( $field );
 
512
  }
513
  }
514
  }
515
  }
516
 
517
- if ( ! function_exists( 'YIT_Metabox' ) ) {
518
 
519
  /**
520
  * Main instance of plugin
@@ -527,8 +538,9 @@ if ( ! function_exists( 'YIT_Metabox' ) ) {
527
  */
528
 
529
 
530
- function YIT_Metabox( $id ) {
531
- return YIT_Metabox::instance( $id );
 
532
  }
533
  }
534
 
9
  */
10
 
11
 
12
+ if (!defined('ABSPATH')) {
13
  exit;
14
  } // Exit if accessed directly
15
 
16
+ if (!class_exists('YIT_Metabox')) {
17
  /**
18
  * YIT Metabox
19
  *
48
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
49
  *
50
  */
51
+ class YIT_Metabox
52
+ {
53
 
54
  /**
55
  * @var string the id of metabox
91
  * @since 1.0
92
  * @author Antonino Scarfi' <antonino.scarfi@yithemes.com>
93
  */
94
+ public static function instance($id)
95
+ {
96
+ if (!isset(self::$_instance[$id])) {
97
+ self::$_instance[$id] = new self($id);
98
  }
99
  return self::$_instance[$id];
100
  }
108
  * @since 1.0
109
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
110
  */
111
+ function __construct($id = '')
112
+ {
113
  $this->id = $id;
114
 
115
  }
126
  * @since 1.0
127
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
128
  */
129
+ public function init($options = array())
130
+ {
131
 
132
+ $this->set_options($options);
133
  $this->set_tabs();
134
 
135
 
136
+ add_action('add_meta_boxes', array($this, 'register_metabox'));
137
+ add_action('save_post', array($this, 'save_postdata'));
138
+ add_action('admin_enqueue_scripts', array($this, 'enqueue'), 15);
139
 
140
  }
141
 
148
  * @since 1.0
149
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
150
  */
151
+ public function enqueue()
152
+ {
153
 
154
  wp_enqueue_media();
155
+ wp_enqueue_style('wp-color-picker');
156
+ wp_enqueue_style('yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css');
157
+ wp_enqueue_style('jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css');
158
+ wp_enqueue_script('jquery-ui-datepicker');
159
+ wp_enqueue_script('yit-spinner', YIT_CORE_PLUGIN_URL . '/assets/js/panel.spinner.js', array('jquery'), '0.0.1', true);
160
+ wp_enqueue_script('jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array('jquery'), '1.1.0', true);
161
+ wp_enqueue_script('ajax-chosen', yit_load_js_file(YIT_CORE_PLUGIN_URL . '/assets/js/chosen/ajax-chosen.jquery.js'), array('jquery'), '1.1.0', true);
162
+ wp_enqueue_script('yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox.js', array('jquery', 'wp-color-picker'), '1.0.0', true);
163
+ wp_enqueue_style('jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all');
 
 
164
  }
165
 
166
  /**
174
  * @since 1.0
175
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
176
  */
177
+ public function set_options($options = array())
178
+ {
179
  $this->options = $options;
180
 
181
  }
191
  * @since 1.0
192
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
193
  */
194
+ public function set_tabs()
195
+ {
196
+ if (!isset($this->options['tabs'])) {
197
  return;
198
  }
199
+ $this->tabs = $this->options['tabs'];
200
+ if (isset($this->tabs['settings']['fields'])) {
201
+ $this->tabs['settings']['fields'] = array_filter($this->tabs['settings']['fields']);
202
  }
203
  }
204
 
210
  *
211
  * @internal param array $tabs
212
  *
213
+ * @param array $tab the new tab to add to the metabox
214
+ * @param string $where tell where insert the tab if after or before a $refer
215
+ * @param null $refer an existent tab inside metabox
216
  *
217
  * @return void
218
  * @since 1.0
219
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
220
  */
221
+ public function add_tab($tab, $where = 'after', $refer = null)
222
+ {
223
+ if (!is_null($refer)) {
224
+ $ref_pos = array_search($refer, array_keys($this->tabs));
225
+ if ($ref_pos !== false) {
226
+ if ($where == 'after') {
227
+ $this->tabs = array_slice($this->tabs, 0, $ref_pos + 1, true) +
228
  $tab +
229
+ array_slice($this->tabs, $ref_pos + 1, count($this->tabs) - 1, true);
230
+ } else {
231
+ $this->tabs = array_slice($this->tabs, 0, $ref_pos, true) +
 
232
  $tab +
233
+ array_slice($this->tabs, $ref_pos, count($this->tabs), true);
234
  }
235
  }
236
+ } else {
237
+ $this->tabs = array_merge($tab, $this->tabs);
 
238
  }
239
 
240
  }
252
  * @since 1.0
253
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
254
  */
255
+ public function remove_tab($id_tab)
256
+ {
257
+ if (isset($this->tabs[$id_tab])) {
258
+ unset ($this->tabs[$id_tab]);
259
  }
260
  }
261
 
268
  * @internal param array $tabs
269
  *
270
  * @param string $tab_id the id of the tabs where add the field
271
+ * @param array $args the field to add
272
+ * @param string $where tell where insert the field if after or before a $refer
273
+ * @param null $refer an existent field inside tab
274
  *
275
  * @return void
276
  * @since 1.0
277
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
278
  */
279
+ public function add_field($tab_id, $args, $where = 'after', $refer = null)
280
+ {
281
+ if (isset($this->tabs[$tab_id])) {
282
 
283
  $cf = $this->tabs[$tab_id]['fields'];
284
+ if (!is_null($refer)) {
285
+ $ref_pos = array_search($refer, array_keys($cf));
286
+ if ($ref_pos !== false) {
287
+ if ($where == 'after') {
288
+ $this->tabs[$tab_id]['fields'] = array_slice($cf, 0, $ref_pos + 1, true) +
289
  $args +
290
+ array_slice($cf, $ref_pos, count($cf) - 1, true);
291
 
292
+ } elseif ($where == 'before') {
293
+ $this->tabs[$tab_id]['fields'] = array_slice($cf, 0, $ref_pos, true) +
294
  $args +
295
+ array_slice($cf, $ref_pos, count($cf), true);
296
 
297
  }
298
  }
299
+ } else {
300
+ if ($where == 'first') {
 
301
  $this->tabs[$tab_id]['fields'] = $args + $cf;
302
 
303
  } else {
304
+ $this->tabs[$tab_id]['fields'] = array_merge($this->tabs[$tab_id]['fields'], $args);
305
  }
306
  }
307
 
321
  * @since 1.0
322
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
323
  */
324
+ public function remove_field($id_field)
325
+ {
326
+ foreach ($this->tabs as $tab_name => $tab) {
327
+ if (isset($tab['fields'][$id_field])) {
328
+ unset ($this->tabs[$tab_name]['fields'][$id_field]);
329
  }
330
  }
331
  }
341
  * @since 1.0
342
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
343
  */
344
+ public function reorder_tabs()
345
+ {
346
+ foreach ($this->tabs as $tab_name => $tab) {
347
+ foreach ($tab['fields'] as $id_field => $field) {
348
+ $this->tabs[$tab_name]['fields'][$id_field]['private'] = (isset($field['private'])) ? $field['private'] : true;
349
+ $this->tabs[$tab_name]['fields'][$id_field]['id'] = $this->get_option_metabox_id($id_field, $this->tabs[$tab_name]['fields'][$id_field]['private']);
350
+ $this->tabs[$tab_name]['fields'][$id_field]['name'] = $this->get_option_metabox_name($this->tabs[$tab_name]['fields'][$id_field]['id']);
351
  }
352
  }
353
 
366
  * @since 1.0
367
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
368
  */
369
+ public function get_option_metabox_id($id_field, $private = true)
370
+ {
371
+ if ($private) {
372
  return '_' . $id_field;
373
+ } else {
 
374
  return $id_field;
375
  }
376
  }
387
  * @since 1.0
388
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
389
  */
390
+ public function get_option_metabox_name($id_field, $private = true)
391
+ {
392
+ $db_name = apply_filters('yit_metaboxes_option_main_name', 'yit_metaboxes');
393
+ $return = $db_name . '[';
394
 
395
+ if (!strpos($id_field, '[')) {
396
  return $return . $id_field . ']';
397
  }
398
+ $return .= substr($id_field, 0, strpos($id_field, '['));
399
  $return .= ']';
400
+ $return .= substr($id_field, strpos($id_field, '['));
401
 
402
  return $return;
403
  }
412
  * @since 1.0
413
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
414
  */
415
+ public function register_metabox($post_type)
416
+ {
417
+ if (in_array($post_type, (array)$this->options['pages'])) {
418
+ add_meta_box($this->id, $this->options['label'], array($this, 'show'), $post_type, $this->options['context'], $this->options['priority']);
419
  }
420
  }
421
 
429
  * @since 1.0
430
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
431
  */
432
+ public function show()
433
+ {
434
  $this->reorder_tabs();
435
 
436
+ yit_plugin_get_template(YIT_CORE_PLUGIN_PATH, 'metaboxes/tab.php', array('tabs' => $this->tabs));
437
  }
438
 
439
  /**
447
  * @since 1.0
448
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
449
  */
450
+ public function save_postdata($post_id)
451
+ {
452
 
453
 
454
+ if (!isset($_POST['yit_metaboxes_nonce']) || !wp_verify_nonce($_POST['yit_metaboxes_nonce'], 'metaboxes-fields-nonce')) {
455
  return $post_id;
456
  }
457
 
458
 
459
+ if ((defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) || (defined('DOING_AJAX') && DOING_AJAX)) {
460
  return $post_id;
461
  }
462
 
463
+ if (isset($_POST['post_type'])) {
464
  $post_type = $_POST['post_type'];
465
+ } else {
 
466
  return $post_id;
467
  }
468
 
469
+ if ('page' == $post_type) {
470
+ if (!current_user_can('edit_page', $post_id)) {
471
  return $post_id;
472
  }
473
+ } else {
474
+ if (!current_user_can('edit_post', $post_id)) {
 
475
  return $post_id;
476
  }
477
  }
478
 
479
+ if (!in_array($post_type, (array)$this->options['pages'])) {
480
+ return $post_id;
481
+ }
482
+
483
  $this->reorder_tabs();
484
 
485
 
486
+ foreach ($this->tabs as $tab) {
487
 
488
+ foreach ($tab['fields'] as $field) {
489
 
490
+ if (in_array($field['type'], array('title'))) {
491
  continue;
492
  }
493
 
494
+ if (isset($_POST['yit_metaboxes'][$field['id']])) {
495
 
496
+ add_post_meta($post_id, $field['id'], $_POST['yit_metaboxes'][$field['id']], true) || update_post_meta($post_id, $field['id'], $_POST['yit_metaboxes'][$field['id']]);
497
+ } elseif (in_array($field['type'], array('onoff', 'checkbox'))) {
498
+ update_post_meta($post_id, $field['id'], '0');
499
+ } else {
500
+ delete_post_meta($post_id, $field['id']);
 
 
501
  }
502
  }
503
  }
504
 
505
+
506
  }
507
 
508
  /**
516
  * @since 2.0.0
517
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
518
  */
519
+ public function remove_fields($id_fields)
520
+ {
521
+ foreach ($id_fields as $k => $field) {
522
+ $this->remove_field($field);
523
  }
524
  }
525
  }
526
  }
527
 
528
+ if (!function_exists('YIT_Metabox')) {
529
 
530
  /**
531
  * Main instance of plugin
538
  */
539
 
540
 
541
+ function YIT_Metabox($id)
542
+ {
543
+ return YIT_Metabox::instance($id);
544
  }
545
  }
546
 
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -278,11 +278,26 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
278
  }
279
  }
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  woocommerce_update_options( $yit_options[ $current_tab ] );
282
 
283
  do_action( 'yit_panel_wc_after_update' );
284
 
285
- } elseif( isset( $_REQUEST['yit-action'] ) && $_REQUEST['yit-action'] == 'wc-options-reset' ){
 
286
 
287
  $yit_options = $this->get_main_array_options();
288
  $current_tab = $this->get_current_tab();
@@ -313,7 +328,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
313
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce->version );
314
  wp_enqueue_style ( 'wp-jquery-ui-dialog' );
315
 
316
-
317
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
318
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
319
  wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', array( 'jquery', 'jquery-ui-datepicker','jquery-ui-dialog', 'jquery-ui-sortable', 'iris', 'chosen' ), $woocommerce->version, true );
@@ -364,8 +378,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
364
  * @return array Filtered body classes
365
  */
366
  public function admin_body_class( $admin_body_classes ){
367
- $admin_body_classes .= ' woocommerce ';
368
- return $admin_body_classes;
369
  }
370
 
371
  /**
278
  }
279
  }
280
 
281
+ foreach($_POST as $name => $value) {
282
+
283
+ // Check if current POST var which name ends with a specific needle
284
+ $attachment_id_needle = "-yith-attachment-id";
285
+ $is_hidden_input = (($temp = strlen($name) - strlen($attachment_id_needle)) >= 0 && strpos($name, $attachment_id_needle, $temp) !== FALSE);
286
+ if ($is_hidden_input){
287
+ // Is an input element of type "hidden" coupled with an input element for selecting an element from the media gallery
288
+ $yit_options[ $current_tab ][$name] = array(
289
+ "type" => "text",
290
+ "id" => $name
291
+ );
292
+ }
293
+ }
294
+
295
  woocommerce_update_options( $yit_options[ $current_tab ] );
296
 
297
  do_action( 'yit_panel_wc_after_update' );
298
 
299
+ } elseif( isset( $_REQUEST['yit-action'] ) && $_REQUEST['yit-action'] == 'wc-options-reset'
300
+ && isset( $_POST['yith_wc_reset_options_nonce'] ) && wp_verify_nonce( $_POST['yith_wc_reset_options_nonce'], 'yith_wc_reset_options_'.$this->settings['page'] )){
301
 
302
  $yit_options = $this->get_main_array_options();
303
  $current_tab = $this->get_current_tab();
328
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce->version );
329
  wp_enqueue_style ( 'wp-jquery-ui-dialog' );
330
 
 
331
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
332
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
333
  wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', array( 'jquery', 'jquery-ui-datepicker','jquery-ui-dialog', 'jquery-ui-sortable', 'iris', 'chosen' ), $woocommerce->version, true );
378
  * @return array Filtered body classes
379
  */
380
  public function admin_body_class( $admin_body_classes ){
381
+ global $pagenow;
382
+ return 'admin.php' == $pagenow && substr_count( $admin_body_classes, 'woocommerce' ) == 0 ? $admin_body_classes .= ' woocommerce ' : $admin_body_classes;
383
  }
384
 
385
  /**
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -121,32 +121,27 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
121
  */
122
  public function admin_enqueue_scripts() {
123
 
124
- global $wp_scripts;
125
 
126
  //scripts
127
- wp_enqueue_media();
128
- wp_enqueue_script( 'jquery-ui' );
129
- wp_enqueue_script( 'jquery-ui-core' );
130
- wp_enqueue_script( 'jquery-ui-slider' );
131
- wp_enqueue_script( 'jquery-ui-dialog' );
132
- wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
133
- wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
134
- wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
135
- wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
136
- wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
137
-
138
-
139
- wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
140
 
141
  //styles
142
-
143
  $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
144
-
145
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
146
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
147
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
148
-
149
- wp_enqueue_style( 'jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
150
  }
151
 
152
  /**
@@ -708,8 +703,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
708
  }
709
 
710
  $custom_attributes = implode( ' ', $custom_attributes );
 
 
711
 
712
- $db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : '';
713
  if ( isset( $option['deps'] ) ) {
714
  $deps = $option['deps'];
715
  }
121
  */
122
  public function admin_enqueue_scripts() {
123
 
124
+ global $wp_scripts, $pagenow;
125
 
126
  //scripts
127
+ wp_enqueue_media();
128
+ wp_enqueue_script( 'jquery-ui' );
129
+ wp_enqueue_script( 'jquery-ui-core' );
130
+ wp_enqueue_script( 'jquery-ui-slider' );
131
+ wp_enqueue_script( 'jquery-ui-dialog' );
132
+ wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
133
+ wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
134
+ wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
135
+ wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
 
 
 
 
136
 
137
  //styles
 
138
  $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
139
+ wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
140
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
141
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
142
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
143
+ wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
144
+ wp_enqueue_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
145
  }
146
 
147
  /**
703
  }
704
 
705
  $custom_attributes = implode( ' ', $custom_attributes );
706
+ $std = isset( $option['std'] ) ? $option['std'] : '';
707
+ $db_value = ( isset( $db_options[$option['id']] ) ) ? $db_options[$option['id']] : $std;
708
 
 
709
  if ( isset( $option['deps'] ) ) {
710
  $deps = $option['deps'];
711
  }
plugin-fw/lib/yit-upgrade.php CHANGED
@@ -134,7 +134,8 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
134
  $update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
135
  $changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
136
  $details_url[ $init ] = '#TB_inline' . esc_url( add_query_arg( array( 'width' => 722, 'height' => 914, 'inlineId' => $changelog_id ) , '' ) );
137
- $changelogs[ $init ] = $this->in_theme_update_message( $this->_plugins[ $init ], $this->_plugins[ $init ]['info']['changelog'], $changelog_id, false );
 
138
  }
139
 
140
  $localize_script_args = array(
@@ -189,15 +190,34 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
189
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
190
  */
191
  protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  /**
194
  * It isn't YITH Premium plugins, please wordpress update it for me!
195
  */
196
- if( ! isset( $upgrader->skin->plugin ) ) {
197
  return $reply;
198
  }
199
 
200
- $plugin_info = YIT_Plugin_Licence()->get_product( $upgrader->skin->plugin );
201
 
202
  /**
203
  * False ? It isn't YITH Premium plugins, please wordpress update it for me!
@@ -261,7 +281,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
261
 
262
  //WARNING: The file is not automatically deleted, The script must unlink() the file.
263
  if ( ! $url ) {
264
- return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
265
  }
266
 
267
  $tmpfname = wp_tempnam( $url );
@@ -274,7 +294,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
274
  );
275
 
276
  if ( ! $tmpfname ) {
277
- return new WP_Error( 'http_no_file', __( 'Could not create Temporary file.' ) );
278
  }
279
 
280
  $response = wp_safe_remote_post( $url, $args );
@@ -506,7 +526,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
506
 
507
  check_admin_referer( 'upgrade-plugin-multisite_' . $plugin );
508
 
509
- $title = __( 'Update Plugin' );
510
  $parent_file = 'plugins.php';
511
  $submenu_file = 'plugins.php';
512
 
134
  $update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
135
  $changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
136
  $details_url[ $init ] = '#TB_inline' . esc_url( add_query_arg( array( 'width' => 722, 'height' => 914, 'inlineId' => $changelog_id ) , '' ) );
137
+ $plugin_changelog = isset( $this->_plugins[ $init ]['info']['changelog'] ) ? $this->_plugins[ $init ]['info']['changelog'] : '';
138
+ $changelogs[ $init ] = $this->in_theme_update_message( $this->_plugins[ $init ], $plugin_changelog, $changelog_id, false );
139
  }
140
 
141
  $localize_script_args = array(
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!
281
 
282
  //WARNING: The file is not automatically deleted, The script must unlink() the file.
283
  if ( ! $url ) {
284
+ return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.', 'yit' ) );
285
  }
286
 
287
  $tmpfname = wp_tempnam( $url );
294
  );
295
 
296
  if ( ! $tmpfname ) {
297
+ return new WP_Error( 'http_no_file', __( 'Could not create Temporary file.', 'yit' ) );
298
  }
299
 
300
  $response = wp_safe_remote_post( $url, $args );
526
 
527
  check_admin_referer( 'upgrade-plugin-multisite_' . $plugin );
528
 
529
+ $title = __( 'Update Plugin', 'yith-plugin-fw' );
530
  $parent_file = 'plugins.php';
531
  $submenu_file = 'plugins.php';
532
 
plugin-fw/lib/yit-video.php CHANGED
@@ -57,7 +57,7 @@ if ( ! class_exists( 'YIT_Video' ) ) {
57
  return;
58
  }
59
 
60
- if( ! $echo ) ob_start();
61
 
62
  $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
63
  $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
@@ -67,7 +67,11 @@ if ( ! class_exists( 'YIT_Video' ) ) {
67
  </div>
68
 
69
  <?php
70
- if( ! $echo ) return ob_get_clean();
 
 
 
 
71
  }
72
 
73
  /**
@@ -97,7 +101,7 @@ if ( ! class_exists( 'YIT_Video' ) ) {
97
  $id = self::video_id_by_url( $url );
98
  }
99
 
100
- if( ! $echo ) ob_start();
101
 
102
  $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
103
  $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
@@ -107,7 +111,11 @@ if ( ! class_exists( 'YIT_Video' ) ) {
107
  </div>
108
 
109
  <?php
110
- if( ! $echo ) return ob_get_clean();
 
 
 
 
111
  }
112
 
113
  /**
57
  return;
58
  }
59
 
60
+ ob_start();
61
 
62
  $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
63
  $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
67
  </div>
68
 
69
  <?php
70
+ $html = apply_filters( 'yit_video_youtube', ob_get_clean() );
71
+
72
+ if( $echo ) echo $html;
73
+
74
+ return $html;
75
  }
76
 
77
  /**
101
  $id = self::video_id_by_url( $url );
102
  }
103
 
104
+ ob_start();
105
 
106
  $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
107
  $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
111
  </div>
112
 
113
  <?php
114
+ $html = apply_filters( 'yit_video_vimeo', ob_get_clean() );
115
+
116
+ if( $echo ) echo $html;
117
+
118
+ return $html;
119
  }
120
 
121
  /**
plugin-fw/licence/lib/yit-licence.php CHANGED
@@ -48,7 +48,7 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
48
  * @var string The yithemes api uri
49
  * @since 1.0
50
  */
51
- protected $_api_uri = 'http://www.yithemes.com';
52
 
53
  /**
54
  * @var string The yithemes api uri query args
@@ -159,7 +159,7 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
159
  public function localize_script() {
160
  wp_localize_script( 'yit-licence', 'licence_message', array(
161
  'error' => sprintf( _x( '%s field cannot be empty', '%s = field name', 'yith-plugin-fw' ), '%field%' ), // sprintf must be used to avoid errors with '%field%' string in translation in .po file
162
- 'errors' => sprintf( __( '%s and %s fields cannot be empty', 'yith-plugin-fw' ), '%field_1%', '%field_2' ),
163
  'server' => __( 'Unable to contact the remote server, please try again later. Thanks!', 'yith-plugin-fw' )
164
  )
165
  );
48
  * @var string The yithemes api uri
49
  * @since 1.0
50
  */
51
+ protected $_api_uri = 'http://yithemes.com';
52
 
53
  /**
54
  * @var string The yithemes api uri query args
159
  public function localize_script() {
160
  wp_localize_script( 'yit-licence', 'licence_message', array(
161
  'error' => sprintf( _x( '%s field cannot be empty', '%s = field name', 'yith-plugin-fw' ), '%field%' ), // sprintf must be used to avoid errors with '%field%' string in translation in .po file
162
+ 'errors' => sprintf( __( '%s and %s fields cannot be empty', 'yith-plugin-fw' ), '%field_1%', '%field_2%' ),
163
  'server' => __( 'Unable to contact the remote server, please try again later. Thanks!', 'yith-plugin-fw' )
164
  )
165
  );
plugin-fw/licence/lib/yit-plugin-licence.php CHANGED
@@ -75,9 +75,7 @@ if ( ! class_exists( 'YIT_Plugin_Licence' ) ) {
75
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
76
  add_action( 'admin_enqueue_scripts', array( $this, 'localize_script' ), 15 );
77
  add_action( "wp_ajax_activate-{$this->_product_type}", array( $this, 'activate' ) );
78
- add_action( "wp_ajax_nopriv_activate-{$this->_product_type}", array( $this, 'activate' ) );
79
  add_action( "wp_ajax_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
80
- add_action( "wp_ajax_nopriv_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
81
  add_action( 'yit_licence_after_check', array( $this, 'licence_after_check' ) );
82
  }
83
 
75
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
76
  add_action( 'admin_enqueue_scripts', array( $this, 'localize_script' ), 15 );
77
  add_action( "wp_ajax_activate-{$this->_product_type}", array( $this, 'activate' ) );
 
78
  add_action( "wp_ajax_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
 
79
  add_action( 'yit_licence_after_check', array( $this, 'licence_after_check' ) );
80
  }
81
 
plugin-fw/licence/lib/yit-theme-licence.php CHANGED
@@ -71,9 +71,7 @@ if ( ! class_exists( 'YIT_Theme_Licence' ) ) {
71
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
72
  add_action( 'admin_enqueue_scripts', array( $this, 'localize_script' ), 15 );
73
  add_action( "wp_ajax_activate-{$this->_product_type}", array( $this, 'activate' ) );
74
- add_action( "wp_ajax_nopriv_activate-{$this->_product_type}", array( $this, 'activate' ) );
75
  add_action( "wp_ajax_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
76
- add_action( "wp_ajax_nopriv_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
77
  }
78
 
79
  /**
71
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
72
  add_action( 'admin_enqueue_scripts', array( $this, 'localize_script' ), 15 );
73
  add_action( "wp_ajax_activate-{$this->_product_type}", array( $this, 'activate' ) );
 
74
  add_action( "wp_ajax_update_licence_information-{$this->_product_type}", array( $this, 'update_licence_information' ) );
 
75
  }
76
 
77
  /**
plugin-fw/templates/metaboxes/types/categories.php CHANGED
@@ -43,7 +43,7 @@ $categories = yit_get_model('cpt_unlimited')->get_setting( 'categories', $post->
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
46
- <input type="button" value="<?php esc_attr_e( 'Add' ); ?>" class="add:categorychecklist:category-add button category-add-submit" id="<?php echo $id ?>-category-add-submit" />
47
  </p>
48
  </div>
49
  </div>
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
46
+ <input type="button" value="<?php esc_attr_e( 'Add', 'yit' ); ?>" class="add:categorychecklist:category-add button category-add-submit" id="<?php echo $id ?>-category-add-submit" />
47
  </p>
48
  </div>
49
  </div>
plugin-fw/templates/panel/woocommerce/woocommerce-form.php CHANGED
@@ -7,6 +7,7 @@
7
  <form id="plugin-fw-wc-reset" method="post">
8
  <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
9
  <input type="hidden" name="yit-action" value="wc-options-reset" />
 
10
  <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
11
  </form>
12
  </div>
7
  <form id="plugin-fw-wc-reset" method="post">
8
  <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
9
  <input type="hidden" name="yit-action" value="wc-options-reset" />
10
+ <?php wp_nonce_field( 'yith_wc_reset_options_'.$this->settings['page'], 'yith_wc_reset_options_nonce' ); ?>
11
  <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
12
  </form>
13
  </div>
plugin-fw/templates/panel/woocommerce/woocommerce-upload.php CHANGED
@@ -16,10 +16,10 @@
16
  * @since 1.0.0
17
  */
18
 
19
- if ( ! defined( 'ABSPATH' ) ) {
20
  exit;
21
  } // Exit if accessed directly
22
-
23
 
24
  ?>
25
 
@@ -29,18 +29,25 @@ if ( ! defined( 'ABSPATH' ) ) {
29
  </th>
30
  <td class="forminp forminp-color plugin-option">
31
 
32
- <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?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 ?>>
 
 
 
33
  <div class="option">
34
- <input type="text" name="<?php echo $id ?>" id="<?php echo $id ?>" value="<?php echo $value == '1' ? '' : esc_attr( $value ) ?>" class="upload_img_url" />
35
- <input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
 
 
 
36
  </div>
37
  <div class="clear"></div>
38
  <span class="description"><?php echo $desc ?></span>
 
39
  <div class="upload_img_preview" style="margin-top:10px;">
40
  <?php
41
  $file = $value;
42
- if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
43
- echo "<img src=\"" . YIT_CORE_PLUGIN_URL. "/assets/images/sleep.png\" data-src=\"$file\" />";
44
  }
45
  ?>
46
  </div>
16
  * @since 1.0.0
17
  */
18
 
19
+ if (!defined('ABSPATH')) {
20
  exit;
21
  } // Exit if accessed directly
22
+ $hidden_val = get_option($id . "-yith-attachment-id", 0);
23
 
24
  ?>
25
 
29
  </th>
30
  <td class="forminp forminp-color plugin-option">
31
 
32
+ <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload"
33
+ <?php if (isset($option['deps'])): ?>data-field="<?php echo $id ?>"
34
+ data-dep="<?php echo $this->get_id_field($option['deps']['ids']) ?>"
35
+ data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
36
  <div class="option">
37
+ <input type="text" name="<?php echo $id ?>" id="<?php echo $id ?>"
38
+ value="<?php echo $value == '1' ? '' : esc_attr($value) ?>" class="upload_img_url"/>
39
+ <input type="hidden" name="<?php echo $id ?>-yith-attachment-id" id="<?php echo $id ?>-yith-attachment-id" value="<?php echo $hidden_val; ?>" />
40
+ <input type="button" value="<?php _e('Upload', 'yith-plugin-fw') ?>" id="<?php echo $id ?>-button"
41
+ class="upload_button button"/>
42
  </div>
43
  <div class="clear"></div>
44
  <span class="description"><?php echo $desc ?></span>
45
+
46
  <div class="upload_img_preview" style="margin-top:10px;">
47
  <?php
48
  $file = $value;
49
+ if (preg_match('/(jpg|jpeg|png|gif|ico)$/', $file)) {
50
+ echo "<img src=\"" . YIT_CORE_PLUGIN_URL . "/assets/images/sleep.png\" data-src=\"$file\" />";
51
  }
52
  ?>
53
  </div>
plugin-fw/yit-functions.php CHANGED
@@ -634,9 +634,14 @@ if ( ! function_exists( 'yit_check_plugin_support' ) ) {
634
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
635
  */
636
  function yit_check_plugin_support() {
 
637
  $headers['core'] = wp_get_theme()->get( 'Core Framework Version' );
638
  $headers['author'] = wp_get_theme()->get( 'Author' );
639
 
 
 
 
 
640
  if ( ( ! empty( $headers['core'] ) && version_compare( $headers['core'], '2.0.0', '<=' ) ) || $headers['author'] != 'Your Inspiration Themes' ) {
641
  return true;
642
  }
634
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
635
  */
636
  function yit_check_plugin_support() {
637
+
638
  $headers['core'] = wp_get_theme()->get( 'Core Framework Version' );
639
  $headers['author'] = wp_get_theme()->get( 'Author' );
640
 
641
+ if( ! $headers['core'] && defined( 'YIT_CORE_VERSION' ) ) {
642
+ $headers['core'] = YIT_CORE_VERSION;
643
+ }
644
+
645
  if ( ( ! empty( $headers['core'] ) && version_compare( $headers['core'], '2.0.0', '<=' ) ) || $headers['author'] != 'Your Inspiration Themes' ) {
646
  return true;
647
  }
plugin-fw/yit-plugin.php CHANGED
@@ -13,22 +13,10 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  } // Exit if accessed directly
14
 
15
 
16
- if( !defined('YIT_CORE_PLUGIN')) {
17
- define( 'YIT_CORE_PLUGIN', true);
18
- }
19
-
20
- if( !defined('YIT_CORE_PLUGIN_PATH')) {
21
- define( 'YIT_CORE_PLUGIN_PATH', dirname(__FILE__));
22
- }
23
-
24
- if( !defined('YIT_CORE_PLUGIN_URL')) {
25
- define( 'YIT_CORE_PLUGIN_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ));
26
- }
27
-
28
- if( ! defined( 'YIT_CORE_PLUGIN_TEMPLATE_PATH' ) ){
29
- define ( 'YIT_CORE_PLUGIN_TEMPLATE_PATH', YIT_CORE_PLUGIN_PATH . '/templates' );
30
- }
31
-
32
 
33
  include_once( 'yit-functions.php' );
34
  include_once( 'yit-plugin-registration-hook.php' );
13
  } // Exit if accessed directly
14
 
15
 
16
+ ! defined( 'YIT_CORE_PLUGIN' ) && define( 'YIT_CORE_PLUGIN', true);
17
+ ! defined( 'YIT_CORE_PLUGIN_PATH' ) && define( 'YIT_CORE_PLUGIN_PATH', dirname(__FILE__) );
18
+ ! defined( 'YIT_CORE_PLUGIN_URL' ) && define( 'YIT_CORE_PLUGIN_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) );
19
+ ! defined( 'YIT_CORE_PLUGIN_TEMPLATE_PATH' ) && define( 'YIT_CORE_PLUGIN_TEMPLATE_PATH', YIT_CORE_PLUGIN_PATH . '/templates' );
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  include_once( 'yit-functions.php' );
22
  include_once( 'yit-plugin-registration-hook.php' );
plugin-options/settings-options.php CHANGED
@@ -5,20 +5,20 @@ $settings = array(
5
  'settings' => array(
6
 
7
  'section_general_settings_videobox' => array(
8
- 'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-wcqv' ),
9
  'type' => 'videobox',
10
  'default' => array(
11
- 'plugin_name' => __( 'YITH WooCommerce Quick View', 'yith-wcqv' ),
12
- 'title_first_column' => __( 'Discover the Advanced Features', 'yith-wcqv' ),
13
- 'description_first_column' => __('Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit from all features!', 'yith-wcqv'),
14
 
15
  'video' => array(
16
  'video_id' => '120573971',
17
  'video_image_url' => YITH_WCQV_ASSETS_URL.'/image/video-yith-woocommerce-quick-view.jpg',
18
- 'video_description' => __( 'YITH WooCommerce Quick View', 'yith-wcqv' ),
19
  ),
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'
@@ -28,7 +28,7 @@ $settings = array(
28
  ),
29
 
30
  'general-options' => array(
31
- 'title' => __( 'General Options', 'yith-wcqv' ),
32
  'type' => 'title',
33
  'desc' => '',
34
  'id' => 'yith-wcqv-general-options'
@@ -36,31 +36,31 @@ $settings = array(
36
 
37
  'enable-quick-view' => array(
38
  'id' => 'yith-wcqv-enable',
39
- 'name' => __( 'Enable Quick View', 'yith-wcqv' ),
40
  'type' => 'checkbox',
41
  'default' => 'yes'
42
  ),
43
 
44
  'enable-quick-view-mobile' => array(
45
  'id' => 'yith-wcqv-enable-mobile',
46
- 'name' => __( 'Enable Quick View on mobile', 'yith-wcqv' ),
47
- 'desc' => __( 'Enable quick view features on mobile device too', 'yith-wcqv' ),
48
  'type' => 'checkbox',
49
  'default' => 'yes'
50
  ),
51
 
52
  'quick-view-label' => array(
53
  'id' => 'yith-wcqv-button-label',
54
- 'name' => __( 'Quick View Button Label', 'yith-wcqv' ),
55
- 'desc' => __( 'Label for the quick view button in the WooCommerce loop.', 'yith-wcqv' ),
56
  'type' => 'text',
57
- 'default' => __( 'Quick View', 'yith-wcqv' ),
58
  ),
59
 
60
  'enable-lightbox' => array(
61
  'id' => 'yith-wcqv-enable-lightbox',
62
- 'name' => __( 'Enable Lightbox', 'yith-wcqv' ),
63
- 'desc' => __( 'Enable lightbox. Product images will open in a lightbox.', 'yith-wcqv' ),
64
  'type' => 'checkbox',
65
  'default' => 'yes'
66
  ),
@@ -71,14 +71,14 @@ $settings = array(
71
  ),
72
 
73
  'style-options' => array(
74
- 'title' => __( 'Style Options', 'yith-wcqv' ),
75
  'desc' => '',
76
  'type' => 'title',
77
  'id' => 'yith-wcqv-style-options'
78
  ),
79
 
80
  'background-color-modal' => array(
81
- 'name' => __( 'Modal Window Background Color', 'yith-wcqv' ),
82
  'type' => 'color',
83
  'desc' => '',
84
  'id' => 'yith-wcqv-background-modal',
@@ -86,7 +86,7 @@ $settings = array(
86
  ),
87
 
88
  'close-button-color' => array(
89
- 'name' => __( 'Closing Button Color', 'yith-wcqv' ),
90
  'type' => 'color',
91
  'desc' => '',
92
  'id' => 'yith-wcqv-close-color',
@@ -94,7 +94,7 @@ $settings = array(
94
  ),
95
 
96
  'close-button-color-hover' => array(
97
- 'name' => __( 'Closing Button Hover Color', 'yith-wcqv' ),
98
  'type' => 'color',
99
  'desc' => '',
100
  'id' => 'yith-wcqv-close-color-hover',
5
  'settings' => array(
6
 
7
  'section_general_settings_videobox' => array(
8
+ 'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-woocommerce-quick-view' ),
9
  'type' => 'videobox',
10
  'default' => array(
11
+ 'plugin_name' => __( 'YITH WooCommerce Quick View', 'yith-woocommerce-quick-view' ),
12
+ 'title_first_column' => __( 'Discover the Advanced Features', 'yith-woocommerce-quick-view' ),
13
+ 'description_first_column' => __('Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit from all features!', 'yith-woocommerce-quick-view'),
14
 
15
  'video' => array(
16
  'video_id' => '120573971',
17
  'video_image_url' => YITH_WCQV_ASSETS_URL.'/image/video-yith-woocommerce-quick-view.jpg',
18
+ 'video_description' => __( 'YITH WooCommerce Quick View', 'yith-woocommerce-quick-view' ),
19
  ),
20
+ 'title_second_column' => __( 'Get Support and Pro Features', 'yith-woocommerce-quick-view' ),
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-woocommerce-quick-view' ),
22
  'button' => array(
23
  'href' => YITH_WCQV_Admin()->get_premium_landing_uri(),
24
  'title' => 'Get Support and Pro Features'
28
  ),
29
 
30
  'general-options' => array(
31
+ 'title' => __( 'General Options', 'yith-woocommerce-quick-view' ),
32
  'type' => 'title',
33
  'desc' => '',
34
  'id' => 'yith-wcqv-general-options'
36
 
37
  'enable-quick-view' => array(
38
  'id' => 'yith-wcqv-enable',
39
+ 'name' => __( 'Enable Quick View', 'yith-woocommerce-quick-view' ),
40
  'type' => 'checkbox',
41
  'default' => 'yes'
42
  ),
43
 
44
  'enable-quick-view-mobile' => array(
45
  'id' => 'yith-wcqv-enable-mobile',
46
+ 'name' => __( 'Enable Quick View on mobile', 'yith-woocommerce-quick-view' ),
47
+ 'desc' => __( 'Enable quick view features on mobile device too', 'yith-woocommerce-quick-view' ),
48
  'type' => 'checkbox',
49
  'default' => 'yes'
50
  ),
51
 
52
  'quick-view-label' => array(
53
  'id' => 'yith-wcqv-button-label',
54
+ 'name' => __( 'Quick View Button Label', 'yith-woocommerce-quick-view' ),
55
+ 'desc' => __( 'Label for the quick view button in the WooCommerce loop.', 'yith-woocommerce-quick-view' ),
56
  'type' => 'text',
57
+ 'default' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
58
  ),
59
 
60
  'enable-lightbox' => array(
61
  'id' => 'yith-wcqv-enable-lightbox',
62
+ 'name' => __( 'Enable Lightbox', 'yith-woocommerce-quick-view' ),
63
+ 'desc' => __( 'Enable lightbox. Product images will open in a lightbox.', 'yith-woocommerce-quick-view' ),
64
  'type' => 'checkbox',
65
  'default' => 'yes'
66
  ),
71
  ),
72
 
73
  'style-options' => array(
74
+ 'title' => __( 'Style Options', 'yith-woocommerce-quick-view' ),
75
  'desc' => '',
76
  'type' => 'title',
77
  'id' => 'yith-wcqv-style-options'
78
  ),
79
 
80
  'background-color-modal' => array(
81
+ 'name' => __( 'Modal Window Background Color', 'yith-woocommerce-quick-view' ),
82
  'type' => 'color',
83
  'desc' => '',
84
  'id' => 'yith-wcqv-background-modal',
86
  ),
87
 
88
  'close-button-color' => array(
89
+ 'name' => __( 'Closing Button Color', 'yith-woocommerce-quick-view' ),
90
  'type' => 'color',
91
  'desc' => '',
92
  'id' => 'yith-wcqv-close-color',
94
  ),
95
 
96
  'close-button-color-hover' => array(
97
+ 'name' => __( 'Closing Button Hover Color', 'yith-woocommerce-quick-view' ),
98
  'type' => 'color',
99
  'desc' => '',
100
  'id' => 'yith-wcqv-close-color-hover',
templates/admin/premium.php CHANGED
@@ -1,4 +1,8 @@
1
  <style>
 
 
 
 
2
  .section{
3
  margin-left: -20px;
4
  margin-right: -20px;
@@ -202,28 +206,27 @@
202
  <div class="landing-container">
203
  <div class="premium-cta">
204
  <p>
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>
212
  </div>
213
  </div>
214
  </div>
215
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/01-bg.png) no-repeat #fff; background-position: 85% 75%">
216
- <h1>Premium Features</h1>
217
  <div class="landing-container">
218
  <div class="col-1">
219
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/01.png" alt="Review Title" />
220
  </div>
221
  <div class="col-2">
222
  <div class="section-title">
223
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/01-icon.png" alt="Review Title"/>
224
- <h2>BUTTON TYPE</h2>
225
  </div>
226
- <p>Choose between the button or a custom icon to access the Quick View: you can choose to place it after the "Add To Cart" button or inside the thumbnail of the product.</p>
227
  </div>
228
  </div>
229
  </div>
@@ -231,27 +234,27 @@
231
  <div class="landing-container">
232
  <div class="col-2">
233
  <div class="section-title">
234
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/02-icon.png" alt="Attachment List" />
235
- <h2>Product Navigation </h2>
236
  </div>
237
- <p>The navigation in the "Quick View" allows browsing between the products within the same category. The navigation arrows show on mousehover the image of the next/previous product.</p>
238
  </div>
239
  <div class="col-1">
240
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/02.png" alt="Attachment List" />
241
  </div>
242
  </div>
243
  </div>
244
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/03-bg.png) no-repeat #fff; background-position: 85% 100%">
245
  <div class="landing-container">
246
  <div class="col-1">
247
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/03.png" alt="Vote the review" />
248
  </div>
249
  <div class="col-2">
250
  <div class="section-title">
251
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/03-icon.png" alt="Vote the review" />
252
- <h2>Content to display</h2>
253
  </div>
254
- <p>The display of the product information in the "Quick View" are managed by administrors who can decide whether to show everything or only a part of it.</p>
255
  </div>
256
  </div>
257
  </div>
@@ -259,27 +262,27 @@
259
  <div class="landing-container">
260
  <div class="col-2">
261
  <div class="section-title">
262
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/07-icon.png" alt="Attachment List" />
263
- <h2>Quick View Type </h2>
264
  </div>
265
- <p>Quick view has two different displaying modes: the first one opens it as a modal window, the other one opens it in the page itself with a cascading effect above content page.</p>
266
  </div>
267
  <div class="col-1">
268
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/07.png" alt="Attachment List" />
269
  </div>
270
  </div>
271
  </div>
272
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/08-bg.png) no-repeat #fff; background-position: 85% 100%">
273
  <div class="landing-container">
274
  <div class="col-1">
275
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/08.png" alt="Vote the review" />
276
  </div>
277
  <div class="col-2">
278
  <div class="section-title">
279
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/08-icon.png" alt="Vote the review" />
280
- <h2>“View details button</h2>
281
  </div>
282
- <p>An additional button that allows users to access product detail page directly from quick view window just with a click of the mouse.</p>
283
  </div>
284
  </div>
285
  </div>
@@ -288,26 +291,26 @@
288
  <div class="col-2">
289
  <div class="section-title">
290
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/04-icon.png" alt="Number" />
291
- <h2>Type of product images</h2>
292
  </div>
293
- <p>Each product can have more than one image: choose whether to hide or show them with the slider effect or in the classic WooCommerce display.</p>
294
  </div>
295
  <div class="col-1">
296
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/04.png" alt="Number" />
297
  </div>
298
  </div>
299
  </div>
300
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/05-bg.png) no-repeat #fff; background-position: 85% 100%">
301
  <div class="landing-container">
302
  <div class="col-1">
303
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/05.png" alt="Filter by rating" />
304
  </div>
305
  <div class="col-2">
306
  <div class="section-title">
307
- <img src="<?php echo YITH_WCQV_ASSETS_URL?>/image/05-icon.png" alt="Filter by rating" />
308
- <h2>SHARE</h2>
309
  </div>
310
- <p>Quick View is also social-friendly! Activating this option, you will be able to share the Quick View on Facebook, Twitter, Pinterest, Google+, or sending an email.</p>
311
  </div>
312
  </div>
313
  </div>
@@ -315,13 +318,41 @@
315
  <div class="landing-container">
316
  <div class="col-2">
317
  <div class="section-title">
318
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/06-icon.png" alt="Number" />
319
- <h2>Style Options</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  </div>
321
- <p>A rich option panel to change the colors of the "Quick View" button and of everything that is within the modal window generated. </p>
322
  </div>
323
  <div class="col-1">
324
- <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/06.png" alt="Number" />
325
  </div>
326
  </div>
327
  </div>
@@ -329,12 +360,11 @@
329
  <div class="landing-container">
330
  <div class="premium-cta">
331
  <p>
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>
339
  </div>
340
  </div>
1
  <style>
2
+ .section{
3
+ overflow-x: hidden;
4
+ }
5
+
6
  .section{
7
  margin-left: -20px;
8
  margin-right: -20px;
206
  <div class="landing-container">
207
  <div class="premium-cta">
208
  <p>
209
+ <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to benefit from all features!','ywqa'),'<span class="highlight">','</span>' );?>
 
210
  </p>
211
  <a href="<?php echo YITH_WCQV_Admin()->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
212
+ <span class="highlight"><?php _e('UPGRADE','yith-woocommerce-quick-view');?></span>
213
+ <span><?php _e('to the premium version','yith-woocommerce-quick-view');?></span>
214
  </a>
215
  </div>
216
  </div>
217
  </div>
218
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/01-bg.png) no-repeat #fff; background-position: 85% 75%">
219
+ <h1><?php _e('Premium Features','yith-woocommerce-quick-view');?></h1>
220
  <div class="landing-container">
221
  <div class="col-1">
222
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/01.png" alt="<?php _e('Button type','yith-woocommerce-quick-view') ?>" />
223
  </div>
224
  <div class="col-2">
225
  <div class="section-title">
226
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/01-icon.png" alt="Review Title"/>
227
+ <h2><?php _e('BUTTON TYPE','yith-woocommerce-quick-view');?></h2>
228
  </div>
229
+ <p><?php echo sprintf( __('Choose between the button or a custom icon to access the %1$sQuick View%2$s: you can choose to place it after the "Add To Cart" button or inside the thumbnail of the product.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
230
  </div>
231
  </div>
232
  </div>
234
  <div class="landing-container">
235
  <div class="col-2">
236
  <div class="section-title">
237
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/02-icon.png" alt="<?php _e('Product Navigation','yith-woocommerce-quick-view');?>" />
238
+ <h2><?php _e('Product Navigation','yith-woocommerce-quick-view'); ?> </h2>
239
  </div>
240
+ <p><?php echo sprintf( __('The navigation in the "Quick View" allows browsing among %1$sproducts%2$s displayed in it. The navigation arrows show on mousehover the image of the next/previous product.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
241
  </div>
242
  <div class="col-1">
243
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/02.png" alt="<?php _e('Product Navigation','yith-woocommerce-quick-view');?>" />
244
  </div>
245
  </div>
246
  </div>
247
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/03-bg.png) no-repeat #fff; background-position: 85% 100%">
248
  <div class="landing-container">
249
  <div class="col-1">
250
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/03.png" alt="Icon 03" />
251
  </div>
252
  <div class="col-2">
253
  <div class="section-title">
254
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/03-icon.png" alt="<?php _e('Content to display','yith-woocommerce-quick-view') ?>" />
255
+ <h2><?php _e('Content to display','yith-woocommerce-quick-view') ?></h2>
256
  </div>
257
+ <p><?php echo sprintf( __('The display of the product information in the "Quick View" are managed by %1$sadministrators%2$s who can decide whether to show everything or only a part of it.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
258
  </div>
259
  </div>
260
  </div>
262
  <div class="landing-container">
263
  <div class="col-2">
264
  <div class="section-title">
265
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/07-icon.png" alt="icon 04" />
266
+ <h2><?php _e('Quick View Type','yith-woocommerce-quick-view');?> </h2>
267
  </div>
268
+ <p><?php echo sprintf( __('Quick view has two different displaying modes: the first one opens it as a %1$smodal window%2$s, the other one opens it in the page itself with a %1$scascading effect%2$s above content page.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
269
  </div>
270
  <div class="col-1">
271
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/07.png" alt="<?php _e('Quick view type','yith-woocommerce-quick-view');?>" />
272
  </div>
273
  </div>
274
  </div>
275
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/08-bg.png) no-repeat #fff; background-position: 85% 100%">
276
  <div class="landing-container">
277
  <div class="col-1">
278
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/08.png" alt="View details" />
279
  </div>
280
  <div class="col-2">
281
  <div class="section-title">
282
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/08-icon.png" alt="Vote the review" />
283
+ <h2><?php _e('"View details" button','yith-woocommerce-quick-view');?></h2>
284
  </div>
285
+ <p><?php echo sprintf( __('An additional button that allows users to access product detail page directly from quick view window just with a click of the mouse.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
286
  </div>
287
  </div>
288
  </div>
291
  <div class="col-2">
292
  <div class="section-title">
293
  <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/04-icon.png" alt="Number" />
294
+ <h2><?php _e('Type of product images','yith-woocommerce-quick-view');?></h2>
295
  </div>
296
+ <p><?php echo sprintf( __('Each product can have more than one image: choose whether to hide or show them with the %1$sslider%2$s effect or in the classic %1$sWooCommerce%2$s display.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
297
  </div>
298
  <div class="col-1">
299
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/04.png" alt="Icon 04" />
300
  </div>
301
  </div>
302
  </div>
303
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/05-bg.png) no-repeat #fff; background-position: 85% 100%">
304
  <div class="landing-container">
305
  <div class="col-1">
306
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/05.png" alt="Share" />
307
  </div>
308
  <div class="col-2">
309
  <div class="section-title">
310
+ <img src="<?php echo YITH_WCQV_ASSETS_URL?>/image/05-icon.png" alt="icon 05" />
311
+ <h2><?php _e('SHARE','yith-woocommerce-quick-view');?></h2>
312
  </div>
313
+ <p><?php echo sprintf( __('%1$sQuick View is also social-friendly!%2$s Activating this option, you will be able to share the Quick View on Facebook, Twitter, Pinterest, Google+, or sending an email.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
314
  </div>
315
  </div>
316
  </div>
318
  <div class="landing-container">
319
  <div class="col-2">
320
  <div class="section-title">
321
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/06-icon.png" alt="Icon 06" />
322
+ <h2><?php _e('Style Options','yith-woocommerce-quick-view');?></h2>
323
+ </div>
324
+ <p><?php echo sprintf( __('A rich option panel to change the colors of the %1$s"Quick View"%2$s button and of everything that is within the modal window generated.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
325
+ </div>
326
+ <div class="col-1">
327
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/06.png" alt="<?php _e('Style Options','yith-woocommerce-quick-view') ?>" />
328
+ </div>
329
+ </div>
330
+ </div>
331
+ <div class="section section-even clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/09-bg.png) no-repeat #fff; background-position: 85% 100%">
332
+ <div class="landing-container">
333
+ <div class="col-1">
334
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/09.png" alt="" />
335
+ </div>
336
+ <div class="col-2">
337
+ <div class="section-title">
338
+ <img src="<?php echo YITH_WCQV_ASSETS_URL?>/image/09-icon.png" alt="icon 09" />
339
+ <h2><?php _e('SHORTCODE','yith-woocommerce-quick-view');?></h2>
340
+ </div>
341
+ <p><?php echo sprintf( __('The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you can add a button in any spot of the page to allow your users to see the quick view of a specific product in your store.','yith-woocommerce-quick-view'),'<b>','</b>' );?></p>
342
+ </div>
343
+ </div>
344
+ </div>
345
+ <div class="section section-odd clear" style="background: url(<?php echo YITH_WCQV_ASSETS_URL ?>/image/09-bg.png) no-repeat #f1f1f1; background-position: 15% 100%">
346
+ <div class="landing-container">
347
+ <div class="col-2">
348
+ <div class="section-title">
349
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/09-icon.png" alt="Icon 10" />
350
+ <h2><?php _e('Compatibility with other YITH\'s plugins','yith-woocommerce-quick-view');?></h2>
351
  </div>
352
+ <p><?php echo sprintf( __('Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH WooCommerce Badge Management%2$s and %1$sYITH WooCommerce Wishlist%2$s, you will be free to enrich further the content of your quick view.%3$s Zoom the product image, show a badge, or add the button to open the quick view in all products available in your users\' wishlists. With YITH\'s plugins you make the difference.','yith-woocommerce-quick-view'),'<b>','</b>','<br>' );?></p>
353
  </div>
354
  <div class="col-1">
355
+ <img src="<?php echo YITH_WCQV_ASSETS_URL ?>/image/10.png" alt="" />
356
  </div>
357
  </div>
358
  </div>
360
  <div class="landing-container">
361
  <div class="premium-cta">
362
  <p>
363
+ <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to benefit from all features!','ywqa'),'<span class="highlight">','</span>' );?>
 
364
  </p>
365
  <a href="<?php echo YITH_WCQV_Admin()->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
366
+ <span class="highlight"><?php _e('UPGRADE','yith-woocommerce-quick-view');?></span>
367
+ <span><?php _e('to the premium version','yith-woocommerce-quick-view');?></span>
368
  </a>
369
  </div>
370
  </div>