Featured Image From URL - Version 3.4.0

Version Description

  • Notice: for users with image URLs from Instagram (FIFU Settings > Troubleshooting).
Download this release

Release Info

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

Code changes from version 3.3.9 to 3.4.0

admin/html/menu.html CHANGED
@@ -40,49 +40,6 @@
40
  </form>
41
  </div>
42
 
43
- <div class="box">
44
- <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
45
- <h2><?php $fifu['title']['fields']() ?></h2>
46
- <div class="greybox" id="grad2">
47
- <?php $fifu['fields']['desc']() ?><br><br>
48
- <table style="text-align:left">
49
- <tr>
50
- <th>
51
- <label for="fifu_input_spinner_image"
52
- placehold><?php $fifu['fields']['image']() ?></label>
53
- </th>
54
- <th>
55
- <input id="fifu_input_spinner_image"
56
- name="fifu_input_spinner_image"
57
- size="4">
58
- </th>
59
- </tr>
60
- <tr>
61
- <th>
62
- <label for="fifu_input_spinner_video"><?php $fifu['fields']['video']() ?></label>
63
- </th>
64
- <th>
65
- <input id="fifu_input_spinner_video"
66
- name="fifu_input_spinner_video"
67
- size="4">
68
- </th>
69
- </tr>
70
- <tr>
71
- <th>
72
- <label for="fifu_input_spinner_slider"><?php $fifu['fields']['slider']() ?></label>
73
- </th>
74
- <th>
75
- <input id="fifu_input_spinner_slider"
76
- name="fifu_input_spinner_slider"
77
- size="4">
78
- </th>
79
- </tr>
80
- </table>
81
- </div>
82
- <br>
83
- <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
84
- </div>
85
-
86
  <div class="box">
87
  <h2><?php $fifu['title']['library']() ?></h2>
88
  <div class="greybox">
@@ -1802,6 +1759,17 @@
1802
  <?php $fifu['slider']['thumb']() ?>
1803
  </th>
1804
  </tr>
 
 
 
 
 
 
 
 
 
 
 
1805
  <tr>
1806
  <th>
1807
  <input id="fifu_input_slider_pause"
@@ -2327,6 +2295,7 @@
2327
  <li><a href="#tabs-3"><?php $fifu['import']['tab']['import']() ?></a></li>
2328
  <li><a href="#tabs-1"><?php $fifu['import']['tab']['custom']() ?></a></li>
2329
  <li><a href="#tabs-2"><?php $fifu['import']['tab']['custom']() ?> (premium)</a></li>
 
2330
  </ul>
2331
  <div id="tabs-1">
2332
 
@@ -2445,6 +2414,24 @@
2445
  </div>
2446
  </center>
2447
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2448
  </div>
2449
  </div>
2450
  </div>
@@ -2483,6 +2470,39 @@
2483
  </table>
2484
  </div>
2485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2486
  <a name="category"></a>
2487
  <div class="box">
2488
  <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
@@ -2746,6 +2766,19 @@
2746
  </div>
2747
  </div>
2748
  <div id="tabs-t">
 
 
 
 
 
 
 
 
 
 
 
 
 
2749
  <div class="box">
2750
  <table>
2751
  <tr>
40
  </form>
41
  </div>
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  <div class="box">
44
  <h2><?php $fifu['title']['library']() ?></h2>
45
  <div class="greybox">
1759
  <?php $fifu['slider']['thumb']() ?>
1760
  </th>
1761
  </tr>
1762
+ <tr>
1763
+ <th>
1764
+ <input id="fifu_input_spinner_slider"
1765
+ name="fifu_input_spinner_slider"
1766
+ step="1"
1767
+ size="4">
1768
+ </th>
1769
+ <th>
1770
+ <?php $fifu['fields']['slider']() ?>
1771
+ </th>
1772
+ </tr>
1773
  <tr>
1774
  <th>
1775
  <input id="fifu_input_slider_pause"
2295
  <li><a href="#tabs-3"><?php $fifu['import']['tab']['import']() ?></a></li>
2296
  <li><a href="#tabs-1"><?php $fifu['import']['tab']['custom']() ?></a></li>
2297
  <li><a href="#tabs-2"><?php $fifu['import']['tab']['custom']() ?> (premium)</a></li>
2298
+ <li><a href="#tabs-4"><?php $fifu['import']['tab']['priority']() ?></a></li>
2299
  </ul>
2300
  <div id="tabs-1">
2301
 
2414
  </div>
2415
  </center>
2416
  </div>
2417
+
2418
+ <div id="tabs-4">
2419
+ <table style="text-align:left">
2420
+ <tr>
2421
+ <th>
2422
+ <input
2423
+ type="submit"
2424
+ href="javascript:void(0)"
2425
+ class="toggleoff"
2426
+ value=""
2427
+ style="display:block;border:none">
2428
+ </th>
2429
+ <th>
2430
+ <?php $fifu['import']['priority']['lists']() ?>
2431
+ </th>
2432
+ </tr>
2433
+ </table>
2434
+ </div>
2435
  </div>
