Featured Image From URL - Version 3.7.2

Version Description

  • New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).
Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 3.7.2
Comparing to
See all releases

Code changes from version 3.7.1 to 3.7.2

admin/html/js/menu.js CHANGED
@@ -52,6 +52,7 @@ jQuery(function () {
52
  jQuery("#tabsShortcode").tabs();
53
  jQuery("#tabsFifuShortcode").tabs();
54
  jQuery("#tabsAutoSet").tabs();
 
55
  jQuery("#tabsScreenshot").tabs();
56
  jQuery("#tabsSlider").tabs();
57
  jQuery("#tabsContent").tabs();
52
  jQuery("#tabsShortcode").tabs();
53
  jQuery("#tabsFifuShortcode").tabs();
54
  jQuery("#tabsAutoSet").tabs();
55
+ jQuery("#tabsIsbn").tabs();
56
  jQuery("#tabsScreenshot").tabs();
57
  jQuery("#tabsSlider").tabs();
58
  jQuery("#tabsContent").tabs();
admin/html/js/meta-box.js CHANGED
@@ -111,7 +111,7 @@ jQuery(document).ready(function () {
111
 
112
  function fifu_get_sizes() {
113
  image_url = jQuery("#fifu_input_url").val();
114
- if (!image_url.startsWith("http") && !image_url.startsWith("//"))
115
  return;
116
  fifu_get_image(image_url);
117
  }
111
 
112
  function fifu_get_sizes() {
113
  image_url = jQuery("#fifu_input_url").val();
114
+ if (image_url && !image_url.startsWith("http") && !image_url.startsWith("//"))
115
  return;
116
  fifu_get_image(image_url);
117
  }
admin/html/menu.html CHANGED
@@ -374,7 +374,9 @@
374
  <th>
375
  <?php $fifu['title']['isbn']() ?>
376
  </th>
377
- <th></th>
 
 
378
  <th>
379
  wp fifu isbn &lt;toggle&gt;
380
  </th>
@@ -382,6 +384,23 @@
382
  on, off
383
  </th>
384
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  <tr class="color">
386
  <th>
387
  <?php $fifu['tab']['auto']() ?>
@@ -2356,18 +2375,44 @@
2356
  <?php $fifu['isbn']['desc']() ?>
2357
  </div>
2358
  <br>
2359
- <table style="text-align:left">
2360
- <tr>
2361
- <th>
2362
- <input
2363
- type="submit"
2364
- href="javascript:void(0)"
2365
- class="toggleoff"
2366
- value=""
2367
- style="display:block;border:none">
2368
- </th>
2369
- </tr>
2370
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2371
  </div>
2372
 
2373
  <div class="box">
374
  <th>
375
  <?php $fifu['title']['isbn']() ?>
376
  </th>
377
+ <th>
378
+ <?php $fifu['isbn']['tab']['auto']() ?>
379
+ </th>
380
  <th>
381
  wp fifu isbn &lt;toggle&gt;
382
  </th>
384
  on, off
385
  </th>
386
  </tr>
387
+ <tr class="color">
388
+ <th>
389
+ <?php $fifu['tab']['auto']() ?>
390
+ </th>
391
+ <th>
392
+ <?php $fifu['title']['isbn']() ?>
393
+ </th>
394
+ <th>
395
+ <?php $fifu['isbn']['tab']['custom']() ?>
396
+ </th>
397
+ <th>
398
+ wp fifu isbn --field &lt;string&gt;
399
+ </th>
400
+ <th>
401
+ meta_key
402
+ </th>
403
+ </tr>
404
  <tr class="color">
405
  <th>
406
  <?php $fifu['tab']['auto']() ?>
2375
  <?php $fifu['isbn']['desc']() ?>
2376
  </div>
2377
  <br>
2378
+ <div id="tabsIsbn">
2379
+ <ul>
2380
+ <li><a href="#tabsIsbn-a"><?php $fifu['isbn']['tab']['auto']() ?></a></li>
2381
+ <li><a href="#tabsIsbn-b"><?php $fifu['isbn']['tab']['custom']() ?></a></li>
2382
+ <br>
2383
+ <br>
2384
+ <div id="tabsIsbn-a">
2385
+ <table style="text-align:left">
2386
+ <tr>
2387
+ <th>
2388
+ <input
2389
+ type="submit"
2390
+ href="javascript:void(0)"
2391
+ class="toggleoff"
2392
+ value=""
2393
+ style="display:block;border:none">
2394
+ </th>
2395
+ </tr>
2396
+ </table>
2397
+ </div>
2398
+ <div id="tabsIsbn-b">
2399
+ <?php $fifu['isbn']['custom']['desc']() ?>
2400
+ <br>
2401
+ <br>
2402
+ <table style="text-align:left">
2403
+ <tr>
2404
+ <th>
2405
+ <input type="text"
2406
+ style="width:800px"
2407
+ value="">
2408
+ <input type="submit"
2409
+ value="<?php $fifu['button']['submit']() ?>" disabled>
2410
+ </th>
2411
+ </tr>
2412
+ </table>
2413
+ </div>
2414
+ </ul>
2415
+ </div>
2416
  </div>
2417
 
2418
  <div class="box">
admin/strings.php CHANGED
@@ -418,7 +418,7 @@ function fifu_get_strings_settings() {
418
  _e("This plugin has no nulled versions, but modified versions. Don't install that. It's illegal and may ruin your site. Moreover, sales of the original premium version keep this project alive.", FIFU_SLUG);
419
  };
420
  $fifu['support']['money-desc'] = function() {
421
- _e("Because Instagram is invalidating its URLs once a month. FIFU can renew the URLs automatically via API, however due to the costs involved, it is only available in the Premium version.", FIFU_SLUG);
422
  };
423
  $fifu['support']['speed-desc'] = function() {
424
  _e("You can solve that activating Performance > CDN + Optimized Thumbnails. Even large images hosted on slow servers should load quickly on your website.", FIFU_SLUG);
@@ -665,6 +665,15 @@ function fifu_get_strings_settings() {
665
  $fifu['isbn']['desc'] = function() {
666
  _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.", FIFU_SLUG);
667
  };
 
 
 
 
 
 
 
 
 
668
 
669
  // screenshot
670
  $fifu['screenshot']['desc'] = function() {
418
  _e("This plugin has no nulled versions, but modified versions. Don't install that. It's illegal and may ruin your site. Moreover, sales of the original premium version keep this project alive.", FIFU_SLUG);
419
  };
420
  $fifu['support']['money-desc'] = function() {
421
+ _e("Because Instagram is invalidating its URLs once a month. FIFU can renew the URLs automatically via API, however due to the costs involved, it is only available in the PRO version.", FIFU_SLUG);
422
  };
423
  $fifu['support']['speed-desc'] = function() {
424
  _e("You can solve that activating Performance > CDN + Optimized Thumbnails. Even large images hosted on slow servers should load quickly on your website.", FIFU_SLUG);
665
  $fifu['isbn']['desc'] = function() {
666
  _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.", FIFU_SLUG);
667
  };
668
+ $fifu['isbn']['tab']['auto'] = function() {
669
+ _e("Auto set", FIFU_SLUG);
670
+ };
671
+ $fifu['isbn']['tab']['custom'] = function() {
672
+ _e("Custom field", FIFU_SLUG);
673
+ };
674
+ $fifu['isbn']['custom']['desc'] = function() {
675
+ _e("If you already have the ISBN saved in your database, you could inform its custom field name here. FIFU would access that and import the value. For example, if the ISBN is saved in the SKU field, you could add \"_sku\", which is the field where the SKU is stored.", FIFU_SLUG);
676
+ };
677
 
678
  // screenshot
679
  $fifu['screenshot']['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.7.1
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.7.2
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
includes/jetpack.php CHANGED
@@ -20,7 +20,7 @@ function fifu_jetpack_blocked($url) {
20
  if (fifu_is_photon_url($url))
21
  return true;
22
 
23
- $blocklist = array('amazon-adsystem.com', 'sapo.io', 'unsplash.com', 'i.guim.co.uk', 's.yimg.com', 's1.yimg.com', 'www.washingtonpost.com', 'pbs.twimg.com', 'www.aljazeera.com', 'image.influenster.com', 'api.screenshotmachine.com', 'rackcdn.com');
24
  foreach ($blocklist as $domain) {
25
  if (strpos($url, $domain) !== false)
26
  return true;
20
  if (fifu_is_photon_url($url))
21
  return true;
22
 
23
+ $blocklist = array('amazon-adsystem.com', 'sapo.io', 'unsplash.com', 'i.guim.co.uk', 's.yimg.com', 's1.yimg.com', 'www.washingtonpost.com', 'pbs.twimg.com', 'www.aljazeera.com', 'image.influenster.com', 'api.screenshotmachine.com', 'rackcdn.com', 'm.media-amazon.com', 'images-na.ssl-images-amazon.com', 'googleusercontent.com', 'drive.google.com');
24
  foreach ($blocklist as $domain) {
25
  if (strpos($url, $domain) !== false)
26
  return true;
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.7.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -224,20 +224,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
224
 
225
  == Changelog ==
226
 
 
 
 
227
  = 3.7.1 =
228
  * Enhancement: Auto set featured media using web page address (integration with WP All Import, WooCommerce import and REST API); enhancement: Auto set screenshot as featured image (integration with WP All Import, WooCommerce import and REST API).
229
 
230
  = 3.7.0 =
231
  * New option: Default Featured Image > Post Types; fix: CDN + Optimized Thumbnails (conflict with images from wp.com and other CDNs); fix: Lazy Load (images loaded twice).
232
 
233
- = 3.6.9 =
234
- * Enhancement: CDN + Optimized Thumbnails (can work with post content images now); fix: CDN + Optimized Thumbnails (conflict with images from s.yimg.com).
235
-
236
  = others =
237
  * [more](https://fifu.app/changelog)
238
 
239
 
240
  == Upgrade Notice ==
241
 
242
- = 3.7.1 =
243
- * Enhancement: Auto set featured media using web page address (integration with WP All Import, WooCommerce import and REST API); enhancement: Auto set screenshot as featured image (integration with WP All Import, WooCommerce import and REST API).
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
+ Stable tag: 3.7.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 3.7.2 =
228
+ * New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).
229
+
230
  = 3.7.1 =
231
  * Enhancement: Auto set featured media using web page address (integration with WP All Import, WooCommerce import and REST API); enhancement: Auto set screenshot as featured image (integration with WP All Import, WooCommerce import and REST API).
232
 
233
  = 3.7.0 =
234
  * New option: Default Featured Image > Post Types; fix: CDN + Optimized Thumbnails (conflict with images from wp.com and other CDNs); fix: Lazy Load (images loaded twice).
235
 
 
 
 
236
  = others =
237
  * [more](https://fifu.app/changelog)
238
 
239
 
240
  == Upgrade Notice ==
241
 
242
+ = 3.7.2 =
243
+ * New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).