Featured Image From URL - Version 3.5.8

Version Description

  • New feature: Auto set featured image using web page address; new feature: Auto set screenshot as featured image.
Download this release

Release Info

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

Code changes from version 3.5.7 to 3.5.8

admin/html/js/menu.js CHANGED
@@ -40,6 +40,7 @@ jQuery(function () {
40
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
41
  jQuery("#fifu_input_auto_set_width").spinner({min: 0});
42
  jQuery("#fifu_input_auto_set_height").spinner({min: 0});
 
43
  jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
44
  jQuery("#tabsApi").tabs();
45
  jQuery("#tabsCrop").tabs();
@@ -49,6 +50,7 @@ jQuery(function () {
49
  jQuery("#tabsCDN").tabs();
50
  jQuery("#tabsShortcode").tabs();
51
  jQuery("#tabsAutoSet").tabs();
 
52
  jQuery("#tabsSlider").tabs();
53
  jQuery("#tabsContent").tabs();
54
  jQuery("#tabsContentAll").tabs();
40
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
41
  jQuery("#fifu_input_auto_set_width").spinner({min: 0});
42
  jQuery("#fifu_input_auto_set_height").spinner({min: 0});
43
+ jQuery("#fifu_input_screenshot_height").spinner({min: 0});
44
  jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
45
  jQuery("#tabsApi").tabs();
46
  jQuery("#tabsCrop").tabs();
50
  jQuery("#tabsCDN").tabs();
51
  jQuery("#tabsShortcode").tabs();
52
  jQuery("#tabsAutoSet").tabs();
53
+ jQuery("#tabsScreenshot").tabs();
54
  jQuery("#tabsSlider").tabs();
55
  jQuery("#tabsContent").tabs();
56
  jQuery("#tabsContentAll").tabs();
admin/html/menu.html CHANGED
@@ -367,6 +367,51 @@
367
  on, off
368
  </th>
369
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  <tr class="color">
371
  <th>
372
  <?php $fifu['tab']['image']() ?>
@@ -2041,6 +2086,79 @@
2041
  </tr>
2042
  </table>
2043
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2044
  </div>
2045
 
2046
  <div id="tabs-g">
@@ -4588,6 +4706,24 @@
4588
  </div>
4589
  </div>
4590
  <div id="tabs-t">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4591
  <div class="box">
4592
  <table>
4593
  <tr>
367
  on, off
368
  </th>
369
  </tr>
370
+ <tr class="color">
371
+ <th>
372
+ <?php $fifu['tab']['auto']() ?>
373
+ </th>
374
+ <th>
375
+ <?php $fifu['title']['screenshot']() ?>
376
+ </th>
377
+ <th></th>
378
+ <th>
379
+ wp fifu screenshot &lt;toggle&gt;
380
+ </th>
381
+ <th>
382
+ on, off
383
+ </th>
384
+ </tr>
385
+ <tr class="color">
386
+ <th>
387
+ <?php $fifu['tab']['auto']() ?>
388
+ </th>
389
+ <th>
390
+ <?php $fifu['title']['screenshot']() ?>
391
+ </th>
392
+ <th>
393
+ <?php $fifu['screenshot']['crop']['height']() ?>
394
+ </th>
395
+ <th>
396
+ wp fifu screenshot --height &lt;integer&gt;
397
+ </th>
398
+ <th>400, 600, 800...</th>
399
+ </tr>
400
+ <tr class="color">
401
+ <th>
402
+ <?php $fifu['tab']['auto']() ?>
403
+ </th>
404
+ <th>
405
+ <?php $fifu['title']['finder']() ?>
406
+ </th>
407
+ <th></th>
408
+ <th>
409
+ wp fifu finder &lt;toggle&gt;
410
+ </th>
411
+ <th>
412
+ on, off
413
+ </th>
414
+ </tr>
415
  <tr class="color">
416
  <th>
417
  <?php $fifu['tab']['image']() ?>
2086
  </tr>
2087
  </table>
2088
  </div>
2089
+
2090
+ <div class="box">
2091
+ <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
2092
+ <h2><?php $fifu['title']['screenshot']() ?> </span></h2>
2093
+ <div class="greybox" id="grad2">
2094
+ <?php $fifu['screenshot']['desc']() ?>
2095
+ </div>
2096
+ <br>
2097
+ <div id="tabsScreenshot">
2098
+ <ul>
2099
+ <li><a href="#tabsScreenshot-a"><?php $fifu['screenshot']['tab']['auto']() ?></a></li>
2100
+ <li><a href="#tabsScreenshot-b"><?php $fifu['screenshot']['tab']['crop']() ?></a></li>
2101
+ <br>
2102
+ <br>
2103
+ <div id="tabsScreenshot-a">
2104
+ <table style="text-align:left">
2105
+ <tr>
2106
+ <th>
2107
+ <input
2108
+ type="submit"
2109
+ href="javascript:void(0)"
2110
+ class="toggleoff"
2111
+ value=""
2112
+ style="display:block;border:none">
2113
+ </th>
2114
+ </tr>
2115
+ </table>
2116
+ </div>
2117
+ <div id="tabsScreenshot-b">
2118
+ <table>
2119
+ <tr style="text-align:center">
2120
+ <th>
2121
+ <input id="fifu_input_screenshot_height"
2122
+ name="fifu_input_screenshot_height"
2123
+ step="10"
2124
+ size="5">
2125
+ </th>
2126
+ <th>
2127
+ <?php $fifu['screenshot']['crop']['height']() ?>
2128
+ </th>
2129
+ </tr>
2130
+ <tr>
2131
+ <th>
2132
+ <input type="submit" value="<?php $fifu['button']['submit']() ?>" >
2133
+ </th>
2134
+ <th></th>
2135
+ </tr>
2136
+ </table>
2137
+ </div>
2138
+ </ul>
2139
+ </div>
2140
+ </div>
2141
+
2142
+ <div class="box">
2143
+ <div class="fifu-pro"><a href="https://fifu.app" target="_blank" style="color:grey">premium</a></div>
2144
+ <h2><?php $fifu['title']['finder']() ?> </span></h2>
2145
+ <div class="greybox" id="grad2">
2146
+ <?php $fifu['finder']['desc']() ?>
2147
+ </div>
2148
+ <br>
2149
+ <table style="text-align:left">
2150
+ <tr>
2151
+ <th>
2152
+ <input
2153
+ type="submit"
2154
+ href="javascript:void(0)"
2155
+ class="toggleoff"
2156
+ value=""
2157
+ style="display:block;border:none">
2158
+ </th>
2159
+ </tr>
2160
+ </table>
2161
+ </div>
2162
  </div>
2163
 
2164
  <div id="tabs-g">
4706
  </div>
4707
  </div>
4708
  <div id="tabs-t">
4709
+ <div class="box">
4710
+ <table>
4711
+ <tr>
4712
+ <td style="border-bottom:none">2021-04-17</td>
4713
+ <td style="border-bottom:none"><h3> Rey + Rey Core</h3></td>
4714
+ <td style="border-bottom:none">theme + plugin</td>
4715
+ </tr>
4716
+ </table>
4717
+ <div class="greybox" style="position: relative; top: -10px">
4718
+ Product gallery doesn't work correctly.<br>
4719
+ 1) enable "FIFU Settings > WooCommerce > FIFU Product Gallery";<br>
4720
+ 2) access "Appearance > your theme > Customize > Additional CSS";<br>
4721
+ 3) add:<br>
4722
+ &nbsp;&nbsp;&nbsp;&nbsp;div.rey-productSummary {justify-content:unset !important}<br>
4723
+ &nbsp;&nbsp;&nbsp;&nbsp;div.fifu-woo-gallery {padding: 20px !important}<br>
4724
+ 4) publish.<br>
4725
+ </div>
4726
+ </div>
4727
  <div class="box">
