Version Description
- Notice: about the "nulled" Premium version; improvement: getting started and examples added to Featured Shortcode; bug fix: empty alt field for internal images.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3.3 to 3.3.4
- admin/html/js/menu.js +7 -5
- admin/html/menu.html +50 -53
- admin/strings.php +35 -14
- featured-image-from-url.php +1 -1
- includes/attachment.php +2 -2
- includes/thumbnail.php +5 -3
- readme.txt +6 -6
admin/html/js/menu.js
CHANGED
@@ -44,6 +44,7 @@ jQuery(function () {
|
|
44 |
jQuery("#tabsPremium").tabs();
|
45 |
jQuery("#tabsWooImport").tabs();
|
46 |
jQuery("#tabsWpAllImport").tabs();
|
|
|
47 |
|
48 |
// show settings
|
49 |
window.scrollTo(0, 0);
|
@@ -229,13 +230,14 @@ function fifu_save_dimensions_all_js() {
|
|
229 |
var attempts = 0;
|
230 |
var image = new Image();
|
231 |
jQuery(image).attr('src', data[i]['guid']);
|
232 |
-
is_svg = data[i]['guid'].
|
233 |
|
234 |
var poll = setInterval(function () {
|
235 |
if (image.naturalWidth || attempts > 100 || is_svg) {
|
236 |
attempts = 0;
|
237 |
clearInterval(poll);
|
238 |
-
|
|
|
239 |
image = null;
|
240 |
i++;
|
241 |
if (i < data.length) {
|
@@ -275,9 +277,9 @@ function fifu_save_dimensions_all_js() {
|
|
275 |
});
|
276 |
}
|
277 |
|
278 |
-
function fifu_get_sizes($, att_id
|
279 |
-
width =
|
280 |
-
height =
|
281 |
|
282 |
if (width == 1 && height == 1)
|
283 |
return;
|
44 |
jQuery("#tabsPremium").tabs();
|
45 |
jQuery("#tabsWooImport").tabs();
|
46 |
jQuery("#tabsWpAllImport").tabs();
|
47 |
+
jQuery("#tabsShortcode").tabs();
|
48 |
|
49 |
// show settings
|
50 |
window.scrollTo(0, 0);
|
230 |
var attempts = 0;
|
231 |
var image = new Image();
|
232 |
jQuery(image).attr('src', data[i]['guid']);
|
233 |
+
is_svg = data[i]['guid'].includes('.svg');
|
234 |
|
235 |
var poll = setInterval(function () {
|
236 |
if (image.naturalWidth || attempts > 100 || is_svg) {
|
237 |
attempts = 0;
|
238 |
clearInterval(poll);
|
239 |
+
if (!is_svg)
|
240 |
+
fifu_get_sizes(image, data[i]['ID'], data[i]['guid']);
|
241 |
image = null;
|
242 |
i++;
|
243 |
if (i < data.length) {
|
277 |
});
|
278 |
}
|
279 |
|
280 |
+
function fifu_get_sizes($, att_id) {
|
281 |
+
width = jQuery($)[0].naturalWidth;
|
282 |
+
height = jQuery($)[0].naturalHeight;
|
283 |
|
284 |
if (width == 1 && height == 1)
|
285 |
return;
|
admin/html/menu.html
CHANGED
@@ -1043,58 +1043,55 @@
|
|
1043 |
<div class="greybox" id="grad2">
|
1044 |
|
1045 |
<?php $fifu['shortcode']['desc']() ?><br/><br/>
|
1046 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1047 |
|
1048 |
</div>
|
1049 |
-
|
1050 |
-
<br>
|
1051 |
-
|
1052 |
-
<table style="text-align:left">
|
1053 |
-
<tr>
|
1054 |
-
<th>
|
1055 |
-
<form
|
1056 |
-
id="fifu_form_shortcode"
|
1057 |
-
action="javascript:void(0)"
|
1058 |
-
method="post">
|
1059 |
-
|
1060 |
-
<input
|
1061 |
-
type="submit"
|
1062 |
-
href="javascript:void(0)"
|
1063 |
-
id="fifu_toggle_shortcode"
|
1064 |
-
onclick="javascript:void(0)"
|
1065 |
-
name="fifu_toggle_shortcode"
|
1066 |
-
class="toggleoff"
|
1067 |
-
value=""
|
1068 |
-
style="display:block;border:none">
|
1069 |
-
|
1070 |
-
<input
|
1071 |
-
type="hidden"
|
1072 |
-
id="fifu_input_shortcode"
|
1073 |
-
name="fifu_input_shortcode"
|
1074 |
-
value="" >
|
1075 |
-
</form>
|
1076 |
-
</th>
|
1077 |
-
<th>
|
1078 |
-
<?php $fifu['shortcode']['width']() ?>
|
1079 |
-
|
1080 |
-
<form
|
1081 |
-
id="fifu_form_shortcode_min_width"
|
1082 |
-
action="javascript:void(0)"
|
1083 |
-
method="post">
|
1084 |
-
|
1085 |
-
<input id="fifu_input_shortcode_min_width"
|
1086 |
-
size=3
|
1087 |
-
type="text"
|
1088 |
-
name="fifu_input_shortcode_min_width"
|
1089 |
-
value=""
|
1090 |
-
style="width:85px">
|
1091 |
-
<br>
|
1092 |
-
<input type="submit" value="<?php $fifu['button']['ok']() ?>" style="width:85px" disabled>
|
1093 |
-
</form>
|
1094 |
-
</th>
|
1095 |
-
</tr>
|
1096 |
-
</table>
|
1097 |
-
|
1098 |
</div>
|
1099 |
</div>
|
1100 |
<div id="tabs-e">
|
@@ -2503,7 +2500,7 @@
|
|
2503 |
<i class="fab fa-facebook" style="font-size:30px"></i>
|
2504 |
</td>
|
2505 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2506 |
-
<i class="fas fa-
|
2507 |
</td>
|
2508 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2509 |
<i class="fas fa-tachometer-alt" style="font-size:30px"></i>
|
@@ -2514,7 +2511,7 @@
|
|
2514 |
<i><?php $fifu['support']['facebook']() ?></i>
|
2515 |
</td>
|
2516 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2517 |
-
<i><?php $fifu['support']['
|
2518 |
</td>
|
2519 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2520 |
<i><?php $fifu['support']['speed']() ?></i>
|
@@ -2525,7 +2522,7 @@
|
|
2525 |
<?php $fifu['support']['facebook-desc']() ?>
|
2526 |
</td>
|
2527 |
<td style="vertical-align: top;">
|
2528 |
-
<?php $fifu['support']['
|
2529 |
</td>
|
2530 |
<td style="vertical-align: top;">
|
2531 |
<?php $fifu['support']['speed-desc']() ?>
|
1043 |
<div class="greybox" id="grad2">
|
1044 |
|
1045 |
<?php $fifu['shortcode']['desc']() ?><br/><br/>
|
1046 |
+
<div id="tabsShortcode">
|
1047 |
+
<ul>
|
1048 |
+
<li><a href="#tabs-0"><?php $fifu['shortcode']['tab']['featured']() ?></a></li>
|
1049 |
+
<li><a href="#tabs-1"><?php $fifu['shortcode']['tab']['important']() ?></a></li>
|
1050 |
+
<li><a href="#tabs-2"><?php $fifu['shortcode']['tab']['start']() ?></a></li>
|
1051 |
+
</ul>
|
1052 |
+
<div id="tabs-0">
|
1053 |
+
<table style="text-align:left">
|
1054 |
+
<tr>
|
1055 |
+
<th>
|
1056 |
+
<form
|
1057 |
+
id="fifu_form_shortcode"
|
1058 |
+
action="javascript:void(0)"
|
1059 |
+
method="post">
|
1060 |
+
<input
|
1061 |
+
type="submit"
|
1062 |
+
href="javascript:void(0)"
|
1063 |
+
id="fifu_toggle_shortcode"
|
1064 |
+
onclick="javascript:void(0)"
|
1065 |
+
name="fifu_toggle_shortcode"
|
1066 |
+
class="toggleoff"
|
1067 |
+
value=""
|
1068 |
+
style="display:block;border:none">
|
1069 |
+
|
1070 |
+
<input
|
1071 |
+
type="hidden"
|
1072 |
+
id="fifu_input_shortcode"
|
1073 |
+
name="fifu_input_shortcode"
|
1074 |
+
value="" >
|
1075 |
+
</form>
|
1076 |
+
</th>
|
1077 |
+
</tr>
|
1078 |
+
</table>
|
1079 |
+
</div>
|
1080 |
+
<div id="tabs-1">
|
1081 |
+
<?php $fifu['shortcode']['important']() ?>
|
1082 |
+
</div>
|
1083 |
+
<div id="tabs-2">
|
1084 |
+
1) <?php $fifu['shortcode']['start1']() ?> <?php $fifu['detail']['suggestion']() ?>: Shortcoder;<br>
|
1085 |
+
2) <?php $fifu['shortcode']['start2']() ?><br>
|
1086 |
+
<input style="width:70%" value="<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F&show_text=false&width=734&height=411&appId" width="734" height="411" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>"></input> (<?php $fifu['shortcode']['facebook']() ?>)<br>
|
1087 |
+
<input style="width:70%" value="<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d99370.36297111909!2d-77.08461569891229!3d38.8937091395437!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89b7c6de5af6e45b%3A0xc2524522d4885d2a!2sWashington%2C%20D.C.%2C%20Distrito%20de%20Columbia%2C%20EUA!5e0!3m2!1spt-BR!2sbr!4v1599220409491!5m2!1spt-BR!2sbr" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>"></input> (<?php $fifu['shortcode']['map']() ?>)<br>
|
1088 |
+
<input style="width:70%" value="<iframe src="https://open.spotify.com/embed/artist/74cb3MG0x0BOnYNW1uXYnM" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>"></input> (<?php $fifu['shortcode']['spotify']() ?>)<br>
|
1089 |
+
3) <?php $fifu['shortcode']['start3']() ?><br>
|
1090 |
+
4) <?php $fifu['shortcode']['start4']() ?>
|
1091 |
+
</div>
|
1092 |
+
</div>
|
1093 |
|
1094 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1095 |
</div>
|
1096 |
</div>
|
1097 |
<div id="tabs-e">
|
2500 |
<i class="fab fa-facebook" style="font-size:30px"></i>
|
2501 |
</td>
|
2502 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2503 |
+
<i class="fas fa-skull-crossbones" style="font-size:30px"></i>
|
2504 |
</td>
|
2505 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2506 |
<i class="fas fa-tachometer-alt" style="font-size:30px"></i>
|
2511 |
<i><?php $fifu['support']['facebook']() ?></i>
|
2512 |
</td>
|
2513 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2514 |
+
<i><?php $fifu['support']['null']() ?></i>
|
2515 |
</td>
|
2516 |
<td style="width:33%;text-align:center;border-bottom: 1px solid #ddd !important">
|
2517 |
<i><?php $fifu['support']['speed']() ?></i>
|
2522 |
<?php $fifu['support']['facebook-desc']() ?>
|
2523 |
</td>
|
2524 |
<td style="vertical-align: top;">
|
2525 |
+
<?php $fifu['support']['null-desc']() ?>
|
2526 |
</td>
|
2527 |
<td style="vertical-align: top;">
|
2528 |
<?php $fifu['support']['speed-desc']() ?>
|
admin/strings.php
CHANGED
@@ -336,8 +336,8 @@ function fifu_get_strings_settings() {
|
|
336 |
$fifu['support']['facebook'] = function() {
|
337 |
_e("Facebook doesn't share my images", FIFU_SLUG);
|
338 |
};
|
339 |
-
$fifu['support']['
|
340 |
-
_e("
|
341 |
};
|
342 |
$fifu['support']['speed'] = function() {
|
343 |
_e("PageSpeed and GTmetrix issues", FIFU_SLUG);
|
@@ -354,8 +354,8 @@ function fifu_get_strings_settings() {
|
|
354 |
$fifu['support']['facebook-desc'] = function() {
|
355 |
_e("You probably have a plugin or theme that sets a default image as the Facebook image (og:image tag). Just find and disable the option.", FIFU_SLUG);
|
356 |
};
|
357 |
-
$fifu['support']['
|
358 |
-
_e("
|
359 |
};
|
360 |
$fifu['support']['speed-desc'] = function() {
|
361 |
_e("You can solve that installing Jetpack plugin. Access its \"Settings\", \"Performance\" and enable \"Speed up image load times\". You'll have a free CDN + optimized external thumbnails.", FIFU_SLUG);
|
@@ -787,13 +787,40 @@ function fifu_get_strings_settings() {
|
|
787 |
|
788 |
// shortcode
|
789 |
$fifu['shortcode']['desc'] = function() {
|
790 |
-
_e("This
|
791 |
};
|
792 |
$fifu['shortcode']['important'] = function() {
|
793 |
-
_e("
|
794 |
};
|
795 |
-
$fifu['shortcode']['
|
796 |
-
_e("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
};
|
798 |
|
799 |
// slider
|
@@ -1083,9 +1110,6 @@ function fifu_get_strings_meta_box() {
|
|
1083 |
};
|
1084 |
|
1085 |
// titles
|
1086 |
-
$fifu['title']['category']['shortcode'] = function() {
|
1087 |
-
_e("Featured shortcode", FIFU_SLUG);
|
1088 |
-
};
|
1089 |
$fifu['title']['category']['video'] = function() {
|
1090 |
_e("Featured video", FIFU_SLUG);
|
1091 |
};
|
@@ -1171,9 +1195,6 @@ function fifu_get_strings_meta_box_php() {
|
|
1171 |
$fifu['title']['product']['slider'] = function() {
|
1172 |
return __("Featured slider", FIFU_SLUG);
|
1173 |
};
|
1174 |
-
$fifu['title']['product']['shortcode'] = function() {
|
1175 |
-
return __("Featured shortcode", FIFU_SLUG);
|
1176 |
-
};
|
1177 |
$fifu['title']['post']['image'] = function() {
|
1178 |
return __("Featured image", FIFU_SLUG);
|
1179 |
};
|
336 |
$fifu['support']['facebook'] = function() {
|
337 |
_e("Facebook doesn't share my images", FIFU_SLUG);
|
338 |
};
|
339 |
+
$fifu['support']['null'] = function() {
|
340 |
+
_e("\"Nulled\" Premium doesn't work", FIFU_SLUG);
|
341 |
};
|
342 |
$fifu['support']['speed'] = function() {
|
343 |
_e("PageSpeed and GTmetrix issues", FIFU_SLUG);
|
354 |
$fifu['support']['facebook-desc'] = function() {
|
355 |
_e("You probably have a plugin or theme that sets a default image as the Facebook image (og:image tag). Just find and disable the option.", FIFU_SLUG);
|
356 |
};
|
357 |
+
$fifu['support']['null-desc'] = function() {
|
358 |
+
_e("This plugin has NO nulled versions, but pirate versions. Don't install that. It's illegal and should ruin your site. Moreover, sales of the original premium version keep this project alive.", FIFU_SLUG);
|
359 |
};
|
360 |
$fifu['support']['speed-desc'] = function() {
|
361 |
_e("You can solve that installing Jetpack plugin. Access its \"Settings\", \"Performance\" and enable \"Speed up image load times\". You'll have a free CDN + optimized external thumbnails.", FIFU_SLUG);
|
787 |
|
788 |
// shortcode
|
789 |
$fifu['shortcode']['desc'] = function() {
|
790 |
+
_e("This feature adds a field where you can input a shortcode instead of an URL. This way you could have a featured map, featured music etc.", FIFU_SLUG);
|
791 |
};
|
792 |
$fifu['shortcode']['important'] = function() {
|
793 |
+
_e("FIFU has no control over your shortcode content or how your theme or plugins (or even other FIFU features) will deal with that. So normally there are style issues, except if you use a simple theme, such as Twenty Twenty. Featured Shortcode shouldn't work with page builders, lightboxes, sliders and ajax calls (the shortcode conversion happens on backend). If your theme use background-images, this feature won't work as well.", FIFU_SLUG);
|
794 |
};
|
795 |
+
$fifu['shortcode']['start1'] = function() {
|
796 |
+
_e("install and active a shortcode plugin.", FIFU_SLUG);
|
797 |
+
};
|
798 |
+
$fifu['shortcode']['start2'] = function() {
|
799 |
+
_e("create a shortcode that contains an HTML code, such as:", FIFU_SLUG);
|
800 |
+
};
|
801 |
+
$fifu['shortcode']['start3'] = function() {
|
802 |
+
_e("create a new post and paste your [shortcode] into Featured Shortcode field on post editor;", FIFU_SLUG);
|
803 |
+
};
|
804 |
+
$fifu['shortcode']['start4'] = function() {
|
805 |
+
_e("add a ratio (required field) and publish.", FIFU_SLUG);
|
806 |
+
};
|
807 |
+
$fifu['shortcode']['facebook'] = function() {
|
808 |
+
_e("Facebook video", FIFU_SLUG);
|
809 |
+
};
|
810 |
+
$fifu['shortcode']['map'] = function() {
|
811 |
+
_e("Google map", FIFU_SLUG);
|
812 |
+
};
|
813 |
+
$fifu['shortcode']['spotify'] = function() {
|
814 |
+
_e("Spotify playlist", FIFU_SLUG);
|
815 |
+
};
|
816 |
+
$fifu['shortcode']['tab']['featured'] = function() {
|
817 |
+
_e("Featured shortcode", FIFU_SLUG);
|
818 |
+
};
|
819 |
+
$fifu['shortcode']['tab']['important'] = function() {
|
820 |
+
_e("Important", FIFU_SLUG);
|
821 |
+
};
|
822 |
+
$fifu['shortcode']['tab']['start'] = function() {
|
823 |
+
_e("Getting started", FIFU_SLUG);
|
824 |
};
|
825 |
|
826 |
// slider
|
1110 |
};
|
1111 |
|
1112 |
// titles
|
|
|
|
|
|
|
1113 |
$fifu['title']['category']['video'] = function() {
|
1114 |
_e("Featured video", FIFU_SLUG);
|
1115 |
};
|
1195 |
$fifu['title']['product']['slider'] = function() {
|
1196 |
return __("Featured slider", FIFU_SLUG);
|
1197 |
};
|
|
|
|
|
|
|
1198 |
$fifu['title']['post']['image'] = function() {
|
1199 |
return __("Featured image", FIFU_SLUG);
|
1200 |
};
|
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.3.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.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.3.4
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
includes/attachment.php
CHANGED
@@ -152,7 +152,7 @@ function fifu_get_photon_url($image, $size, $att_id) {
|
|
152 |
$args['resize'] = array($w, null);
|
153 |
}
|
154 |
|
155 |
-
if (defined('FIFU_DEV_DEBUG') && !defined('IS_WPCOM') && FIFU_DEV_DEBUG && fifu_is_local())
|
156 |
define('IS_WPCOM', true);
|
157 |
|
158 |
$image[0] = jetpack_photon_url($image[0], $args, null);
|
@@ -200,7 +200,7 @@ function fifu_callback($buffer) {
|
|
200 |
|
201 |
if ($featured) {
|
202 |
// add featured
|
203 |
-
$newImgItem = str_replace('<img ', '<img fifu-featured="
|
204 |
|
205 |
$buffer = str_replace($imgItem, fifu_replace($newImgItem, $post_id, null, null, null), $buffer);
|
206 |
}
|
152 |
$args['resize'] = array($w, null);
|
153 |
}
|
154 |
|
155 |
+
if (defined('FIFU_DEV_DEBUG') && !defined('IS_WPCOM') && FIFU_DEV_DEBUG && fifu_is_local() && !fifu_is_in_editor())
|
156 |
define('IS_WPCOM', true);
|
157 |
|
158 |
$image[0] = jetpack_photon_url($image[0], $args, null);
|
200 |
|
201 |
if ($featured) {
|
202 |
// add featured
|
203 |
+
$newImgItem = str_replace('<img ', '<img fifu-featured="' . $featured . '" ', $imgItem);
|
204 |
|
205 |
$buffer = str_replace($imgItem, fifu_replace($newImgItem, $post_id, null, null, null), $buffer);
|
206 |
}
|
includes/thumbnail.php
CHANGED
@@ -109,8 +109,10 @@ function fifu_replace($html, $post_id, $post_thumbnail_id, $size, $attr) {
|
|
109 |
$alt = get_the_title($post_id);
|
110 |
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter, $html);
|
111 |
} else {
|
112 |
-
|
113 |
-
|
|
|
|
|
114 |
}
|
115 |
|
116 |
if (fifu_is_on('fifu_lazy') && !is_admin()) {
|
@@ -190,7 +192,7 @@ function fifu_has_internal_image($post_id) {
|
|
190 |
}
|
191 |
|
192 |
function fifu_is_in_editor() {
|
193 |
-
return !is_admin() || get_current_screen() == null ? false : get_current_screen()->parent_base == 'edit';
|
194 |
}
|
195 |
|
196 |
function fifu_get_default_url() {
|
109 |
$alt = get_the_title($post_id);
|
110 |
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter, $html);
|
111 |
} else {
|
112 |
+
if ($url) {
|
113 |
+
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
114 |
+
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter . ' title=' . $delimiter . $alt . $delimiter, $html);
|
115 |
+
}
|
116 |
}
|
117 |
|
118 |
if (fifu_is_on('fifu_lazy') && !is_admin()) {
|
192 |
}
|
193 |
|
194 |
function fifu_is_in_editor() {
|
195 |
+
return !is_admin() || get_current_screen() == null ? false : get_current_screen()->parent_base == 'edit' || get_current_screen()->is_block_editor;
|
196 |
}
|
197 |
|
198 |
function fifu_get_default_url() {
|
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.5
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -188,20 +188,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
191 |
= 3.3.3 =
|
192 |
* New option: Content URL > decode HTML entities; conflict fixes: Jetpack + WooCommerce lightbox, Save Image Dimensions + svg images; style issue: Flatsome + WooCommerce gallery.
|
193 |
|
194 |
= 3.3.2 =
|
195 |
* Fix: notices (due FIFU widget for Elementor).
|
196 |
|
197 |
-
= 3.3.1 =
|
198 |
-
* New feature: FIFU widget for Elementor; improvement: integration with WP All Import (taxonomies); style issue: conflict between FIFU Settings and plugins/themes CSS (jQuery-ui).
|
199 |
-
|
200 |
= others =
|
201 |
* [more](https://fifu.app/changelog/)
|
202 |
|
203 |
|
204 |
== Upgrade Notice ==
|
205 |
|
206 |
-
= 3.3.
|
207 |
-
*
|
4 |
Tags: featured, image, url, woocommerce, thumbnail
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 3.3.4
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 3.3.4 =
|
192 |
+
* Notice: about the "nulled" Premium version; improvement: getting started and examples added to Featured Shortcode; bug fix: empty alt field for internal images.
|
193 |
+
|
194 |
= 3.3.3 =
|
195 |
* New option: Content URL > decode HTML entities; conflict fixes: Jetpack + WooCommerce lightbox, Save Image Dimensions + svg images; style issue: Flatsome + WooCommerce gallery.
|
196 |
|
197 |
= 3.3.2 =
|
198 |
* Fix: notices (due FIFU widget for Elementor).
|
199 |
|
|
|
|
|
|
|
200 |
= others =
|
201 |
* [more](https://fifu.app/changelog/)
|
202 |
|
203 |
|
204 |
== Upgrade Notice ==
|
205 |
|
206 |
+
= 3.3.4 =
|
207 |
+
* Notice: about the "nulled" Premium version; improvement: getting started and examples added to Featured Shortcode; bug fix: empty alt field for internal images.
|