Featured Image From URL - Version 4.2.0

Version Description

  • Enhancement: integration with BEAR Bulk Editor plugin; fix: deactivation lightbox (conflict with BudyBoss plugin); fix: WooCommerce HPOS incompatibility message; deprecated: Hover Effects.
Download this release

Release Info

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

Code changes from version 4.1.9 to 4.2.0

admin/html/menu.html CHANGED
@@ -996,40 +996,6 @@
996
  on, off
997
  </th>
998
  </tr>
999
- <tr class="color">
1000
- <th>
1001
- <?php $fifu['tab']['image']() ?>
1002
- </th>
1003
- <th>
1004
- <?php $fifu['title']['hover']() ?>
1005
- </th>
1006
- <th>
1007
- <?php $fifu['word']['effect']() ?>
1008
- </th>
1009
- <th>
1010
- wp fifu image --hover-effect &lt;string&gt;
1011
- </th>
1012
- <th>
1013
- hover17, hover02, ..
1014
- </th>
1015
- </tr>
1016
- <tr class="color">
1017
- <th>
1018
- <?php $fifu['tab']['image']() ?>
1019
- </th>
1020
- <th>
1021
- <?php $fifu['title']['hover']() ?>
1022
- </th>
1023
- <th>
1024
- <?php $fifu['hover']['placeholder']() ?>
1025
- </th>
1026
- <th>
1027
- wp fifu image --hover-selectors &lt;string&gt;
1028
- </th>
1029
- <th>
1030
- #id, .class, ...
1031
- </th>
1032
- </tr>
1033
  <tr class="color">
1034
  <th>
1035
  <?php $fifu['tab']['slider']() ?>
@@ -2426,7 +2392,7 @@
2426
  name="fifu_input_html_cpt"
2427
  style="width:358px"
2428
  value="<?php echo $html_cpt; ?>"
2429
- placeholder="<?php $fifu['html']['cpt']['placeholder']() ?>">
2430
  <input type="submit" value="<?php $fifu['button']['ok']() ?>" style="width:72px">
2431
  </form>
2432
  </th>
@@ -3553,45 +3519,6 @@
3553
  </tr>
3554
  </table>
3555
  </div>
3556
-
3557
- <div class="box">
3558
- <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3559
- <h2><?php $fifu['title']['hover']() ?></h2>
3560
- <div class="greybox" id="grad2">
3561
- <?php $fifu['hover']['desc']() ?>
3562
- </div>
3563
- <br>
3564
- <select id="select_hover" style="width:30%">
3565
- <option value=""></option>
3566
- <option value="hover17"><?php $fifu['hover']['hover17']() ?></option>
3567
- <option value="hover02"><?php $fifu['hover']['hover02']() ?></option>
3568
- <option value="hover07"><?php $fifu['hover']['hover07']() ?></option>
3569
- <option value="hover10"><?php $fifu['hover']['hover10']() ?></option>
3570
- <option value="hover04"><?php $fifu['hover']['hover04']() ?></option>
3571
- <option value="hover15"><?php $fifu['hover']['hover15']() ?></option>
3572
- <option value="hover13"><?php $fifu['hover']['hover13']() ?></option>
3573
- <option value="hover08"><?php $fifu['hover']['hover08']() ?></option>
3574
- <option value="hover16"><?php $fifu['hover']['hover16']() ?></option>
3575
- <option value="hover12"><?php $fifu['hover']['hover12']() ?></option>
3576
- <option value="hover11"><?php $fifu['hover']['hover11']() ?></option>
3577
- <option value="hover18"><?php $fifu['hover']['hover18']() ?></option>
3578
- <option value="hover06"><?php $fifu['hover']['hover06']() ?></option>
3579
- <option value="hover09"><?php $fifu['hover']['hover09']() ?></option>
3580
- <option value="hover14"><?php $fifu['hover']['hover14']() ?></option>
3581
- <option value="hover05"><?php $fifu['hover']['hover05']() ?></option>
3582
- <option value="hover01"><?php $fifu['hover']['hover01']() ?></option>
3583
- <option value="hover03"><?php $fifu['hover']['hover03']() ?></option>
3584
- </select>
3585
-
3586
- <input id="fifu_input_hover_selector"
3587
- type="text"
3588
- name="fifu_input_hover_selector"
3589
- placeholder="<?php $fifu['hover']['placeholder']() ?>"
3590
- value=""
3591
- style="width:50%">
3592
-
3593
- <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
3594
- </div>
3595
  </div>
