Version Description
- Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import."
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.8.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.1 to 2.8.2
- admin/html/js/menu.js +0 -29
- admin/html/js/rest-route.js +28 -0
- admin/html/menu.html +8 -23
- admin/html/support-data.html +11 -2
- admin/menu.php +10 -0
- admin/wai-addon.php +4 -2
- featured-image-from-url.php +1 -1
- readme.txt +7 -1
admin/html/js/menu.js
CHANGED
@@ -221,32 +221,3 @@ function fifu_clean_dimensions_all_js() {
|
|
221 |
}
|
222 |
});
|
223 |
}
|
224 |
-
|
225 |
-
function fifu_get_rest_url() {
|
226 |
-
var out = null;
|
227 |
-
error = false;
|
228 |
-
jQuery.ajax({
|
229 |
-
method: "POST",
|
230 |
-
url: fifuScriptVars.homeUrl + '/wp-json/featured-image-from-url/v2/rest_url_api/',
|
231 |
-
async: false,
|
232 |
-
success: function (data) {
|
233 |
-
out = data;
|
234 |
-
},
|
235 |
-
error: function (jqXHR, textStatus, errorThrown) {
|
236 |
-
error = true;
|
237 |
-
}
|
238 |
-
});
|
239 |
-
if (error) {
|
240 |
-
jQuery.ajax({
|
241 |
-
method: "POST",
|
242 |
-
url: fifuScriptVars.homeUrl + '?rest_route=/featured-image-from-url/v2/rest_url_api/',
|
243 |
-
async: false,
|
244 |
-
success: function (data) {
|
245 |
-
out = data;
|
246 |
-
},
|
247 |
-
error: function (jqXHR, textStatus, errorThrown) {
|
248 |
-
}
|
249 |
-
});
|
250 |
-
}
|
251 |
-
return out;
|
252 |
-
}
|
221 |
}
|
222 |
});
|
223 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/js/rest-route.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fifu_get_rest_url() {
|
2 |
+
var out = null;
|
3 |
+
error = false;
|
4 |
+
jQuery.ajax({
|
5 |
+
method: "POST",
|
6 |
+
url: fifuScriptVars.homeUrl + '/wp-json/featured-image-from-url/v2/rest_url_api/',
|
7 |
+
async: false,
|
8 |
+
success: function (data) {
|
9 |
+
out = data;
|
10 |
+
},
|
11 |
+
error: function (jqXHR, textStatus, errorThrown) {
|
12 |
+
error = true;
|
13 |
+
}
|
14 |
+
});
|
15 |
+
if (error) {
|
16 |
+
jQuery.ajax({
|
17 |
+
method: "POST",
|
18 |
+
url: fifuScriptVars.homeUrl + '?rest_route=/featured-image-from-url/v2/rest_url_api/',
|
19 |
+
async: false,
|
20 |
+
success: function (data) {
|
21 |
+
out = data;
|
22 |
+
},
|
23 |
+
error: function (jqXHR, textStatus, errorThrown) {
|
24 |
+
}
|
25 |
+
});
|
26 |
+
}
|
27 |
+
return out;
|
28 |
+
}
|
admin/html/menu.html
CHANGED
@@ -447,7 +447,7 @@
|
|
447 |
style="display:block;border:none">
|
448 |
</th>
|
449 |
<th>
|
450 |
-
|
451 |
</th>
|
452 |
</tr>
|
453 |
</table>
|
@@ -2278,7 +2278,10 @@
|
|
2278 |
<h2>Variable Product</h2>
|
2279 |
<div class="greybox" id="grad2">
|
2280 |
<b>Premium feature</b><br><br>
|
2281 |
-
|
|
|
|
|
|
|
2282 |
</div>
|
2283 |
<br>
|
2284 |
<table style="text-align:left">
|
@@ -2296,26 +2299,9 @@
|
|
2296 |
</form>
|
2297 |
</th>
|
2298 |
<th>
|
2299 |
-
allows to use external images in product variations
|
2300 |
</th>
|
2301 |
-
</tr>
|
2302 |
-
<tr>
|
2303 |
-
<th>
|
2304 |
-
<form
|
2305 |
-
action="javascript:void(0)"
|
2306 |
-
method="post">
|
2307 |
-
<input
|
2308 |
-
type="submit"
|
2309 |
-
href="javascript:void(0)"
|
2310 |
-
class="toggleoff"
|
2311 |
-
value=""
|
2312 |
-
style="display:block;border:none" >
|
2313 |
-
</form>
|
2314 |
-
</th>
|
2315 |
-
<th>
|
2316 |
-
allows to use a different image gallery for each product variation (only for WooCommerce Rest API users)
|
2317 |
-
</th>
|
2318 |
-
</tr>
|
2319 |
</table>
|
2320 |
</div>
|
2321 |
|
@@ -2575,12 +2561,11 @@
|
|
2575 |
</div>
|
2576 |
</div>
|
2577 |
<div class="box">
|
2578 |
-
<h2><a class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu" target="_blank">Donate </a> $ 1 to take this project to the next level <span class="dashicons dashicons-info" style="font-size: 25px;" title="Donate with a Card, Apple Pay, Google Pay, Stripe, PayPal and more. No account required."></span></h2>
|
2579 |
<div class="greybox">
|
2580 |
<a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a>
|
2581 |
<div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And <b>thanks to FIFU you keep saving money on storage, processing and copyright</b>. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. Important performance and automation features aren't done yet while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
|
2582 |
</div>
|
2583 |
-
<script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe frameborder="0" height="93px" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/fifu?donation_meter_color=%2341a2d8&only_donation_meter=true" style="width:100% !important; max-height:none!important;" width="100%"></iframe>
|
2584 |
</div>
|
2585 |
<div class="box">
|
2586 |
<h2>Getting Started (external Featured Images)</h2>
|
447 |
style="display:block;border:none">
|
448 |
</th>
|
449 |
<th>
|
450 |
+
if the crop doesn't work, use a Selector to inform where is the group of external images that you want to crop.
|
451 |
</th>
|
452 |
</tr>
|
453 |
</table>
|
2278 |
<h2>Variable Product</h2>
|
2279 |
<div class="greybox" id="grad2">
|
2280 |
<b>Premium feature</b><br><br>
|
2281 |
+
Enable external image fields for product variations.
|
2282 |
+
<br>
|
2283 |
+
<br>
|
2284 |
+
Important: variation image gallery requires <a href="https://woocommerce.com/products/woocommerce-additional-variation-images/" target="_blank">WooCommerce Additional Variation Images</a> plugin. Unofficial solutions are not supported.
|
2285 |
</div>
|
2286 |
<br>
|
2287 |
<table style="text-align:left">
|
2299 |
</form>
|
2300 |
</th>
|
2301 |
<th>
|
2302 |
+
allows to use external images and galleries of external images in product variations
|
2303 |
</th>
|
2304 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2305 |
</table>
|
2306 |
</div>
|
2307 |
|
2561 |
</div>
|
2562 |
</div>
|
2563 |
<div class="box">
|
2564 |
+
<h2><a class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu" target="_blank">Donate </a> $ 1 / year to take this project to the next level <span class="dashicons dashicons-info" style="font-size: 25px;" title="Donate with a Card, Apple Pay, Google Pay, Stripe, PayPal and more. No account required."></span></h2>
|
2565 |
<div class="greybox">
|
2566 |
<a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a>
|
2567 |
<div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And <b>thanks to FIFU you keep saving money on storage, processing and copyright</b>. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. Important performance and automation features aren't done yet while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
|
2568 |
</div>
|
|
|
2569 |
</div>
|
2570 |
<div class="box">
|
2571 |
<h2>Getting Started (external Featured Images)</h2>
|
admin/html/support-data.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
</div>
|
6 |
|
7 |
<div id="tabs-top">
|
8 |
-
|
9 |
Version:<?php echo fifu_version() ?>;
|
10 |
Site:<?php echo get_home_url() ?>;
|
11 |
Theme:<?php echo wp_get_theme() ?><?php echo fifu_woo_theme() ? ' (WooCommerce)' : '' ?>;
|
@@ -67,6 +67,15 @@ fifu_social:<?php echo $enable_social ?>;
|
|
67 |
fifu_spinner_db:<?php echo $max_db ?>;
|
68 |
fifu_wc_lbox:<?php echo $enable_wc_lbox ?>;
|
69 |
fifu_wc_zoom:<?php echo $enable_wc_zoom ?>;
|
70 |
-
|
|
|
|
|
71 |
</div>
|
72 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
</div>
|
6 |
|
7 |
<div id="tabs-top">
|
8 |
+
<textarea id="bar" style="width:1020px;height:800px;resize:none;background-color:white;" readonly>
|
9 |
Version:<?php echo fifu_version() ?>;
|
10 |
Site:<?php echo get_home_url() ?>;
|
11 |
Theme:<?php echo wp_get_theme() ?><?php echo fifu_woo_theme() ? ' (WooCommerce)' : '' ?>;
|
67 |
fifu_spinner_db:<?php echo $max_db ?>;
|
68 |
fifu_wc_lbox:<?php echo $enable_wc_lbox ?>;
|
69 |
fifu_wc_zoom:<?php echo $enable_wc_zoom ?>;
|
70 |
+
REST Routes:
|
71 |
+
- <?php echo get_rest_url() ?>:PHP;
|
72 |
+
</textarea>
|
73 |
</div>
|
74 |
</div>
|
75 |
+
|
76 |
+
<script>
|
77 |
+
jQuery(document).ready(function () {
|
78 |
+
var box = jQuery("#bar");
|
79 |
+
box.val(box.val() + '- ' + fifu_get_rest_url().substring(0, 100) + ':JS');
|
80 |
+
});
|
81 |
+
</script>
|
admin/menu.php
CHANGED
@@ -11,6 +11,8 @@ function fifu_insert_menu() {
|
|
11 |
wp_enqueue_script('jquery-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js');
|
12 |
wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js');
|
13 |
wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
|
|
|
|
|
14 |
}
|
15 |
|
16 |
add_menu_page('Featured Image from URL', 'Featured Image from URL', 'manage_options', 'featured-image-from-url', 'fifu_get_menu_html', 'dashicons-camera', 57);
|
@@ -23,6 +25,14 @@ function fifu_insert_menu() {
|
|
23 |
function fifu_support_data() {
|
24 |
// css
|
25 |
wp_enqueue_style('fifu-menu-css', plugins_url('/html/css/menu.css', __FILE__));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
$enable_social = get_option('fifu_social');
|
28 |
$enable_original = get_option('fifu_original');
|
11 |
wp_enqueue_script('jquery-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js');
|
12 |
wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js');
|
13 |
wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
|
14 |
+
|
15 |
+
wp_enqueue_script('fifu-rest-route-js', plugins_url('/html/js/rest-route.js', __FILE__));
|
16 |
}
|
17 |
|
18 |
add_menu_page('Featured Image from URL', 'Featured Image from URL', 'manage_options', 'featured-image-from-url', 'fifu_get_menu_html', 'dashicons-camera', 57);
|
25 |
function fifu_support_data() {
|
26 |
// css
|
27 |
wp_enqueue_style('fifu-menu-css', plugins_url('/html/css/menu.css', __FILE__));
|
28 |
+
wp_enqueue_script('fifu-rest-route-js', plugins_url('/html/js/rest-route.js', __FILE__));
|
29 |
+
|
30 |
+
// register custom variables for the AJAX script
|
31 |
+
wp_localize_script('fifu-rest-route-js', 'fifuScriptVars', [
|
32 |
+
'restUrl' => esc_url_raw(rest_url()),
|
33 |
+
'homeUrl' => esc_url_raw(home_url()),
|
34 |
+
'nonce' => wp_create_nonce('wp_rest'),
|
35 |
+
]);
|
36 |
|
37 |
$enable_social = get_option('fifu_social');
|
38 |
$enable_original = get_option('fifu_original');
|
admin/wai-addon.php
CHANGED
@@ -17,8 +17,10 @@ function fifu_wai_addon_save($post_id, $data, $import_options, $article) {
|
|
17 |
if (!empty($data['fifu_image_alt']))
|
18 |
array_push($fields, 'fifu_image_alt');
|
19 |
|
20 |
-
if (empty($fields))
|
21 |
-
|
|
|
|
|
22 |
|
23 |
$update = false;
|
24 |
foreach ($fields as $field) {
|
17 |
if (!empty($data['fifu_image_alt']))
|
18 |
array_push($fields, 'fifu_image_alt');
|
19 |
|
20 |
+
if (empty($fields)) {
|
21 |
+
if (fifu_is_off('fifu_enable_default_url'))
|
22 |
+
return;
|
23 |
+
}
|
24 |
|
25 |
$update = false;
|
26 |
foreach ($fields as $field) {
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
-
* Version: 2.8.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
+
* Version: 2.8.2
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm, add-on
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -159,6 +159,9 @@ Features:
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 2.8.1 =
|
163 |
* New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
|
164 |
|
@@ -672,6 +675,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
672 |
|
673 |
== Upgrade Notice ==
|
674 |
|
|
|
|
|
|
|
675 |
= 2.8.1 =
|
676 |
* New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
|
677 |
|
4 |
Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm, add-on
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 2.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 2.8.2 =
|
163 |
+
* Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import."
|
164 |
+
|
165 |
= 2.8.1 =
|
166 |
* New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
|
167 |
|
675 |
|
676 |
== Upgrade Notice ==
|
677 |
|
678 |
+
= 2.8.2 =
|
679 |
+
* Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import."
|
680 |
+
|
681 |
= 2.8.1 =
|
682 |
* New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
|
683 |
|