Featured Image From URL - Version 2.6.5

Version Description

  • Deprecated: Featured Image > Priority.
Download this release

Release Info

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

Code changes from version 2.6.4 to 2.6.5

admin/html/menu.html CHANGED
@@ -1150,43 +1150,6 @@
1150
  </tr>
1151
  </table>
1152
 
1153
- </div>
1154
-
1155
- <div class="box">
1156
- <h2>Priority</h2>
1157
- <div class="greybox">
1158
- Enable the toggle below to prioritize the internal image rather than the external one, if both exist.
1159
- </div>
1160
- <br>
1161
- <table style="text-align:left">
1162
- <tr>
1163
- <th>
1164
- <form
1165
- id="fifu_form_priority"
1166
- action="javascript:void(0)"
1167
- method="post">
1168
- <input
1169
- type="image"
1170
- href="javascript:void(0)"
1171
- id="fifu_toggle_priority"
1172
- onclick="invert('priority')"
1173
- name="fifu_toggle_priority"
1174
- class="<?php echo $enable_priority; ?>"
1175
- value=""
1176
- style="display:block">
1177
-
1178
- <input
1179
- type="hidden"
1180
- id="fifu_input_priority"
1181
- name="fifu_input_priority"
1182
- value="" >
1183
- </form>
1184
- </th>
1185
- <th>
1186
- prioritize the internal image
1187
- </th>
1188
- </tr>
1189
- </table>
1190
  </div>
1191
 
1192
  </div>
@@ -2687,6 +2650,36 @@
2687
  From <b>September 2019</b>, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2688
  </div>
2689
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2690
  <div class="box">
2691
  <table>
2692
  <tr>
@@ -2804,7 +2797,6 @@ fifu_media_library:<?php echo $enable_media_library ?>;
2804
  fifu_original:<?php echo $enable_original ?>;
2805
  fifu_ovw_first:<?php echo $enable_ovw_first ?>;
2806
  fifu_pop_first:<?php echo $enable_pop_first ?>;
2807
- fifu_priority:<?php echo $enable_priority ?>;
2808
  fifu_query_strings:<?php echo $enable_query_strings ?>;
2809
  fifu_save_dimensions:<?php echo $enable_save_dimensions ?>;
2810
  fifu_save_dimensions_all:<?php echo $enable_save_dimensions_all ?>;
1150
  </tr>
1151
  </table>
1152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
  </div>
1154
 
1155
  </div>
2650
  From <b>September 2019</b>, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2651
  </div>
2652
  </div>
2653
+ <div class="box">
2654
+ <table>
2655
+ <tr>
2656
+ <td style="border-bottom:none">2019-09-27</td>
2657
+ <td style="border-bottom:none"><h3>Nelio External Featured Image (discontinued)</h3></td>
2658
+ <td style="border-bottom:none">plugin</td>
2659
+ </tr>
2660
+ </table>
2661
+ <div class="greybox" style="position: relative; top: -10px">
2662
+ Importing image URLs to FIFU:<br>
2663
+ 0) make a backup (you might want to revert the changes later);<br>
2664
+ 1) deactivate Nelio;<br>
2665
+ 2) run this SQL command: INSERT INTO wp_postmeta (post_id, meta_key, meta_value) SELECT * FROM (SELECT post_id, 'fifu_image_url' AS meta_key, SUBSTRING_INDEX(SUBSTRING_INDEX(meta_value, '"', 2), '"', -1) AS meta_value FROM wp_postmeta WHERE meta_key = '_nelioefi_first_image') pm WHERE meta_value <> '';<br>
2666
+ 3) enable "FIFU settings > Metadata > Clean metadata" toggle (it will be automatically disabled after a few minutes);<br>
2667
+ 4) enable "Fake Internal Featured Image" (the 2nd toggle only).<br>
2668
+ </div>
2669
+ </div>
2670
+ <div class="box">
2671
+ <table>
2672
+ <tr>
2673
+ <td style="border-bottom:none">2019-09-25</td>
2674
+ <td style="border-bottom:none"><h3>WP Telegram (Auto Post and Notifications)</h3></td>
2675
+ <td style="border-bottom:none">plugin</td>
2676
+ </tr>
2677
+ </table>
2678
+ <div class="greybox" style="position: relative; top: -10px">
2679
+ Sharing external featured images on Telegram:<br>
2680
+ 1) just enable "Featured Image" toggle on WP Telegram.<br>
2681
+ </div>
2682
+ </div>
2683
  <div class="box">
