Featured Image From URL - Version 2.8.3

Version Description

  • New feature: Featured Image > Same Height > Object Fit > Cover (center/bottom/top), Contain and Fill; New feature: Video > Video Thumbnail > on page.
Download this release

Release Info

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

Code changes from version 2.8.2 to 2.8.3

Files changed (3) hide show
  1. admin/html/menu.html +96 -17
  2. featured-image-from-url.php +1 -1
  3. readme.txt +9 -3
admin/html/menu.html CHANGED
@@ -420,19 +420,20 @@
420
  </div>
421
  <div id="tabs-g">
422
  <div class="box">
423
- <h2>Crop images to the same size</h2>
424
  <div class="greybox" id="grad2">
425
  <b>Premium feature</b><br><br>
426
- If you are not happy with the different sizes of external featured images on your home/shop, enable the toggle below to crop them to the same size.
427
  </div>
428
  <br>
429
 
430
  <div id="tabsCrop">
431
 
432
  <ul>
433
- <li><a href="#tabsCrop-a">Crop Images</a></li>
434
- <li><a href="#tabsCrop-b">Inform a Selector</a></li>
435
  <li><a href="#tabsCrop-c">Size Ratio</a></li>
 
436
  <br>
437
  <br>
438
  <div id="tabsCrop-a">
@@ -447,7 +448,7 @@
447
  style="display:block;border:none">
448
  </th>
449
  <th>
450
- if the crop doesn't work, use a Selector to inform where is the group of external images that you want to crop.
451
  </th>
452
  </tr>
453
  </table>
@@ -507,12 +508,27 @@
507
  </table>
508
  </div>
509
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
510
  </ul>
511
  </div>
512
  </div>
513
 
514
  <div class="box">
515
- <h2>Replace broken image</h2>
516
  <div class="greybox" id="grad2">
517
  <b>Premium feature</b><br><br>
518
  Here you can define the URL of an image to be shown in case of error (image not found).
@@ -1165,7 +1181,7 @@
1165
  </div>
1166
  <div id="tabs-j">
1167
  <div class="box">
1168
- <h2>Fake Internal Featured Image (<b style="color:#4385bf">keep me enabled</b>)</h2>
1169
  <div class="greybox">
1170
  Most themes/plugins are not able to show the external featured image if there is no internal featured image associated to your post/page/product. Enabling the toggle below, a symbolic <b>empty</b> file will be added to your Media Library to overcome this limitation.
1171
  </div>
@@ -1239,7 +1255,7 @@
1239
 
1240
  This experimental feature allows to use a shortcode as "featured image" of posts/pages/products. Using shortcodes you are not limited to images/videos/sliders anymore. You can use any content provided by the shortcode, what could be a music, a text, a whole site etc.<br/><br/>
1241
  However, some contents will need a large area of your site to be shown properly. So you should define a minimum width that an area of your site should have to be able to show the shortocde content, otherwise it will be shown featured image from url (<b>required field</b>).<br/><br/>
1242
- Important: shortcodes can be not compatible with other FIFU features, such as CSS Style, Crop Image, Lazy Load etc.
1243
 
1244
  </div>
1245
 
@@ -1434,15 +1450,37 @@
1434
  <h2>Video Thumbnail</h2>
1435
  <div class="greybox" id="grad2">
1436
  <b>Premium feature</b><br><br>
1437
- Enable the toggle below to show the video thumbnail instead of the video on home/shop.
1438
  </div>
1439
  <br>
1440
- <input
1441
- type="submit"
1442
- href="javascript:void(0)"
1443
- class="toggleoff"
1444
- value=""
1445
- style="display:block;border:none">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1446
  </div>
1447
 
1448
  <div class="box">
@@ -2555,16 +2593,56 @@
2555
  </div>
2556
  <div id="tabs-d">
2557
  <div class="box">
2558
- <h2>Fast Support / suggestions</h2>
2559
  <div class="greybox">
2560
  If you need any help, you can refer to <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a> or send an email to <b>marcel@featuredimagefromurl.com</b> (send me this <a href="admin.php?page=fifu-support-data"><button id="opener" onclick="jQuery('.wrap').block({message: 'Please wait some seconds...', css: {backgroundColor: 'none', border: 'none', color: 'white'}});">data</button></a>, please).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2561
  </div>
2562
  </div>
2563
  <div class="box">
2564
  <h2><a class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu" target="_blank">Donate </a> $ 1 / year to take this project to the next level <span class="dashicons dashicons-info" style="font-size: 25px;" title="Donate with a Card, Apple Pay, Google Pay, Stripe, PayPal and more. No account required."></span></h2>
2565
  <div class="greybox">
2566
  <a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a>
