Version Description
- Deprecated (Premium): Maximum Height option for Featured Shortcode; Bug fix: conflict between Lazy Load and background-images.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- admin/html/menu.html +8 -36
- admin/html/meta-box.html +1 -1
- featured-image-from-url.php +1 -1
- includes/attachment.php +1 -1
- readme.txt +8 -2
admin/html/menu.html
CHANGED
@@ -1422,9 +1422,8 @@
|
|
1422 |
<div class="greybox" id="grad2">
|
1423 |
<b>Premium feature</b><br><br>
|
1424 |
|
1425 |
-
This experimental feature allows to use a shortcode as "featured image"
|
1426 |
-
|
1427 |
-
Important: shortcodes can be not compatible with other FIFU features, such as CSS Style, Same Height, Lazy Load etc.
|
1428 |
|
1429 |
</div>
|
1430 |
|
@@ -1456,11 +1455,7 @@
|
|
1456 |
</form>
|
1457 |
</th>
|
1458 |
<th>
|
1459 |
-
|
1460 |
-
</th>
|
1461 |
-
</tr>
|
1462 |
-
<tr>
|
1463 |
-
<th>
|
1464 |
|
1465 |
<form
|
1466 |
id="fifu_form_shortcode_min_width"
|
@@ -1468,38 +1463,15 @@
|
|
1468 |
method="post">
|
1469 |
|
1470 |
<input id="fifu_input_shortcode_min_width"
|
1471 |
-
size=
|
1472 |
type="text"
|
1473 |
name="fifu_input_shortcode_min_width"
|
1474 |
-
value=""
|
1475 |
-
|
1476 |
-
<
|
1477 |
-
|
1478 |
-
</th>
|
1479 |
-
<th>
|
1480 |
-
minimum width required (px)
|
1481 |
-
</th>
|
1482 |
-
</tr>
|
1483 |
-
<tr>
|
1484 |
-
<th>
|
1485 |
-
|
1486 |
-
<form
|
1487 |
-
id="fifu_form_shortcode_max_height"
|
1488 |
-
action="javascript:void(0)"
|
1489 |
-
method="post">
|
1490 |
-
|
1491 |
-
<input id="fifu_input_shortcode_max_height"
|
1492 |
-
size=1
|
1493 |
-
type="text"
|
1494 |
-
name="fifu_input_shortcode_max_height"
|
1495 |
-
value="">
|
1496 |
-
|
1497 |
-
<input type="submit" value="OK" >
|
1498 |
</form>
|
1499 |
</th>
|
1500 |
-
<th>
|
1501 |
-
maximum height (px)
|
1502 |
-
</th>
|
1503 |
</tr>
|
1504 |
</table>
|
1505 |
|
1422 |
<div class="greybox" id="grad2">
|
1423 |
<b>Premium feature</b><br><br>
|
1424 |
|
1425 |
+
This experimental feature allows to use a shortcode as "featured image". You may use any content provided by the shortcode, what could be a music, a text, a map etc. However, some contents will need a large area of your site to be shown properly. So you should define a minimum width that an area of your site should have to be able to show the shortcode content.<br/><br/>
|
1426 |
+
<b>Important</b>: shortcodes can be not compatible with other FIFU features, such as CSS Style, Same Height, Lazy Load etc.
|
|
|
1427 |
|
1428 |
</div>
|
1429 |
|
1455 |
</form>
|
1456 |
</th>
|
1457 |
<th>
|
1458 |
+
minimum width (px)
|
|
|
|
|
|
|
|
|
1459 |
|
1460 |
<form
|
1461 |
id="fifu_form_shortcode_min_width"
|
1463 |
method="post">
|
1464 |
|
1465 |
<input id="fifu_input_shortcode_min_width"
|
1466 |
+
size=3
|
1467 |
type="text"
|
1468 |
name="fifu_input_shortcode_min_width"
|
1469 |
+
value=""
|
1470 |
+
style="width:85px">
|
1471 |
+
<br>
|
1472 |
+
<input type="submit" value="OK" style="width:85px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1473 |
</form>
|
1474 |
</th>
|
|
|
|
|
|
|
1475 |
</tr>
|
1476 |
</table>
|
1477 |
|
admin/html/meta-box.html
CHANGED
@@ -40,7 +40,7 @@
|
|
40 |
|
41 |
<table id="fifu_table_url" style="width:103%;position:relative;left:-3px;top:-3px;">
|
42 |
<tr>
|
43 |
-
<td style="width:
|
44 |
<input id="fifu_input_url"
|
45 |
type="text"
|
46 |
name="fifu_input_url"
|
40 |
|
41 |
<table id="fifu_table_url" style="width:103%;position:relative;left:-3px;top:-3px;">
|
42 |
<tr>
|
43 |
+
<td style="width:103%">
|
44 |
<input id="fifu_input_url"
|
45 |
type="text"
|
46 |
name="fifu_input_url"
|
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 a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
-
* Version: 3.1.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
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.1.2
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
includes/attachment.php
CHANGED
@@ -168,7 +168,7 @@ function fifu_callback($buffer) {
|
|
168 |
preg_match_all('/<[^>]*background-image[^>]*>/', $buffer, $imgList);
|
169 |
foreach ($imgList[0] as $imgItem) {
|
170 |
$mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
|
171 |
-
$url = preg_split('/[\'\"]\)/', preg_split('/url\([\'\"]/', $imgItem, -1)[1], -1)[0];
|
172 |
$newImgItem = preg_replace("/background-image[^:]*:[^\)]*url[^\)]*[\)]/", "", $imgItem);
|
173 |
$attr = 'data-bg=' . $mainDelimiter . $url . $mainDelimiter;
|
174 |
$newImgItem = str_replace('>', ' ' . $attr . '>', $newImgItem);
|
168 |
preg_match_all('/<[^>]*background-image[^>]*>/', $buffer, $imgList);
|
169 |
foreach ($imgList[0] as $imgItem) {
|
170 |
$mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
|
171 |
+
$url = preg_split('/[\'\" ]{0,1}\)/', preg_split('/url\([\'\" ]{0,1}/', $imgItem, -1)[1], -1)[0];
|
172 |
$newImgItem = preg_replace("/background-image[^:]*:[^\)]*url[^\)]*[\)]/", "", $imgItem);
|
173 |
$attr = 'data-bg=' . $mainDelimiter . $url . $mainDelimiter;
|
174 |
$newImgItem = str_replace('>', ' ' . $attr . '>', $newImgItem);
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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, giphy, 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, gif
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.4.
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -168,6 +168,9 @@ Features:
|
|
168 |
|
169 |
== Changelog ==
|
170 |
|
|
|
|
|
|
|
171 |
= 3.1.1 =
|
172 |
* New option (Premium): Media RSS Tags > width; Improvement (Premium): each Featured Slider can have a different size ratio now; Bug fix: conflict with WooCommerce Product CSV Import Suite plugin; Bug fix: conflict between Lazy Load feature and URLs with parentheses.
|
173 |
|
@@ -771,6 +774,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
771 |
|
772 |
== Upgrade Notice ==
|
773 |
|
|
|
|
|
|
|
774 |
= 3.1.1 =
|
775 |
* New option (Premium): Media RSS Tags > width; Improvement (Premium): each Featured Slider can have a different size ratio now; Bug fix: conflict with WooCommerce Product CSV Import Suite plugin; Bug fix: conflict between Lazy Load feature and URLs with parentheses.
|
776 |
|
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, giphy, 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, gif
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.4.2
|
7 |
+
Stable tag: 3.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
168 |
|
169 |
== Changelog ==
|
170 |
|
171 |
+
= 3.1.2 =
|
172 |
+
* Deprecated (Premium): Maximum Height option for Featured Shortcode; Bug fix: conflict between Lazy Load and background-images.
|
173 |
+
|
174 |
= 3.1.1 =
|
175 |
* New option (Premium): Media RSS Tags > width; Improvement (Premium): each Featured Slider can have a different size ratio now; Bug fix: conflict with WooCommerce Product CSV Import Suite plugin; Bug fix: conflict between Lazy Load feature and URLs with parentheses.
|
176 |
|
774 |
|
775 |
== Upgrade Notice ==
|
776 |
|
777 |
+
= 3.1.2 =
|
778 |
+
* Deprecated (Premium): Maximum Height option for Featured Shortcode; Bug fix: conflict between Lazy Load and background-images.
|
779 |
+
|
780 |
= 3.1.1 =
|
781 |
* New option (Premium): Media RSS Tags > width; Improvement (Premium): each Featured Slider can have a different size ratio now; Bug fix: conflict with WooCommerce Product CSV Import Suite plugin; Bug fix: conflict between Lazy Load feature and URLs with parentheses.
|
782 |
|