2684
  <table>
2685
  <tr>
2797
  fifu_original:<?php echo $enable_original ?>;
2798
  fifu_ovw_first:<?php echo $enable_ovw_first ?>;
2799
  fifu_pop_first:<?php echo $enable_pop_first ?>;
 
2800
  fifu_query_strings:<?php echo $enable_query_strings ?>;
2801
  fifu_save_dimensions:<?php echo $enable_save_dimensions ?>;
2802
  fifu_save_dimensions_all:<?php echo $enable_save_dimensions_all ?>;
admin/html/meta-box.html CHANGED
@@ -60,8 +60,8 @@
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: 2px solid orange; border-top: 2px solid orange; 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;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
- <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; 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;">New premium feature: now you can disable Related Videos for YouTube</p>
65
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; 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;">New: tips about the integration between FIFU and other plugins will be posted <a href='admin.php?page=featured-image-from-url#tabs-t'>here</a></p-->
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; 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: 2px solid orange; border-top: 2px solid orange; 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;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
+ <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; 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;">New premium feature: now you can disable Related Videos for YouTube</p-->
65
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; 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;">New: tips about the integration between FIFU and other plugins will be posted <a href='admin.php?page=featured-image-from-url#tabs-t'>here</a></p-->
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
admin/menu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_original', 'fifu_lazy', 'fifu_media_library', 'fifu_content', 'fifu_content_page', 'fifu_enable_default_url', 'fifu_fake', 'fifu_fake2', 'fifu_css', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_class', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_column_height', 'fifu_priority', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_data_generation', 'fifu_data_clean', 'fifu_image_height_shop', 'fifu_image_width_shop', 'fifu_image_height_prod', 'fifu_image_width_prod', 'fifu_image_height_cart', 'fifu_image_width_cart', 'fifu_image_height_ctgr', 'fifu_image_width_ctgr', 'fifu_image_height_arch', 'fifu_image_width_arch', 'fifu_image_height_home', 'fifu_image_width_home', 'fifu_image_height_page', 'fifu_image_width_page', 'fifu_image_height_post', 'fifu_image_width_post', 'fifu_save_dimensions', 'fifu_save_dimensions_redirect', 'fifu_save_dimensions_all', 'fifu_clean_dimensions_all')));
4
 
5
  add_action('admin_menu', 'fifu_insert_menu');
6
 
@@ -46,7 +46,6 @@ function fifu_get_menu_html() {
46
  $enable_ovw_first = get_option('fifu_ovw_first');
47
  $enable_query_strings = get_option('fifu_query_strings');
48
  $column_height = get_option('fifu_column_height');
49
- $enable_priority = get_option('fifu_priority');
50
  $enable_grid_category = get_option('fifu_grid_category');
51
  $enable_auto_alt = get_option('fifu_auto_alt');
52
  $enable_data_generation = get_option('fifu_data_generation');
@@ -147,7 +146,6 @@ function fifu_update_menu_options() {
147
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
148
  fifu_update_option('fifu_input_query_strings', 'fifu_query_strings');
149
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
150
- fifu_update_option('fifu_input_priority', 'fifu_priority');
151
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
152
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
153
  fifu_update_option('fifu_input_data_generation', 'fifu_data_generation');
1
  <?php
2
 
3
+ define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_original', 'fifu_lazy', 'fifu_media_library', 'fifu_content', 'fifu_content_page', 'fifu_enable_default_url', 'fifu_fake', 'fifu_fake2', 'fifu_css', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_class', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_column_height', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_data_generation', 'fifu_data_clean', 'fifu_image_height_shop', 'fifu_image_width_shop', 'fifu_image_height_prod', 'fifu_image_width_prod', 'fifu_image_height_cart', 'fifu_image_width_cart', 'fifu_image_height_ctgr', 'fifu_image_width_ctgr', 'fifu_image_height_arch', 'fifu_image_width_arch', 'fifu_image_height_home', 'fifu_image_width_home', 'fifu_image_height_page', 'fifu_image_width_page', 'fifu_image_height_post', 'fifu_image_width_post', 'fifu_save_dimensions', 'fifu_save_dimensions_redirect', 'fifu_save_dimensions_all', 'fifu_clean_dimensions_all')));
4
 
