Featured Image From URL - Version 2.8.0

Version Description

  • Improvement: WooCommerce product variations have a Featured Image from URL field now; icons added to FIFU fields.
Download this release

Release Info

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

Code changes from version 2.7.9 to 2.8.0

admin/column.php CHANGED
@@ -13,7 +13,7 @@ function fifu_column() {
13
  }
14
 
15
  function fifu_column_head($default) {
16
- $default['featured_image'] = 'FIFU';
17
  return $default;
18
  }
19
 
13
  }
14
 
15
  function fifu_column_head($default) {
16
+ $default['featured_image'] = '<span class="dashicons dashicons-camera" style="font-size:20px" title="Featured Image from URL"></span> FIFU';
17
  return $default;
18
  }
19
 
admin/html/menu.html CHANGED
@@ -2575,9 +2575,9 @@
2575
  </div>
2576
  </div>
2577
  <div class="box">
2578
- <h2><a title="Card, Apple/Google Pay, Stripe, PayPal..." class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu?default_interval=a&amount=1" target="_blank">Donate </a> $ 1 / year to take this project to the next level</h2>
2579
  <div class="greybox">
2580
- <a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a></h2>
2581
  <div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And <b>thanks to FIFU you keep saving money on storage, processing and copyright</b>. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. Important performance and automation features aren't done yet while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
2582
  </div>
2583
  <script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe frameborder="0" height="93px" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/fifu?donation_meter_color=%2341a2d8&amp;only_donation_meter=true" style="width:100% !important; max-height:none!important;" width="100%"></iframe>
@@ -2629,7 +2629,7 @@
2629
  <div class="box">
2630
  <table>
2631
  <tr>
2632
- <td style="border-bottom:none">2019-11-22</td>
2633
  <td style="border-bottom:none"><h3>Jetpack</h3></td>
2634
  <td style="border-bottom:none">plugin</td>
2635
  </tr>
2575
  </div>
2576
  </div>
2577
  <div class="box">
2578
+ <h2><a class="dbox-donation-button" style="background: #2d81c5;color: #fff;text-decoration: none;display: inline-block;font-size: 16px;padding: 2px 17px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0px 0px 0px 0px #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/fifu" target="_blank">Donate </a> $ 1 to take this project to the next level <span class="dashicons dashicons-info" style="font-size: 25px;" title="Pay with a Card, Apple Pay, Google Pay, Stripe, PayPal and more. No account required."></span></h2>
2579
  <div class="greybox">
2580
+ <a href="https://www.linkedin.com/in/marceljm/" target="_blank"><img src="https://avatars0.githubusercontent.com/u/10578419?s=460&v=4" style="border-radius:100%;width:8.5%;float:left"></a>
2581
  <div style="position:relative;left:10px">Hi, I'm Marcel, Software Engineer and Featured Image from URL author, a project 100% developed in my free time. During the last 4 years I did my best to develop all requested features, integrations, improvements and bug fixes. And <b>thanks to FIFU you keep saving money on storage, processing and copyright</b>. However, with so many users (100,000+ active installs in 2020), it's becoming increasingly difficult to help everyone. Important performance and automation features aren't done yet while frequent updates are required to keep this plugin working with the most current WordPress components. So please become a sponsor and help me to take FIFU to the next level!</div>
2582
  </div>
2583
  <script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe frameborder="0" height="93px" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/fifu?donation_meter_color=%2341a2d8&amp;only_donation_meter=true" style="width:100% !important; max-height:none!important;" width="100%"></iframe>
2629
  <div class="box">
2630
  <table>
2631
  <tr>
2632
+ <td style="border-bottom:none">2019-12-22</td>
2633
  <td style="border-bottom:none"><h3>Jetpack</h3></td>
2634
  <td style="border-bottom:none">plugin</td>
2635
  </tr>
