Version Description
- Improvement: added support to videos from JW Player, Sprout and WooCommerce.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.5.7 |
Comparing to | |
See all releases |
Code changes from version 3.5.6 to 3.5.7
- admin/html/menu.html +74 -0
- admin/strings.php +27 -6
- featured-image-from-url.php +2 -2
- includes/attachment.php +1 -1
- includes/jetpack.php +9 -0
- readme.txt +7 -7
admin/html/menu.html
CHANGED
@@ -966,6 +966,40 @@
|
|
966 |
500, 1000, 1500...
|
967 |
</th>
|
968 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
969 |
<tr class="color">
|
970 |
<th>
|
971 |
<?php $fifu['tab']['video']() ?>
|
@@ -3505,6 +3539,32 @@
|
|
3505 |
<?php $fifu['slider']['duration']() ?>
|
3506 |
</th>
|
3507 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3508 |
<tr>
|
3509 |
<th>
|
3510 |
<input type="submit" disabled value="<?php $fifu['button']['ok']() ?>" style="width:73px">
|
@@ -4528,6 +4588,20 @@
|
|
4528 |
</div>
|
4529 |
</div>
|
4530 |
<div id="tabs-t">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4531 |
<div class="box">
|
4532 |
<table>
|
4533 |
<tr>
|
966 |
500, 1000, 1500...
|
967 |
</th>
|
968 |
</tr>
|
969 |
+
<tr class="color">
|
970 |
+
<th>
|
971 |
+
<?php $fifu['tab']['slider']() ?>
|
972 |
+
</th>
|
973 |
+
<th>
|
974 |
+
<?php $fifu['title']['slider']() ?>
|
975 |
+
</th>
|
976 |
+
<th>
|
977 |
+
<?php $fifu['slider']['left']() ?>
|
978 |
+
</th>
|
979 |
+
<th>
|
980 |
+
wp fifu slider --left <string>
|
981 |
+
</th>
|
982 |
+
<th>
|
983 |
+
https://...
|
984 |
+
</th>
|
985 |
+
</tr>
|
986 |
+
<tr class="color">
|
987 |
+
<th>
|
988 |
+
<?php $fifu['tab']['slider']() ?>
|
989 |
+
</th>
|
990 |
+
<th>
|
991 |
+
<?php $fifu['title']['slider']() ?>
|
992 |
+
</th>
|
993 |
+
<th>
|
994 |
+
<?php $fifu['slider']['right']() ?>
|
995 |
+
</th>
|
996 |
+
<th>
|
997 |
+
wp fifu slider --right <string>
|
998 |
+
</th>
|
999 |
+
<th>
|
1000 |
+
https://...
|
1001 |
+
</th>
|
1002 |
+
</tr>
|
1003 |
<tr class="color">
|
1004 |
<th>
|
1005 |
<?php $fifu['tab']['video']() ?>
|
3539 |
<?php $fifu['slider']['duration']() ?>
|
3540 |
</th>
|
3541 |
</tr>
|
3542 |
+
<tr>
|
3543 |
+
<th>
|
3544 |
+
<?php $fifu['slider']['left']() ?>
|
3545 |
+
</th>
|
3546 |
+
<th>
|
3547 |
+
<input id="fifu_input_slider_left"
|
3548 |
+
type="text"
|
3549 |
+
name="fifu_input_slider_left"
|
3550 |
+
style="width:250px"
|
3551 |
+
placeholder="<?php $fifu['slider']['optional']() ?>"
|
3552 |
+
value="">
|
3553 |
+
</th>
|
3554 |
+
</tr>
|
3555 |
+
<tr>
|
3556 |
+
<th>
|
3557 |
+
<?php $fifu['slider']['right']() ?>
|
3558 |
+
</th>
|
3559 |
+
<th>
|
3560 |
+
<input id="fifu_input_slider_right"
|
3561 |
+
type="text"
|
3562 |
+
name="fifu_input_slider_right"
|
3563 |
+
style="width:250px"
|
3564 |
+
placeholder="<?php $fifu['slider']['optional']() ?>"
|
3565 |
+
value="">
|
3566 |
+
</th>
|
3567 |
+
</tr>
|
3568 |
<tr>
|
3569 |
<th>
|
3570 |
<input type="submit" disabled value="<?php $fifu['button']['ok']() ?>" style="width:73px">
|
4588 |
</div>
|
4589 |
</div>
|
4590 |
<div id="tabs-t">
|
4591 |
+
<div class="box">
|
4592 |
+
<table>
|
4593 |
+
<tr>
|
4594 |
+
<td style="border-bottom:none">2021-04-03</td>
|
4595 |
+
<td style="border-bottom:none"><h3> Woodmart</h3></td>
|
4596 |
+
<td style="border-bottom:none">theme</td>
|
4597 |
+
</tr>
|
4598 |
+
</table>
|
4599 |
+
<div class="greybox" style="position: relative; top: -10px">
|
4600 |
+
Product gallery doesn't work correctly. Two possible solutions:<br>
|
4601 |
+
a) run "FIFU Settings > Metadata > Save Image Dimensions";<br>
|
4602 |
+
b) enable "FIFU Settings > WooCommerce > FIFU Product Gallery".
|
4603 |
+
</div>
|
4604 |
+
</div>
|
4605 |
<div class="box">
|
4606 |
<table>
|
4607 |
<tr>
|
admin/strings.php
CHANGED
@@ -989,7 +989,7 @@ function fifu_get_strings_settings() {
|
|
989 |
_e("Performance tips", FIFU_SLUG);
|
990 |
};
|
991 |
$fifu['slider']['featured'] = function() {
|
992 |
-
_e("
|
993 |
};
|
994 |
$fifu['slider']['pause'] = function() {
|
995 |
_e("pause autoplay on hover", FIFU_SLUG);
|
@@ -1015,6 +1015,15 @@ function fifu_get_strings_settings() {
|
|
1015 |
$fifu['slider']['duration'] = function() {
|
1016 |
_e("transition duration (in ms)", FIFU_SLUG);
|
1017 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1018 |
|
1019 |
// social
|
1020 |
$fifu['social']['desc'] = function() {
|
@@ -1045,7 +1054,7 @@ function fifu_get_strings_settings() {
|
|
1045 |
|
1046 |
// video
|
1047 |
$fifu['video']['desc'] = function() {
|
1048 |
-
_e("FIFU supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr
|
1049 |
};
|
1050 |
|
1051 |
// thumbnail
|
@@ -1206,14 +1215,14 @@ function fifu_get_strings_settings() {
|
|
1206 |
|
1207 |
// key
|
1208 |
$fifu['key']['desc'] = function() {
|
1209 |
-
_e("Please insert your email and license key below to use this plugin without limitations.", FIFU_SLUG);
|
1210 |
-
};
|
1211 |
-
$fifu['key']['domain'] = function() {
|
1212 |
-
_e("if your domain has changed, please contact the support", FIFU_SLUG);
|
1213 |
};
|
1214 |
$fifu['key']['buy'] = function() {
|
1215 |
_e("if you intend to use FIFU in multiple distinct sites you can buy more license keys <a href='https://fifu.app/#price' target='_blank'>here</a>", FIFU_SLUG);
|
1216 |
};
|
|
|
|
|
|
|
1217 |
$fifu['key']['email'] = function() {
|
1218 |
_e("Email", FIFU_SLUG);
|
1219 |
};
|
@@ -1223,6 +1232,18 @@ function fifu_get_strings_settings() {
|
|
1223 |
$fifu['key']['key'] = function() {
|
1224 |
_e("License key", FIFU_SLUG);
|
1225 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1226 |
|
1227 |
return $fifu;
|
1228 |
}
|
989 |
_e("Performance tips", FIFU_SLUG);
|
990 |
};
|
991 |
$fifu['slider']['featured'] = function() {
|
992 |
+
_e("featured slider", FIFU_SLUG);
|
993 |
};
|
994 |
$fifu['slider']['pause'] = function() {
|
995 |
_e("pause autoplay on hover", FIFU_SLUG);
|
1015 |
$fifu['slider']['duration'] = function() {
|
1016 |
_e("transition duration (in ms)", FIFU_SLUG);
|
1017 |
};
|
1018 |
+
$fifu['slider']['left'] = function() {
|
1019 |
+
_e("Prev button", FIFU_SLUG);
|
1020 |
+
};
|
1021 |
+
$fifu['slider']['right'] = function() {
|
1022 |
+
_e("Next button", FIFU_SLUG);
|
1023 |
+
};
|
1024 |
+
$fifu['slider']['optional'] = function() {
|
1025 |
+
_e("image URL (optional)", FIFU_SLUG);
|
1026 |
+
};
|
1027 |
|
1028 |
// social
|
1029 |
$fifu['social']['desc'] = function() {
|
1054 |
|
1055 |
// video
|
1056 |
$fifu['video']['desc'] = function() {
|
1057 |
+
_e("FIFU supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting) and Sprout. Videos hosted elsewhere are not supported.", FIFU_SLUG);
|
1058 |
};
|
1059 |
|
1060 |
// thumbnail
|
1215 |
|
1216 |
// key
|
1217 |
$fifu['key']['desc'] = function() {
|
1218 |
+
_e("Please insert your email and license key below to receive updates and use this plugin without limitations.", FIFU_SLUG);
|
|
|
|
|
|
|
1219 |
};
|
1220 |
$fifu['key']['buy'] = function() {
|
1221 |
_e("if you intend to use FIFU in multiple distinct sites you can buy more license keys <a href='https://fifu.app/#price' target='_blank'>here</a>", FIFU_SLUG);
|
1222 |
};
|
1223 |
+
$fifu['key']['renew'] = function() {
|
1224 |
+
_e("you can renew your license key(s) or get more information about that <a href='https://ws.featuredimagefromurl.com/keys/' target='_blank'>here</a>", FIFU_SLUG);
|
1225 |
+
};
|
1226 |
$fifu['key']['email'] = function() {
|
1227 |
_e("Email", FIFU_SLUG);
|
1228 |
};
|
1232 |
$fifu['key']['key'] = function() {
|
1233 |
_e("License key", FIFU_SLUG);
|
1234 |
};
|
1235 |
+
$fifu['key']['tab']['activation'] = function() {
|
1236 |
+
_e("Activation", FIFU_SLUG);
|
1237 |
+
};
|
1238 |
+
$fifu['key']['tab']['documentation'] = function() {
|
1239 |
+
_e("Documentation", FIFU_SLUG);
|
1240 |
+
};
|
1241 |
+
$fifu['key']['documentation'] = function() {
|
1242 |
+
_e("FIFU activation is based on the domain. So submitting your license key on the site example.com, [subdomain].example.com or example.com/[anything] will activate the domain example.com. After that you could use the same license key on the sites example.com, [subdomain].example.com and example.com/[anything]. You also could use the same license key to activate a second domain for your test/development/stage site. If your domain has changed, please contact the support.", FIFU_SLUG);
|
1243 |
+
};
|
1244 |
+
$fifu['key']['important'] = function() {
|
1245 |
+
_e("even though with 1 license you could use FIFU on unlimited sites from the same domain, the technical support is still limited to 1 site.", FIFU_SLUG);
|
1246 |
+
};
|
1247 |
|
1248 |
return $fifu;
|
1249 |
}
|
featured-image-from-url.php
CHANGED
@@ -4,11 +4,11 @@
|
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
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.5.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
11 |
-
* WC tested up to: 5.
|
12 |
* Text Domain: featured-image-from-url
|
13 |
* License: GPLv3
|
14 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
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.5.7
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
11 |
+
* WC tested up to: 5.2
|
12 |
* Text Domain: featured-image-from-url
|
13 |
* License: GPLv3
|
14 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
includes/attachment.php
CHANGED
@@ -92,7 +92,7 @@ function fifu_replace_attachment_image_src($image, $att_id, $size) {
|
|
92 |
return null;
|
93 |
|
94 |
// photon
|
95 |
-
if (fifu_is_jetpack_active()) {
|
96 |
$old_url = $image[0];
|
97 |
$image = fifu_get_photon_url($image, $size, $att_id);
|
98 |
// ws
|
92 |
return null;
|
93 |
|
94 |
// photon
|
95 |
+
if (fifu_is_jetpack_active() && !fifu_jetpack_blocked($image[0])) {
|
96 |
$old_url = $image[0];
|
97 |
$image = fifu_get_photon_url($image, $size, $att_id);
|
98 |
// ws
|
includes/jetpack.php
CHANGED
@@ -4,3 +4,12 @@ function fifu_debug_jetpack() {
|
|
4 |
return defined('FIFU_DEV_DEBUG') && !defined('IS_WPCOM') && FIFU_DEV_DEBUG && fifu_is_local() && !fifu_is_in_editor();
|
5 |
}
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
return defined('FIFU_DEV_DEBUG') && !defined('IS_WPCOM') && FIFU_DEV_DEBUG && fifu_is_local() && !fifu_is_in_editor();
|
5 |
}
|
6 |
|
7 |
+
function fifu_jetpack_blocked($url) {
|
8 |
+
$blocklist = array('amazon-adsystem.com');
|
9 |
+
foreach ($blocklist as $domain) {
|
10 |
+
if (strpos($url, $domain) !== false)
|
11 |
+
return true;
|
12 |
+
}
|
13 |
+
return false;
|
14 |
+
}
|
15 |
+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
|
|
4 |
Tags: featured, image, url, woocommerce, thumbnail
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 3.5.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -79,7 +79,7 @@ Use an external image as featured image of your post, page or custom post type.
|
|
79 |
* **[Premium]** FIFU product gallery
|
80 |
|
81 |
#### FEATURED VIDEO
|
82 |
-
Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and
|
83 |
|
84 |
* **[Premium]** Featured video
|
85 |
* **[Premium]** Video thumbnail
|
@@ -200,20 +200,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
200 |
|
201 |
== Changelog ==
|
202 |
|
|
|
|
|
|
|
203 |
= 3.5.6 =
|
204 |
* Fix: CDN + Optimized Thumbnails not working for images from some domains.
|
205 |
|
206 |
= 3.5.5 =
|
207 |
* Improvement: Hide Featured Media may work with internal featured images now.
|
208 |
|
209 |
-
= 3.5.4 =
|
210 |
-
* Improvement: FIFU Product Gallery supports videos now.
|
211 |
-
|
212 |
= others =
|
213 |
* [more](https://fifu.app/changelog/)
|
214 |
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
-
= 3.5.
|
219 |
-
*
|
4 |
Tags: featured, image, url, woocommerce, thumbnail
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 3.5.7
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
79 |
* **[Premium]** FIFU product gallery
|
80 |
|
81 |
#### FEATURED VIDEO
|
82 |
+
Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting) and Sprout.
|
83 |
|
84 |
* **[Premium]** Featured video
|
85 |
* **[Premium]** Video thumbnail
|
200 |
|
201 |
== Changelog ==
|
202 |
|
203 |
+
= 3.5.7 =
|
204 |
+
* Improvement: added support to videos from JW Player, Sprout and WooCommerce.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
|
205 |
+
|
206 |
= 3.5.6 =
|
207 |
* Fix: CDN + Optimized Thumbnails not working for images from some domains.
|
208 |
|
209 |
= 3.5.5 =
|
210 |
* Improvement: Hide Featured Media may work with internal featured images now.
|
211 |
|
|
|
|
|
|
|
212 |
= others =
|
213 |
* [more](https://fifu.app/changelog/)
|
214 |
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
+
= 3.5.7 =
|
219 |
+
* Improvement: added support to videos from JW Player, Sprout and WooCommerce.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
|