Featured Image From URL - Version 3.7.4

Version Description

  • New option: Save in the Media Library > Proxy.
Download this release

Release Info

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

Code changes from version 3.7.3 to 3.7.4

admin/html/js/menu.js CHANGED
@@ -45,6 +45,7 @@ jQuery(function () {
45
  jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
46
  jQuery("#tabsApi").tabs();
47
  jQuery("#tabsCrop").tabs();
 
48
  jQuery("#tabsPremium").tabs();
49
  jQuery("#tabsWooImport").tabs();
50
  jQuery("#tabsWpAllImport").tabs();
45
  jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
46
  jQuery("#tabsApi").tabs();
47
  jQuery("#tabsCrop").tabs();
48
+ jQuery("#tabsMedia").tabs();
49
  jQuery("#tabsPremium").tabs();
50
  jQuery("#tabsWooImport").tabs();
51
  jQuery("#tabsWpAllImport").tabs();
admin/html/menu.html CHANGED
@@ -744,6 +744,40 @@
744
  on, off
745
  </th>
746
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747
  <tr class="color">
748
  <th>
749
  <?php $fifu['tab']['image']() ?>
@@ -2949,43 +2983,93 @@
2949
  <h2><?php $fifu['title']['media']() ?></h2>
2950
 
2951
  <div class="greybox" id="grad2">
2952
-
2953
  <?php $fifu['media']['desc']() ?>
2954
-
2955
- <br>
2956
- <br>
2957
-
2958
- <b><?php $fifu['detail']['developers']() ?></b>: <?php $fifu['media']['dev']() ?>
2959
  </div>
2960
 
2961
  <br>
2962
 
2963
- <table style="text-align:left">
2964
- <tr>
2965
- <th>
2966
- <input
2967
- type="submit"
2968
- class="toggleoff"
2969
- value=""
2970
- style="display:block;border:none">
2971
- </th>
2972
- <th>
2973
- <?php $fifu['media']['upload']() ?>
2974
- </th>
2975
- </tr>
2976
- <tr>
2977
- <th>
2978
- <input
2979
- type="submit"
2980
- class="toggleoff"
2981
- value=""
2982
- style="display:block;border:none">
2983
- </th>
2984
- <th>
2985
- <?php $fifu['media']['job']() ?>
2986
- </th>
2987
- </tr>
2988
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2989
 
2990
  </div>
2991
 
744
  on, off
745
  </th>
746
  </tr>
747
+ <tr class="color">
748
+ <th>
749
+ <?php $fifu['tab']['image']() ?>
750
+ </th>
751
+ <th>
752
+ <?php $fifu['title']['media']() ?>
753
+ </th>
754
+ <th>
755
+ <?php $fifu['media']['proxy']['toggle']() ?>
756
+ </th>
757
+ <th>
758
+ wp fifu upload --proxy &lt;toggle&gt;
759
+ </th>
760
+ <th>
761
+ on, off
762
+ </th>
763
+ </tr>
764
+ <tr class="color">
765
+ <th>
766
+ <?php $fifu['tab']['image']() ?>
767
+ </th>
768
+ <th>
769
+ <?php $fifu['title']['media']() ?>
770
+ </th>
771
+ <th>
772
+ <?php $fifu['media']['proxy']['private']() ?>
773
+ </th>
774
+ <th>
775
+ wp fifu upload --private-proxy &lt;string&gt;
776
+ </th>
777
+ <th>
778
+ 0.0.0.0:8080, ...
779
+ </th>
780
+ </tr>
781
  <tr class="color">
782
  <th>
783
  <?php $fifu['tab']['image']() ?>
2983
  <h2><?php $fifu['title']['media']() ?></h2>
2984
 
2985
  <div class="greybox" id="grad2">
 
2986
  <?php $fifu['media']['desc']() ?>
 
 
 
 
 
2987
  </div>
2988
 
2989
  <br>
2990
 
2991
+ <div id="tabsMedia">
2992
+ <ul>
2993
+ <li><a href="#tabsMedia-a"><?php $fifu['media']['tab']['main']() ?></a></li>
2994
+ <li><a href="#tabsMedia-b"><?php $fifu['media']['tab']['proxy']() ?></a></li>
2995
+ <li><a href="#tabsMedia-c"><?php $fifu['media']['tab']['dev']() ?></a></li>
2996
+ <br>
2997
+ <br>
2998
+ <div id="tabsMedia-a">
2999
+ <table style="text-align:left">
3000
+ <tr>
3001
+ <th>
3002
+ <input
3003
+ type="submit"
3004
+ class="toggleoff"
3005
+ value=""
3006
+ style="display:block;border:none">
3007
+ </th>
3008
+ <th>
3009
+ <?php $fifu['media']['upload']() ?>
3010
+ </th>
3011
+ </tr>
3012
+ <tr>
3013
+ <th>
3014
+ <input
3015
+ type="submit"
3016
+ class="toggleoff"
3017
+ value=""
3018
+ style="display:block;border:none">
3019
+ </th>
3020
+ <th>
3021
+ <?php $fifu['media']['job']() ?>
3022
+ </th>
3023
+ </tr>
3024
+ </table>
3025
+ </div>
3026
+ <div id="tabsMedia-b">
3027
+ <?php $fifu['media']['proxy']['desc']() ?>
3028
+ <br>
3029
+ <hr>
3030
+ <table style="text-align:left">
3031
+ <tr>
3032
+ <th>
3033
+ <input
3034
+ type="submit"
3035
+ class="toggleoff"
3036
+ value=""
3037
+ style="display:block;border:none">
3038
+ </th>
3039
+ <th>
3040
+ <?php $fifu['media']['proxy']['toggle']() ?>
3041
+ </th>
3042
+ </tr>
3043
+ <tr>
3044
+ <th>
3045
+ <?php $fifu['media']['proxy']['private']() ?>
3046
+ </th>
3047
+ <th>
3048
+ <input id="fifu_input_upload_private_proxy"
3049
+ type="text"
3050
+ style="width:700px"
3051
+ placeholder="<?php $fifu['media']['proxy']['placeholder']() ?>"
3052
+ value="">
3053
+
3054
+ <input
3055
+ type="submit"
3056
+ value="<?php $fifu['button']['submit']() ?>" disabled>
3057
+ </th>
3058
+ </tr>
3059
+ </table>
3060
+ </div>
3061
+ <div id="tabsMedia-c">
3062
+ <div>
3063
+ <table style="text-align:left">
3064
+ <tr>
3065
+ <td><b>fifu_dev_upload_all_images()</b></td>
3066
+ <td><?php $fifu['media']['dev']() ?></td>
3067
+ </tr>
3068
+ </table>
3069
+ </div>
3070
+ </div>
3071
+ </ul>
3072
+ </div>
3073
 
3074
  </div>
3075
 
admin/strings.php CHANGED
@@ -567,7 +567,28 @@ function fifu_get_strings_settings() {
567
  _e("run a cron job that searches for external images and saves them in the media library periodically.", FIFU_SLUG);
568
  };
569
  $fifu['media']['dev'] = function() {
570
- _e("fifu_dev_upload_all_images() runs the process once and immediately.", FIFU_SLUG);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
571
  };
572
 
573
  // height
567
  _e("run a cron job that searches for external images and saves them in the media library periodically.", FIFU_SLUG);
568
  };
569
  $fifu['media']['dev'] = function() {
570
+ _e("php function that runs the upload process once and immediately (i.e. without a cron job).", FIFU_SLUG);
571
+ };
572
+ $fifu['media']['tab']['main'] = function() {
573
+ _e("Main", FIFU_SLUG);
574
+ };
575
+ $fifu['media']['tab']['proxy'] = function() {
576
+ _e("Proxy", FIFU_SLUG);
577
+ };
578
+ $fifu['media']['tab']['dev'] = function() {
579
+ _e("Developer", FIFU_SLUG);
580
+ };
581
+ $fifu['media']['proxy']['desc'] = function() {
582
+ _e("Proxies are used to bypass IP ban, what may happen when your site downloads too many images from the same host. As disadvantages, a proxy can limit the number of requests and its IP can be banned as well. Both will force the plugin to try other proxies until find a good one. So proxies should make the process much slower, except if you have access to a private proxy. By default, FIFU works with a list of public proxies updated every 30 minutes and caches the ones that are working with your image URLs.", FIFU_SLUG);
583
+ };
584
+ $fifu['media']['proxy']['toggle'] = function() {
585
+ _e("use proxies to intermediate the traffic between your site and the image hosts", FIFU_SLUG);
586
+ };
587
+ $fifu['media']['proxy']['private'] = function() {
588
+ _e("Private proxy", FIFU_SLUG);
589
+ };
590
+ $fifu['media']['proxy']['placeholder'] = function() {
591
+ _e("192.168.0.1:80, 127.0.0.1:8080", FIFU_SLUG);
592
  };
593
 
594
  // height
featured-image-from-url.php CHANGED
@@ -4,11 +4,11 @@
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.3
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
- * WC tested up to: 5.6
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
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.4
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
+ * WC tested up to: 5.7
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.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.7.3
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.3 =
228
  * New option: Auto set featured image using post title and search engine > Source.
229
 
230
  = 3.7.2 =
231
  * New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).
232
 
233
- = 3.7.1 =
234
- * 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).
235
-
236
  = others =
237
  * [more](https://fifu.app/changelog)
238
 
239
 
240
  == Upgrade Notice ==
241
 
242
- = 3.7.3 =
243
- * New option: Auto set featured image using post title and search engine > Source.
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
+ Stable tag: 3.7.4
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 3.7.4 =
228
+ * New option: Save in the Media Library > Proxy.
229
+
230
  = 3.7.3 =
231
  * New option: Auto set featured image using post title and search engine > Source.
232
 
233
  = 3.7.2 =
234
  * New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).
235
 
 
 
 
236
  = others =
237
  * [more](https://fifu.app/changelog)
238
 
239
 
240
  == Upgrade Notice ==
241
 
242
+ = 3.7.4 =
243
+ * New option: Save in the Media Library > Proxy.