2436
  </div>
2437
  </div>
2470
  </table>
2471
  </div>
2472
 
2473
+ <div class="box">
2474
+ <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
2475
+ <h2><?php $fifu['title']['fields']() ?></h2>
2476
+ <div class="greybox" id="grad2">
2477
+ <?php $fifu['fields']['desc']() ?><br><br>
2478
+ <table style="text-align:left">
2479
+ <tr>
2480
+ <th>
2481
+ <label for="fifu_input_spinner_image"
2482
+ placehold><?php $fifu['fields']['image']() ?></label>
2483
+ </th>
2484
+ <th>
2485
+ <input id="fifu_input_spinner_image"
2486
+ name="fifu_input_spinner_image"
2487
+ size="4">
2488
+ </th>
2489
+ </tr>
2490
+ <tr>
2491
+ <th>
2492
+ <label for="fifu_input_spinner_video"><?php $fifu['fields']['video']() ?></label>
2493
+ </th>
2494
+ <th>
2495
+ <input id="fifu_input_spinner_video"
2496
+ name="fifu_input_spinner_video"
2497
+ size="4">
2498
+ </th>
2499
+ </tr>
2500
+ </table>
2501
+ </div>
2502
+ <br>
2503
+ <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
2504
+ </div>
2505
+
2506
  <a name="category"></a>
2507
  <div class="box">
2508
  <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
2766
  </div>
2767
  </div>
2768
  <div id="tabs-t">
