Version Description
- 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.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.4 to 3.0.5
- admin/html/menu.html +35 -13
- featured-image-from-url.php +1 -1
- includes/html/js/image.js +2 -2
- includes/thumbnail.php +11 -13
- readme.txt +7 -1
admin/html/menu.html
CHANGED
@@ -32,9 +32,13 @@
|
|
32 |
<div class="greybox">
|
33 |
<table>
|
34 |
<tr>
|
35 |
-
<td style="border-bottom:none;text-align:right;">
|
36 |
<td style="border-bottom:none">embedded video can be replaced by its image thumbnail + play button (drastically decreases the loading time)</td>
|
37 |
</tr>
|
|
|
|
|
|
|
|
|
38 |
<tr>
|
39 |
<td style="border-bottom:none;text-align:right;">February</td>
|
40 |
<td style="border-bottom:none">support to private videos from Vimeo</td>
|
@@ -1639,6 +1643,22 @@
|
|
1639 |
on custom post type
|
1640 |
</th>
|
1641 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1642 |
</table>
|
1643 |
</div>
|
1644 |
|
@@ -1694,18 +1714,6 @@
|
|
1694 |
<br>
|
1695 |
<input type="submit" value="OK" style="width:85px" disabled>
|
1696 |
</th>
|
1697 |
-
<th>
|
1698 |
-
thumbnail height
|
1699 |
-
<br>
|
1700 |
-
<input
|
1701 |
-
id="fifu_form_video_height"
|
1702 |
-
type="text"
|
1703 |
-
name="fifu_input_video_height"
|
1704 |
-
value=""
|
1705 |
-
style="width:85px">
|
1706 |
-
<br>
|
1707 |
-
<input type="submit" value="OK" style="width:85px" disabled>
|
1708 |
-
</th>
|
1709 |
<th>
|
1710 |
<br>
|
1711 |
<input
|
@@ -2965,6 +2973,20 @@
|
|
2965 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2966 |
</div>
|
2967 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2968 |
<div class="box">
|
2969 |
<table>
|
2970 |
<tr>
|
32 |
<div class="greybox">
|
33 |
<table>
|
34 |
<tr>
|
35 |
+
<td style="border-bottom:none;text-align:right;">April</td>
|
36 |
<td style="border-bottom:none">embedded video can be replaced by its image thumbnail + play button (drastically decreases the loading time)</td>
|
37 |
</tr>
|
38 |
+
<tr>
|
39 |
+
<td style="border-bottom:none;text-align:right;">March</td>
|
40 |
+
<td style="border-bottom:none">Google Chrome Extension for Featured Image from URL</td>
|
41 |
+
</tr>
|
42 |
<tr>
|
43 |
<td style="border-bottom:none;text-align:right;">February</td>
|
44 |
<td style="border-bottom:none">support to private videos from Vimeo</td>
|
1643 |
on custom post type
|
1644 |
</th>
|
1645 |
</tr>
|
1646 |
+
<tr>
|
1647 |
+
<th>
|
1648 |
+
<input
|
1649 |
+
id="fifu_input_video_crop"
|
1650 |
+
type="text"
|
1651 |
+
name="fifu_input_video_crop"
|
1652 |
+
value=""
|
1653 |
+
placeholder="e.g.: 25"
|
1654 |
+
style="width:73px">
|
1655 |
+
<br>
|
1656 |
+
<input type="submit" value="OK" style="width:73px" disabled>
|
1657 |
+
</th>
|
1658 |
+
<th>
|
1659 |
+
crop top and bottom (%)
|
1660 |
+
</th>
|
1661 |
+
</tr>
|
1662 |
</table>
|
1663 |
</div>
|
1664 |
|
1714 |
<br>
|
1715 |
<input type="submit" value="OK" style="width:85px" disabled>
|
1716 |
</th>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1717 |
<th>
|
1718 |
<br>
|
1719 |
<input
|
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>
|
2979 |
+
<td style="border-bottom:none">2020-05-01</td>
|
2980 |
+
<td style="border-bottom:none"><h3> WooCommerce</h3></td>
|
2981 |
+
<td style="border-bottom:none">plugin</td>
|
2982 |
+
</tr>
|
2983 |
+
</table>
|
2984 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2985 |
+
Product gallery thumbnails have different heights:<br>
|
2986 |
+
1) enable "FIFU Settings > Featured Image > Same Height";<br>
|
2987 |
+
2) access "Selector" tab and add "ol.flex-control-thumbs".<br>
|
2988 |
+
</div>
|
2989 |
+
</div>
|
2990 |
<div class="box">
|
2991 |
<table>
|
2992 |
<tr>
|
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.0.
|
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.0.5
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
includes/html/js/image.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
jQuery(document).ready(function ($) {
|
2 |
// lazy load
|
3 |
-
if (fifuImageVars.fifu_lazy
|
4 |
jQuery.extend(jQuery.lazyLoadXT, {
|
5 |
srcAttr: 'data-src',
|
6 |
visibleOnly: false,
|
@@ -25,7 +25,7 @@ jQuery(document).ready(function ($) {
|
|
25 |
});
|
26 |
|
27 |
jQuery(window).on('ajaxComplete', function () {
|
28 |
-
if (fifuImageVars.fifu_lazy
|
29 |
setTimeout(function () {
|
30 |
jQuery(window).lazyLoadXT();
|
31 |
}, 300);
|
1 |
jQuery(document).ready(function ($) {
|
2 |
// lazy load
|
3 |
+
if (fifuImageVars.fifu_lazy) {
|
4 |
jQuery.extend(jQuery.lazyLoadXT, {
|
5 |
srcAttr: 'data-src',
|
6 |
visibleOnly: false,
|
25 |
});
|
26 |
|
27 |
jQuery(window).on('ajaxComplete', function () {
|
28 |
+
if (fifuImageVars.fifu_lazy) {
|
29 |
setTimeout(function () {
|
30 |
jQuery(window).lazyLoadXT();
|
31 |
}, 300);
|
includes/thumbnail.php
CHANGED
@@ -8,9 +8,10 @@ if (!function_exists('is_plugin_active'))
|
|
8 |
|
9 |
global $pagenow;
|
10 |
if (!in_array($pagenow, array('post.php', 'post-new.php', 'admin-ajax.php', 'wp-cron.php'))) {
|
11 |
-
if (is_plugin_active('wordpress-seo/wp-seo.php'))
|
12 |
-
add_action('
|
13 |
-
|
|
|
14 |
add_filter('wp_head', 'fifu_add_social_tags');
|
15 |
}
|
16 |
|
@@ -31,13 +32,17 @@ function fifu_add_js() {
|
|
31 |
// js
|
32 |
wp_enqueue_script('fifu-image-js', plugins_url('/html/js/image.js?' . fifu_version_number(), __FILE__));
|
33 |
wp_localize_script('fifu-image-js', 'fifuImageVars', [
|
34 |
-
'fifu_lazy' => fifu_is_on("fifu_lazy")
|
35 |
'fifu_woo_lbox_enabled' => fifu_woo_lbox(),
|
36 |
'fifu_woo_zoom' => fifu_woo_zoom(),
|
37 |
]);
|
38 |
}
|
39 |
|
40 |
-
function
|
|
|
|
|
|
|
|
|
41 |
$post_id = get_the_ID();
|
42 |
$url = fifu_main_image_url($post_id);
|
43 |
$title = str_replace("'", "'", get_the_title($post_id));
|
@@ -46,13 +51,6 @@ function fifu_add_social_tags($object) {
|
|
46 |
if (fifu_is_off('fifu_social'))
|
47 |
return;
|
48 |
|
49 |
-
// yoast
|
50 |
-
if ($object) {
|
51 |
-
if ($url)
|
52 |
-
$object->add_image($url);
|
53 |
-
return;
|
54 |
-
}
|
55 |
-
|
56 |
if ($url)
|
57 |
include 'html/og-image.html';
|
58 |
|
@@ -135,7 +133,7 @@ function fifu_add_to_content($content) {
|
|
135 |
}
|
136 |
|
137 |
function fifu_should_hide() {
|
138 |
-
return ((is_singular('post') && fifu_is_on('fifu_hide_post')) || (is_singular('page') && fifu_is_on('fifu_hide_page')) || (is_singular(get_post_type(get_the_ID())) && fifu_is_cpt() && fifu_is_on('fifu_hide_cpt')));
|
139 |
}
|
140 |
|
141 |
function fifu_is_cpt() {
|
8 |
|
9 |
global $pagenow;
|
10 |
if (!in_array($pagenow, array('post.php', 'post-new.php', 'admin-ajax.php', 'wp-cron.php'))) {
|
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 |
}
|
17 |
|
32 |
// js
|
33 |
wp_enqueue_script('fifu-image-js', plugins_url('/html/js/image.js?' . fifu_version_number(), __FILE__));
|
34 |
wp_localize_script('fifu-image-js', 'fifuImageVars', [
|
35 |
+
'fifu_lazy' => fifu_is_on("fifu_lazy"),
|
36 |
'fifu_woo_lbox_enabled' => fifu_woo_lbox(),
|
37 |
'fifu_woo_zoom' => fifu_woo_zoom(),
|
38 |
]);
|
39 |
}
|
40 |
|
41 |
+
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);
|
48 |
$title = str_replace("'", "'", get_the_title($post_id));
|
51 |
if (fifu_is_off('fifu_social'))
|
52 |
return;
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
if ($url)
|
55 |
include 'html/og-image.html';
|
56 |
|
133 |
}
|
134 |
|
135 |
function fifu_should_hide() {
|
136 |
+
return !is_front_page() && ((is_singular('post') && fifu_is_on('fifu_hide_post')) || (is_singular('page') && fifu_is_on('fifu_hide_page')) || (is_singular(get_post_type(get_the_ID())) && fifu_is_cpt() && fifu_is_on('fifu_hide_cpt')));
|
137 |
}
|
138 |
|
139 |
function fifu_is_cpt() {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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, 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, publitio, 9gag, wcfm, add-on, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf
|
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 |
|
@@ -164,6 +164,9 @@ Features:
|
|
164 |
|
165 |
== Changelog ==
|
166 |
|
|
|
|
|
|
|
167 |
= 3.0.4 =
|
168 |
* Critical bug fix: conflict between Social Tags feature and the latest Yoast SEO plugin version on post editor (Updating failed error); New option (Premium): thumbnail height (crop the top and bottom margins from video image thumbnails); New option: only image tags (disable title and description social tags); Bug fix: rest routes (some features not working in sites with https problems); Bug fix: metadata features (problems due URLs with illegal characters).
|
169 |
|
@@ -746,6 +749,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
746 |
|
747 |
== Upgrade Notice ==
|
748 |
|
|
|
|
|
|
|
749 |
= 3.0.4 =
|
750 |
* Critical bug fix: conflict between Social Tags feature and the latest Yoast SEO plugin version on post editor (Updating failed error); New option (Premium): thumbnail height (crop the top and bottom margins from video image thumbnails); New option: only image tags (disable title and description social tags); Bug fix: rest routes (some features not working in sites with https problems); Bug fix: metadata features (problems due URLs with illegal characters).
|
751 |
|
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, 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, publitio, 9gag, wcfm, add-on, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 3.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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 |
+
|
170 |
= 3.0.4 =
|
171 |
* Critical bug fix: conflict between Social Tags feature and the latest Yoast SEO plugin version on post editor (Updating failed error); New option (Premium): thumbnail height (crop the top and bottom margins from video image thumbnails); New option: only image tags (disable title and description social tags); Bug fix: rest routes (some features not working in sites with https problems); Bug fix: metadata features (problems due URLs with illegal characters).
|
172 |
|
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 |
+
|
755 |
= 3.0.4 =
|
756 |
* Critical bug fix: conflict between Social Tags feature and the latest Yoast SEO plugin version on post editor (Updating failed error); New option (Premium): thumbnail height (crop the top and bottom margins from video image thumbnails); New option: only image tags (disable title and description social tags); Bug fix: rest routes (some features not working in sites with https problems); Bug fix: metadata features (problems due URLs with illegal characters).
|
757 |
|