2567
- <div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And <b>thanks to FIFU you keep saving money on storage, processing and copyright</b>. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. Important performance and automation features aren't done yet while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
2568
  </div>
2569
  </div>
2570
  <div class="box">
@@ -2843,3 +2921,4 @@
2843
  </div>
2844
  </div>
2845
 
 
420
  </div>
421
  <div id="tabs-g">
422
  <div class="box">
423
+ <h2>Same Height</h2>
424
  <div class="greybox" id="grad2">
425
  <b>Premium feature</b><br><br>
426
+ If you are not happy with the different sizes of external featured images on your home/shop, enable the toggle below to show them in the same height.
427
  </div>
428
  <br>
429
 
430
  <div id="tabsCrop">
431
 
432
  <ul>
433
+ <li><a href="#tabsCrop-a">Same Height</a></li>
434
+ <li><a href="#tabsCrop-b">Selector</a></li>
435
  <li><a href="#tabsCrop-c">Size Ratio</a></li>
436
+ <li><a href="#tabsCrop-d">Object Fit</a></li>
437
  <br>
438
  <br>
439
  <div id="tabsCrop-a">
448
  style="display:block;border:none">
449
  </th>
450
  <th>
451
+ if it doesn't work, use a Selector to inform where is the group of external images that you want at the same height.
452
  </th>
453
  </tr>
454
  </table>
508
  </table>
509
  </div>
510
  </div>
511
+
512
+ <div id="tabsCrop-d">
513
+ - <b>cover</b>: crops the images (the options center, top and bottom will be available in the post editor);<br>
514
+ - <b>contain</b>: shows full images (in smaller sizes);<br>
515
+ - <b>fill</b>: deforms the images (same width too).<br>
516
+ <br>
517
+ <select id="select_fit" style="width:100px">
518
+ <option value="cover">cover</option>
519
+ <option value="contain">contain</option>
520
+ <option value="fill">fill</option>
521
+ </select>
522
+ <input type="submit"
523
+ value="Submit" disabled>
524
+ </form>
525
+ </div>
526
  </ul>
527
  </div>
528
  </div>
529
 
530
  <div class="box">
531
+ <h2>Replace Broken Image</h2>
532
  <div class="greybox" id="grad2">
533
  <b>Premium feature</b><br><br>
534
  Here you can define the URL of an image to be shown in case of error (image not found).
1181
  </div>
1182
  <div id="tabs-j">
1183
  <div class="box">
1184
+ <h2>Fake Internal Featured Image</h2>
1185
  <div class="greybox">
1186
  Most themes/plugins are not able to show the external featured image if there is no internal featured image associated to your post/page/product. Enabling the toggle below, a symbolic <b>empty</b> file will be added to your Media Library to overcome this limitation.
1187
  </div>
1255
 
1256
  This experimental feature allows to use a shortcode as "featured image" of posts/pages/products. Using shortcodes you are not limited to images/videos/sliders anymore. You can use any content provided by the shortcode, what could be a music, a text, a whole site etc.<br/><br/>
1257
  However, some contents will need a large area of your site to be shown properly. So you should define a minimum width that an area of your site should have to be able to show the shortocde content, otherwise it will be shown featured image from url (<b>required field</b>).<br/><br/>
1258
+ Important: shortcodes can be not compatible with other FIFU features, such as CSS Style, Same Height, Lazy Load etc.
1259
 
1260
  </div>
1261
 
1450
  <h2>Video Thumbnail</h2>
1451
  <div class="greybox" id="grad2">
1452
  <b>Premium feature</b><br><br>
1453
+ Enable the toggle below to show the video thumbnail instead of the video.
1454
  </div>
1455
  <br>
1456
+ <table style="text-align:left">
1457
+ <tr>
1458
+ <th>
1459
+ <input
1460
+ type="submit"
1461
+ href="javascript:void(0)"
1462
+ class="toggleoff"
1463
+ value=""
1464
+ style="display:block;border:none">
1465
+ </th>
1466
+ <th>
1467
+ on home/shop
1468
+ </th>
1469
+ </tr>
1470
+ <tr>
1471
+ <th>
1472
+ <input
1473
+ type="submit"
1474
+ href="javascript:void(0)"
1475
+ class="toggleoff"
1476
+ value=""
1477
+ style="display:block;border:none">
1478
+ </th>
1479
+ <th>
1480
+ on page
1481
+ </th>
1482
+ </tr>
1483
+ </table>
1484
  </div>
1485
 
1486
  <div class="box">
2593
  </div>
2594
  <div id="tabs-d">
2595
  <div class="box">
2596
+ <h2>Fast Support</h2>
2597
  <div class="greybox">