5
  add_action('admin_menu', 'fifu_insert_menu');
6
 
46
  $enable_ovw_first = get_option('fifu_ovw_first');
47
  $enable_query_strings = get_option('fifu_query_strings');
48
  $column_height = get_option('fifu_column_height');
 
49
  $enable_grid_category = get_option('fifu_grid_category');
50
  $enable_auto_alt = get_option('fifu_auto_alt');
51
  $enable_data_generation = get_option('fifu_data_generation');
146
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
147
  fifu_update_option('fifu_input_query_strings', 'fifu_query_strings');
148
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
 
149
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
150
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
151
  fifu_update_option('fifu_input_data_generation', 'fifu_data_generation');
featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
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.6.4
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://featuredimagefromurl.com/
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.6.5
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/thumbnail.php CHANGED
@@ -149,17 +149,13 @@ function fifu_has_internal_image($post_id) {
149
  function fifu_show_internal_instead_of_external($post_id) {
150
  if (!fifu_has_internal_image($post_id))
151
  return false;
152
- return fifu_is_in_editor() || fifu_internal_priority();
153
  }
154
 
155
  function fifu_is_in_editor() {
156
  return !is_admin() || get_current_screen() == null ? false : get_current_screen()->parent_base == 'edit';
157
  }
158
 
159
- function fifu_internal_priority() {
160
- return fifu_is_on('fifu_priority');
161
- }
162
-
163
  function fifu_get_image_sizes() {
164
  global $_wp_additional_image_sizes;
165
  $sizes = array();
149
  function fifu_show_internal_instead_of_external($post_id) {
150
  if (!fifu_has_internal_image($post_id))
151
  return false;
152
+ return fifu_is_in_editor();
153
  }
154
 
155
  function fifu_is_in_editor() {
156
  return !is_admin() || get_current_screen() == null ? false : get_current_screen()->parent_base == 'edit';
157
  }
158
 
 
 
 
 
159
  function fifu_get_image_sizes() {
160
  global $_wp_additional_image_sizes;
161
  $sizes = array();
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
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, priority, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm
5
  Requires at least: 4.0
6
  Tested up to: 5.2.3
7
  Stable tag: 5.2.3
@@ -99,9 +99,9 @@ Features:
99
 
100
  * It's used to remove the external image.
101
 
102
- = What happens if I have two featured images (internal and external)? =
103
 
104
- * The external image has priority in this case and the internal image won't be shown. However you can revert the priority in the plugin settings.
105
 
106
  = Which WooCommerce versions are supported by Featured Image from URL?
107
 
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.6.4 =
163
  * New premium feature: Video > Related Videos; Bug fix: undefined variable.
164
 
@@ -621,6 +624,9 @@ was removed. To finish, a Premium version is now been presented.
621
 
622
  == Upgrade Notice ==
623
 
 
 
 
624
  = 2.6.4 =
625
  * New premium feature: Video > Related Videos; Bug fix: undefined variable.
626
 
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
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
5
  Requires at least: 4.0
6
  Tested up to: 5.2.3
7
  Stable tag: 5.2.3
99
 
100
  * It's used to remove the external image.
101
 
102
+ = Can I have two featured images (internal and external)? =
103
 
104
+ * No for the same post. The external image will be used and the internal will be unlinked.
105
 
106
  = Which WooCommerce versions are supported by Featured Image from URL?
107
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.6.5 =
163
+ * Deprecated: Featured Image > Priority.
164
+
165
  = 2.6.4 =
166
  * New premium feature: Video > Related Videos; Bug fix: undefined variable.
167
 
624
 
625
  == Upgrade Notice ==
626
 
627
+ = 2.6.5 =
628
+ * Deprecated: Featured Image > Priority.
629
+
630
  = 2.6.4 =
631
  * New premium feature: Video > Related Videos; Bug fix: undefined variable.
632