3596
  <div id="tabs-j">
3597
  <div class="box">
996
  on, off
997
  </th>
998
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  <tr class="color">
1000
  <th>
1001
  <?php $fifu['tab']['slider']() ?>
2392
  name="fifu_input_html_cpt"
2393
  style="width:358px"
2394
  value="<?php echo $html_cpt; ?>"
2395
+ placeholder="post,page,product">
2396
  <input type="submit" value="<?php $fifu['button']['ok']() ?>" style="width:72px">
2397
  </form>
2398
  </th>
3519
  </tr>
3520
  </table>
3521
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3522
  </div>
3523
  <div id="tabs-j">
3524
  <div class="box">
admin/html/troubleshooting.html CHANGED
@@ -9,6 +9,23 @@
9
  <div id="tabs-top" style="float:left">
10
  <ul>
11
  <div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <div class="box">
13
  <table>
14
  <tr>
9
  <div id="tabs-top" style="float:left">
10
  <ul>
11
  <div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
12
+ <div class="box">
13
+ <table>
14
+ <tr>
15
+ <td style="border-bottom:none">2022-11-13</td>
16
+ <td style="border-bottom:none"><h3> External Importer</h3></td>
17
+ <td style="border-bottom:none">plugin</td>
18
+ </tr>
19
+ </table>
20
+ <div class="greybox" style="position: relative; top: -10px">
21
+ Integration with FIFU:<br>
22
+ 0) enable "FIFU Settings > Metadata > Schedule Metadata Generation"<br>
23
+ 1) access "External Importer > Settings > Import"<br>
24
+ 2) select "Disabled" for image<br>
25
+ 3) add "fifu_image_url" with the value "%PRODUCT.image%" to "Custom fields"<br>
26
+ 4) import a new product, wait 1 minute and the image will be displayed
27
+ </div>
28
+ </div>
29
  <div class="box">
30
  <table>
31
  <tr>
