Featured Image From URL - Version 3.7.7

Version Description

  • Enhancement: Featured video (supports videos from the media library now); new option: FIFU Product Gallery > adaptive height; new option: Save in the Media Library > Run now.
Download this release

Release Info

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

Code changes from version 3.7.6 to 3.7.7

admin/html/js/menu.js CHANGED
@@ -56,6 +56,7 @@ jQuery(function () {
56
  jQuery("#tabsIsbn").tabs();
57
  jQuery("#tabsScreenshot").tabs();
58
  jQuery("#tabsFinder").tabs();
 
59
  jQuery("#tabsSlider").tabs();
60
  jQuery("#tabsContent").tabs();
61
  jQuery("#tabsContentAll").tabs();
56
  jQuery("#tabsIsbn").tabs();
57
  jQuery("#tabsScreenshot").tabs();
58
  jQuery("#tabsFinder").tabs();
59
+ jQuery("#tabsVideo").tabs();
60
  jQuery("#tabsSlider").tabs();
61
  jQuery("#tabsContent").tabs();
62
  jQuery("#tabsContentAll").tabs();
admin/html/menu.html CHANGED
@@ -2057,7 +2057,9 @@
2057
  <th>
2058
  <?php $fifu['title']['gallery']() ?>
2059
  </th>
2060
- <th></th>
 
 
2061
  <th>
2062
  wp fifu woo --gallery &lt;toggle&gt;
2063
  </th>
@@ -2065,6 +2067,23 @@
2065
  on, off
2066
  </th>
2067
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2068
  <tr class="color">
2069
  <th>
2070
  <?php $fifu['tab']['woo']() ?>
@@ -3114,6 +3133,18 @@
3114
  <tr>
3115
  <td><b>fifu_dev_upload_all_images()</b></td>
3116
  <td><?php $fifu['media']['dev']() ?></td>
 
 
 
 
 
 
 
 
 
 
 
 
3117
  </tr>
3118
  </table>
3119
  </div>
@@ -3799,28 +3830,41 @@
3799
 
3800
  <br>
3801
 
3802
- <form
3803
- id="fifu_form_video"
3804
- action="javascript:void(0)"
3805
- method="post">
 
 
 
 
 
 
 
3806
 
3807
- <input
3808
- type="submit"
3809
- href="javascript:void(0)"
3810
- id="fifu_toggle_video"
3811
- onclick="javascript:void(0)"
3812
- name="fifu_toggle_video"
3813
- class="toggleoff"
3814
- value=""
3815
- style="display:block;border:none">
3816
 
3817
- <input
3818
- type="hidden"
3819
- id="fifu_input_video"
3820
- name="fifu_input_video"
3821
- value="" >
3822
- </form>
 
3823
 
 
 
 
 
 
3824
  </div>
3825
 
3826
  <div class="box">
@@ -5351,14 +5395,30 @@
5351
  <br>
5352
  <table style="text-align:left">
5353
  <tr>
5354
- <th>
5355
  <input
5356
  type="submit"
5357
  href="javascript:void(0)"
5358
  class="toggleoff"
5359
  value=""
5360
  style="display:block;border:none" >
5361
- </th>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5362
  </tr>
5363
  </table>
5364
  </div>
@@ -5676,6 +5736,19 @@
5676
  </div>
5677
  </div>
5678
  <div id="tabs-t">
 
 
 
 
 
 
 
 
 
 
 
 
 
5679
  <div class="box">
5680
  <table>
5681
  <tr>
2057
  <th>
2058
  <?php $fifu['title']['gallery']() ?>
2059
  </th>
2060
+ <th>
2061
+ <?php $fifu['gallery']['toggle']() ?>
2062
+ </th>
2063
  <th>
2064
  wp fifu woo --gallery &lt;toggle&gt;
2065
  </th>
2067
  on, off
2068
  </th>
2069
  </tr>
2070
+ <tr class="color">
2071
+ <th>
2072
+ <?php $fifu['tab']['woo']() ?>
2073
+ </th>
2074
+ <th>
2075
+ <?php $fifu['title']['gallery']() ?>
2076
+ </th>
2077
+ <th>
2078
+ <?php $fifu['gallery']['adaptive']() ?>
2079
+ </th>
2080
+ <th>
2081
+ wp fifu woo --adaptive &lt;toggle&gt;
2082
+ </th>
2083
+ <th>
2084
+ on, off
2085
+ </th>
2086
+ </tr>
2087
  <tr class="color">
2088
  <th>
2089
  <?php $fifu['tab']['woo']() ?>
3133
  <tr>
3134
  <td><b>fifu_dev_upload_all_images()</b></td>
3135
  <td><?php $fifu['media']['dev']() ?></td>
3136
+ <td>
3137
+ <form
3138
+ id="fifu_form_upload_proxy"
3139
+ action="javascript:void(0)"
3140
+ method="post">
3141
+
3142
+ <input
3143
+ type="submit"
3144
+ value="<?php $fifu['media']['run']() ?>"
3145
+ disabled>
3146
+ </form>
3147
+ </td>
3148
  </tr>
3149
  </table>
3150
  </div>
3830
 
3831
  <br>
3832
 
3833
+ <div id="tabsVideo">
3834
+ <ul>
3835
+ <li><a href="#tabsVideo-a"><?php $fifu['video']['tab']['video']() ?></a></li>
3836
+ <li><a href="#tabsVideo-b"><?php $fifu['video']['tab']['local']() ?></a></li>
3837
+ <br>
3838
+ <br>
3839
+ <div id="tabsVideo-a">
3840
+ <form
3841
+ id="fifu_form_video"
3842
+ action="javascript:void(0)"
3843
+ method="post">
3844
 
3845
+ <input
3846
+ type="submit"
3847
+ href="javascript:void(0)"
3848
+ id="fifu_toggle_video"
3849
+ onclick="javascript:void(0)"
3850
+ name="fifu_toggle_video"
3851
+ class="toggleoff"
3852
+ value=""
3853
+ style="display:block;border:none">
3854
 
3855
+ <input
3856
+ type="hidden"
3857
+ id="fifu_input_video"
3858
+ name="fifu_input_video"
3859
+ value="" >
3860
+ </form>
3861
+ </div>
3862
 
3863
+ <div id="tabsVideo-b">
3864
+ <?php $fifu['video']['local']['desc']() ?>
3865
+ </div>
3866
+ </ul>
3867
+ </div>
3868
  </div>
3869
 
3870
  <div class="box">
5395
  <br>
5396
  <table style="text-align:left">
5397
  <tr>
5398
+ <td>
5399
  <input
5400
  type="submit"
5401
  href="javascript:void(0)"
5402
  class="toggleoff"
5403
  value=""
5404
  style="display:block;border:none" >
5405
+ </td>
5406
+ <td>
5407
+ <?php $fifu['gallery']['toggle']() ?>
5408
+ </td>
5409
+ </tr>
5410
+ <tr>
5411
+ <td>
5412
+ <input
5413
+ type="submit"
5414
+ href="javascript:void(0)"
5415
+ class="toggleoff"
5416
+ value=""
5417
+ style="display:block;border:none" >
5418
+ </td>
5419
+ <td>
5420
+ <?php $fifu['gallery']['adaptive']() ?>
5421
+ </td>
5422
  </tr>
5423
  </table>
5424
  </div>
5736
  </div>
5737
  </div>
5738
  <div id="tabs-t">
5739
+ <div class="box">
5740
+ <table>
5741
+ <tr>
5742
+ <td style="border-bottom:none">2021-10-12</td>
5743
+ <td style="border-bottom:none"><h3>PHP</h3></td>
5744
+ <td style="border-bottom:none">programming language</td>
5745
+ </tr>
5746
+ </table>
5747
+ <div class="greybox" style="position: relative; top: -10px">
5748
+ Fixing "PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0", which prevents "Auto set featured media using web page address" from working:<br>
5749
+ 1) Access cPanel, MultiPHP INI Editor and enable "allow_url_fopen".<br>
5750
+ </div>
5751
+ </div>
5752
  <div class="box">
5753
  <table>
5754
  <tr>
admin/strings.php CHANGED
@@ -574,6 +574,9 @@ function fifu_get_strings_settings() {
574
  $fifu['media']['dev'] = function() {
575
  _e("php function that runs the upload process once and immediately (i.e. without a cron job).", FIFU_SLUG);
576
  };
 
 
 
577
  $fifu['media']['tab']['main'] = function() {
578
  _e("Main", FIFU_SLUG);
579
  };
@@ -1276,7 +1279,16 @@ function fifu_get_strings_settings() {
1276
 
1277
  // video
1278
  $fifu['video']['desc'] = function() {
1279
- _e("FIFU supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting) and Sprout. Videos hosted elsewhere are not supported.", FIFU_SLUG);
 
 
 
 
 
 
 
 
 
1280
  };
1281
 
1282
  // thumbnail
@@ -1362,6 +1374,12 @@ function fifu_get_strings_settings() {
1362
  $fifu['gallery']['desc'] = function() {
1363
  _e("It is known that some galleries provided by some themes work only when the dimensions of the images are saved in the database, which is often impracticable due to the slowness of this process. So FIFU offers a product gallery that does not depend on the dimensions of the external images to work correctly. You can configure the behavior of this gallery in the \"Featured slider\" tab. To change the aspect ratio, access \"Featured image > Same Height > Size ratio\".", FIFU_SLUG);
1364
  };
 
 
 
 
 
 
1365
 
1366
  // buy
1367
  $fifu['buy']['desc'] = function() {
@@ -1511,6 +1529,9 @@ function fifu_get_strings_meta_box() {
1511
  $fifu['common']['video'] = function() {
1512
  _e("Video URL", FIFU_SLUG);
1513
  };
 
 
 
1514
 
1515
  // details
1516
  $fifu['detail']['ratio'] = function() {
574
  $fifu['media']['dev'] = function() {
575
  _e("php function that runs the upload process once and immediately (i.e. without a cron job).", FIFU_SLUG);
576
  };
577
+ $fifu['media']['run'] = function() {
578
+ _e("Run now", FIFU_SLUG);
579
+ };
580
  $fifu['media']['tab']['main'] = function() {
581
  _e("Main", FIFU_SLUG);
582
  };
1279
 
1280
  // video
1281
  $fifu['video']['desc'] = function() {
1282
+ _e("FIFU supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting), Sprout and your media library. Videos hosted elsewhere are not supported.", FIFU_SLUG);
1283
+ };
1284
+ $fifu['video']['tab']['video'] = function() {
1285
+ _e("Featured video", FIFU_SLUG);
1286
+ };
1287
+ $fifu['video']['tab']['local'] = function() {
1288
+ _e("Media library", FIFU_SLUG);
1289
+ };
1290
+ $fifu['video']['local']['desc'] = function() {
1291
+ _e("It's possible to use mp4 videos from your media library as featured videos. However it's required to create a video thumbnail, that will be stored in your media library. For that, in the \"Feature video\" meta box, forward the video to a frame you like and click on \"set this frame as thumbnail\" button. Save the post and that's it.", FIFU_SLUG);
1292
  };
1293
 
1294
  // thumbnail
1374
  $fifu['gallery']['desc'] = function() {
1375
  _e("It is known that some galleries provided by some themes work only when the dimensions of the images are saved in the database, which is often impracticable due to the slowness of this process. So FIFU offers a product gallery that does not depend on the dimensions of the external images to work correctly. You can configure the behavior of this gallery in the \"Featured slider\" tab. To change the aspect ratio, access \"Featured image > Same Height > Size ratio\".", FIFU_SLUG);
1376
  };
1377
+ $fifu['gallery']['toggle'] = function() {
1378
+ _e("product gallery", FIFU_SLUG);
1379
+ };
1380
+ $fifu['gallery']['adaptive'] = function() {
1381
+ _e("adaptive height", FIFU_SLUG);
1382
+ };
1383
 
1384
  // buy
1385
  $fifu['buy']['desc'] = function() {
1529
  $fifu['common']['video'] = function() {
1530
  _e("Video URL", FIFU_SLUG);
1531
  };
1532
+ $fifu['common']['capture'] = function() {
1533
+ _e("set this frame as thumbnail", FIFU_SLUG);
1534
+ };
1535
 
1536
  // details
1537
  $fifu['detail']['ratio'] = 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.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.7.7
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
includes/attachment.php CHANGED
@@ -199,9 +199,6 @@ function fifu_get_photon_url($image, $size, $att_id) {
199
 
200
  }
201
 
202
- if (fifu_jetpack_ssl($image[0]))
203
- $args['ssl'] = 1;
204
-
205
  // Remove CDN prefix
206
  $matches = preg_split('/https:\/\//', $image[0]);
207
  if ($matches && count($matches) > 2)
199
 
200
  }
201
 
 
 
 
202
  // Remove CDN prefix
203
  $matches = preg_split('/https:\/\//', $image[0]);
204
  if ($matches && count($matches) > 2)
includes/jetpack.php CHANGED
@@ -49,6 +49,10 @@ function fifu_is_photon_url($url) {
49
  function fifu_jetpack_photon_url($url, $args) {
50
  if (fifu_is_photon_url($url))
51
  return $url;
 
 
 
 
52
  $url = fifu_remove_cdn_prefix($url);
53
  $image_url_parts = wp_parse_url($url);
54
  if (!is_array($image_url_parts) || empty($image_url_parts['host']) || empty($image_url_parts['path']))
49
  function fifu_jetpack_photon_url($url, $args) {
50
  if (fifu_is_photon_url($url))
51
  return $url;
52
+
53
+ if (fifu_jetpack_ssl($url))
54
+ $args['ssl'] = 1;
55
+
56
  $url = fifu_remove_cdn_prefix($url);
57
  $image_url_parts = wp_parse_url($url);
58
  if (!is_array($image_url_parts) || empty($image_url_parts['host']) || empty($image_url_parts['path']))
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.1
7
- Stable tag: 3.7.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -85,7 +85,7 @@ Use an external image as featured image of your post, page or custom post type.
85
  * **[PRO]** Fast Buy
86
 
87
  #### FEATURED VIDEO
88
- Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting) and Sprout.
89
 
90
  * **[PRO]** Featured video
91
  * **[PRO]** Video thumbnail
@@ -225,20 +225,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
225
 
226
  == Changelog ==
227
 
 
 
 
228
  = 3.7.6 =
229
  * New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.
230
 
231
  = 3.7.5 =
232
  * New: Affiliate Program (earn money recommending FIFU); enhancement: Auto set featured media from post content (can find video URLs without iframe); fix: Delete All URLs (not working).
233
 
234
- = 3.7.4 =
235
- * New option: Save in the Media Library > Proxy.
236
-
237
  = others =
238
  * [more](https://fifu.app/changelog)
239
 
240
 
241
  == Upgrade Notice ==
242
 
243
- = 3.7.6 =
244
- * New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8.1
7
+ Stable tag: 3.7.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
85
  * **[PRO]** Fast Buy
86
 
87
  #### FEATURED VIDEO
88
+ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio, JW Player, WordPress.com (Jetpack Video Hosting), Sprout and media library.
89
 
90
  * **[PRO]** Featured video
91
  * **[PRO]** Video thumbnail
225
 
226
  == Changelog ==
227
 
228
+ = 3.7.7 =
229
+ * Enhancement: Featured video (supports videos from the media library now); new option: FIFU Product Gallery > adaptive height; new option: Save in the Media Library > Run now.
230
+
231
  = 3.7.6 =
232
  * New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.
233
 
234
  = 3.7.5 =
235
  * New: Affiliate Program (earn money recommending FIFU); enhancement: Auto set featured media from post content (can find video URLs without iframe); fix: Delete All URLs (not working).
236
 
 
 
 
237
  = others =
238
  * [more](https://fifu.app/changelog)
239
 
240
 
241
  == Upgrade Notice ==
242
 
243
+ = 3.7.7 =
244
+ * Enhancement: Featured video (supports videos from the media library now); new option: FIFU Product Gallery > adaptive height; new option: Save in the Media Library > Run now.