Featured Image From URL - Version 2.9.7

Version Description

  • New (Premium): a play button can be added to video image thumbnails and clicking on that the video will be shown in a lightbox; Improvement: some code added to avoid cache issues with the image javascript; Bug fix: conflict with WPML Multilingual CMS plugin; Bug fix: ajax image problem when adding products to cart; Bug fix: style issue on menu settings due notices/messages from other themes/plugins.
Download this release

Release Info

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

Code changes from version 2.9.6 to 2.9.7

admin/html/js/menu.js CHANGED
@@ -1,4 +1,6 @@
1
  jQuery(document).ready(function () {
 
 
2
  window.scrollTo(0, 0);
3
  jQuery('.wrap').css('opacity', 1);
4
  });
1
  jQuery(document).ready(function () {
2
+ jQuery('div.wrap div.header-box div.notice').hide();
3
+ jQuery('div.wrap div.header-box div#message').hide();
4
  window.scrollTo(0, 0);
5
  jQuery('.wrap').css('opacity', 1);
6
  });
admin/html/menu.html CHANGED
@@ -1533,10 +1533,10 @@
1533
  </div>
1534
 
1535
  <div class="box">
1536
- <h2>Video Thumbnail</h2>
1537
  <div class="greybox" id="grad2">
1538
  <b>Premium feature</b><br><br>
1539
- Enable the toggle below to show the video thumbnail instead of the video.
1540
  </div>
1541
  <br>
1542
  <table style="text-align:left">
@@ -2775,12 +2775,30 @@
2775
  From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2776
  </div>
2777
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2778
  <div class="box">
2779
  <table>
2780
  <tr>
2781
  <td style="border-bottom:none">2020-03-09</td>
2782
  <td style="border-bottom:none"><h3> Google Chrome | Firefox</h3></td>
2783
- <td style="border-bottom:none">browsers</td>
2784
  </tr>
2785
  </table>
2786
  <div class="greybox" style="position: relative; top: -10px">
@@ -2802,19 +2820,6 @@
2802
  2) for each video access "Edit Post Meta > Choose Specific Skin", select "YoutubeStream" or "VimeoStream" and click on "Save Post Meta".<br>
2803
  </div>
2804
  </div>
2805
- <div class="box">
2806
- <table>
2807
- <tr>
2808
- <td style="border-bottom:none">2020-02-27</td>
2809
- <td style="border-bottom:none"><h3> Orienko</h3></td>
2810
- <td style="border-bottom:none">theme</td>
2811
- </tr>
2812
- </table>
2813
- <div class="greybox" style="position: relative; top: -10px">
2814
- External videos are not being shown:<br>
2815
- 1) enable "FIFU Settings > Admin > Internal URL Parameters".<br>
2816
- </div>
2817
- </div>
2818
  <div class="box">
2819
  <table>
2820
  <tr>
1533
  </div>
1534
 
1535
  <div class="box">
1536
+ <h2>Video Image Thumbnail</h2>
1537
  <div class="greybox" id="grad2">
1538
  <b>Premium feature</b><br><br>
1539
+ Enable the toggle below to show the video image thumbnail instead of the video. Clicking on the play icon, the video will be played in a lightbox.
1540
  </div>
1541
  <br>
1542
  <table style="text-align:left">
2775
  From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2776
  </div>
2777
  </div>
2778
+ <div class="box">
2779
+ <table>
2780
+ <tr>
2781
+ <td style="border-bottom:none">2020-03-10</td>
2782
+ <td style="border-bottom:none"><h3> Orienko</h3></td>
2783
+ <td style="border-bottom:none">theme</td>
2784
+ </tr>
2785
+ </table>
2786
+ <div class="greybox" style="position: relative; top: -10px">
2787
+ External videos are not being shown:<br>
2788
+ 1) enable "FIFU Settings > Admin > Internal URL Parameters".<br>
2789
+ </div>
2790
+ <div class="greybox" style="position: relative; top: -10px">
2791
+ Video lightbox isn't shown ("n.fancybox.getInstance is not a function" error):<br>
2792
+ 1) access "orienko/includes/head-media.php";<br>
2793
+ 2) remove the line that contains "wp_enqueue_script( 'fancybox".<br>
2794
+ </div>
2795
+ </div>
2796
  <div class="box">
2797
  <table>
2798
  <tr>
2799
  <td style="border-bottom:none">2020-03-09</td>
2800
  <td style="border-bottom:none"><h3> Google Chrome | Firefox</h3></td>
2801
+ <td style="border-bottom:none">web browsers</td>
2802
  </tr>
2803
  </table>
2804
  <div class="greybox" style="position: relative; top: -10px">
2820
  2) for each video access "Edit Post Meta > Choose Specific Skin", select "YoutubeStream" or "VimeoStream" and click on "Save Post Meta".<br>
2821
  </div>
2822
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
2823
  <div class="box">
2824
  <table>
2825
  <tr>
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 a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
- * Version: 2.9.6
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 a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
+ * Version: 2.9.7
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/attachment.php CHANGED
@@ -97,8 +97,13 @@ function fifu_get_internal_image_path3() {
97
  return explode('.', explode("//", get_home_url())[1])[0] . ".files.wordpress.com";
98
  }
