Version Description
- New feature: auto set featured image using ISBN and books API (great for book stores); notice: for Amazon associates.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.3.8 |
Comparing to | |
See all releases |
Code changes from version 3.3.7 to 3.3.8
- admin/html/menu.html +107 -3
- admin/html/meta-box.html +1 -0
- admin/meta-box.php +2 -2
- admin/strings.php +29 -3
- featured-image-from-url.php +2 -1
- includes/attachment.php +1 -1
- includes/jetpack.php +6 -0
- readme.txt +7 -6
admin/html/menu.html
CHANGED
@@ -433,6 +433,27 @@
|
|
433 |
</ul>
|
434 |
</div>
|
435 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
</div>
|
437 |
|
438 |
<div id="tabs-g">
|
@@ -727,6 +748,7 @@
|
|
727 |
<li><a href="#tabsCrop-c"><?php $fifu['height']['tab']['ratio']() ?></a></li>
|
728 |
<li><a href="#tabsCrop-d"><?php $fifu['height']['tab']['fit']() ?></a></li>
|
729 |
<li><a href="#tabsCrop-e"><?php $fifu['height']['tab']['delay']() ?></a></li>
|
|
|
730 |
<br>
|
731 |
<br>
|
732 |
<div id="tabsCrop-a">
|
@@ -793,6 +815,27 @@
|
|
793 |
</div>
|
794 |
</div>
|
795 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
796 |
<div id="tabsCrop-c">
|
797 |
<div>
|
798 |
<?php $fifu['height']['ratio']['desc']() ?>: 3:2, 16:9, 1:1...
|
@@ -2120,6 +2163,14 @@
|
|
2120 |
fifu_slider_list_url
|
2121 |
</th>
|
2122 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2123 |
</table>
|
2124 |
</div>
|
2125 |
|
@@ -2369,6 +2420,14 @@
|
|
2369 |
fifu_slider_list_url
|
2370 |
</th>
|
2371 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2372 |
</table>
|
2373 |
</div>
|
2374 |
|
@@ -2662,8 +2721,53 @@
|
|
2662 |
</table>
|
2663 |
</div>
|
2664 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2665 |
</div>
|
2666 |
<div id="tabs-t">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2667 |
<div class="box">
|
2668 |
<table>
|
2669 |
<tr>
|
@@ -2789,7 +2893,7 @@
|
|
2789 |
<table>
|
2790 |
<tr>
|
2791 |
<td style="border-bottom:none">2020-06-02</td>
|
2792 |
-
<td style="border-bottom:none"><h3> Zapier
|
2793 |
<td style="border-bottom:none">service</td>
|
2794 |
</tr>
|
2795 |
</table>
|
@@ -2810,7 +2914,7 @@
|
|
2810 |
<table>
|
2811 |
<tr>
|
2812 |
<td style="border-bottom:none">2020-06-01</td>
|
2813 |
-
<td style="border-bottom:none"><h3> Zapier
|
2814 |
<td style="border-bottom:none">service</td>
|
2815 |
</tr>
|
2816 |
</table>
|
@@ -3084,7 +3188,7 @@
|
|
3084 |
</table>
|
3085 |
<div class="greybox" style="position: relative; top: -10px">
|
3086 |
Showing external images on "Related Posts":<br>
|
3087 |
-
x)
|
3088 |
</div>
|
3089 |
</div>
|
3090 |
<div class="box">
|
433 |
</ul>
|
434 |
</div>
|
435 |
</div>
|
436 |
+
|
437 |
+
<div class="box">
|
438 |
+
<div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
|
439 |
+
<h2><?php $fifu['title']['isbn']() ?> </span></h2>
|
440 |
+
<div class="greybox" id="grad2">
|
441 |
+
<?php $fifu['isbn']['desc']() ?>
|
442 |
+
</div>
|
443 |
+
<br>
|
444 |
+
<table style="text-align:left">
|
445 |
+
<tr>
|
446 |
+
<th>
|
447 |
+
<input
|
448 |
+
type="submit"
|
449 |
+
href="javascript:void(0)"
|
450 |
+
class="toggleoff"
|
451 |
+
value=""
|
452 |
+
style="display:block;border:none">
|
453 |
+
</th>
|
454 |
+
</tr>
|
455 |
+
</table>
|
456 |
+
</div>
|
457 |
</div>
|
458 |
|
459 |
<div id="tabs-g">
|
748 |
<li><a href="#tabsCrop-c"><?php $fifu['height']['tab']['ratio']() ?></a></li>
|
749 |
<li><a href="#tabsCrop-d"><?php $fifu['height']['tab']['fit']() ?></a></li>
|
750 |
<li><a href="#tabsCrop-e"><?php $fifu['height']['tab']['delay']() ?></a></li>
|
751 |
+
<li><a href="#tabsCrop-f"><?php $fifu['height']['tab']['remove']() ?></a></li>
|
752 |
<br>
|
753 |
<br>
|
754 |
<div id="tabsCrop-a">
|
815 |
</div>
|
816 |
</div>
|
817 |
|
818 |
+
<div id="tabsCrop-f">
|
819 |
+
<div>
|
820 |
+
<?php $fifu['height']['remove']['desc']() ?>
|
821 |
+
<br>
|
822 |
+
<br>
|
823 |
+
<table style="text-align:left">
|
824 |
+
<tr>
|
825 |
+
<th>
|
826 |
+
<input id="fifu_input_crop_default"
|
827 |
+
type="text"
|
828 |
+
name="fifu_input_crop_default"
|
829 |
+
style="width:675px"
|
830 |
+
value="">
|
831 |
+
<input type="submit"
|
832 |
+
value="<?php $fifu['button']['submit']() ?>" disabled>
|
833 |
+
</th>
|
834 |
+
</tr>
|
835 |
+
</table>
|
836 |
+
</div>
|
837 |
+
</div>
|
838 |
+
|
839 |
<div id="tabsCrop-c">
|
840 |
<div>
|
841 |
<?php $fifu['height']['ratio']['desc']() ?>: 3:2, 16:9, 1:1...
|
2163 |
fifu_slider_list_url
|
2164 |
</th>
|
2165 |
</tr>
|
2166 |
+
<tr>
|
2167 |
+
<th>
|
2168 |
+
<?php $fifu['api']['custom']['isbn']() ?>
|
2169 |
+
</th>
|
2170 |
+
<th>
|
2171 |
+
fifu_isbn
|
2172 |
+
</th>
|
2173 |
+
</tr>
|
2174 |
</table>
|
2175 |
</div>
|
2176 |
|
2420 |
fifu_slider_list_url
|
2421 |
</th>
|
2422 |
</tr>
|
2423 |
+
<tr>
|
2424 |
+
<th>
|
2425 |
+
<?php $fifu['import']['custom']['isbn']() ?>
|
2426 |
+
</th>
|
2427 |
+
<th>
|
2428 |
+
fifu_isbn
|
2429 |
+
</th>
|
2430 |
+
</tr>
|
2431 |
</table>
|
2432 |
</div>
|
2433 |
|
2721 |
</table>
|
2722 |
</div>
|
2723 |
</div>
|
2724 |
+
<div class="box">
|
2725 |
+
<h2>For Amazon associates</h2>
|
2726 |
+
<div class="greybox">
|
2727 |
+
<table style="width:100%">
|
2728 |
+
<tr>
|
2729 |
+
<td style="width:14%;vertical-align:unset;">
|
2730 |
+
<i class="fab fa-amazon" style="font-size:110px"></i>
|
2731 |
+
</td>
|
2732 |
+
<td style="width:85%">
|
2733 |
+
<div style="background-color:#e3b853;color:white;padding:15px;border-radius:5px;font-weight:bold;">
|
2734 |
+
FIFU is looking for 3 qualified¹ Amazon associates able to share their <a target="_blank" style="color:white" href="https://webservices.amazon.com/paapi5/documentation/register-for-pa-api.html">Product Advertising API</a> credentials with us.
|
2735 |
+
</div>
|
2736 |
+
<br>
|
2737 |
+
The API will be used by a FIFU cloud service that will extract images/data from Amazon products and use that in new features. If you are interested, please contact us at the email above. <b>You will receive FIFU Premium</b> for free and updates while you keep the credentials active. As you should know, <i>¹Product Advertising API sign up is available only to associates who have referred qualified sales and have been accepted into the program.</i> We're not qualified =/<br>
|
2738 |
+
</td>
|
2739 |
+
</tr>
|
2740 |
+
</table>
|
2741 |
+
</div>
|
2742 |
+
</div>
|
2743 |
</div>
|
2744 |
<div id="tabs-t">
|
2745 |
+
<div class="box">
|
2746 |
+
<table>
|
2747 |
+
<tr>
|
2748 |
+
<td style="border-bottom:none">2020-10-01</td>
|
2749 |
+
<td style="border-bottom:none"><h3> Divi</h3></td>
|
2750 |
+
<td style="border-bottom:none">theme</td>
|
2751 |
+
</tr>
|
2752 |
+
</table>
|
2753 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2754 |
+
External featured images are not being shown:<br>
|
2755 |
+
1) deactivate "Divi > Theme Options > General > Enable Responsive Images".<br>
|
2756 |
+
</div>
|
2757 |
+
</div>
|
2758 |
+
<div class="box">
|
2759 |
+
<table>
|
2760 |
+
<tr>
|
2761 |
+
<td style="border-bottom:none">2020-09-23</td>
|
2762 |
+
<td style="border-bottom:none"><h3> Facebook</h3></td>
|
2763 |
+
<td style="border-bottom:none">social networking</td>
|
2764 |
+
</tr>
|
2765 |
+
</table>
|
2766 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2767 |
+
The featured image is being cropped when the post is shared in a Facebook page:<br>
|
2768 |
+
x) there is no local solution and the issue happens even with internal featured images. Facebook pages expect 600x314px images and it will automatically crop images with a different aspect ratio. You may contact Facebook support and ask for changes.<br>
|
2769 |
+
</div>
|
2770 |
+
</div>
|
2771 |
<div class="box">
|
2772 |
<table>
|
2773 |
<tr>
|
2893 |
<table>
|
2894 |
<tr>
|
2895 |
<td style="border-bottom:none">2020-06-02</td>
|
2896 |
+
<td style="border-bottom:none"><h3> Zapier (+Instagram)</h3></td>
|
2897 |
<td style="border-bottom:none">service</td>
|
2898 |
</tr>
|
2899 |
</table>
|
2914 |
<table>
|
2915 |
<tr>
|
2916 |
<td style="border-bottom:none">2020-06-01</td>
|
2917 |
+
<td style="border-bottom:none"><h3> Zapier (+YouTube)</h3></td>
|
2918 |
<td style="border-bottom:none">service</td>
|
2919 |
</tr>
|
2920 |
</table>
|
3188 |
</table>
|
3189 |
<div class="greybox" style="position: relative; top: -10px">
|
3190 |
Showing external images on "Related Posts":<br>
|
3191 |
+
x) there is no local solution. Jetpack Related Posts documentation informs: "we do all the analysis, processing, and serving from our cloud". It means Jetpack would need to adapt its web service to work with the images provided by FIFU. So you may contact Jetpack support or install an alternative plugin for Related Posts, like <a href="https://wordpress.org/plugins/related-posts-thumbnails/">this</a>.<br>
|
3192 |
</div>
|
3193 |
</div>
|
3194 |
<div class="box">
|
admin/html/meta-box.html
CHANGED
@@ -104,6 +104,7 @@
|
|
104 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
105 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured slider" class="dashicons dashicons-images-alt2" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
106 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured shortcode" class="dashicons dashicons-shortcode" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
|
|
107 |
</tr>
|
108 |
</table>
|
109 |
</div>
|
104 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
105 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured slider" class="dashicons dashicons-images-alt2" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
106 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured shortcode" class="dashicons dashicons-shortcode" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
107 |
+
<td style="padding: 0px 0px" class="fifu-hover"><span title="ISBN" class="dashicons dashicons-book-alt" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
|
108 |
</tr>
|
109 |
</table>
|
110 |
</div>
|
admin/meta-box.php
CHANGED
@@ -8,9 +8,9 @@ function fifu_insert_meta_box() {
|
|
8 |
|
9 |
foreach ($post_types as $post_type) {
|
10 |
if ($post_type == 'product') {
|
11 |
-
add_meta_box('urlMetaBox', $fifu['title']['product']['image'](), 'fifu_show_elements', $post_type, 'side', '
|
12 |
} else if ($post_type) {
|
13 |
-
add_meta_box('imageUrlMetaBox', $fifu['title']['post']['image'](), 'fifu_show_elements', $post_type, 'side', '
|
14 |
}
|
15 |
}
|
16 |
fifu_register_meta_box_script();
|
8 |
|
9 |
foreach ($post_types as $post_type) {
|
10 |
if ($post_type == 'product') {
|
11 |
+
add_meta_box('urlMetaBox', $fifu['title']['product']['image'](), 'fifu_show_elements', $post_type, 'side', 'default');
|
12 |
} else if ($post_type) {
|
13 |
+
add_meta_box('imageUrlMetaBox', $fifu['title']['post']['image'](), 'fifu_show_elements', $post_type, 'side', 'default');
|
14 |
}
|
15 |
}
|
16 |
fifu_register_meta_box_script();
|
admin/strings.php
CHANGED
@@ -184,6 +184,9 @@ function fifu_get_strings_settings() {
|
|
184 |
$fifu['title']['auto'] = function() {
|
185 |
_e("Auto set featured image using post title and search engine", FIFU_SLUG);
|
186 |
};
|
|
|
|
|
|
|
187 |
$fifu['title']['giphy'] = function() {
|
188 |
_e("Giphy Search", FIFU_SLUG);
|
189 |
};
|
@@ -343,10 +346,10 @@ function fifu_get_strings_settings() {
|
|
343 |
_e("PageSpeed and GTmetrix issues", FIFU_SLUG);
|
344 |
};
|
345 |
$fifu['support']['disappeared-desc'] = function() {
|
346 |
-
_e("You were probably using a deprecated feature. Just do it: 1) access Metadata tab; 2) run Clean Metadata; 3) enable Image Metadata (~30,000 URLs/min).", FIFU_SLUG);
|
347 |
};
|
348 |
$fifu['support']['plugin-desc'] = function() {
|
349 |
-
_e("Just send
|
350 |
};
|
351 |
$fifu['support']['style-desc'] = function() {
|
352 |
_e("Some themes and plugins aren't responsive enough to work with external images. You may solve that running Metadata > Save Image Dimensions (~60 URLs/min).", FIFU_SLUG);
|
@@ -459,7 +462,10 @@ function fifu_get_strings_settings() {
|
|
459 |
_e("Same height", FIFU_SLUG);
|
460 |
};
|
461 |
$fifu['height']['tab']['selector'] = function() {
|
462 |
-
_e("
|
|
|
|
|
|
|
463 |
};
|
464 |
$fifu['height']['tab']['ratio'] = function() {
|
465 |
_e("Size ratio", FIFU_SLUG);
|
@@ -473,6 +479,9 @@ function fifu_get_strings_settings() {
|
|
473 |
$fifu['height']['selector']['desc'] = function() {
|
474 |
_e("Examples of selectors...", FIFU_SLUG);
|
475 |
};
|
|
|
|
|
|
|
476 |
$fifu['height']['height']['ratio'] = function() {
|
477 |
_e("and you want a 4:3 size ratio", FIFU_SLUG);
|
478 |
};
|
@@ -515,6 +524,11 @@ function fifu_get_strings_settings() {
|
|
515 |
_e("List of strings that shouldn't be in the image URL:", FIFU_SLUG);
|
516 |
};
|
517 |
|
|
|
|
|
|
|
|
|
|
|
518 |
// giphy
|
519 |
$fifu['giphy']['desc'] = function() {
|
520 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
@@ -818,6 +832,9 @@ function fifu_get_strings_settings() {
|
|
818 |
$fifu['api']['custom']['slider'] = function() {
|
819 |
_e("Slider", FIFU_SLUG);
|
820 |
};
|
|
|
|
|
|
|
821 |
$fifu['api']['custom']['key'] = function() {
|
822 |
_e("Key", FIFU_SLUG);
|
823 |
};
|
@@ -1063,6 +1080,9 @@ function fifu_get_strings_settings() {
|
|
1063 |
$fifu['import']['custom']['slider'] = function() {
|
1064 |
_e("Featured slider URLs (delimited by \"|\")", FIFU_SLUG);
|
1065 |
};
|
|
|
|
|
|
|
1066 |
|
1067 |
// addon
|
1068 |
$fifu['addon']['desc'] = function() {
|
@@ -1235,6 +1255,9 @@ function fifu_get_strings_meta_box_php() {
|
|
1235 |
$fifu['title']['post']['shortcode'] = function() {
|
1236 |
return __("Featured shortcode", FIFU_SLUG);
|
1237 |
};
|
|
|
|
|
|
|
1238 |
|
1239 |
// variation
|
1240 |
$fifu['variation']['field'] = function() {
|
@@ -1284,6 +1307,9 @@ function fifu_get_strings_wai() {
|
|
1284 |
$fifu['title']['delimiter'] = function() {
|
1285 |
return __("List delimiter", FIFU_SLUG);
|
1286 |
};
|
|
|
|
|
|
|
1287 |
|
1288 |
// info
|
1289 |
$fifu['info']['delimited'] = function() {
|
184 |
$fifu['title']['auto'] = function() {
|
185 |
_e("Auto set featured image using post title and search engine", FIFU_SLUG);
|
186 |
};
|
187 |
+
$fifu['title']['isbn'] = function() {
|
188 |
+
_e("Auto set featured image using ISBN and books API", FIFU_SLUG);
|
189 |
+
};
|
190 |
$fifu['title']['giphy'] = function() {
|
191 |
_e("Giphy Search", FIFU_SLUG);
|
192 |
};
|
346 |
_e("PageSpeed and GTmetrix issues", FIFU_SLUG);
|
347 |
};
|
348 |
$fifu['support']['disappeared-desc'] = function() {
|
349 |
+
_e("You were probably using a deprecated feature. Just do it: 1) access Metadata tab; 2) run Clean Metadata; 3) enable Image Metadata (~30,000 URLs/min); 4) clean your cache (optional).", FIFU_SLUG);
|
350 |
};
|
351 |
$fifu['support']['plugin-desc'] = function() {
|
352 |
+
_e("Just send us an email. If you are available to discuss the details and the plugin is free and has more than 10,000 active installs, we should provide an integration very soon.", FIFU_SLUG);
|
353 |
};
|
354 |
$fifu['support']['style-desc'] = function() {
|
355 |
_e("Some themes and plugins aren't responsive enough to work with external images. You may solve that running Metadata > Save Image Dimensions (~60 URLs/min).", FIFU_SLUG);
|
462 |
_e("Same height", FIFU_SLUG);
|
463 |
};
|
464 |
$fifu['height']['tab']['selector'] = function() {
|
465 |
+
_e("Add selector", FIFU_SLUG);
|
466 |
+
};
|
467 |
+
$fifu['height']['tab']['remove'] = function() {
|
468 |
+
_e("Remove selector", FIFU_SLUG);
|
469 |
};
|
470 |
$fifu['height']['tab']['ratio'] = function() {
|
471 |
_e("Size ratio", FIFU_SLUG);
|
479 |
$fifu['height']['selector']['desc'] = function() {
|
480 |
_e("Examples of selectors...", FIFU_SLUG);
|
481 |
};
|
482 |
+
$fifu['height']['remove']['desc'] = function() {
|
483 |
+
_e("Default selectors:", FIFU_SLUG);
|
484 |
+
};
|
485 |
$fifu['height']['height']['ratio'] = function() {
|
486 |
_e("and you want a 4:3 size ratio", FIFU_SLUG);
|
487 |
};
|
524 |
_e("List of strings that shouldn't be in the image URL:", FIFU_SLUG);
|
525 |
};
|
526 |
|
527 |
+
// isbn
|
528 |
+
$fifu['isbn']['desc'] = function() {
|
529 |
+
_e("Set featured images automatically. FIFU will check every minute if there are post types without featured images and will perform web searches based on ISBN to get the image URLs. The image searches happen in a FIFU cloud service connected to a books API and, due the costs involved, for now it's limited to 1,000 posts a day, one search at a time, and available only for license keys purchased/renewed from a year ago.", FIFU_SLUG);
|
530 |
+
};
|
531 |
+
|
532 |
// giphy
|
533 |
$fifu['giphy']['desc'] = function() {
|
534 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
832 |
$fifu['api']['custom']['slider'] = function() {
|
833 |
_e("Slider", FIFU_SLUG);
|
834 |
};
|
835 |
+
$fifu['api']['custom']['isbn'] = function() {
|
836 |
+
_e("ISBN", FIFU_SLUG);
|
837 |
+
};
|
838 |
$fifu['api']['custom']['key'] = function() {
|
839 |
_e("Key", FIFU_SLUG);
|
840 |
};
|
1080 |
$fifu['import']['custom']['slider'] = function() {
|
1081 |
_e("Featured slider URLs (delimited by \"|\")", FIFU_SLUG);
|
1082 |
};
|
1083 |
+
$fifu['import']['custom']['isbn'] = function() {
|
1084 |
+
_e("ISBN", FIFU_SLUG);
|
1085 |
+
};
|
1086 |
|
1087 |
// addon
|
1088 |
$fifu['addon']['desc'] = function() {
|
1255 |
$fifu['title']['post']['shortcode'] = function() {
|
1256 |
return __("Featured shortcode", FIFU_SLUG);
|
1257 |
};
|
1258 |
+
$fifu['title']['post']['isbn'] = function() {
|
1259 |
+
return __("ISBN", FIFU_SLUG);
|
1260 |
+
};
|
1261 |
|
1262 |
// variation
|
1263 |
$fifu['variation']['field'] = function() {
|
1307 |
$fifu['title']['delimiter'] = function() {
|
1308 |
return __("List delimiter", FIFU_SLUG);
|
1309 |
};
|
1310 |
+
$fifu['title']['isbn'] = function() {
|
1311 |
+
return __("ISBN", FIFU_SLUG);
|
1312 |
+
};
|
1313 |
|
1314 |
// info
|
1315 |
$fifu['info']['delimited'] = 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.3.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
@@ -24,6 +24,7 @@ define('FIFU_DEV_DEBUG', false);
|
|
24 |
require_once (FIFU_INCLUDES_DIR . '/attachment.php');
|
25 |
require_once (FIFU_INCLUDES_DIR . '/convert-url.php');
|
26 |
require_once (FIFU_INCLUDES_DIR . '/external-post.php');
|
|
|
27 |
require_once (FIFU_INCLUDES_DIR . '/thumbnail.php');
|
28 |
require_once (FIFU_INCLUDES_DIR . '/thumbnail-category.php');
|
29 |
require_once (FIFU_INCLUDES_DIR . '/util.php');
|
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.3.8
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
24 |
require_once (FIFU_INCLUDES_DIR . '/attachment.php');
|
25 |
require_once (FIFU_INCLUDES_DIR . '/convert-url.php');
|
26 |
require_once (FIFU_INCLUDES_DIR . '/external-post.php');
|
27 |
+
require_once (FIFU_INCLUDES_DIR . '/jetpack.php');
|
28 |
require_once (FIFU_INCLUDES_DIR . '/thumbnail.php');
|
29 |
require_once (FIFU_INCLUDES_DIR . '/thumbnail-category.php');
|
30 |
require_once (FIFU_INCLUDES_DIR . '/util.php');
|
includes/attachment.php
CHANGED
@@ -156,7 +156,7 @@ function fifu_get_photon_url($image, $size, $att_id) {
|
|
156 |
$args['resize'] = array($w, null);
|
157 |
}
|
158 |
|
159 |
-
if (
|
160 |
define('IS_WPCOM', true);
|
161 |
|
162 |
$image[0] = jetpack_photon_url($image[0], $args, null);
|
156 |
$args['resize'] = array($w, null);
|
157 |
}
|
158 |
|
159 |
+
if (fifu_debug_jetpack())
|
160 |
define('IS_WPCOM', true);
|
161 |
|
162 |
$image[0] = jetpack_photon_url($image[0], $args, null);
|
includes/jetpack.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function fifu_debug_jetpack() {
|
4 |
+
return defined('FIFU_DEV_DEBUG') && !defined('IS_WPCOM') && FIFU_DEV_DEBUG && fifu_is_local() && !fifu_is_in_editor();
|
5 |
+
}
|
6 |
+
|
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 |
|
@@ -41,6 +41,7 @@ Use an external image as featured image of your post, page or custom post type.
|
|
41 |
|
42 |
* Auto set featured image/video using img/iframe tag from post content
|
43 |
* **[Premium]** Auto set featured image using post title and search engine
|
|
|
44 |
|
45 |
#### PERFORMANCE
|
46 |
|
@@ -194,20 +195,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
197 |
= 3.3.7 =
|
198 |
* Improvement: some menu settings were reorganized; bug fix: child/duplicated and parent products were sharing the same image metadata.
|
199 |
|
200 |
= 3.3.6 =
|
201 |
* New option: Featured Slider > show thumbnails gallery (great for real state sites); improvement: integration between Featured Slider and Jetpack CDN.
|
202 |
|
203 |
-
= 3.3.5 =
|
204 |
-
* New feature: Featured Image > Auto Set (get images from search engines); bug fix: images not shown in WooCommerce gallery when the dimensions are null.
|
205 |
-
|
206 |
= others =
|
207 |
* [more](https://fifu.app/changelog/)
|
208 |
|
209 |
|
210 |
== Upgrade Notice ==
|
211 |
|
212 |
-
= 3.3.
|
213 |
-
*
|
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
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
41 |
|
42 |
* Auto set featured image/video using img/iframe tag from post content
|
43 |
* **[Premium]** Auto set featured image using post title and search engine
|
44 |
+
* **[Premium]** Auto set featured image using ISBN and books API
|
45 |
|
46 |
#### PERFORMANCE
|
47 |
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= 3.3.8 =
|
199 |
+
* New feature: auto set featured image using ISBN and books API (great for book stores); notice: for Amazon associates.
|
200 |
+
|
201 |
= 3.3.7 =
|
202 |
* Improvement: some menu settings were reorganized; bug fix: child/duplicated and parent products were sharing the same image metadata.
|
203 |
|
204 |
= 3.3.6 =
|
205 |
* New option: Featured Slider > show thumbnails gallery (great for real state sites); improvement: integration between Featured Slider and Jetpack CDN.
|
206 |
|
|
|
|
|
|
|
207 |
= others =
|
208 |
* [more](https://fifu.app/changelog/)
|
209 |
|
210 |
|
211 |
== Upgrade Notice ==
|
212 |
|
213 |
+
= 3.3.8 =
|
214 |
+
* New feature: auto set featured image using ISBN and books API (great for book stores); notice: for Amazon associates.
|