admin/html/meta-box-shortcode.html ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <input
2
+ id="fifu_shortcode_input"
3
+ type="text"
4
+ name="fifu_shortcode_input"
5
+ value=""
6
+ style="<?php echo $width?>"
7
+ disabled
8
+ placeholder="[ Shortcode ] (Premium)"/>
admin/html/meta-box-slider.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <input id="fifu_slider_input_url_<?php echo $i; ?>"
2
+ type="text"
3
+ name="fifu_slider_input_url_<?php echo $i; ?>"
4
+ placeholder="Image URL (Premium)"
5
+ value=""
6
+ disabled
7
+ style="<?php echo $width, $margin ?>" />
admin/html/meta-box-video.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <input id="fifu_video_input_url"
2
+ type="text"
3
+ name="fifu_video_input_url"
4
+ placeholder="Video URL (Premium)"
5
+ value=""
6
+ disabled
7
+ style="<?php echo $width, $margin ?>" />
admin/html/meta-box.html CHANGED
@@ -54,15 +54,3 @@
54
  class="button"
55
  onClick="previewImage();"
56
  style="<?php echo $align, $margin, $show_button ?>" >Preview</a>
57
-
58
- <div id="fifu_news" style="position: relative; top:10px; <?php echo $show_news ?>">
59
- <p style="font-size: 12px; padding: 10px; border-bottom: 1px solid #ee4394; border-top: 1px solid #ee4394; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
60
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Please report any problem to <b>marcel@featuredimagefromurl.com</b></p>
61
- <p style="font-size: 12px; padding: 10px; border-bottom: 1px solid limegreen; border-top: 1px solid limegreen; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><a href="https://donorbox.org/fifu" target="_blank"><b>Donate</b></a> $1 / year to take this project to the next level. New features coming.</p>
63
- <!--p style="font-size: 12px; padding: 10px; border-bottom: 1px solid orange; border-top: 1px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a">premium</a> version. Buy with a Card, Apple/Google Pay and others. <b>No account required</b>.</p-->
65
- <p style="font-size: 12px; padding: 10px; border-bottom: 1px solid orange; border-top: 1px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="https://fifu.app/" target="_blank"><b>premium</b></a> version. Buy with a Card, Apple/Google Pay and others. <b>No account required</b>.</p>
67
- <!--div><script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe frameborder="0" height="93px" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/fifu?donation_meter_color=%2341a2d8&amp;only_donation_meter=true" style="width:100% !important; max-height:none!important;" width="100%"></iframe></div-->
68
- </div>
54
  class="button"
55
  onClick="previewImage();"
56
  style="<?php echo $align, $margin, $show_button ?>" >Preview</a>
 
 
 
 
 
 
 
 
 
 
 
 
admin/html/woo-meta-box-video.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <input id="fifu_video_input_url_<?php echo $i; ?>"
2
+ type="text"
3
+ name="fifu_video_input_url_<?php echo $i; ?>"
4
+ placeholder="Video URL (Premium)"
5
+ value=""
6
+ disabled
7
+ style="<?php echo $width, $margin ?>" />
admin/html/woo-meta-box.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <input id="fifu_input_url_<?php echo $i; ?>"
2
+ type="text"
3
+ name="fifu_input_url_<?php echo $i; ?>"
4
+ placeholder="Image URL (Premium)"
5
+ value=""
6
+ disabled
7
+ style="<?php echo $width, $margin?>" />
admin/meta-box.php CHANGED
@@ -7,9 +7,18 @@ function fifu_insert_meta_box() {
7
 
8
  foreach ($post_types as $post_type) {
9
  if ($post_type == 'product') {
10
- add_meta_box('urlMetaBox', '<span class="dashicons dashicons-camera" style="font-size:20px;padding-right:10px"></span> Product Image from URL', 'fifu_show_elements', $post_type, 'side', 'low');
11
- } else if ($post_type)
12
- add_meta_box('imageUrlMetaBox', '<span class="dashicons dashicons-camera" style="font-size:18px;padding-right:10px"></span> Featured Image from URL', 'fifu_show_elements', $post_type, 'side', 'low');
 
 
 
 
 
 
 
 
 
13
  }
14
  }
