Version Description
- New option: Featured Slider > vertical mode; enhancement: Save in the Media Library > proxy (supports username and password now); fix: Automatic Updates (DB operation making the process slow); deprecated: Flickr Thumbnails (by CDN + Optimized Thumbnails).
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.9.8 |
Comparing to | |
See all releases |
Code changes from version 3.9.7 to 3.9.8
- admin/db.php +4 -0
- admin/html/menu.html +33 -32
- admin/html/troubleshooting.html +21 -0
- admin/strings.php +7 -15
- featured-image-from-url.php +1 -1
- includes/html/js/lazySizesConfig.js +9 -0
- readme.txt +6 -7
admin/db.php
CHANGED
@@ -34,6 +34,10 @@ class FifuDb {
|
|
34 |
/* alter table */
|
35 |
|
36 |
function change_url_length() {
|
|
|
|
|
|
|
|
|
37 |
$this->wpdb->get_results("
|
38 |
ALTER TABLE " . $this->posts . "
|
39 |
MODIFY COLUMN guid VARCHAR(" . $this->MAX_URL_LENGTH . ")"
|
34 |
/* alter table */
|
35 |
|
36 |
function change_url_length() {
|
37 |
+
$length = $this->wpdb->get_col_length($this->posts, 'guid');
|
38 |
+
if ($length && $length['length'] >= $this->MAX_URL_LENGTH)
|
39 |
+
return;
|
40 |
+
|
41 |
$this->wpdb->get_results("
|
42 |
ALTER TABLE " . $this->posts . "
|
43 |
MODIFY COLUMN guid VARCHAR(" . $this->MAX_URL_LENGTH . ")"
|
admin/html/menu.html
CHANGED
@@ -1224,6 +1224,23 @@
|
|
1224 |
on, off
|
1225 |
</th>
|
1226 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1227 |
<tr class="color">
|
1228 |
<th>
|
1229 |
<?php $fifu['tab']['slider']() ?>
|
@@ -1872,21 +1889,6 @@
|
|
1872 |
on, off
|
1873 |
</th>
|
1874 |
</tr>
|
1875 |
-
<tr class="color">
|
1876 |
-
<th>
|
1877 |
-
<?php $fifu['tab']['performance']() ?>
|
1878 |
-
</th>
|
1879 |
-
<th>
|
1880 |
-
<?php $fifu['title']['flickr']() ?>
|
1881 |
-
</th>
|
1882 |
-
<th></th>
|
1883 |
-
<th>
|
1884 |
-
wp fifu flickr <toggle>
|
1885 |
-
</th>
|
1886 |
-
<th>
|
1887 |
-
on, off
|
1888 |
-
</th>
|
1889 |
-
</tr>
|
1890 |
<tr class="color">
|
1891 |
<th>
|
1892 |
<?php $fifu['tab']['social']() ?>
|
@@ -4531,6 +4533,21 @@
|
|
4531 |
<?php $fifu['slider']['crop']() ?>
|
4532 |
</th>
|
4533 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4534 |
</table>
|
4535 |
|
4536 |
<br>
|
@@ -4962,22 +4979,6 @@
|
|
4962 |
value="" >
|
4963 |
</form>
|
4964 |
</div>
|
4965 |
-
|
4966 |
-
<div class="box">
|
4967 |
-
<div class="fifu-pro"><div class="fifu-pro-out"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all features"><h4 class="fifu-pro-text"><span class="dashicons dashicons-lock fifu-pro-icon"></span>PRO</h4></a></div></div>
|
4968 |
-
<h2><?php $fifu['title']['flickr']() ?></h2>
|
4969 |
-
<div class="greybox" id="grad2">
|
4970 |
-
<?php $fifu['flickr']['desc']() ?><br><br>
|
4971 |
-
<b><?php $fifu['detail']['requirement']() ?></b>: <?php $fifu['flickr']['important']() ?>
|
4972 |
-
</div>
|
4973 |
-
<br>
|
4974 |
-
<input
|
4975 |
-
type="submit"
|
4976 |
-
href="javascript:void(0)"
|
4977 |
-
class="toggleoff"
|
4978 |
-
value=""
|
4979 |
-
style="display:block;border:none">
|
4980 |
-
</div>
|
4981 |
</div>
|
4982 |
<div id="tabs-q">
|
4983 |
<div class="box">
|
@@ -5476,7 +5477,7 @@
|
|
5476 |
<br>
|
5477 |
<center>
|
5478 |
<div class="polaroid" style="background-color:#f0f0f0;">
|
5479 |
-
<img src="https://
|
5480 |
</div>
|
5481 |
</center>
|
5482 |
</div>
|
1224 |
on, off
|
1225 |
</th>
|
1226 |
</tr>
|
1227 |
+
<tr class="color">
|
1228 |
+
<th>
|
1229 |
+
<?php $fifu['tab']['slider']() ?>
|
1230 |
+
</th>
|
1231 |
+
<th>
|
1232 |
+
<?php $fifu['title']['slider']() ?>
|
1233 |
+
</th>
|
1234 |
+
<th>
|
1235 |
+
<?php $fifu['slider']['vertical']() ?>
|
1236 |
+
</th>
|
1237 |
+
<th>
|
1238 |
+
wp fifu slider --vertical <toggle>
|
1239 |
+
</th>
|
1240 |
+
<th>
|
1241 |
+
on, off
|
1242 |
+
</th>
|
1243 |
+
</tr>
|
1244 |
<tr class="color">
|
1245 |
<th>
|
1246 |
<?php $fifu['tab']['slider']() ?>
|
1889 |
on, off
|
1890 |
</th>
|
1891 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1892 |
<tr class="color">
|
1893 |
<th>
|
1894 |
<?php $fifu['tab']['social']() ?>
|
4533 |
<?php $fifu['slider']['crop']() ?>
|
4534 |
</th>
|
4535 |
</tr>
|
4536 |
+
<tr>
|
4537 |
+
<th>
|
4538 |
+
<input
|
4539 |
+
type="submit"
|
4540 |
+
href="javascript:void(0)"
|
4541 |
+
id="fifu_toggle_slider_vertical"
|
4542 |
+
name="fifu_toggle_slider_vertical"
|
4543 |
+
class="toggleoff"
|
4544 |
+
value=""
|
4545 |
+
style="display:block;border:none">
|
4546 |
+
</th>
|
4547 |
+
<th>
|
4548 |
+
<?php $fifu['slider']['vertical']() ?>
|
4549 |
+
</th>
|
4550 |
+
</tr>
|
4551 |
</table>
|
4552 |
|
4553 |
<br>
|
4979 |
value="" >
|
4980 |
</form>
|
4981 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4982 |
</div>
|
4983 |
<div id="tabs-q">
|
4984 |
<div class="box">
|
5477 |
<br>
|
5478 |
<center>
|
5479 |
<div class="polaroid" style="background-color:#f0f0f0;">
|
5480 |
+
<img src="https://storage.googleapis.com/featuredimagefromurl/woocommerce-import.jpg">
|
5481 |
</div>
|
5482 |
</center>
|
5483 |
</div>
|
admin/html/troubleshooting.html
CHANGED
@@ -9,6 +9,27 @@
|
|
9 |
<div id="tabs-top" style="float:left">
|
10 |
<ul>
|
11 |
<div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<div class="box">
|
13 |
<table>
|
14 |
<tr>
|
9 |
<div id="tabs-top" style="float:left">
|
10 |
<ul>
|
11 |
<div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
|
12 |
+
<div class="box">
|
13 |
+
<table>
|
14 |
+
<tr>
|
15 |
+
<td style="border-bottom:none">2022-06-08</td>
|
16 |
+
<td style="border-bottom:none"><h3>CoverNews</h3></td>
|
17 |
+
<td style="border-bottom:none">theme</td>
|
18 |
+
</tr>
|
19 |
+
</table>
|
20 |
+
<div class="greybox" style="position: relative; top: -10px">
|
21 |
+
Solving "Featured Video" style issues:<br>
|
22 |
+
1) access "FIFU Settings > Video";<br>
|
23 |
+
2) set "0" for "Play Button > z-index";<br>
|
24 |
+
3) set "50" for "Minimum Width";<br>
|
25 |
+
4) set "lightbox" for "Play Button > mode";<br>
|
26 |
+
4) access "Appearance > your theme > Customize > Additional CSS";<br>
|
27 |
+
5) add:<br>
|
28 |
+
.fifu_play {height: 100%;}<br>
|
29 |
+
.fifu_h_iframe, .fifu_wrapper {height: 100% !important;}<br>
|
30 |
+
6) publish.
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
<div class="box">
|
34 |
<table>
|
35 |
<tr>
|
admin/strings.php
CHANGED
@@ -291,9 +291,6 @@ function fifu_get_strings_settings() {
|
|
291 |
$fifu['title']['jetpack'] = function() {
|
292 |
_e("CDN + Optimized Thumbnails", FIFU_SLUG);
|
293 |
};
|
294 |
-
$fifu['title']['flickr'] = function() {
|
295 |
-
_e("Flickr Thumbnails", FIFU_SLUG);
|
296 |
-
};
|
297 |
$fifu['title']['api'] = function() {
|
298 |
_e("WP / WooCommerce REST API", FIFU_SLUG);
|
299 |
};
|
@@ -505,10 +502,10 @@ function fifu_get_strings_settings() {
|
|
505 |
_e("Image gallery", FIFU_SLUG);
|
506 |
};
|
507 |
$fifu['dev']['field']['category']['image'] = function() {
|
508 |
-
_e("
|
509 |
};
|
510 |
$fifu['dev']['field']['category']['video'] = function() {
|
511 |
-
_e("
|
512 |
};
|
513 |
|
514 |
// column
|
@@ -605,7 +602,7 @@ function fifu_get_strings_settings() {
|
|
605 |
_e("Private proxy", FIFU_SLUG);
|
606 |
};
|
607 |
$fifu['media']['proxy']['placeholder'] = function() {
|
608 |
-
_e("192.168.0.1:80, 127.0.0.1:8080", FIFU_SLUG);
|
609 |
};
|
610 |
|
611 |
// height
|
@@ -1050,14 +1047,6 @@ function fifu_get_strings_settings() {
|
|
1050 |
_e("some themes and plugins have their own lazy load implementations, causing conflicts. Your images may not load if you have more than one lazy load component running at the same time.", FIFU_SLUG);
|
1051 |
};
|
1052 |
|
1053 |
-
// flickr
|
1054 |
-
$fifu['flickr']['desc'] = function() {
|
1055 |
-
_e("Flickr images have thumbnails and FIFU is able to load the exact size your site needs. You just need to provide the 1024 px image URL and FIFU will alternate the image size among 75, 100, 150, 240, 320, 500, 640, 800 and 1024 px width. Larger sizes can't be used due a different URL pattern.", FIFU_SLUG);
|
1056 |
-
};
|
1057 |
-
$fifu['flickr']['important'] = function() {
|
1058 |
-
_e("the Lazy Load feature should be enabled.", FIFU_SLUG);
|
1059 |
-
};
|
1060 |
-
|
1061 |
// api
|
1062 |
$fifu['api']['tab']['endpoints'] = function() {
|
1063 |
_e("Endpoints", FIFU_SLUG);
|
@@ -1248,6 +1237,9 @@ function fifu_get_strings_settings() {
|
|
1248 |
$fifu['slider']['crop'] = function() {
|
1249 |
_e("display images in the same height", FIFU_SLUG);
|
1250 |
};
|
|
|
|
|
|
|
1251 |
$fifu['slider']['time'] = function() {
|
1252 |
_e("time between each transition (in ms)", FIFU_SLUG);
|
1253 |
};
|
@@ -2010,7 +2002,7 @@ function fifu_get_strings_cloud() {
|
|
2010 |
_e("Total price");
|
2011 |
};
|
2012 |
$fifu['pricing']['table']['ps'] = function() {
|
2013 |
-
_e("FIFU Cloud cannot be a free service as it relies on several paid cloud services, such as storage, processing, caching, delivery, etc. However, its architecture was designed to optimize the use of these resources and, consequently, offer the lowest price (which is possibly not the current price). Our service is being launched now, in
|
2014 |
};
|
2015 |
|
2016 |
// upload
|
291 |
$fifu['title']['jetpack'] = function() {
|
292 |
_e("CDN + Optimized Thumbnails", FIFU_SLUG);
|
293 |
};
|
|
|
|
|
|
|
294 |
$fifu['title']['api'] = function() {
|
295 |
_e("WP / WooCommerce REST API", FIFU_SLUG);
|
296 |
};
|
502 |
_e("Image gallery", FIFU_SLUG);
|
503 |
};
|
504 |
$fifu['dev']['field']['category']['image'] = function() {
|
505 |
+
_e("Product category image", FIFU_SLUG);
|
506 |
};
|
507 |
$fifu['dev']['field']['category']['video'] = function() {
|
508 |
+
_e("Product category video", FIFU_SLUG);
|
509 |
};
|
510 |
|
511 |
// column
|
602 |
_e("Private proxy", FIFU_SLUG);
|
603 |
};
|
604 |
$fifu['media']['proxy']['placeholder'] = function() {
|
605 |
+
_e("192.168.0.1:80, 127.0.0.1:8080, username:password@172.16.0.0:443", FIFU_SLUG);
|
606 |
};
|
607 |
|
608 |
// height
|
1047 |
_e("some themes and plugins have their own lazy load implementations, causing conflicts. Your images may not load if you have more than one lazy load component running at the same time.", FIFU_SLUG);
|
1048 |
};
|
1049 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1050 |
// api
|
1051 |
$fifu['api']['tab']['endpoints'] = function() {
|
1052 |
_e("Endpoints", FIFU_SLUG);
|
1237 |
$fifu['slider']['crop'] = function() {
|
1238 |
_e("display images in the same height", FIFU_SLUG);
|
1239 |
};
|
1240 |
+
$fifu['slider']['vertical'] = function() {
|
1241 |
+
_e("vertical mode", FIFU_SLUG);
|
1242 |
+
};
|
1243 |
$fifu['slider']['time'] = function() {
|
1244 |
_e("time between each transition (in ms)", FIFU_SLUG);
|
1245 |
};
|
2002 |
_e("Total price");
|
2003 |
};
|
2004 |
$fifu['pricing']['table']['ps'] = function() {
|
2005 |
+
_e("FIFU Cloud cannot be a free service as it relies on several paid cloud services, such as storage, processing, caching, delivery, etc. However, its architecture was designed to optimize the use of these resources and, consequently, offer the lowest price (which is possibly not the current price). Our service is being launched now, in June 2022, and only after a few months of operation we will have a real understanding of operating costs, being able to offer fairer prices, especially for those who have more images. With enough monetization, it is possible that pro features of this plugin can become free. Who knows?=)");
|
2006 |
};
|
2007 |
|
2008 |
// upload
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image/video as featured image/video of a post or WooCommerce product.
|
7 |
-
* Version: 3.9.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image/video as featured image/video of a post or WooCommerce product.
|
7 |
+
* Version: 3.9.8
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
includes/html/js/lazySizesConfig.js
CHANGED
@@ -16,6 +16,15 @@ const FIFU_PLACEHOLDER = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAJxAAAAAB
|
|
16 |
function fifu_lazy(selector = 'img') {
|
17 |
|
18 |
jQuery(selector).each(function (index) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
if (jQuery(this).hasClass('lazyload') || jQuery(this).hasClass('lazyloaded') || jQuery(this).hasClass('lazyloading'))
|
20 |
return;
|
21 |
|
16 |
function fifu_lazy(selector = 'img') {
|
17 |
|
18 |
jQuery(selector).each(function (index) {
|
19 |
+
// solves "Preload Largest Contentful Paint image" for top images
|
20 |
+
if (jQuery(this).offset().top < jQuery(window).height()) {
|
21 |
+
datasrcset = jQuery(this).attr('data-srcset');
|
22 |
+
datasrc = jQuery(this).attr('data-src');
|
23 |
+
width = jQuery(this).width();
|
24 |
+
if (datasrc && datasrcset && width)
|
25 |
+
jQuery('head').append(`<link rel="preload" as="image" href="${datasrc}" imagesizes="${width}px" imagesrcset="${datasrcset}">`);
|
26 |
+
}
|
27 |
+
|
28 |
if (jQuery(this).hasClass('lazyload') || jQuery(this).hasClass('lazyloaded') || jQuery(this).hasClass('lazyloading'))
|
29 |
return;
|
30 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
|
|
4 |
Tags: featured, image, url, video, woocommerce
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 3.9.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -53,7 +53,6 @@ Use an external image as featured image of your post, page or custom post type.
|
|
53 |
|
54 |
* CDN + optimized thumbnails
|
55 |
* Lazy load
|
56 |
-
* **[PRO]** Flickr thumbnails
|
57 |
|
58 |
#### SOCIAL
|
59 |
|
@@ -228,20 +227,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
|
|
228 |
|
229 |
== Changelog ==
|
230 |
|
|
|
|
|
|
|
231 |
= 3.9.7 =
|
232 |
* Enhancements: FIFU widget for Elementor (sets the image as featured image now and does not require Elementor PRO); new Elementor widget: Featured Video.
|
233 |
|
234 |
= 3.9.6 =
|
235 |
* Enhancement: CDN + Optimized Thumbnails (more precision).
|
236 |
|
237 |
-
= 3.9.5 =
|
238 |
-
* New option: Autoplay > on home; fix: FIFU Column (no title on Screen Options).
|
239 |
-
|
240 |
= others =
|
241 |
* [more](https://fifu.app/changelog)
|
242 |
|
243 |
|
244 |
== Upgrade Notice ==
|
245 |
|
246 |
-
= 3.9.
|
247 |
-
*
|
4 |
Tags: featured, image, url, video, woocommerce
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 3.9.8
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
53 |
|
54 |
* CDN + optimized thumbnails
|
55 |
* Lazy load
|
|
|
56 |
|
57 |
#### SOCIAL
|
58 |
|
227 |
|
228 |
== Changelog ==
|
229 |
|
230 |
+
= 3.9.8 =
|
231 |
+
* New option: Featured Slider > vertical mode; enhancement: Save in the Media Library > proxy (supports username and password now); fix: Automatic Updates (DB operation making the process slow); deprecated: Flickr Thumbnails (by CDN + Optimized Thumbnails).
|
232 |
+
|
233 |
= 3.9.7 =
|
234 |
* Enhancements: FIFU widget for Elementor (sets the image as featured image now and does not require Elementor PRO); new Elementor widget: Featured Video.
|
235 |
|
236 |
= 3.9.6 =
|
237 |
* Enhancement: CDN + Optimized Thumbnails (more precision).
|
238 |
|
|
|
|
|
|
|
239 |
= others =
|
240 |
* [more](https://fifu.app/changelog)
|
241 |
|
242 |
|
243 |
== Upgrade Notice ==
|
244 |
|
245 |
+
= 3.9.8 =
|
246 |
+
* New option: Featured Slider > vertical mode; enhancement: Save in the Media Library > proxy (supports username and password now); fix: Automatic Updates (DB operation making the process slow); deprecated: Flickr Thumbnails (by CDN + Optimized Thumbnails).
|