4728
  <table>
4729
  <tr>
admin/html/meta-box.html CHANGED
@@ -104,7 +104,9 @@
104
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
105
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Featured slider" class="dashicons dashicons-images-alt2" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
106
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Featured shortcode" class="dashicons dashicons-shortcode" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
107
- <td style="padding: 0px 0px" class="fifu-hover"><span title="ISBN" class="dashicons dashicons-book-alt" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
 
 
108
  </tr>
109
  </table>
110
  </div>
104
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
105
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Featured slider" class="dashicons dashicons-images-alt2" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
106
  <td style="padding: 0px 0px" class="fifu-hover"><span title="Featured shortcode" class="dashicons dashicons-shortcode" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
107
+ <td style="padding: 0px 0px" class="fifu-hover"><span title="ISBN (Auto set featured image using ISBN and books API)" class="dashicons dashicons-book-alt" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
108
+ <td style="padding: 0px 0px" class="fifu-hover"><span title="Screenshot (Auto set screenshot as featured image)" class="dashicons dashicons-cover-image" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
109
+ <td style="padding: 0px 0px" class="fifu-hover"><span title="Image finder (Auto set featured image using web page address)" class="dashicons dashicons-code-standards" style="font-size:13px; display: unset; vertical-align:sub;"></span></td>
110
  </tr>
