Version Description
- New feature: Disable right-click; new options for CDN + Optimized Thumbnails: use CDN URLs in social tags and media RSS tags, crop images (to keep the aspect ratio defined by theme or WordPress media settings).
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.6.7 |
Comparing to | |
See all releases |
Code changes from version 3.6.6 to 3.6.7
- admin/cli-commands.php +23 -1
- admin/html/menu.html +157 -20
- admin/html/support-data.html +2 -0
- admin/menu.php +7 -1
- admin/strings.php +18 -0
- featured-image-from-url.php +1 -1
- includes/attachment.php +1 -1
- includes/thumbnail.php +4 -1
- readme.txt +7 -6
admin/cli-commands.php
CHANGED
@@ -233,7 +233,29 @@ class fifu_cli extends WP_CLI_Command {
|
|
233 |
|
234 |
// performance
|
235 |
|
236 |
-
function cdn($args) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
switch ($args[0]) {
|
238 |
case 'on':
|
239 |
update_option('fifu_photon', 'toggleon', 'no'); // toggle
|
233 |
|
234 |
// performance
|
235 |
|
236 |
+
function cdn($args, $assoc_args) {
|
237 |
+
if (!empty($assoc_args['social'])) {
|
238 |
+
switch ($args[0]) {
|
239 |
+
case 'on':
|
240 |
+
update_option('fifu_cdn_social', 'toggleon', 'no'); // toggle
|
241 |
+
break;
|
242 |
+
case 'off':
|
243 |
+
update_option('fifu_cdn_social', 'toggleoff', 'no'); // toggle
|
244 |
+
break;
|
245 |
+
}
|
246 |
+
return;
|
247 |
+
}
|
248 |
+
if (!empty($assoc_args['crop'])) {
|
249 |
+
switch ($args[0]) {
|
250 |
+
case 'on':
|
251 |
+
update_option('fifu_cdn_crop', 'toggleon', 'no'); // toggle
|
252 |
+
break;
|
253 |
+
case 'off':
|
254 |
+
update_option('fifu_cdn_crop', 'toggleoff', 'no'); // toggle
|
255 |
+
break;
|
256 |
+
}
|
257 |
+
return;
|
258 |
+
}
|
259 |
switch ($args[0]) {
|
260 |
case 'on':
|
261 |
update_option('fifu_photon', 'toggleon', 'no'); // toggle
|
admin/html/menu.html
CHANGED
@@ -625,6 +625,21 @@
|
|
625 |
on, off
|
626 |
</th>
|
627 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
<tr class="color">
|
629 |
<th>
|
630 |
<?php $fifu['tab']['image']() ?>
|
@@ -1575,7 +1590,9 @@
|
|
1575 |
<th>
|
1576 |
<?php $fifu['title']['jetpack']() ?>
|
1577 |
</th>
|
1578 |
-
<th
|
|
|
|
|
1579 |
<th>
|
1580 |
wp fifu cdn <toggle>
|
1581 |
</th>
|
@@ -1583,6 +1600,40 @@
|
|
1583 |
on, off
|
1584 |
</th>
|
1585 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1586 |
<tr class="color">
|
1587 |
<th>
|
1588 |
<?php $fifu['tab']['performance']() ?>
|
@@ -2688,6 +2739,33 @@
|
|
2688 |
</table>
|
2689 |
</div>
|
2690 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2691 |
<div class="box">
|
2692 |
<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>
|
2693 |
|
@@ -4211,27 +4289,86 @@
|
|
4211 |
|
4212 |
<br>
|
4213 |
|
4214 |
-
<
|
4215 |
-
|
4216 |
-
|
4217 |
-
|
|
|
|
|
|
|
4218 |
|
4219 |
-
|
4220 |
-
|
4221 |
-
|
4222 |
-
|
4223 |
-
|
4224 |
-
|
4225 |
-
|
4226 |
-
|
4227 |
-
|
4228 |
|
4229 |
-
|
4230 |
-
|
4231 |
-
|
4232 |
-
|
4233 |
-
|
4234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4235 |
</div>
|
4236 |
|
4237 |
<div class="box">
|
625 |
on, off
|
626 |
</th>
|
627 |
</tr>
|
628 |
+
<tr class="color">
|
629 |
+
<th>
|
630 |
+
<?php $fifu['tab']['image']() ?>
|
631 |
+
</th>
|
632 |
+
<th>
|
633 |
+
<?php $fifu['title']['block']() ?>
|
634 |
+
</th>
|
635 |
+
<th></th>
|
636 |
+
<th>
|
637 |
+
wp fifu image --block <toggle>
|
638 |
+
</th>
|
639 |
+
<th>
|
640 |
+
on, off
|
641 |
+
</th>
|
642 |
+
</tr>
|
643 |
<tr class="color">
|
644 |
<th>
|
645 |
<?php $fifu['tab']['image']() ?>
|
1590 |
<th>
|
1591 |
<?php $fifu['title']['jetpack']() ?>
|
1592 |
</th>
|
1593 |
+
<th>
|
1594 |
+
<?php $fifu['jetpack']['toggle']['cdn']() ?>
|
1595 |
+
</th>
|
1596 |
<th>
|
1597 |
wp fifu cdn <toggle>
|
1598 |
</th>
|
1600 |
on, off
|
1601 |
</th>
|
1602 |
</tr>
|
1603 |
+
<tr class="color">
|
1604 |
+
<th>
|
1605 |
+
<?php $fifu['tab']['performance']() ?>
|
1606 |
+
</th>
|
1607 |
+
<th>
|
1608 |
+
<?php $fifu['title']['jetpack']() ?>
|
1609 |
+
</th>
|
1610 |
+
<th>
|
1611 |
+
<?php $fifu['jetpack']['toggle']['social']() ?>
|
1612 |
+
</th>
|
1613 |
+
<th>
|
1614 |
+
wp fifu cdn --social <toggle>
|
1615 |
+
</th>
|
1616 |
+
<th>
|
1617 |
+
on, off
|
1618 |
+
</th>
|
1619 |
+
</tr>
|
1620 |
+
<tr class="color">
|
1621 |
+
<th>
|
1622 |
+
<?php $fifu['tab']['performance']() ?>
|
1623 |
+
</th>
|
1624 |
+
<th>
|
1625 |
+
<?php $fifu['title']['jetpack']() ?>
|
1626 |
+
</th>
|
1627 |
+
<th>
|
1628 |
+
<?php $fifu['jetpack']['toggle']['crop']() ?>
|
1629 |
+
</th>
|
1630 |
+
<th>
|
1631 |
+
wp fifu cdn --crop <toggle>
|
1632 |
+
</th>
|
1633 |
+
<th>
|
1634 |
+
on, off
|
1635 |
+
</th>
|
1636 |
+
</tr>
|
1637 |
<tr class="color">
|
1638 |
<th>
|
1639 |
<?php $fifu['tab']['performance']() ?>
|
2739 |
</table>
|
2740 |
</div>
|
2741 |
|
2742 |
+
<div class="box">
|
2743 |
+
<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>
|
2744 |
+
|
2745 |
+
<h2><?php $fifu['title']['block']() ?></h2>
|
2746 |
+
|
2747 |
+
<div class="greybox" id="grad2">
|
2748 |
+
|
2749 |
+
<?php $fifu['block']['desc']() ?>
|
2750 |
+
|
2751 |
+
</div>
|
2752 |
+
|
2753 |
+
<br>
|
2754 |
+
|
2755 |
+
<table style="text-align:left">
|
2756 |
+
<tr>
|
2757 |
+
<th>
|
2758 |
+
<input
|
2759 |
+
type="submit"
|
2760 |
+
class="toggleoff"
|
2761 |
+
value=""
|
2762 |
+
style="display:block;border:none">
|
2763 |
+
</th>
|
2764 |
+
</tr>
|
2765 |
+
</table>
|
2766 |
+
|
2767 |
+
</div>
|
2768 |
+
|
2769 |
<div class="box">
|
2770 |
<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>
|
2771 |
|
4289 |
|
4290 |
<br>
|
4291 |
|
4292 |
+
<table style="text-align:left">
|
4293 |
+
<tr>
|
4294 |
+
<td>
|
4295 |
+
<form
|
4296 |
+
id="fifu_form_photon"
|
4297 |
+
action="javascript:void(0)"
|
4298 |
+
method="post">
|
4299 |
|
4300 |
+
<input
|
4301 |
+
type="submit"
|
4302 |
+
href="javascript:void(0)"
|
4303 |
+
id="fifu_toggle_photon"
|
4304 |
+
onclick="invert('photon')"
|
4305 |
+
name="fifu_toggle_photon"
|
4306 |
+
class="<?php echo $enable_photon; ?>"
|
4307 |
+
value=""
|
4308 |
+
style="display:block;border:none">
|
4309 |
|
4310 |
+
<input
|
4311 |
+
type="hidden"
|
4312 |
+
id="fifu_input_photon"
|
4313 |
+
name="fifu_input_photon"
|
4314 |
+
value="" >
|
4315 |
+
</form>
|
4316 |
+
</td>
|
4317 |
+
<td><?php $fifu['jetpack']['toggle']['cdn']() ?></td>
|
4318 |
+
</tr>
|
4319 |
+
<tr>
|
4320 |
+
<td>
|
4321 |
+
<form
|
4322 |
+
id="fifu_form_cdn_social"
|
4323 |
+
action="javascript:void(0)"
|
4324 |
+
method="post">
|
4325 |
+
|
4326 |
+
<input
|
4327 |
+
type="submit"
|
4328 |
+
href="javascript:void(0)"
|
4329 |
+
id="fifu_toggle_cdn_social"
|
4330 |
+
onclick="invert('cdn_social')"
|
4331 |
+
name="fifu_toggle_cdn_social"
|
4332 |
+
class="<?php echo $enable_cdn_social; ?>"
|
4333 |
+
value=""
|
4334 |
+
style="display:block;border:none">
|
4335 |
+
|
4336 |
+
<input
|
4337 |
+
type="hidden"
|
4338 |
+
id="fifu_input_cdn_social"
|
4339 |
+
name="fifu_input_cdn_social"
|
4340 |
+
value="" >
|
4341 |
+
</form>
|
4342 |
+
</td>
|
4343 |
+
<td><?php $fifu['jetpack']['toggle']['social']() ?></td>
|
4344 |
+
</tr>
|
4345 |
+
<tr>
|
4346 |
+
<td>
|
4347 |
+
<form
|
4348 |
+
id="fifu_form_cdn_crop"
|
4349 |
+
action="javascript:void(0)"
|
4350 |
+
method="post">
|
4351 |
+
|
4352 |
+
<input
|
4353 |
+
type="submit"
|
4354 |
+
href="javascript:void(0)"
|
4355 |
+
id="fifu_toggle_cdn_crop"
|
4356 |
+
onclick="invert('cdn_crop')"
|
4357 |
+
name="fifu_toggle_cdn_crop"
|
4358 |
+
class="<?php echo $enable_cdn_crop; ?>"
|
4359 |
+
value=""
|
4360 |
+
style="display:block;border:none">
|
4361 |
+
|
4362 |
+
<input
|
4363 |
+
type="hidden"
|
4364 |
+
id="fifu_input_cdn_crop"
|
4365 |
+
name="fifu_input_cdn_crop"
|
4366 |
+
value="" >
|
4367 |
+
</form>
|
4368 |
+
</td>
|
4369 |
+
<td><?php $fifu['jetpack']['toggle']['crop']() ?></td>
|
4370 |
+
</tr>
|
4371 |
+
</table>
|
4372 |
</div>
|
4373 |
|
4374 |
<div class="box">
|
admin/html/support-data.html
CHANGED
@@ -23,6 +23,8 @@ Max lenght:<?php echo fifu_db_get_guid_size() ?>;
|
|
23 |
Plugins:<?php echo fifu_get_plugins_list() ?>;
|
24 |
Active plugins:<?php echo fifu_get_active_plugins_list() ?>;
|
25 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
|
|
|
|
26 |
fifu_column_height:<?php echo $column_height ?>;
|
27 |
fifu_confirm_delete_all:<?php echo $enable_confirm_delete_all ?>;
|
28 |
fifu_confirm_delete_all_time:<?php echo $enable_confirm_delete_all_time ?>;
|
23 |
Plugins:<?php echo fifu_get_plugins_list() ?>;
|
24 |
Active plugins:<?php echo fifu_get_active_plugins_list() ?>;
|
25 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
26 |
+
fifu_cdn_crop:<?php echo $enable_cdn_crop ?>;
|
27 |
+
fifu_cdn_social:<?php echo $enable_cdn_social ?>;
|
28 |
fifu_column_height:<?php echo $column_height ?>;
|
29 |
fifu_confirm_delete_all:<?php echo $enable_confirm_delete_all ?>;
|
30 |
fifu_confirm_delete_all_time:<?php echo $enable_confirm_delete_all_time ?>;
|
admin/menu.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', 'fifu_lazy', 'fifu_photon', 'fifu_reset', 'fifu_content', 'fifu_content_page', 'fifu_content_cpt', 'fifu_enable_default_url', 'fifu_spinner_db', 'fifu_spinner_nth', 'fifu_fake', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_hide_cpt', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_column_height', 'fifu_decode', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
|
4 |
|
5 |
define('FIFU_SLUG', 'featured-image-from-url');
|
6 |
|
@@ -46,6 +46,8 @@ function fifu_support_data() {
|
|
46 |
$enable_social_image_only = get_option('fifu_social_image_only');
|
47 |
$enable_lazy = get_option('fifu_lazy');
|
48 |
$enable_photon = get_option('fifu_photon');
|
|
|
|
|
49 |
$enable_reset = get_option('fifu_reset');
|
50 |
$enable_content = get_option('fifu_content');
|
51 |
$enable_content_page = get_option('fifu_content_page');
|
@@ -100,6 +102,8 @@ function fifu_get_menu_html() {
|
|
100 |
$enable_social_image_only = get_option('fifu_social_image_only');
|
101 |
$enable_lazy = get_option('fifu_lazy');
|
102 |
$enable_photon = get_option('fifu_photon');
|
|
|
|
|
103 |
$enable_reset = get_option('fifu_reset');
|
104 |
$enable_content = get_option('fifu_content');
|
105 |
$enable_content_page = get_option('fifu_content_page');
|
@@ -199,6 +203,8 @@ function fifu_update_menu_options() {
|
|
199 |
fifu_update_option('fifu_input_social_image_only', 'fifu_social_image_only');
|
200 |
fifu_update_option('fifu_input_lazy', 'fifu_lazy');
|
201 |
fifu_update_option('fifu_input_photon', 'fifu_photon');
|
|
|
|
|
202 |
fifu_update_option('fifu_input_reset', 'fifu_reset');
|
203 |
fifu_update_option('fifu_input_content', 'fifu_content');
|
204 |
fifu_update_option('fifu_input_content_page', 'fifu_content_page');
|
1 |
<?php
|
2 |
|
3 |
+
define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', 'fifu_lazy', 'fifu_photon', 'fifu_cdn_social', 'fifu_cdn_crop', 'fifu_reset', 'fifu_content', 'fifu_content_page', 'fifu_content_cpt', 'fifu_enable_default_url', 'fifu_spinner_db', 'fifu_spinner_nth', 'fifu_fake', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_hide_cpt', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_column_height', 'fifu_decode', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
|
4 |
|
5 |
define('FIFU_SLUG', 'featured-image-from-url');
|
6 |
|
46 |
$enable_social_image_only = get_option('fifu_social_image_only');
|
47 |
$enable_lazy = get_option('fifu_lazy');
|
48 |
$enable_photon = get_option('fifu_photon');
|
49 |
+
$enable_cdn_social = get_option('fifu_cdn_social');
|
50 |
+
$enable_cdn_crop = get_option('fifu_cdn_crop');
|
51 |
$enable_reset = get_option('fifu_reset');
|
52 |
$enable_content = get_option('fifu_content');
|
53 |
$enable_content_page = get_option('fifu_content_page');
|
102 |
$enable_social_image_only = get_option('fifu_social_image_only');
|
103 |
$enable_lazy = get_option('fifu_lazy');
|
104 |
$enable_photon = get_option('fifu_photon');
|
105 |
+
$enable_cdn_social = get_option('fifu_cdn_social');
|
106 |
+
$enable_cdn_crop = get_option('fifu_cdn_crop');
|
107 |
$enable_reset = get_option('fifu_reset');
|
108 |
$enable_content = get_option('fifu_content');
|
109 |
$enable_content_page = get_option('fifu_content_page');
|
203 |
fifu_update_option('fifu_input_social_image_only', 'fifu_social_image_only');
|
204 |
fifu_update_option('fifu_input_lazy', 'fifu_lazy');
|
205 |
fifu_update_option('fifu_input_photon', 'fifu_photon');
|
206 |
+
fifu_update_option('fifu_input_cdn_social', 'fifu_cdn_social');
|
207 |
+
fifu_update_option('fifu_input_cdn_crop', 'fifu_cdn_crop');
|
208 |
fifu_update_option('fifu_input_reset', 'fifu_reset');
|
209 |
fifu_update_option('fifu_input_content', 'fifu_content');
|
210 |
fifu_update_option('fifu_input_content_page', 'fifu_content_page');
|
admin/strings.php
CHANGED
@@ -226,6 +226,9 @@ function fifu_get_strings_settings() {
|
|
226 |
$fifu['title']['tags'] = function() {
|
227 |
_e("Auto set featured image from Unsplash using tags", FIFU_SLUG);
|
228 |
};
|
|
|
|
|
|
|
229 |
$fifu['title']['giphy'] = function() {
|
230 |
_e("Giphy Search", FIFU_SLUG);
|
231 |
};
|
@@ -693,6 +696,12 @@ function fifu_get_strings_settings() {
|
|
693 |
_e("Set images from Unsplash as featured images automatically. FIFU will check every minute if there are post types without featured images and will perform Unsplash searches based on the tags to get the image URLs.", FIFU_SLUG);
|
694 |
};
|
695 |
|
|
|
|
|
|
|
|
|
|
|
|
|
696 |
// giphy
|
697 |
$fifu['giphy']['desc'] = function() {
|
698 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
@@ -918,6 +927,15 @@ function fifu_get_strings_settings() {
|
|
918 |
$fifu['jetpack']['requirement'] = function() {
|
919 |
_e("for images added in an automated way, the Lazy Load feature below should be enabled.", FIFU_SLUG);
|
920 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
921 |
|
922 |
// lazy
|
923 |
$fifu['lazy']['desc'] = function() {
|
226 |
$fifu['title']['tags'] = function() {
|
227 |
_e("Auto set featured image from Unsplash using tags", FIFU_SLUG);
|
228 |
};
|
229 |
+
$fifu['title']['block'] = function() {
|
230 |
+
_e("Disable right-click", FIFU_SLUG);
|
231 |
+
};
|
232 |
$fifu['title']['giphy'] = function() {
|
233 |
_e("Giphy Search", FIFU_SLUG);
|
234 |
};
|
696 |
_e("Set images from Unsplash as featured images automatically. FIFU will check every minute if there are post types without featured images and will perform Unsplash searches based on the tags to get the image URLs.", FIFU_SLUG);
|
697 |
};
|
698 |
|
699 |
+
|
700 |
+
// block
|
701 |
+
$fifu['block']['desc'] = function() {
|
702 |
+
_e("Disable right-click on images.", FIFU_SLUG);
|
703 |
+
};
|
704 |
+
|
705 |
// giphy
|
706 |
$fifu['giphy']['desc'] = function() {
|
707 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
927 |
$fifu['jetpack']['requirement'] = function() {
|
928 |
_e("for images added in an automated way, the Lazy Load feature below should be enabled.", FIFU_SLUG);
|
929 |
};
|
930 |
+
$fifu['jetpack']['toggle']['cdn'] = function() {
|
931 |
+
_e("CDN + optimized thumbnails", FIFU_SLUG);
|
932 |
+
};
|
933 |
+
$fifu['jetpack']['toggle']['social'] = function() {
|
934 |
+
_e("use CDN URLs in social tags and media RSS tags", FIFU_SLUG);
|
935 |
+
};
|
936 |
+
$fifu['jetpack']['toggle']['crop'] = function() {
|
937 |
+
_e("crop images (to keep the aspect ratio defined by theme or WordPress media settings)", FIFU_SLUG);
|
938 |
+
};
|
939 |
|
940 |
// lazy
|
941 |
$fifu['lazy']['desc'] = function() {
|
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 as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
-
* Version: 3.6.
|
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 as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
+
* Version: 3.6.7
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
includes/attachment.php
CHANGED
@@ -183,7 +183,7 @@ function fifu_add_size($image, $size) {
|
|
183 |
function fifu_get_photon_url($image, $size, $att_id) {
|
184 |
$image = fifu_add_size($image, $size);
|
185 |
$w = $image[1];
|
186 |
-
$h = $image[2];
|
187 |
|
188 |
$args = array();
|
189 |
|
183 |
function fifu_get_photon_url($image, $size, $att_id) {
|
184 |
$image = fifu_add_size($image, $size);
|
185 |
$w = $image[1];
|
186 |
+
$h = fifu_is_on('fifu_cdn_crop') ? $image[2] : null;
|
187 |
|
188 |
$args = array();
|
189 |
|
includes/thumbnail.php
CHANGED
@@ -78,8 +78,11 @@ function fifu_add_social_tags() {
|
|
78 |
if (fifu_is_off('fifu_social'))
|
79 |
return;
|
80 |
|
81 |
-
if ($url)
|
|
|
|
|
82 |
include 'html/og-image.html';
|
|
|
83 |
|
84 |
if (fifu_is_off('fifu_social_image_only'))
|
85 |
include 'html/social.html';
|
78 |
if (fifu_is_off('fifu_social'))
|
79 |
return;
|
80 |
|
81 |
+
if ($url) {
|
82 |
+
if (fifu_is_on('fifu_cdn_social'))
|
83 |
+
$url = fifu_jetpack_photon_url($url, null);
|
84 |
include 'html/og-image.html';
|
85 |
+
}
|
86 |
|
87 |
if (fifu_is_off('fifu_social_image_only'))
|
88 |
include 'html/social.html';
|
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: 5.8
|
7 |
-
Stable tag: 3.6.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -30,6 +30,7 @@ Use an external image as featured image of your post, page or custom post type.
|
|
30 |
* Auto set image title
|
31 |
* Save image dimensions
|
32 |
* Featured image column
|
|
|
33 |
* **[PRO]** Save in the media library
|
34 |
* **[PRO]** Giphy image search
|
35 |
* **[PRO]** Unsplash image size
|
@@ -223,20 +224,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
|
|
223 |
|
224 |
== Changelog ==
|
225 |
|
|
|
|
|
|
|
226 |
= 3.6.6 =
|
227 |
* Enhancement: keyword image search (multiple suggestions, infinite scroll and integration with Quick Edit); enhancement: CDN + Optimized Thumbnails (does not require Jetpack plugin anymore).
|
228 |
|
229 |
= 3.6.5 =
|
230 |
* New feature: WooCommerce > Fast Buy.
|
231 |
|
232 |
-
= 3.6.4 =
|
233 |
-
* New feature: Auto set featured image from Unsplash using tags; new option: Auto set screenshot as featured image > Scale; new option: bbPress > copy the featured image/video to the forum/topic content.
|
234 |
-
|
235 |
= others =
|
236 |
* [more](https://fifu.app/changelog)
|
237 |
|
238 |
|
239 |
== Upgrade Notice ==
|
240 |
|
241 |
-
= 3.6.
|
242 |
-
*
|
4 |
Tags: featured, image, url, video, woocommerce
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 3.6.7
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
30 |
* Auto set image title
|
31 |
* Save image dimensions
|
32 |
* Featured image column
|
33 |
+
* **[PRO]** Disable right-click
|
34 |
* **[PRO]** Save in the media library
|
35 |
* **[PRO]** Giphy image search
|
36 |
* **[PRO]** Unsplash image size
|
224 |
|
225 |
== Changelog ==
|
226 |
|
227 |
+
= 3.6.7 =
|
228 |
+
* New feature: Disable right-click; new options for CDN + Optimized Thumbnails: use CDN URLs in social tags and media RSS tags, crop images (to keep the aspect ratio defined by theme or WordPress media settings).
|
229 |
+
|
230 |
= 3.6.6 =
|
231 |
* Enhancement: keyword image search (multiple suggestions, infinite scroll and integration with Quick Edit); enhancement: CDN + Optimized Thumbnails (does not require Jetpack plugin anymore).
|
232 |
|
233 |
= 3.6.5 =
|
234 |
* New feature: WooCommerce > Fast Buy.
|
235 |
|
|
|
|
|
|
|
236 |
= others =
|
237 |
* [more](https://fifu.app/changelog)
|
238 |
|
239 |
|
240 |
== Upgrade Notice ==
|
241 |
|
242 |
+
= 3.6.7 =
|
243 |
+
* New feature: Disable right-click; new options for CDN + Optimized Thumbnails: use CDN URLs in social tags and media RSS tags, crop images (to keep the aspect ratio defined by theme or WordPress media settings).
|