2769
+ <div class="box">
2770
+ <table>
2771
+ <tr>
2772
+ <td style="border-bottom:none">2020-10-25</td>
2773
+ <td style="border-bottom:none"><h3> Instagram</h3></td>
2774
+ <td style="border-bottom:none">social networking</td>
2775
+ </tr>
2776
+ </table>
2777
+ <div class="greybox" style="position: relative; top: -10px">
2778
+ Instagram image URLs are not working anymore:<br>
2779
+ x) official Instagram note: "You may receive intermittent HTTP 400 errors from the legacy endpoints that will be deprecated on October 24, 2020" (https://developers.facebook.com/docs/instagram/oembed). It means your Instagram image URLs are not valid anymore, but it seems there is a way to solve that programmatically with an access token. We're going to check the documentation this week and provide the best possible solution.
2780
+ </div>
2781
+ </div>
2782
  <div class="box">
2783
  <table>
2784
  <tr>
admin/strings.php CHANGED
@@ -173,7 +173,7 @@ function fifu_get_strings_settings() {
173
  _e("FIFU Column", FIFU_SLUG);
174
  };
175
  $fifu['title']['fields'] = function() {
176
- _e("Gallery Fields", FIFU_SLUG);
177
  };
178
  $fifu['title']['library'] = function() {
179
  _e("Media Library", FIFU_SLUG);
@@ -429,16 +429,16 @@ function fifu_get_strings_settings() {
429
 
430
  // fields
431
  $fifu['fields']['desc'] = function() {
432
- _e("Choose the number of fields you have in the post editor.", FIFU_SLUG);
433
  };
434
  $fifu['fields']['image'] = function() {
435
- _e("WooCommerce image gallery", FIFU_SLUG);
436
  };
437
  $fifu['fields']['video'] = function() {
438
- _e("WooCommerce video gallery", FIFU_SLUG);
439
  };
440
  $fifu['fields']['slider'] = function() {
441
- _e("Featured slider", FIFU_SLUG);
442
  };
443
 
444
  // library
@@ -752,7 +752,7 @@ function fifu_get_strings_settings() {
752
  _e("Just install Jetpack plugin and configure its performance settings as shown below. All your external images will be automatically stored and optimized in a free CDN. And to make things even faster FIFU will load the thumbnails in the exact size your site needs.", FIFU_SLUG);
753
  };
754
  $fifu['jetpack']['important'] = function() {
755
- _e("a few public data, such as post title, link, tags and featured image URL may be saved in an external database by FIFU. The goal is to use that to build an image search engine that will bring more visitants to your site.", FIFU_SLUG);
756
  };
757
 
758
  // lazy
@@ -1059,6 +1059,9 @@ function fifu_get_strings_settings() {
1059
  $fifu['import']['tab']['custom'] = function() {
1060
  _e("Custom fields", FIFU_SLUG);
1061
  };
 
 
 
1062
  $fifu['import']['import']['csv'] = function() {
1063
  _e("CSV example", FIFU_SLUG);
1064
  };
@@ -1089,6 +1092,9 @@ function fifu_get_strings_settings() {
1089
  $fifu['import']['custom']['isbn'] = function() {
1090
  _e("ISBN", FIFU_SLUG);
1091
  };
 
 
 
1092
 
1093
  // addon
1094
  $fifu['addon']['desc'] = function() {
173
  _e("FIFU Column", FIFU_SLUG);
174
  };
175
  $fifu['title']['fields'] = function() {
176
+ _e("Product Gallery", FIFU_SLUG);
177
  };
178
  $fifu['title']['library'] = function() {
179
  _e("Media Library", FIFU_SLUG);
429
 
430
  // fields
431
  $fifu['fields']['desc'] = function() {
432
+ _e("Choose the number of fields in the product editor.", FIFU_SLUG);
433
  };
434
  $fifu['fields']['image'] = function() {
435
+ _e("Image gallery", FIFU_SLUG);
436
  };
437
  $fifu['fields']['video'] = function() {
438
+ _e("Video gallery", FIFU_SLUG);
439
  };
440
  $fifu['fields']['slider'] = function() {
441
+ _e("number of fields in the post editor", FIFU_SLUG);
442
  };
443
 
444
  // library
752
  _e("Just install Jetpack plugin and configure its performance settings as shown below. All your external images will be automatically stored and optimized in a free CDN. And to make things even faster FIFU will load the thumbnails in the exact size your site needs.", FIFU_SLUG);
753
  };
754
  $fifu['jetpack']['important'] = function() {
755
+ _e("a few public data, such as post title, link and featured image URL may be saved in an external database by FIFU. The goal is to use that to build an image search engine that will bring more visitants to your site.", FIFU_SLUG);
756
  };
757
 
758
  // lazy
1059
  $fifu['import']['tab']['custom'] = function() {
1060
  _e("Custom fields", FIFU_SLUG);
1061
  };
1062
+ $fifu['import']['tab']['priority'] = function() {
1063
+ _e("Priority", FIFU_SLUG);
1064
+ };
1065
  $fifu['import']['import']['csv'] = function() {
1066
  _e("CSV example", FIFU_SLUG);
1067
  };
1092
  $fifu['import']['custom']['isbn'] = function() {
1093
  _e("ISBN", FIFU_SLUG);
1094
  };
1095
+ $fifu['import']['priority']['lists'] = function() {
1096
+ _e("prioritize fifu_list_video_url than fifu_list_url (if both exist) ", FIFU_SLUG);
1097
+ };
1098
 
1099
  // addon
1100
  $fifu['addon']['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.3.9
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.4.0
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
includes/thumbnail.php CHANGED
@@ -112,7 +112,8 @@ function fifu_replace($html, $post_id, $post_thumbnail_id, $size, $attr) {
112
  if ($url) {
113
  $alt = get_post_meta($post_id, 'fifu_image_alt', true);
114
  $html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter . ' title=' . $delimiter . $alt . $delimiter, $html);
115
- }
 
116
  }
117
 
118
  if (fifu_is_on('fifu_lazy') && !is_admin()) {
112
  if ($url) {
113
  $alt = get_post_meta($post_id, 'fifu_image_alt', true);
114
  $html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter . ' title=' . $delimiter . $alt . $delimiter, $html);
115
+ } else
116
+ $alt = null;
117
  }
118
 
119
  if (fifu_is_on('fifu_lazy') && !is_admin()) {
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.9
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -195,20 +195,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
195
 
196
  == Changelog ==
197
 
 
 
 
198
  = 3.3.9 =
199
  * Notice: for Jetpack CDN users.
200
 
201
  = 3.3.8 =
202
  * New feature: auto set featured image using ISBN and books API (great for book stores); notice: for Amazon associates.
203
 
204
- = 3.3.7 =
205
- * Improvement: some menu settings were reorganized; bug fix: child/duplicated and parent products were sharing the same image metadata.
206
-
207
  = others =
208
  * [more](https://fifu.app/changelog/)
209
 
210
 
211
  == Upgrade Notice ==
212
 
213
- = 3.3.9 =
214
- * Notice: for Jetpack CDN users.
4
  Tags: featured, image, url, woocommerce, thumbnail
5
  Requires at least: 5.3
6
  Tested up to: 5.5
7
+ Stable tag: 3.4.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
195
 
196
  == Changelog ==
197
 
198
+ = 3.4.0 =
199
+ * Notice: for users with image URLs from Instagram (FIFU Settings > Troubleshooting).
200
+
201
  = 3.3.9 =
202
  * Notice: for Jetpack CDN users.
203
 
204
  = 3.3.8 =
205
  * New feature: auto set featured image using ISBN and books API (great for book stores); notice: for Amazon associates.
206
 
 
 
 
207
  = others =
208
  * [more](https://fifu.app/changelog/)
209
 
210
 
211
  == Upgrade Notice ==
212
 
213
+ = 3.4.0 =
214
+ * Notice: for users with image URLs from Instagram (FIFU Settings > Troubleshooting).