111
  </table>
112
  </div>
admin/strings.php CHANGED
@@ -64,6 +64,9 @@ function fifu_get_strings_settings() {
64
  $fifu['word']['width'] = function() {
65
  _e("width", FIFU_SLUG);
66
  };
 
 
 
67
  $fifu['word']['color'] = function() {
68
  _e("color", FIFU_SLUG);
69
  };
@@ -208,6 +211,12 @@ function fifu_get_strings_settings() {
208
  $fifu['title']['isbn'] = function() {
209
  _e("Auto set featured image using ISBN and books API", FIFU_SLUG);
210
  };
 
 
 
 
 
 
211
  $fifu['title']['giphy'] = function() {
212
  _e("Giphy Search", FIFU_SLUG);
213
  };
@@ -513,7 +522,7 @@ function fifu_get_strings_settings() {
513
  _e("It's possible to save the external images in the media library. Make a backup before running the cron job, because you can't revert this action later.", FIFU_SLUG);
514
  };
515
  $fifu['media']['upload'] = function() {
516
- _e("show upload button on editor", FIFU_SLUG);
517
  };
518
  $fifu['media']['job'] = function() {
519
  _e("run a cron job that searches for external images and saves them in the media library periodically.", FIFU_SLUG);
@@ -609,6 +618,25 @@ function fifu_get_strings_settings() {
609
  _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. The image searches happen in a FIFU cloud service connected to a books API and, due the costs involved, for now it's limited to 2,500 posts a day, one search at a time, and available only for license keys purchased/renewed from a year ago.", FIFU_SLUG);
610
  };
611
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
612
  // giphy
613
  $fifu['giphy']['desc'] = function() {
614
  _e("Enable keyword gif search at featured image box.", FIFU_SLUG);
@@ -1385,6 +1413,12 @@ function fifu_get_strings_meta_box_php() {
1385
  $fifu['title']['post']['isbn'] = function() {
1386
  return __("ISBN", FIFU_SLUG);
1387
  };
 
 
 
 
 
 
1388
 
1389
  // variation
1390
  $fifu['variation']['field'] = function() {
64
  $fifu['word']['width'] = function() {
65
  _e("width", FIFU_SLUG);
66
  };
67
+ $fifu['word']['height'] = function() {
68
+ _e("height", FIFU_SLUG);
69
+ };
70
  $fifu['word']['color'] = function() {
71
  _e("color", FIFU_SLUG);
72
  };
211
  $fifu['title']['isbn'] = function() {
212
  _e("Auto set featured image using ISBN and books API", FIFU_SLUG);
213
  };
214
+ $fifu['title']['screenshot'] = function() {
215
+ _e("Auto set screenshot as featured image", FIFU_SLUG);
216
+ };
217
+ $fifu['title']['finder'] = function() {
218
+ _e("Auto set featured image using web page address", FIFU_SLUG);
219
+ };
220
  $fifu['title']['giphy'] = function() {
221
  _e("Giphy Search", FIFU_SLUG);
222
  };
522
  _e("It's possible to save the external images in the media library. Make a backup before running the cron job, because you can't revert this action later.", FIFU_SLUG);
523
  };
524
  $fifu['media']['upload'] = function() {
525
+ _e("show upload button on post editor", FIFU_SLUG);
526
  };
527
  $fifu['media']['job'] = function() {
528
  _e("run a cron job that searches for external images and saves them in the media library periodically.", FIFU_SLUG);
618
  _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. The image searches happen in a FIFU cloud service connected to a books API and, due the costs involved, for now it's limited to 2,500 posts a day, one search at a time, and available only for license keys purchased/renewed from a year ago.", FIFU_SLUG);
619
  };
620
 
621
+ // screenshot
622
+ $fifu['screenshot']['desc'] = function() {
623
+ _e("Set screenshots from external web pages as featured images automatically. FIFU will check every minute if there are post types without featured images and will access the informed web page URLs to get their screenshots. The screenshots are saved in the media library and are automatically updated once a month.", FIFU_SLUG);
624
+ };
625
+ $fifu['screenshot']['tab']['auto'] = function() {
626
+ _e("Auto set", FIFU_SLUG);
627
+ };
628
+ $fifu['screenshot']['tab']['crop'] = function() {
629
+ _e("Crop", FIFU_SLUG);
630
+ };
631
+ $fifu['screenshot']['crop']['height'] = function() {
632
+ _e("height (px)", FIFU_SLUG);
633
+ };
634
+
635
+ // find
636
+ $fifu['finder']['desc'] = function() {
637
+ _e("Set images from external web pages as featured images automatically. FIFU will check every minute if there are post types without featured images and will access the informed web page URLs to get the main image. For that FIFU looks for the Open Graph tag image (used for sharing on social media). If og:image is not found, FIFU will get the larger image found.", FIFU_SLUG);
638
+ };
639
+
640
  // giphy
641
  $fifu['giphy']['desc'] = function() {
642
  _e("Enable keyword gif search at featured image box.", FIFU_SLUG);
1413
  $fifu['title']['post']['isbn'] = function() {
1414
  return __("ISBN", FIFU_SLUG);
1415
  };
1416
+ $fifu['title']['post']['screenshot'] = function() {
1417
+ return __("Screenshot", FIFU_SLUG);
1418
+ };
1419
+ $fifu['title']['post']['finder'] = function() {
1420
+ return __("Image finder", FIFU_SLUG);
1421
+ };
1422
 
1423
  // variation
1424
  $fifu['variation']['field'] = 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.5.7
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.5.8
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
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.7
7
- Stable tag: 3.5.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -43,6 +43,8 @@ Use an external image as featured image of your post, page or custom post type.
43
  * Auto set featured image/video using img/iframe tag from post content
44
  * **[Premium]** Auto set featured image using post title and search engine
45
  * **[Premium]** Auto set featured image using ISBN and books API
 
 
46
 
47
  #### PERFORMANCE
48
 
@@ -200,20 +202,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio,
200
 
201
  == Changelog ==
202
 
 
 
 
203
  = 3.5.7 =
204
- * Improvement: added support to videos from JW Player, Sprout and WooCommerce.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
205
 
206
  = 3.5.6 =
207
  * Fix: CDN + Optimized Thumbnails not working for images from some domains.
208
 
209
- = 3.5.5 =
210
- * Improvement: Hide Featured Media may work with internal featured images now.
211
-
212
  = others =
213
  * [more](https://fifu.app/changelog/)
214
 
215
 
216
  == Upgrade Notice ==
217
 
218
- = 3.5.7 =
219
- * Improvement: added support to videos from JW Player, Sprout and WooCommerce.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
4
  Tags: featured, image, url, woocommerce, thumbnail
5
  Requires at least: 5.3
6
  Tested up to: 5.7
7
+ Stable tag: 3.5.8
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
43
  * Auto set featured image/video using img/iframe tag from post content
44
  * **[Premium]** Auto set featured image using post title and search engine
45
  * **[Premium]** Auto set featured image using ISBN and books API
46
+ * **[Premium]** Auto set screenshot as featured image
47
+ * **[Premium]** Auto set featured image using web page address
48
 
49
  #### PERFORMANCE
50
 
202
 
203
  == Changelog ==
204
 
205
+ = 3.5.8 =
206
+ * New feature: Auto set featured image using web page address; new feature: Auto set screenshot as featured image.
207
+
208
  = 3.5.7 =
209
+ * Improvement: added support to videos from JW Player, Sprout and WordPress.com (Jetpack Video Hosting); improvement: license key activation is more flexible (unlimited sites from the same domain); improvement: custom Prev/Next buttons for Featured Slider and FIFU Product Gallery.
210
 
211
  = 3.5.6 =
212
  * Fix: CDN + Optimized Thumbnails not working for images from some domains.
213
 
 
 
 
214
  = others =
215
  * [more](https://fifu.app/changelog/)
216
 
217
 
218
  == Upgrade Notice ==
219
 
220
+ = 3.5.8 =
221
+ * New feature: Auto set featured image using web page address; new feature: Auto set screenshot as featured image.