admin/meta-box.php CHANGED
@@ -369,3 +369,14 @@ function fifu_duplicate_post_meta_keys_filter($meta_keys) {
369
 
370
  add_filter('duplicate_post_meta_keys_filter', 'fifu_duplicate_post_meta_keys_filter');
371
 
 
 
 
 
 
 
 
 
 
 
 
369
 
370
  add_filter('duplicate_post_meta_keys_filter', 'fifu_duplicate_post_meta_keys_filter');
371
 
372
+ /* plugin: bear - bulk editor and products manager professional for woocommerce */
373
+
374
+ add_filter('woobe_before_update_product_field', 'fifu_woobe_bulk_finished', 10, 3);
375
+
376
+ function fifu_woobe_bulk_finished($value, $product_id, $field_key) {
377
+ if ($field_key == 'fifu_image_url')
378
+ fifu_dev_set_image($product_id, $value);
379
+
380
+ return $value;
381
+ }
382
+
admin/strings.php CHANGED
@@ -94,9 +94,6 @@ function fifu_get_strings_settings() {
94
  $fifu['word']['delimiter'] = function () {
95
  _e("Delimiter", FIFU_SLUG);
96
  };
97
- $fifu['word']['effect'] = function () {
98
- _e("Effect", FIFU_SLUG);
99
- };
100
  $fifu['word']['documentation'] = function () {
101
  _e("Documentation", FIFU_SLUG);
102
  };
@@ -255,9 +252,6 @@ function fifu_get_strings_settings() {
255
  $fifu['title']['redirection'] = function () {
256
  _e("Page Redirection", FIFU_SLUG);
257
  };
258
- $fifu['title']['hover'] = function () {
259
- _e("Hover Effects", FIFU_SLUG);
260
- };
261
  $fifu['title']['html'] = function () {
262
  _e("Auto set featured media from post content", FIFU_SLUG);
263
  };
@@ -787,68 +781,6 @@ function fifu_get_strings_settings() {
787
  _e("(except WooCommerce products)", FIFU_SLUG);
788
  };
789
 
790
- // hover
791
- $fifu['hover']['desc'] = function () {
792
- _e("Choose a hover effect to be applied to the featured images on home.", FIFU_SLUG);
793
- };
794
- $fifu['hover']['placeholder'] = function () {
795
- _e("CSS selectors (optional)", FIFU_SLUG);
796
- };
797
- $fifu['hover']['hover17'] = function () {
798
- _e("315 Degrees", FIFU_SLUG);
799
- };
800
- $fifu['hover']['hover02'] = function () {
801
- _e("360 Degrees", FIFU_SLUG);
802
- };
803
- $fifu['hover']['hover07'] = function () {
804
- _e("Blur", FIFU_SLUG);
805
- };
806
- $fifu['hover']['hover10'] = function () {
807
- _e("Blur Gray Scale", FIFU_SLUG);
808
- };
809
- $fifu['hover']['hover04'] = function () {
810
- _e("Brighten", FIFU_SLUG);
811
- };
812
- $fifu['hover']['hover15'] = function () {
813
- _e("Circle", FIFU_SLUG);
814
- };
815
- $fifu['hover']['hover13'] = function () {
816
- _e("Flashing", FIFU_SLUG);
817
- };
818
- $fifu['hover']['hover08'] = function () {
819
- _e("Gray Scale", FIFU_SLUG);
820
- };
821
- $fifu['hover']['hover16'] = function () {
822
- _e("Horizontal Rotation", FIFU_SLUG);
823
- };
824
- $fifu['hover']['hover12'] = function () {
825
- _e("Opacity Color", FIFU_SLUG);
826
- };
827
- $fifu['hover']['hover11'] = function () {
828
- _e("Opacity White", FIFU_SLUG);
829
- };
830
- $fifu['hover']['hover18'] = function () {
831
- _e("Rainbow", FIFU_SLUG);
832
- };
833
- $fifu['hover']['hover06'] = function () {
834
- _e("Rotate", FIFU_SLUG);
835
- };
836
- $fifu['hover']['hover09'] = function () {
837
- _e("Sepia", FIFU_SLUG);
838
- };
839
- $fifu['hover']['hover14'] = function () {
840
- _e("Shine", FIFU_SLUG);
841
- };
842
- $fifu['hover']['hover05'] = function () {
843
- _e("Vertical Rotation", FIFU_SLUG);
844
- };
845
- $fifu['hover']['hover01'] = function () {
846
- _e("Zoom In", FIFU_SLUG);
847
- };
848
- $fifu['hover']['hover03'] = function () {
849
- _e("Zoom Out", FIFU_SLUG);
850
- };
851
-
852
  // configuration
853
  $fifu['html']['desc'] = function () {
854
  _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button. Images URLs must be in \"img\" tags.", FIFU_SLUG);
@@ -904,9 +836,6 @@ function fifu_get_strings_settings() {
904
  $fifu['html']['cpt']['desc'] = function () {
905
  _e("post types", FIFU_SLUG);
906
  };
907
- $fifu['html']['cpt']['placeholder'] = function () {
908
- _e("post,page,product", FIFU_SLUG);
909
- };
910
 
911
  // all
912
  $fifu['all']['desc'] = function () {
94
  $fifu['word']['delimiter'] = function () {
95
  _e("Delimiter", FIFU_SLUG);
96
  };
 
 
 
97
  $fifu['word']['documentation'] = function () {
98
  _e("Documentation", FIFU_SLUG);
99
  };
252
  $fifu['title']['redirection'] = function () {
253
  _e("Page Redirection", FIFU_SLUG);
254
  };
 
 
 
255
  $fifu['title']['html'] = function () {
256
  _e("Auto set featured media from post content", FIFU_SLUG);
257
  };
781
  _e("(except WooCommerce products)", FIFU_SLUG);
782
  };
783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
784
  // configuration
785
  $fifu['html']['desc'] = function () {
786
  _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button. Images URLs must be in \"img\" tags.", FIFU_SLUG);
836
  $fifu['html']['cpt']['desc'] = function () {
837
  _e("post types", FIFU_SLUG);
838
  };
 
 
 
839
 
840
  // all
841
  $fifu['all']['desc'] = function () {
featured-image-from-url.php CHANGED
@@ -4,11 +4,11 @@
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video/audio as featured image of a post or WooCommerce product.
7
- * Version: 4.1.9
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
- * WC tested up to: 7.0.1
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -124,6 +124,10 @@ function fifu_row_meta($plugin_meta, $plugin_file, $plugin_data, $status) {
124
  }
125
 
126
  function fifu_uninstall() {
 
 
 
 
127
  $strings = fifu_get_strings_uninstall();
128
 
129
  wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
@@ -154,3 +158,10 @@ function fifu_uninstall() {
154
 
155
  add_action('admin_footer', 'fifu_uninstall');
156
 
 
 
 
 
 
 
 
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video/audio as featured image of a post or WooCommerce product.
7
+ * Version: 4.2.0
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
+ * WC tested up to: 7.1.0
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
124
  }
125
 
126
  function fifu_uninstall() {
127
+ // buddyboss app
128
+ if (isset($_REQUEST['page']) && strpos($_REQUEST['page'], 'bbapp') !== false)
129
+ return;
130
+
131
  $strings = fifu_get_strings_uninstall();
132
 
133
  wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
158
 
159
  add_action('admin_footer', 'fifu_uninstall');
160
 
161
+ // https://github.com/woocommerce/woocommerce/wiki/High-Performance-Order-Storage-Upgrade-Recipe-Book
162
+ add_action('before_woocommerce_init', function () {
163
+ if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) {
164
+ \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
165
+ }
166
+ });
167
+
readme.txt CHANGED
@@ -3,12 +3,12 @@ Contributors: marceljm
3
  Donate link: https://donorbox.org/fifu
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
- Tested up to: 6.1.1
7
- Stable tag: 4.1.9
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- Use an external image/video/audio as featured image/video/audio of a post or WooCommerce product.
12
 
13
  == Description ==
14
 
@@ -32,7 +32,6 @@ Use an external image as featured image of your post, page or custom post type.
32
  * **[PRO]** Disable right-click
33
  * **[PRO]** Save in the media library
34
  * **[PRO]** Same height
35
- * **[PRO]** Hover effects
36
  * **[PRO]** Replace not found image
37
  * **[PRO]** Page redirection
38
 
@@ -260,20 +259,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
260
 
261
  == Changelog ==
262
 
 
 
 
263
  = 4.1.9 =
264
  * New option: Auto set featured media from post content > post types; enhancement: Featured Video (supports Odysee videos now); fix: CDN + Optimized Thumbnails > apply to content images (low resolution images); deprecated: Gallery Icon.
265
 
266
  = 4.1.8 =
267
  * Enhancement: Page Redirection (works with local images now); fix: conflict with Search Filter Pro plugin; deprecated: Media RSS Tags > Width; deprecated: Schedule Metadata Generation > Interval; deprecated: Delete All URLs > Confirm.
268
 
269
- = 4.1.7 =
270
- * Enhancement: deactivate itself when the PRO version is activated; fix: Lazy Load (conflict with Oxygen plugin); deprecated: Metadata > Database.
271
-
272
  = others =
273
  * [more](https://fifu.app/changelog)
274
 
275
 
276
  == Upgrade Notice ==
277
 
278
- = 4.1.9 =
279
- * New option: Auto set featured media from post content > post types; enhancement: Featured Video (supports Odysee videos now); fix: CDN + Optimized Thumbnails > apply to content images (low resolution images); deprecated: Gallery Icon.
3
  Donate link: https://donorbox.org/fifu
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
+ Tested up to: 6.1.2
7
+ Stable tag: 4.2.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Use an external image/video/audio as featured image of a post or WooCommerce product.
12
 
13
  == Description ==
14
 
32
  * **[PRO]** Disable right-click
33
  * **[PRO]** Save in the media library
34
  * **[PRO]** Same height
 
35
  * **[PRO]** Replace not found image
36
  * **[PRO]** Page redirection
37
 
259
 
260
  == Changelog ==
261
 
262
+ = 4.2.0 =
263
+ * Enhancement: integration with BEAR Bulk Editor plugin; fix: deactivation lightbox (conflict with BudyBoss plugin); fix: WooCommerce HPOS incompatibility message; deprecated: Hover Effects.
264
+
265
  = 4.1.9 =
266
  * New option: Auto set featured media from post content > post types; enhancement: Featured Video (supports Odysee videos now); fix: CDN + Optimized Thumbnails > apply to content images (low resolution images); deprecated: Gallery Icon.
267
 
268
  = 4.1.8 =
269
  * Enhancement: Page Redirection (works with local images now); fix: conflict with Search Filter Pro plugin; deprecated: Media RSS Tags > Width; deprecated: Schedule Metadata Generation > Interval; deprecated: Delete All URLs > Confirm.
270
 
 
 
 
271
  = others =
272
  * [more](https://fifu.app/changelog)
273
 
274
 
275
  == Upgrade Notice ==
276
 
277
+ = 4.2.0 =
278
+ * Enhancement: integration with BEAR Bulk Editor plugin; fix: deactivation lightbox (conflict with BudyBoss plugin); fix: WooCommerce HPOS incompatibility message; deprecated: Hover Effects.