2598
  If you need any help, you can refer to <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a> or send an email to <b>marcel@featuredimagefromurl.com</b> (send me this <a href="admin.php?page=fifu-support-data"><button id="opener" onclick="jQuery('.wrap').block({message: 'Please wait some seconds...', css: {backgroundColor: 'none', border: 'none', color: 'white'}});">data</button></a>, please).
2599
+ <br>
2600
+ <br>
2601
+ <table style="background-color: #fff; border-radius: 13px;">
2602
+ <tr>
2603
+ <td style="width:33%;text-align:center;">
2604
+ <i class="fas fa-exclamation-triangle" style="font-size:30px"></i>
2605
+ </td>
2606
+ <td style="width:33%;text-align:center;">
2607
+ <i class="fas fa-puzzle-piece" style="font-size:30px"></i>
2608
+ </td>
2609
+ <td style="width:33%;text-align:center;">
2610
+ <i class="fas fa-laptop-code" style="font-size:30px"></i>
2611
+ </td>
2612
+ </tr>
2613
+ <tr>
2614
+ <td style="width:33%;text-align:center;">
2615
+ <i>All my images are missing</i>
2616
+ </td>
2617
+ <td style="width:33%;text-align:center;">
2618
+ <i>A famous plugin doesn't work with FIFU</i>
2619
+ </td>
2620
+ <td style="width:33%;text-align:center;">
2621
+ <i>I'm a developer</i>
2622
+ </td>
2623
+ </tr>
2624
+ <tr>
2625
+ <td style="vertical-align: top;">
2626
+ You were probably using a deprecated feature. Just do it:
2627
+ 1) access Metadata tab;
2628
+ 2) enable Clean Metadata (it will be automatically disabled when finished);
2629
+ 3) enable Fake Internal Featured Image.
2630
+ </td>
2631
+ <td style="vertical-align: top;">
2632
+ Just send me an email. If you are available to discuss the details and the plugin is free and has more than 100,000+ active installs, I should provide an integration very soon.
2633
+ </td>
2634
+ <td>
2635
+ You can set external featured images using custom fields. The main one is <b>fifu_image_url</b>. However the REST API is only supported by FIFU Premium. For nonstandard automation, just enable Schedule Metadata Generation, at Admin Area tab (no additional code required).
2636
+ </td>
2637
+ </tr>
2638
+ </table>
2639
  </div>
2640
  </div>
2641
  <div class="box">
2642
  <h2><a class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu" target="_blank">Donate </a> $ 1 / year to take this project to the next level <span class="dashicons dashicons-info" style="font-size: 25px;" title="Donate with a Card, Apple Pay, Google Pay, Stripe, PayPal and more. No account required."></span></h2>
2643
  <div class="greybox">
2644
  <a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a>
2645
+ <div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And thanks to FIFU you keep saving money on storage, processing and copyright. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. <b>Extraordinary performance and automation features aren't done yet</b> while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
2646
  </div>
2647
  </div>
2648
  <div class="box">
2921
  </div>
2922
  </div>
2923
 
2924
+
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 your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
- * Version: 2.8.2
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
+ * Version: 2.8.3
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, 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, sirv, 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, 9gag, wcfm, add-on
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
- Stable tag: 2.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,8 +159,11 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.8.2 =
163
- * Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import."
164
 
165
  = 2.8.1 =
166
  * New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
@@ -675,8 +678,11 @@ was removed. To finish, a Premium version is now been presented.
675
 
676
  == Upgrade Notice ==
677
 
 
 
 
678
  = 2.8.2 =
679
- * Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import."
680
 
681
  = 2.8.1 =
682
  * New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, 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, sirv, 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, 9gag, wcfm, add-on
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
+ Stable tag: 2.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.8.3 =
163
+ * New feature: Featured Image > Same Height > Object Fit > Cover (center/bottom/top), Contain and Fill; New feature: Video > Video Thumbnail > on page.
164
+
165
  = 2.8.2 =
166
+ * Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import.
167
 
168
  = 2.8.1 =
169
  * New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).
678
 
679
  == Upgrade Notice ==
680
 
681
+ = 2.8.3 =
682
+ * New feature: Featured Image > Same Height > Object Fit > Cover (center/bottom/top), Contain and Fill; New feature: Video > Video Thumbnail > on page.
683
+
684
  = 2.8.2 =
685
+ * Improvement: integration between the new WooCommerce variation image gallery and REST API; Deprecated: the old variation image gallery provided by FIFU; Bug Fix: Default External Featured Image wasn't working with WP All Import.
686
 
687
  = 2.8.1 =
688
  * New: WooCommerce product variations have Image Gallery from URL fields now, used with WooCommerce Additional Variation Images plugin (by WooCommerce).