Version Description
- Added: Action yith_quick_view_custom_style_scripts
- Added: Filter 'yith_quick_view_loader_gif
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Quick View |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- README.txt +6 -1
- assets/js/frontend.js +3 -0
- class.yith-wcqv-frontend.php +7 -1
- init.php +2 -2
- languages/default.po +27 -20
- languages/yith-wcqv.pot +27 -20
- plugin-fw/lib/yit-cpt-unlimited.php +2 -2
- plugin-fw/lib/yit-metabox.php +1 -1
- plugin-fw/lib/yit-plugin-panel-wc.php +22 -2
- plugin-fw/lib/yit-plugin-panel.php +9 -4
- plugin-fw/lib/yit-plugin-subpanel.php +2 -2
- plugin-fw/lib/yit-pointers.php +2 -2
- plugin-fw/lib/yit-upgrade.php +3 -3
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +2 -2
- plugin-fw/yit-functions.php +1 -1
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
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.1
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -28,6 +28,11 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
28 |
|
29 |
== Changelog ==
|
30 |
|
|
|
|
|
|
|
|
|
|
|
31 |
= 1.0.1 =
|
32 |
|
33 |
* Minor bug fix
|
3 |
Tags: yith, woocommerce, quick view, woocommerce quick view, yit, single product, products quick view, free quick view, woocommerce extension
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.1
|
6 |
+
Stable tag: 1.0.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
28 |
|
29 |
== Changelog ==
|
30 |
|
31 |
+
= 1.0.2 =
|
32 |
+
|
33 |
+
* Added: Action yith_quick_view_custom_style_scripts
|
34 |
+
* Added: Filter 'yith_quick_view_loader_gif
|
35 |
+
|
36 |
= 1.0.1 =
|
37 |
|
38 |
* Minor bug fix
|
assets/js/frontend.js
CHANGED
@@ -85,6 +85,9 @@ jQuery(document).ready(function($){
|
|
85 |
t.unblock();
|
86 |
}
|
87 |
|
|
|
|
|
|
|
88 |
});
|
89 |
};
|
90 |
|
85 |
t.unblock();
|
86 |
}
|
87 |
|
88 |
+
// stop loader
|
89 |
+
$(document).trigger( 'qv_loader_stop' );
|
90 |
+
|
91 |
});
|
92 |
};
|
93 |
|
class.yith-wcqv-frontend.php
CHANGED
@@ -152,10 +152,16 @@ if( ! class_exists( 'YITH_WCQV_Frontend' ) ) {
|
|
152 |
|
153 |
$version = version_compare( preg_replace( '/-beta-([0-9]+)/', '', WC()->version ), '2.3.0', '<' );
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
wp_localize_script( 'yith-wcqv-frontend', 'yith_qv', array (
|
156 |
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
157 |
'is2_2' => $version,
|
158 |
-
'loader' =>
|
159 |
)
|
160 |
);
|
161 |
|
152 |
|
153 |
$version = version_compare( preg_replace( '/-beta-([0-9]+)/', '', WC()->version ), '2.3.0', '<' );
|
154 |
|
155 |
+
// loader gif
|
156 |
+
$loader = apply_filters( 'yith_quick_view_loader_gif', YITH_WCQV_ASSETS_URL . '/image/qv-loader.gif' );
|
157 |
+
|
158 |
+
// Allow user to load custom style and scripts
|
159 |
+
do_action( 'yith_quick_view_custom_style_scripts' );
|
160 |
+
|
161 |
wp_localize_script( 'yith-wcqv-frontend', 'yith_qv', array (
|
162 |
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
163 |
'is2_2' => $version,
|
164 |
+
'loader' => $loader
|
165 |
)
|
166 |
);
|
167 |
|
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.
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -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.
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
|
3 |
* Plugin Name: YITH WooCommerce Quick View
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Quick View allows your users to have a quick look about products.
|
6 |
+
* Version: 1.0.2
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
59 |
|
60 |
|
61 |
if ( ! defined( 'YITH_WCQV_VERSION' ) ){
|
62 |
+
define( 'YITH_WCQV_VERSION', '1.0.2' );
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
|
languages/default.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Quick View\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
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;"
|
@@ -231,7 +231,7 @@ msgid "Taxonomy Rewrite"
|
|
231 |
msgstr ""
|
232 |
|
233 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
|
234 |
-
msgid "Set
|
235 |
msgstr ""
|
236 |
|
237 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
|
@@ -264,15 +264,15 @@ msgstr ""
|
|
264 |
|
265 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
|
266 |
#, php-format
|
267 |
-
msgid "Add %s
|
268 |
msgstr ""
|
269 |
|
270 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
|
271 |
msgid "Add with multiupload"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../plugin-fw/lib/yit-plugin-panel-wc.php:
|
275 |
-
msgid "The changes you made will be lost if you leave this page."
|
276 |
msgstr ""
|
277 |
|
278 |
#: ../plugin-fw/lib/yit-plugin-panel.php:61
|
@@ -291,9 +291,9 @@ msgid "Save Changes"
|
|
291 |
msgstr ""
|
292 |
|
293 |
#: ../plugin-fw/lib/yit-plugin-panel.php:274
|
294 |
-
#: ../plugin-fw/lib/yit-plugin-subpanel.php:145
|
295 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
|
296 |
-
msgid "
|
|
|
297 |
msgstr ""
|
298 |
|
299 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
@@ -305,11 +305,12 @@ msgstr ""
|
|
305 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
306 |
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
307 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
308 |
-
msgid "Are you sure
|
309 |
msgstr ""
|
310 |
|
311 |
#: ../plugin-fw/lib/yit-plugin-panel.php:410
|
312 |
-
msgid "
|
|
|
313 |
msgstr ""
|
314 |
|
315 |
#: ../plugin-fw/lib/yit-plugin-panel.php:411
|
@@ -338,7 +339,7 @@ msgid "An error has occurred during import. Please try again."
|
|
338 |
msgstr ""
|
339 |
|
340 |
#: ../plugin-fw/lib/yit-plugin-panel.php:418
|
341 |
-
msgid "The file
|
342 |
msgstr ""
|
343 |
|
344 |
#: ../plugin-fw/lib/yit-plugin-panel.php:419
|
@@ -349,6 +350,12 @@ msgstr ""
|
|
349 |
msgid "Sorting successful."
|
350 |
msgstr ""
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
#: ../plugin-fw/lib/yit-pointers.php:70
|
353 |
msgid "Plugins Activated"
|
354 |
msgstr ""
|
@@ -374,13 +381,12 @@ msgstr ""
|
|
374 |
|
375 |
#: ../plugin-fw/lib/yit-pointers.php:85
|
376 |
msgid ""
|
377 |
-
"From now on, you can find all
|
378 |
-
"menu.\n"
|
379 |
" Any time one of our plugins is updated, "
|
380 |
"a new entry will be added to this menu.\n"
|
381 |
-
" For example, after update, plugin "
|
382 |
-
"options (such for YITH WooCommerce Wishlist, YITH WooCommerce Ajax
|
383 |
-
"etc.)\n"
|
384 |
" will be moved from previous location to "
|
385 |
"YIT Plugin tab."
|
386 |
msgstr ""
|
@@ -399,7 +405,7 @@ msgstr ""
|
|
399 |
|
400 |
#: ../plugin-fw/lib/yit-upgrade.php:122
|
401 |
msgid ""
|
402 |
-
"please <a href=\"%activate_link%\">
|
403 |
msgstr ""
|
404 |
|
405 |
#: ../plugin-fw/lib/yit-upgrade.php:123
|
@@ -452,11 +458,12 @@ msgid ""
|
|
452 |
msgstr ""
|
453 |
|
454 |
#: ../plugin-fw/lib/yit-upgrade.php:493
|
455 |
-
msgid "You can't update plugins for this site."
|
456 |
msgstr ""
|
457 |
|
458 |
#: ../plugin-fw/lib/yit-upgrade.php:497
|
459 |
-
msgid "
|
|
|
460 |
msgstr ""
|
461 |
|
462 |
#: ../plugin-fw/lib/yit-upgrade.php:504
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Quick View\n"
|
4 |
+
"POT-Creation-Date: 2015-03-06 09:27+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-03-06 09:27+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.5\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
231 |
msgstr ""
|
232 |
|
233 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
|
234 |
+
msgid "Set univocal name for each category page URL."
|
235 |
msgstr ""
|
236 |
|
237 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
|
264 |
|
265 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
|
266 |
#, php-format
|
267 |
+
msgid "Add %s from images"
|
268 |
msgstr ""
|
269 |
|
270 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
|
271 |
msgid "Add with multiupload"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: ../plugin-fw/lib/yit-plugin-panel-wc.php:345
|
275 |
+
msgid "The changes you have made will be lost if you leave this page."
|
276 |
msgstr ""
|
277 |
|
278 |
#: ../plugin-fw/lib/yit-plugin-panel.php:61
|
291 |
msgstr ""
|
292 |
|
293 |
#: ../plugin-fw/lib/yit-plugin-panel.php:274
|
|
|
294 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
|
295 |
+
msgid ""
|
296 |
+
"If you continue with this action, you will reset all options in this page."
|
297 |
msgstr ""
|
298 |
|
299 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
305 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
306 |
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
307 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
308 |
+
msgid "Are you sure?"
|
309 |
msgstr ""
|
310 |
|
311 |
#: ../plugin-fw/lib/yit-plugin-panel.php:410
|
312 |
+
msgid ""
|
313 |
+
"The element you have entered already exists. Please, enter another name."
|
314 |
msgstr ""
|
315 |
|
316 |
#: ../plugin-fw/lib/yit-plugin-panel.php:411
|
339 |
msgstr ""
|
340 |
|
341 |
#: ../plugin-fw/lib/yit-plugin-panel.php:418
|
342 |
+
msgid "The added file is not valid."
|
343 |
msgstr ""
|
344 |
|
345 |
#: ../plugin-fw/lib/yit-plugin-panel.php:419
|
350 |
msgid "Sorting successful."
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:145
|
354 |
+
msgid ""
|
355 |
+
"If you continue with this action, you will reset all the options in this "
|
356 |
+
"page."
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
#: ../plugin-fw/lib/yit-pointers.php:70
|
360 |
msgid "Plugins Activated"
|
361 |
msgstr ""
|
381 |
|
382 |
#: ../plugin-fw/lib/yit-pointers.php:85
|
383 |
msgid ""
|
384 |
+
"From now on, you can find all options of your plugins in YIT Plugin menu.\n"
|
|
|
385 |
" Any time one of our plugins is updated, "
|
386 |
"a new entry will be added to this menu.\n"
|
387 |
+
" For example, after the update, plugin "
|
388 |
+
"options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
|
389 |
+
"Search, etc.)\n"
|
390 |
" will be moved from previous location to "
|
391 |
"YIT Plugin tab."
|
392 |
msgstr ""
|
405 |
|
406 |
#: ../plugin-fw/lib/yit-upgrade.php:122
|
407 |
msgid ""
|
408 |
+
"please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
|
409 |
msgstr ""
|
410 |
|
411 |
#: ../plugin-fw/lib/yit-upgrade.php:123
|
458 |
msgstr ""
|
459 |
|
460 |
#: ../plugin-fw/lib/yit-upgrade.php:493
|
461 |
+
msgid "You can't update the plugins for this site."
|
462 |
msgstr ""
|
463 |
|
464 |
#: ../plugin-fw/lib/yit-upgrade.php:497
|
465 |
+
msgid ""
|
466 |
+
"You do not have sufficient permissions to update the plugins for this site."
|
467 |
msgstr ""
|
468 |
|
469 |
#: ../plugin-fw/lib/yit-upgrade.php:504
|
languages/yith-wcqv.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Quick View\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
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;"
|
@@ -231,7 +231,7 @@ msgid "Taxonomy Rewrite"
|
|
231 |
msgstr ""
|
232 |
|
233 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
|
234 |
-
msgid "Set
|
235 |
msgstr ""
|
236 |
|
237 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
|
@@ -264,15 +264,15 @@ msgstr ""
|
|
264 |
|
265 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
|
266 |
#, php-format
|
267 |
-
msgid "Add %s
|
268 |
msgstr ""
|
269 |
|
270 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
|
271 |
msgid "Add with multiupload"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../plugin-fw/lib/yit-plugin-panel-wc.php:
|
275 |
-
msgid "The changes you made will be lost if you leave this page."
|
276 |
msgstr ""
|
277 |
|
278 |
#: ../plugin-fw/lib/yit-plugin-panel.php:61
|
@@ -291,9 +291,9 @@ msgid "Save Changes"
|
|
291 |
msgstr ""
|
292 |
|
293 |
#: ../plugin-fw/lib/yit-plugin-panel.php:274
|
294 |
-
#: ../plugin-fw/lib/yit-plugin-subpanel.php:145
|
295 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
|
296 |
-
msgid "
|
|
|
297 |
msgstr ""
|
298 |
|
299 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
@@ -305,11 +305,12 @@ msgstr ""
|
|
305 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
306 |
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
307 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
308 |
-
msgid "Are you sure
|
309 |
msgstr ""
|
310 |
|
311 |
#: ../plugin-fw/lib/yit-plugin-panel.php:410
|
312 |
-
msgid "
|
|
|
313 |
msgstr ""
|
314 |
|
315 |
#: ../plugin-fw/lib/yit-plugin-panel.php:411
|
@@ -338,7 +339,7 @@ msgid "An error has occurred during import. Please try again."
|
|
338 |
msgstr ""
|
339 |
|
340 |
#: ../plugin-fw/lib/yit-plugin-panel.php:418
|
341 |
-
msgid "The file
|
342 |
msgstr ""
|
343 |
|
344 |
#: ../plugin-fw/lib/yit-plugin-panel.php:419
|
@@ -349,6 +350,12 @@ msgstr ""
|
|
349 |
msgid "Sorting successful."
|
350 |
msgstr ""
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
#: ../plugin-fw/lib/yit-pointers.php:70
|
353 |
msgid "Plugins Activated"
|
354 |
msgstr ""
|
@@ -374,13 +381,12 @@ msgstr ""
|
|
374 |
|
375 |
#: ../plugin-fw/lib/yit-pointers.php:85
|
376 |
msgid ""
|
377 |
-
"From now on, you can find all
|
378 |
-
"menu.\n"
|
379 |
" Any time one of our plugins is updated, "
|
380 |
"a new entry will be added to this menu.\n"
|
381 |
-
" For example, after update, plugin "
|
382 |
-
"options (such for YITH WooCommerce Wishlist, YITH WooCommerce Ajax
|
383 |
-
"etc.)\n"
|
384 |
" will be moved from previous location to "
|
385 |
"YIT Plugin tab."
|
386 |
msgstr ""
|
@@ -399,7 +405,7 @@ msgstr ""
|
|
399 |
|
400 |
#: ../plugin-fw/lib/yit-upgrade.php:122
|
401 |
msgid ""
|
402 |
-
"please <a href=\"%activate_link%\">
|
403 |
msgstr ""
|
404 |
|
405 |
#: ../plugin-fw/lib/yit-upgrade.php:123
|
@@ -452,11 +458,12 @@ msgid ""
|
|
452 |
msgstr ""
|
453 |
|
454 |
#: ../plugin-fw/lib/yit-upgrade.php:493
|
455 |
-
msgid "You can't update plugins for this site."
|
456 |
msgstr ""
|
457 |
|
458 |
#: ../plugin-fw/lib/yit-upgrade.php:497
|
459 |
-
msgid "
|
|
|
460 |
msgstr ""
|
461 |
|
462 |
#: ../plugin-fw/lib/yit-upgrade.php:504
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Quick View\n"
|
4 |
+
"POT-Creation-Date: 2015-03-06 09:27+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-03-06 09:27+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.5\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
231 |
msgstr ""
|
232 |
|
233 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
|
234 |
+
msgid "Set univocal name for each category page URL."
|
235 |
msgstr ""
|
236 |
|
237 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
|
264 |
|
265 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
|
266 |
#, php-format
|
267 |
+
msgid "Add %s from images"
|
268 |
msgstr ""
|
269 |
|
270 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
|
271 |
msgid "Add with multiupload"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: ../plugin-fw/lib/yit-plugin-panel-wc.php:345
|
275 |
+
msgid "The changes you have made will be lost if you leave this page."
|
276 |
msgstr ""
|
277 |
|
278 |
#: ../plugin-fw/lib/yit-plugin-panel.php:61
|
291 |
msgstr ""
|
292 |
|
293 |
#: ../plugin-fw/lib/yit-plugin-panel.php:274
|
|
|
294 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
|
295 |
+
msgid ""
|
296 |
+
"If you continue with this action, you will reset all options in this page."
|
297 |
msgstr ""
|
298 |
|
299 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
305 |
#: ../plugin-fw/lib/yit-plugin-panel.php:276
|
306 |
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
307 |
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
308 |
+
msgid "Are you sure?"
|
309 |
msgstr ""
|
310 |
|
311 |
#: ../plugin-fw/lib/yit-plugin-panel.php:410
|
312 |
+
msgid ""
|
313 |
+
"The element you have entered already exists. Please, enter another name."
|
314 |
msgstr ""
|
315 |
|
316 |
#: ../plugin-fw/lib/yit-plugin-panel.php:411
|
339 |
msgstr ""
|
340 |
|
341 |
#: ../plugin-fw/lib/yit-plugin-panel.php:418
|
342 |
+
msgid "The added file is not valid."
|
343 |
msgstr ""
|
344 |
|
345 |
#: ../plugin-fw/lib/yit-plugin-panel.php:419
|
350 |
msgid "Sorting successful."
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:145
|
354 |
+
msgid ""
|
355 |
+
"If you continue with this action, you will reset all the options in this "
|
356 |
+
"page."
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
#: ../plugin-fw/lib/yit-pointers.php:70
|
360 |
msgid "Plugins Activated"
|
361 |
msgstr ""
|
381 |
|
382 |
#: ../plugin-fw/lib/yit-pointers.php:85
|
383 |
msgid ""
|
384 |
+
"From now on, you can find all options of your plugins in YIT Plugin menu.\n"
|
|
|
385 |
" Any time one of our plugins is updated, "
|
386 |
"a new entry will be added to this menu.\n"
|
387 |
+
" For example, after the update, plugin "
|
388 |
+
"options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
|
389 |
+
"Search, etc.)\n"
|
390 |
" will be moved from previous location to "
|
391 |
"YIT Plugin tab."
|
392 |
msgstr ""
|
405 |
|
406 |
#: ../plugin-fw/lib/yit-upgrade.php:122
|
407 |
msgid ""
|
408 |
+
"please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
|
409 |
msgstr ""
|
410 |
|
411 |
#: ../plugin-fw/lib/yit-upgrade.php:123
|
458 |
msgstr ""
|
459 |
|
460 |
#: ../plugin-fw/lib/yit-upgrade.php:493
|
461 |
+
msgid "You can't update the plugins for this site."
|
462 |
msgstr ""
|
463 |
|
464 |
#: ../plugin-fw/lib/yit-upgrade.php:497
|
465 |
+
msgid ""
|
466 |
+
"You do not have sufficient permissions to update the plugins for this site."
|
467 |
msgstr ""
|
468 |
|
469 |
#: ../plugin-fw/lib/yit-upgrade.php:504
|
plugin-fw/lib/yit-cpt-unlimited.php
CHANGED
@@ -1080,7 +1080,7 @@ class YIT_CPT_Unlimited {
|
|
1080 |
|
1081 |
'taxonomy_rewrite' => array(
|
1082 |
'label' => __( 'Taxonomy Rewrite', 'yit' ),
|
1083 |
-
'desc' => __( 'Set
|
1084 |
'type' => 'text',
|
1085 |
'std' => '' ),
|
1086 |
|
@@ -1628,7 +1628,7 @@ class YIT_CPT_Unlimited {
|
|
1628 |
var button = $('<a />', {
|
1629 |
href: '#',
|
1630 |
class: 'multi-uploader add-new-h2',
|
1631 |
-
'data-uploader_title': '<?php printf( __( 'Add %s
|
1632 |
'data-uploader_button_text': '<?php printf( __( 'Add %s', 'yit' ), $label_plural ) ?>'
|
1633 |
}).text('<?php _e( 'Add with multiupload', 'yit' ) ?>');
|
1634 |
|
1080 |
|
1081 |
'taxonomy_rewrite' => array(
|
1082 |
'label' => __( 'Taxonomy Rewrite', 'yit' ),
|
1083 |
+
'desc' => __( 'Set univocal name for each category page URL.', 'yit' ),
|
1084 |
'type' => 'text',
|
1085 |
'std' => '' ),
|
1086 |
|
1628 |
var button = $('<a />', {
|
1629 |
href: '#',
|
1630 |
class: 'multi-uploader add-new-h2',
|
1631 |
+
'data-uploader_title': '<?php printf( __( 'Add %s from images', 'yit' ), $label_plural ) ?>',
|
1632 |
'data-uploader_button_text': '<?php printf( __( 'Add %s', 'yit' ), $label_plural ) ?>'
|
1633 |
}).text('<?php _e( 'Add with multiupload', 'yit' ) ?>');
|
1634 |
|
plugin-fw/lib/yit-metabox.php
CHANGED
@@ -30,7 +30,7 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
|
|
30 |
* 'fields' => array(
|
31 |
* 'meta_checkbox' => array(
|
32 |
* 'label' => __( 'Show title', 'yit' ),
|
33 |
-
* 'desc' => __( 'Show
|
34 |
* 'type' => 'checkbox',
|
35 |
* 'private' => false,
|
36 |
* 'std' => '1'),
|
30 |
* 'fields' => array(
|
31 |
* 'meta_checkbox' => array(
|
32 |
* 'label' => __( 'Show title', 'yit' ),
|
33 |
+
* 'desc' => __( 'Show title of the page or not.', 'yit' ),
|
34 |
* 'type' => 'checkbox',
|
35 |
* 'private' => false,
|
36 |
* 'std' => '1'),
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -121,7 +121,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
121 |
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
122 |
*/
|
123 |
public function yit_videobox( $args = array() ) {
|
124 |
-
if ( !empty( $args ) ) {
|
125 |
extract( $args );
|
126 |
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-videobox.php' );
|
127 |
}
|
@@ -262,6 +262,26 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
262 |
}
|
263 |
}
|
264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
/**
|
266 |
* Update options
|
267 |
*
|
@@ -322,7 +342,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
322 |
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 );
|
323 |
wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
|
324 |
wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
|
325 |
-
'i18n_nav_warning' => __( 'The changes you made will be lost if you leave this page.', 'yit' )
|
326 |
) );
|
327 |
}
|
328 |
|
121 |
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
122 |
*/
|
123 |
public function yit_videobox( $args = array() ) {
|
124 |
+
if ( ! empty( $args ) ) {
|
125 |
extract( $args );
|
126 |
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-videobox.php' );
|
127 |
}
|
262 |
}
|
263 |
}
|
264 |
|
265 |
+
/**
|
266 |
+
* Fire the action to print the custom tab
|
267 |
+
*
|
268 |
+
* @param $current_tab string
|
269 |
+
*
|
270 |
+
* @return void
|
271 |
+
* @since 1.0
|
272 |
+
* @author Antonino Scarfì <antonino.scarfi@yithemes.com>
|
273 |
+
*/
|
274 |
+
public function print_video_box() {
|
275 |
+
$file = $this->settings['options-path'] . '/video-box.php';
|
276 |
+
|
277 |
+
if ( ! file_exists( $file ) ) {
|
278 |
+
return;
|
279 |
+
}
|
280 |
+
|
281 |
+
$args = include_once( $file );
|
282 |
+
$this->yit_videobox( $args );
|
283 |
+
}
|
284 |
+
|
285 |
/**
|
286 |
* Update options
|
287 |
*
|
342 |
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 );
|
343 |
wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
|
344 |
wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
|
345 |
+
'i18n_nav_warning' => __( 'The changes you have made will be lost if you leave this page.', 'yit' )
|
346 |
) );
|
347 |
}
|
348 |
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -271,9 +271,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
271 |
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
|
272 |
</form>
|
273 |
<form method="post">
|
274 |
-
<?php $warning = __( 'If you
|
275 |
<input type="hidden" name="yit-action" value="reset" />
|
276 |
-
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure
|
277 |
</form>
|
278 |
<p> </p>
|
279 |
<?php endif ?>
|
@@ -407,7 +407,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
407 |
public function message() {
|
408 |
|
409 |
$message = array(
|
410 |
-
'element_exists' => $this->get_message( '<strong>' . __( 'The element you have
|
411 |
'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yit' ) . '.</strong>', 'updated', false ),
|
412 |
'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yit' ) . '.</strong>', 'updated', false ),
|
413 |
'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
@@ -415,7 +415,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
415 |
'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
416 |
'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
417 |
'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yit' ) . '</strong>', 'error', false ),
|
418 |
-
'file-not-valid' => $this->get_message( '<strong>' . __( 'The file
|
419 |
'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yit' ) . '</strong>', 'error', false ),
|
420 |
'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yit' ) . '</strong>', 'updated', false )
|
421 |
);
|
@@ -467,6 +467,11 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
467 |
|
468 |
foreach ( ( array ) glob( $option_files_path . '*.php' ) as $filename ) {
|
469 |
preg_match( '/(.*)-options\.(.*)/', basename( $filename ), $filename_parts );
|
|
|
|
|
|
|
|
|
|
|
470 |
$tab = $filename_parts[1];
|
471 |
|
472 |
$tabs[$tab] = $filename;
|
271 |
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
|
272 |
</form>
|
273 |
<form method="post">
|
274 |
+
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yit' ) ?>
|
275 |
<input type="hidden" name="yit-action" value="reset" />
|
276 |
+
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
|
277 |
</form>
|
278 |
<p> </p>
|
279 |
<?php endif ?>
|
407 |
public function message() {
|
408 |
|
409 |
$message = array(
|
410 |
+
'element_exists' => $this->get_message( '<strong>' . __( 'The element you have entered already exists. Please, enter another name.', 'yit' ) . '</strong>', 'error', false ),
|
411 |
'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yit' ) . '.</strong>', 'updated', false ),
|
412 |
'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yit' ) . '.</strong>', 'updated', false ),
|
413 |
'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
415 |
'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
416 |
'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yit' ) . '</strong>', 'updated', false ),
|
417 |
'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yit' ) . '</strong>', 'error', false ),
|
418 |
+
'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yit' ) . '</strong>', 'error', false ),
|
419 |
'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yit' ) . '</strong>', 'error', false ),
|
420 |
'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yit' ) . '</strong>', 'updated', false )
|
421 |
);
|
467 |
|
468 |
foreach ( ( array ) glob( $option_files_path . '*.php' ) as $filename ) {
|
469 |
preg_match( '/(.*)-options\.(.*)/', basename( $filename ), $filename_parts );
|
470 |
+
|
471 |
+
if ( ! isset( $filename_parts[1] ) ) {
|
472 |
+
continue;
|
473 |
+
}
|
474 |
+
|
475 |
$tab = $filename_parts[1];
|
476 |
|
477 |
$tabs[$tab] = $filename;
|
plugin-fw/lib/yit-plugin-subpanel.php
CHANGED
@@ -142,9 +142,9 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
|
|
142 |
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
|
143 |
</form>
|
144 |
<form method="post">
|
145 |
-
<?php $warning = __( 'If you
|
146 |
<input type="hidden" name="yit-action" value="reset" />
|
147 |
-
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure
|
148 |
</form>
|
149 |
<p> </p>
|
150 |
<?php endif ?>
|
142 |
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
|
143 |
</form>
|
144 |
<form method="post">
|
145 |
+
<?php $warning = __( 'If you continue with this action, you will reset all the options in this page.', 'yit' ) ?>
|
146 |
<input type="hidden" name="yit-action" value="reset" />
|
147 |
+
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
|
148 |
</form>
|
149 |
<p> </p>
|
150 |
<?php endif ?>
|
plugin-fw/lib/yit-pointers.php
CHANGED
@@ -82,9 +82,9 @@ if ( ! class_exists( 'YIT_Pointers' ) ) {
|
|
82 |
'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
|
83 |
<a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
|
84 |
__( 'Plugins Upgraded', 'yit' ),
|
85 |
-
__( 'From now on, you can find all
|
86 |
Any time one of our plugins is updated, a new entry will be added to this menu.
|
87 |
-
For example, after update, plugin options (such for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)
|
88 |
will be moved from previous location to YIT Plugin tab.', 'yit' ),
|
89 |
__( 'Discover all our plugins available on:', 'yit' ),
|
90 |
__( 'and', 'yit' )
|
82 |
'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
|
83 |
<a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
|
84 |
__( 'Plugins Upgraded', 'yit' ),
|
85 |
+
__( 'From now on, you can find all options of your plugins in YIT Plugin menu.
|
86 |
Any time one of our plugins is updated, a new entry will be added to this menu.
|
87 |
+
For example, after the update, plugin options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)
|
88 |
will be moved from previous location to YIT Plugin tab.', 'yit' ),
|
89 |
__( 'Discover all our plugins available on:', 'yit' ),
|
90 |
__( 'and', 'yit' )
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -119,7 +119,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
119 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yit' ),
|
120 |
'latest' => __( 'View version %latest% details.', 'yit' ),
|
121 |
'unavailable' => __( 'Automatic update is unavailable for this plugin,', 'yit' ),
|
122 |
-
'activate' => __( 'please <a href="%activate_link%">
|
123 |
'update_now' => __( 'Update now.', 'yit' )
|
124 |
|
125 |
);
|
@@ -490,11 +490,11 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
490 |
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
|
491 |
|
492 |
if( 'upgrade-plugin-multisite' != $action ){
|
493 |
-
wp_die( __( 'You can\'t update plugins for this site.', 'yit' ) );
|
494 |
}
|
495 |
|
496 |
if ( ! current_user_can( 'update_plugins' ) ) {
|
497 |
-
wp_die( __( 'You do not have sufficient permissions to update plugins for this site.', 'yit' ) );
|
498 |
}
|
499 |
|
500 |
$this->check_update( get_site_transient( 'update_plugins') , true );
|
119 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yit' ),
|
120 |
'latest' => __( 'View version %latest% details.', 'yit' ),
|
121 |
'unavailable' => __( 'Automatic update is unavailable for this plugin,', 'yit' ),
|
122 |
+
'activate' => __( 'please <a href="%activate_link%">activate</a> your copy of %plugin_name%.', 'yit' ),
|
123 |
'update_now' => __( 'Update now.', 'yit' )
|
124 |
|
125 |
);
|
490 |
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
|
491 |
|
492 |
if( 'upgrade-plugin-multisite' != $action ){
|
493 |
+
wp_die( __( 'You can\'t update the plugins for this site.', 'yit' ) );
|
494 |
}
|
495 |
|
496 |
if ( ! current_user_can( 'update_plugins' ) ) {
|
497 |
+
wp_die( __( 'You do not have sufficient permissions to update the plugins for this site.', 'yit' ) );
|
498 |
}
|
499 |
|
500 |
$this->check_update( get_site_transient( 'update_plugins') , true );
|
plugin-fw/templates/panel/woocommerce/woocommerce-form.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
<input style="float: left; margin-right: 10px;" class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yit' )?>"/>
|
6 |
</form>
|
7 |
<form id="plugin-fw-wc-reset" method="post">
|
8 |
-
<?php $warning = __( 'If you
|
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', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure
|
11 |
</form>
|
12 |
</div>
|
5 |
<input style="float: left; margin-right: 10px;" class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yit' )?>"/>
|
6 |
</form>
|
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.', 'yit' ) ?>
|
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', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
|
11 |
</form>
|
12 |
</div>
|
plugin-fw/yit-functions.php
CHANGED
@@ -272,7 +272,7 @@ if ( ! function_exists( 'yit_plugin_get_attachment_id' ) ) {
|
|
272 |
|
273 |
foreach ( $ids as $id ) {
|
274 |
$attachment_image = wp_get_attachment_image_src( $id, 'full' );
|
275 |
-
if ( $url == str_replace( 'https://', 'http://', array_shift( $attachment_image ) ) ) {
|
276 |
return $id;
|
277 |
}
|
278 |
}
|
272 |
|
273 |
foreach ( $ids as $id ) {
|
274 |
$attachment_image = wp_get_attachment_image_src( $id, 'full' );
|
275 |
+
if ( $url == array_shift( $attachment_image ) || $url == str_replace( 'https://', 'http://', array_shift( $attachment_image ) ) ) {
|
276 |
return $id;
|
277 |
}
|
278 |
}
|