15
 
@@ -31,7 +40,7 @@ function fifu_show_elements($post) {
31
  $alt = get_post_meta($post->ID, 'fifu_image_alt', true);
32
 
33
  if ($url) {
34
- $show_button = 'display:none;';
35
  $show_alt = $show_image = $show_link = '';
36
  } else {
37
  $show_alt = $show_image = $show_link = 'display:none;';
@@ -43,6 +52,47 @@ function fifu_show_elements($post) {
43
  include 'html/meta-box.html';
44
  }
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  add_filter('wp_insert_post_data', 'fifu_remove_first_image', 10, 2);
47
 
48
  function fifu_remove_first_image($data, $postarr) {
@@ -178,3 +228,22 @@ function fifu_is_aliplugin_active() {
178
  return is_plugin_active('aliplugin/aliplugin.php');
179
  }
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  foreach ($post_types as $post_type) {
9
  if ($post_type == 'product') {
10
+ add_meta_box('urlMetaBox', '<span class="dashicons dashicons-camera" style="font-size:20px"></span> Product Image from URL', 'fifu_show_elements', $post_type, 'side', 'low');
11
+ add_meta_box('wooCommerceGalleryMetaBox', '<span class="dashicons dashicons-format-gallery" style="font-size:20px"></span> Image Gallery from URL', 'fifu_wc_show_elements', $post_type, 'side', 'low');
12
+ add_meta_box('videoUrlMetaBox', '<span class="dashicons dashicons-video-alt3" style="font-size:20px"></span> Featured Video from URL', 'fifu_video_show_elements', $post_type, 'side', 'low');
13
+ add_meta_box('wooCommerceVideoGalleryMetaBox', '<span class="dashicons dashicons-format-video" style="font-size:20px"></span> Video Gallery from URL', 'fifu_video_wc_show_elements', $post_type, 'side', 'low');
14
+ add_meta_box('sliderImageUrlMetaBox', '<span class="dashicons dashicons-images-alt2" style="font-size:20px"></span> Featured Slider from URL', 'fifu_slider_show_elements', $post_type, 'side', 'low');
15
+ add_meta_box('shortCodeMetaBox', '<span class="dashicons dashicons-editor-code" style="font-size:20px"></span> Featured Shortcode', 'fifu_shortcode_show_elements', $post_type, 'side', 'low');
16
+ } else if ($post_type) {
17
+ add_meta_box('imageUrlMetaBox', '<span class="dashicons dashicons-camera" style="font-size:20px"></span> Featured Image from URL', 'fifu_show_elements', $post_type, 'side', 'low');
18
+ add_meta_box('videoUrlMetaBox', '<span class="dashicons dashicons-video-alt3" style="font-size:20px"></span> Featured Video from URL', 'fifu_video_show_elements', $post_type, 'side', 'low');
19
+ add_meta_box('sliderImageUrlMetaBox', '<span class="dashicons dashicons-images-alt2" style="font-size:20px"></span> Featured Slider from URL', 'fifu_slider_show_elements', $post_type, 'side', 'low');
20
+ add_meta_box('shortCodeMetaBox', '<span class="dashicons dashicons-editor-code" style="font-size:20px"></span> Featured Shortcode', 'fifu_shortcode_show_elements', $post_type, 'side', 'low');
21
+ }
22
  }
23
  }
24
 
40
  $alt = get_post_meta($post->ID, 'fifu_image_alt', true);
41
 
42
  if ($url) {
43
+ $show_button = $show_news = 'display:none;';
44
  $show_alt = $show_image = $show_link = '';
45
  } else {
46
  $show_alt = $show_image = $show_link = 'display:none;';
52
  include 'html/meta-box.html';
53
  }
54
 
55
+ function fifu_shortcode_show_elements($post) {
56
+ $width = 'width:100%;';
57
+ $align = 'text-align:left;';
58
+ include 'html/meta-box-shortcode.html';
59
+ }
60
+
61
+ function fifu_video_show_elements($post) {
62
+ $margin = 'margin-top:10px;';
63
+ $width = 'width:100%;';
64
+ $height = 'height:150px;';
65
+ $align = 'text-align:left;';
66
+ include 'html/meta-box-video.html';
67
+ }
68
+
69
+ function fifu_wc_show_elements($post) {
70
+ $margin = 'margin-top:1px;';
71
+ $width = 'width:100%;';
72
+ $height = 'height:150px;';
73
+ $align = 'text-align:left;';
74
+ for ($i = 0; $i < 3; $i ++)
75
+ include 'html/woo-meta-box.html';
76
+ }
77
+
78
+ function fifu_video_wc_show_elements($post) {
79
+ $margin = 'margin-top:1px;';
80
+ $width = 'width:100%;';
81
+ $height = 'height:150px;';
82
+ $align = 'text-align:left;';
83
+ for ($i = 0; $i < 3; $i ++)
84
+ include 'html/woo-meta-box-video.html';
85
+ }
86
+
87
+ function fifu_slider_show_elements($post) {
88
+ $margin = 'margin-top:1px;';
89
+ $width = 'width:100%;';
90
+ $height = 'height:150px;';
91
+ $align = 'text-align:left;';
92
+ for ($i = 0; $i < 3; $i ++)
93
+ include 'html/meta-box-slider.html';
94
+ }
95
+
96
  add_filter('wp_insert_post_data', 'fifu_remove_first_image', 10, 2);
97
 
98
  function fifu_remove_first_image($data, $postarr) {
228
  return is_plugin_active('aliplugin/aliplugin.php');
229
  }
230
 
231
+ /* woocommerce variation elements */
232
+
233
+ add_action('woocommerce_product_after_variable_attributes', 'fifu_variation_settings_fields', 10, 3);
234
+
235
+ function fifu_variation_settings_fields($loop, $variation_data, $variation) {
236
+ woocommerce_wp_text_input(
237
+ array(
238
+ 'id' => "fifu_image_url{$loop}",
239
+ 'name' => "fifu_image_url[{$loop}]",
240
+ 'value' => get_post_meta($variation->ID, 'fifu_image_url', true),
241
+ 'label' => __('<span class="dashicons dashicons-camera" style="font-size:20px"></span> Product Image from URL', 'woocommerce'),
242
+ 'desc_tip' => true,
243
+ 'description' => __('Powered by Featured Image from URL plugin', 'woocommerce'),
244
+ 'placeholder' => 'Image URL (Premium)',
245
+ 'wrapper_class' => 'form-row form-row-full',
246
+ )
247
+ );
248
+ }
249
+
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 your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
- * Version: 2.7.9
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 your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
+ * Version: 2.8.0
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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, sirv, 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
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
- Stable tag: 2.7.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.7.9 =
163
  * Improvement: integration with Aliplugin; New: campaign to raise funds for new features, Premium version integrated with new payment services and new site.
164
 
@@ -666,6 +669,9 @@ was removed. To finish, a Premium version is now been presented.
666
 
667
  == Upgrade Notice ==
668
 
 
 
 
669
  = 2.7.9 =
670
  * Improvement: integration with Aliplugin; New: campaign to raise funds for new features, Premium version integrated with new payment services and new site.
671
 
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, sirv, 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
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
+ Stable tag: 2.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.8.0 =
163
+ * Improvement: WooCommerce product variations have a Featured Image from URL field now; icons added to FIFU fields.
164
+
165
  = 2.7.9 =
166
  * Improvement: integration with Aliplugin; New: campaign to raise funds for new features, Premium version integrated with new payment services and new site.
167
 
669
 
670
  == Upgrade Notice ==
671
 
672
+ = 2.8.0 =
673
+ * Improvement: WooCommerce product variations have a Featured Image from URL field now; icons added to FIFU fields.
674
+
675
  = 2.7.9 =
676
  * Improvement: integration with Aliplugin; New: campaign to raise funds for new features, Premium version integrated with new payment services and new site.
677