99
 
 
 
 
 
 
100
  function fifu_has_internal_image_path($url) {
101
- return strpos($url, fifu_get_internal_image_path()) !== false || strpos($url, fifu_get_internal_image_path2()) !== false || strpos($url, fifu_get_internal_image_path3()) !== false;
102
  }
103
 
104
  add_filter('wp_get_attachment_metadata', 'fifu_filter_wp_get_attachment_metadata', 10, 2);
97
  return explode('.', explode("//", get_home_url())[1])[0] . ".files.wordpress.com";
98
  }
99
 
100
+ // for WPML Multilingual CMS
101
+ function fifu_get_internal_image_path4() {
102
+ return explode("/", explode("//", get_home_url())[1])[0] . "/wp-content/uploads/";
103
+ }
104
+
105
  function fifu_has_internal_image_path($url) {
106
+ return strpos($url, fifu_get_internal_image_path()) !== false || strpos($url, fifu_get_internal_image_path2()) !== false || strpos($url, fifu_get_internal_image_path3()) !== false || strpos($url, fifu_get_internal_image_path4()) !== false;
107
  }
108
 
109
  add_filter('wp_get_attachment_metadata', 'fifu_filter_wp_get_attachment_metadata', 10, 2);
includes/thumbnail.php CHANGED
@@ -26,7 +26,7 @@ function fifu_add_js() {
26
  wp_add_inline_style('fifu-woo-css', 'img.zoomImg {display:' . fifu_woo_zoom() . ' !important}');
27
 
28
  // js
29
- wp_enqueue_script('fifu-image-js', plugins_url('/html/js/image.js', __FILE__));
30
  wp_localize_script('fifu-image-js', 'fifuImageVars', [
31
  'fifu_lazy' => fifu_is_on("fifu_lazy") ? 'on' : 'off',
32
  'fifu_woo_lbox' => fifu_woo_lbox() ? 'on' : 'off',
@@ -59,7 +59,7 @@ function fifu_apply_css() {
59
  add_filter('woocommerce_product_get_image', 'fifu_woo_replace', 10, 5);
60
 
61
  function fifu_woo_replace($html, $product, $woosize) {
62
- return fifu_replace($html, get_the_id(), null, null);
63
  }
64
 
65
  add_filter('post_thumbnail_html', 'fifu_replace', 10, 4);
26
  wp_add_inline_style('fifu-woo-css', 'img.zoomImg {display:' . fifu_woo_zoom() . ' !important}');
27
 
28
  // js
29
+ wp_enqueue_script('fifu-image-js', plugins_url('/html/js/image.js?' . fifu_version(), __FILE__));
30
  wp_localize_script('fifu-image-js', 'fifuImageVars', [
31
  'fifu_lazy' => fifu_is_on("fifu_lazy") ? 'on' : 'off',
32
  'fifu_woo_lbox' => fifu_woo_lbox() ? 'on' : 'off',
59
  add_filter('woocommerce_product_get_image', 'fifu_woo_replace', 10, 5);
60
 
61
  function fifu_woo_replace($html, $product, $woosize) {
62
+ return fifu_replace($html, $product->get_id(), null, null);
63
  }
64
 
65
  add_filter('post_thumbnail_html', 'fifu_replace', 10, 4);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
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, 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, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
- Stable tag: 2.9.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -162,6 +162,9 @@ Features:
162
 
163
  == Changelog ==
164
 
 
 
 
165
  = 2.9.6 =
166
  * Improvement: last posts and URLs added to support data to make the support faster; Improvement: integration with Sirv plugin; Bug fix: some layout issues on image keyword search.
167
 
@@ -720,6 +723,9 @@ was removed. To finish, a Premium version is now been presented.
720
 
721
  == Upgrade Notice ==
722
 
 
 
 
723
  = 2.9.6 =
724
  * Improvement: last posts and URLs added to support data to make the support faster; Improvement: integration with Sirv plugin; Bug fix: some layout issues on image keyword search.
725
 
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, 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, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
+ Stable tag: 2.9.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
162
 
163
  == Changelog ==
164
 
165
+ = 2.9.7 =
166
+ * New (Premium): a play button can be added to video image thumbnails and clicking on that the video will be shown in a lightbox; Improvement: some code added to avoid cache issues with the image javascript; Bug fix: conflict with WPML Multilingual CMS plugin; Bug fix: ajax image problem when adding products to cart; Bug fix: style issue on menu settings due notices/messages from other themes/plugins.
167
+
168
  = 2.9.6 =
169
  * Improvement: last posts and URLs added to support data to make the support faster; Improvement: integration with Sirv plugin; Bug fix: some layout issues on image keyword search.
170
 
723
 
724
  == Upgrade Notice ==
725
 
726
+ = 2.9.7 =
727
+ * New (Premium): a play button can be added to video image thumbnails and clicking on that the video will be shown in a lightbox; Improvement: some code added to avoid cache issues with the image javascript; Bug fix: conflict with WPML Multilingual CMS plugin; Bug fix: ajax image problem when adding products to cart; Bug fix: style issue on menu settings due notices/messages from other themes/plugins.
728
+
729
  = 2.9.6 =
730
  * Improvement: last posts and URLs added to support data to make the support faster; Improvement: integration with Sirv plugin; Bug fix: some layout issues on image keyword search.
731