Version Description
- New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- admin/html/menu.html +65 -0
- featured-image-from-url.php +2 -2
- includes/attachment.php +9 -2
- includes/thumbnail.php +5 -0
- readme.txt +11 -3
admin/html/menu.html
CHANGED
@@ -2040,6 +2040,26 @@
|
|
2040 |
</tr>
|
2041 |
</table>
|
2042 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2043 |
</div>
|
2044 |
<div id="tabs-i">
|
2045 |
<div class="box">
|
@@ -2973,6 +2993,51 @@
|
|
2973 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2974 |
</div>
|
2975 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2976 |
<div class="box">
|
2977 |
<table>
|
2978 |
<tr>
|
2040 |
</tr>
|
2041 |
</table>
|
2042 |
</div>
|
2043 |
+
<div class="box">
|
2044 |
+
<h2>Media RSS Tags</h2>
|
2045 |
+
<div class="greybox" id="grad2">
|
2046 |
+
<b>Premium feature</b><br><br>
|
2047 |
+
Inserts Media RSS tags in the RSS feed. This way, services that make use of RSS, such as Google News, can show the external featured images.
|
2048 |
+
</div>
|
2049 |
+
<br>
|
2050 |
+
<table style="text-align:left">
|
2051 |
+
<tr>
|
2052 |
+
<th>
|
2053 |
+
<input
|
2054 |
+
type="submit"
|
2055 |
+
href="javascript:void(0)"
|
2056 |
+
class="toggleoff"
|
2057 |
+
value=""
|
2058 |
+
style="display:block;border:none">
|
2059 |
+
</th>
|
2060 |
+
</tr>
|
2061 |
+
</table>
|
2062 |
+
</div>
|
2063 |
</div>
|
2064 |
<div id="tabs-i">
|
2065 |
<div class="box">
|
2993 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2994 |
</div>
|
2995 |
</div>
|
2996 |
+
<div class="box">
|
2997 |
+
<table>
|
2998 |
+
<tr>
|
2999 |
+
<td style="border-bottom:none">2020-05-12</td>
|
3000 |
+
<td style="border-bottom:none"><h3> WooCommerce</h3></td>
|
3001 |
+
<td style="border-bottom:none">plugin</td>
|
3002 |
+
</tr>
|
3003 |
+
</table>
|
3004 |
+
<div class="greybox" style="position: relative; top: -10px">
|
3005 |
+
Avoiding changes in the featured image of a product when the featured image of its copy changes:<br>
|
3006 |
+
1) open the duplicated product on editor;<br>
|
3007 |
+
2) click on "Product image > Remove product image";<br>
|
3008 |
+
3) click on "Product Image from URL > remove external featured image";<br>
|
3009 |
+
4) add the new image URL into "Product Image from URL" field;<br>
|
3010 |
+
5) publish.<br>
|
3011 |
+
</div>
|
3012 |
+
</div>
|
3013 |
+
<div class="box">
|
3014 |
+
<table>
|
3015 |
+
<tr>
|
3016 |
+
<td style="border-bottom:none">2020-05-10</td>
|
3017 |
+
<td style="border-bottom:none"><h3> Avada</h3></td>
|
3018 |
+
<td style="border-bottom:none">theme</td>
|
3019 |
+
</tr>
|
3020 |
+
</table>
|
3021 |
+
<div class="greybox" style="position: relative; top: -10px">
|
3022 |
+
The video controls don't work on WooCommerce product gallery:<br>
|
3023 |
+
1) access "Appearance > Avada > Customize > Additional CSS";<br>
|
3024 |
+
2) add ".avada-product-gallery .avada-product-gallery-lightbox-trigger {position:unset;}";<br>
|
3025 |
+
3) publish.<br>
|
3026 |
+
</div>
|
3027 |
+
</div>
|
3028 |
+
<div class="box">
|
3029 |
+
<table>
|
3030 |
+
<tr>
|
3031 |
+
<td style="border-bottom:none">2020-05-09</td>
|
3032 |
+
<td style="border-bottom:none"><h3> Post Sliders & Post Grids</h3></td>
|
3033 |
+
<td style="border-bottom:none">plugin</td>
|
3034 |
+
</tr>
|
3035 |
+
</table>
|
3036 |
+
<div class="greybox" style="position: relative; top: -10px">
|
3037 |
+
The post grid doesn't show external featured images:<br>
|
3038 |
+
x) there is no solution for now. "Post Sliders & Post Grids" only shows a featured image if that is stored in the media library. You may contact the author or install an alternative plugin, like <a href="https://wordpress.org/plugins/content-views-query-and-display-post-page/">this</a>.<br>
|
3039 |
+
</div>
|
3040 |
+
</div>
|
3041 |
<div class="box">
|
3042 |
<table>
|
3043 |
<tr>
|
featured-image-from-url.php
CHANGED
@@ -4,11 +4,11 @@
|
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
-
* Version: 3.0.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
11 |
-
* WC tested up to: 4.0
|
12 |
*/
|
13 |
|
14 |
define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
+
* Version: 3.0.6
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
11 |
+
* WC tested up to: 4.1.0
|
12 |
*/
|
13 |
|
14 |
define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
includes/attachment.php
CHANGED
@@ -19,9 +19,16 @@ function fifu_replace_attachment_url($att_url, $att_id) {
|
|
19 |
if (sizeof($url) > 1)
|
20 |
return fifu_has_internal_image_path($url[1]) ? get_post($att_id)->guid : $url[1];
|
21 |
else {
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
return $att_url;
|
|
|
25 |
|
26 |
if (!fifu_reject_guid())
|
27 |
return get_post($att_id)->guid;
|
19 |
if (sizeof($url) > 1)
|
20 |
return fifu_has_internal_image_path($url[1]) ? get_post($att_id)->guid : $url[1];
|
21 |
else {
|
22 |
+
$post = get_post($att_id);
|
23 |
+
if ($post) {
|
24 |
+
if ($att_url && strpos($att_url, 'http') === 0) {
|
25 |
+
if ($post->post_parent) {
|
26 |
+
$url = fifu_main_image_url($post->post_parent);
|
27 |
+
if ($url)
|
28 |
+
return $url;
|
29 |
+
}
|
30 |
return $att_url;
|
31 |
+
}
|
32 |
|
33 |
if (!fifu_reject_guid())
|
34 |
return get_post($att_id)->guid;
|
includes/thumbnail.php
CHANGED
@@ -11,6 +11,7 @@ if (!in_array($pagenow, array('post.php', 'post-new.php', 'admin-ajax.php', 'wp-
|
|
11 |
if (is_plugin_active('wordpress-seo/wp-seo.php')) {
|
12 |
add_action('wpseo_opengraph_image', 'fifu_add_social_tag_yoast');
|
13 |
add_action('wpseo_twitter_image', 'fifu_add_social_tag_yoast');
|
|
|
14 |
} else
|
15 |
add_filter('wp_head', 'fifu_add_social_tags');
|
16 |
}
|
@@ -42,6 +43,10 @@ function fifu_add_social_tag_yoast() {
|
|
42 |
return fifu_main_image_url(get_the_ID());
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
45 |
function fifu_add_social_tags() {
|
46 |
$post_id = get_the_ID();
|
47 |
$url = fifu_main_image_url($post_id);
|
11 |
if (is_plugin_active('wordpress-seo/wp-seo.php')) {
|
12 |
add_action('wpseo_opengraph_image', 'fifu_add_social_tag_yoast');
|
13 |
add_action('wpseo_twitter_image', 'fifu_add_social_tag_yoast');
|
14 |
+
add_action('wpseo_add_opengraph_images', 'fifu_add_social_tag_yoast_list');
|
15 |
} else
|
16 |
add_filter('wp_head', 'fifu_add_social_tags');
|
17 |
}
|
43 |
return fifu_main_image_url(get_the_ID());
|
44 |
}
|
45 |
|
46 |
+
function fifu_add_social_tag_yoast_list($object) {
|
47 |
+
$object->add_image(fifu_main_image_url(get_the_ID()));
|
48 |
+
}
|
49 |
+
|
50 |
function fifu_add_social_tags() {
|
51 |
$post_id = get_the_ID();
|
52 |
$url = fifu_main_image_url($post_id);
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: marceljm
|
3 |
Donate link: https://donorbox.org/fifu
|
4 |
-
Tags: featured image, image, featured, url, external, external featured image, featured image from url, url featured image, 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, 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,
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -66,7 +66,9 @@ Features:
|
|
66 |
|
67 |
* replaces broken URLs by a default one (**premium feature**);
|
68 |
|
69 |
-
* defines Unsplash image sizes (**premium feature**)
|
|
|
|
|
70 |
|
71 |
**<a href="https://fifu.app/">Official Site</a>**
|
72 |
**<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome Extension</a>**
|
@@ -164,6 +166,9 @@ Features:
|
|
164 |
|
165 |
== Changelog ==
|
166 |
|
|
|
|
|
|
|
167 |
= 3.0.5 =
|
168 |
* Improvement (Premium): Video Thumbnail Height option was not responsive and was replaced by Crop Top and Bottom (%); Bug Fix: Twitter Social Tag was not being added when Yoast SEO plugin is installed; Bug fix: Hide Featured Media was unduly working for a page used as front page.
|
169 |
|
@@ -749,6 +754,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
749 |
|
750 |
== Upgrade Notice ==
|
751 |
|
|
|
|
|
|
|
752 |
= 3.0.5 =
|
753 |
* Improvement (Premium): Video Thumbnail Height option was not responsive and was replaced by Crop Top and Bottom (%); Bug Fix: Twitter Social Tag was not being added when Yoast SEO plugin is installed; Bug fix: Hide Featured Media was unduly working for a page used as front page.
|
754 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: marceljm
|
3 |
Donate link: https://donorbox.org/fifu
|
4 |
+
Tags: featured image, image, featured, url, external, external featured image, featured image from url, url featured image, 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, 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, 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, publitio, 9gag, wcfm, add-on, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf, rss, media, tag
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 3.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
66 |
|
67 |
* replaces broken URLs by a default one (**premium feature**);
|
68 |
|
69 |
+
* defines Unsplash image sizes (**premium feature**);
|
70 |
+
|
71 |
+
* adds media RSS tags (**premium feature**).
|
72 |
|
73 |
**<a href="https://fifu.app/">Official Site</a>**
|
74 |
**<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome Extension</a>**
|
166 |
|
167 |
== Changelog ==
|
168 |
|
169 |
+
= 3.0.6 =
|
170 |
+
* New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
|
171 |
+
|
172 |
= 3.0.5 =
|
173 |
* Improvement (Premium): Video Thumbnail Height option was not responsive and was replaced by Crop Top and Bottom (%); Bug Fix: Twitter Social Tag was not being added when Yoast SEO plugin is installed; Bug fix: Hide Featured Media was unduly working for a page used as front page.
|
174 |
|
754 |
|
755 |
== Upgrade Notice ==
|
756 |
|
757 |
+
= 3.0.6 =
|
758 |
+
* New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
|
759 |
+
|
760 |
= 3.0.5 =
|
761 |
* Improvement (Premium): Video Thumbnail Height option was not responsive and was replaced by Crop Top and Bottom (%); Bug Fix: Twitter Social Tag was not being added when Yoast SEO plugin is installed; Bug fix: Hide Featured Media was unduly working for a page used as front page.
|
762 |
|