Featured Image From URL - Version 2.0.9

Version Description

  • Improvement: allows to show/hide the WooCommerce category image on category page, before the product grid.
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

admin/html/menu.html CHANGED
@@ -11,7 +11,7 @@
11
  <div class="box">
12
  <h2>IMPORTANT!!!</h2>
13
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
14
- background-color: #eee; border-radius: 25px 5px;">FIFU 2 was released this week with a lot of internal changes to overcome some old known issues</p>
15
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
16
  background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
17
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
@@ -609,13 +609,50 @@
609
  </div>
610
 
611
  <div class="box">
612
- <h2>WooCommerce</h2>
613
  <div class="greybox">
614
- You can enable/disable the product lightbox and zoom here. They are compatible with this free version now.
615
  <br><br>
616
  <i>If this new FREE feature is useful to you, please cherish my work. Give FIFU a <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank">5-star</a> rating!</i>
617
  </div>
618
  <br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  <table style="text-align:left">
620
  <tr>
621
  <th>
@@ -1056,7 +1093,7 @@
1056
  <h2>Hover Effects</h2>
1057
  <div class="greybox" id="grad2">
1058
  <b>Premium feature</b><br><br>
1059
- Choose one among 18 hover effects to be applied to all external featured images of your posts on your main page.<br><br>
1060
  </div>
1061
  <br>
1062
  <select id="select_hover" style="width:90%">
@@ -1785,6 +1822,7 @@ fifu_enable_default_url:<?php echo $enable_default_url ?>;
1785
  fifu_fake:<?php echo $enable_fake ?>;
1786
  fifu_fake2:<?php echo $enable_fake2 ?>;
1787
  fifu_get_first:<?php echo $enable_get_first ?>;
 
1788
  fifu_hide_page:<?php echo $enable_hide_page ?>;
1789
  fifu_hide_post:<?php echo $enable_hide_post ?>;
1790
  fifu_lazy:<?php echo $enable_lazy ?>;
11
  <div class="box">
12
  <h2>IMPORTANT!!!</h2>
13
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
14
+ background-color: #eee; border-radius: 25px 5px;">FIFU 2 was released this month with a lot of internal changes to overcome some old known issues</p>
15
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
16
  background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
17
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
609
  </div>
610
 
611
  <div class="box">
612
+ <h2>WooCommerce Category Image on Product Grid</h2>
613
  <div class="greybox">
614
+ That's possible to show the external featured image of your category on category page, immediately before the product grid. To do that, enable the toggle below.
615
  <br><br>
616
  <i>If this new FREE feature is useful to you, please cherish my work. Give FIFU a <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank">5-star</a> rating!</i>
617
  </div>
618
  <br>
619
+ <table style="text-align:left">
620
+ <tr>
621
+ <th>
622
+ <form
623
+ id="fifu_form_grid_category"
624
+ action="javascript:void(0)"
625
+ method="post">
626
+ <input
627
+ type="image"
628
+ href="javascript:void(0)"
629
+ id="fifu_toggle_grid_category"
630
+ onclick="invert('grid_category')"
631
+ name="fifu_toggle_grid_category"
632
+ class="<?php echo $enable_grid_category; ?>"
633
+ value=""
634
+ style="display:block">
635
+
636
+ <input
637
+ type="hidden"
638
+ id="fifu_input_grid_category"
639
+ name="fifu_input_grid_category"
640
+ value="" >
641
+ </form>
642
+ </th>
643
+ <th>
644
+ show category image on product grid
645
+ </th>
646
+ </tr>
647
+ </table>
648
+ </div>
649
+
650
+ <div class="box">
651
+ <h2>WooCommerce Lightbox and Zoom</h2>
652
+ <div class="greybox">
653
+ You can enable/disable the product lightbox and zoom here.
654
+ </div>
655
+ <br>
656
  <table style="text-align:left">
657
  <tr>
658
  <th>
1093
  <h2>Hover Effects</h2>
1094
  <div class="greybox" id="grad2">
1095
  <b>Premium feature</b><br><br>
1096
+ Choose one among 18 hover effects to be applied to the external featured images of your posts/products on your homepage.<br><br>
1097
  </div>
1098
  <br>
1099
  <select id="select_hover" style="width:90%">
1822
  fifu_fake:<?php echo $enable_fake ?>;
1823
  fifu_fake2:<?php echo $enable_fake2 ?>;
1824
  fifu_get_first:<?php echo $enable_get_first ?>;
1825
+ fifu_grid_category:<?php echo $enable_grid_category ?>;
1826
  fifu_hide_page:<?php echo $enable_hide_page ?>;
1827
  fifu_hide_post:<?php echo $enable_hide_post ?>;
1828
  fifu_lazy:<?php echo $enable_lazy ?>;
admin/menu.php CHANGED
@@ -33,6 +33,7 @@ function fifu_get_menu_html() {
33
  $enable_ovw_first = get_option('fifu_ovw_first');
34
  $column_height = get_option('fifu_column_height');
35
  $enable_priority = get_option('fifu_priority');
 
36
  $enable_auto_alt = get_option('fifu_auto_alt');
37
  $enable_data_generation = get_option('fifu_data_generation');
38
  $enable_data_clean = get_option('fifu_data_clean');
@@ -98,6 +99,7 @@ function fifu_get_menu_settings() {
98
  fifu_get_setting('fifu_ovw_first');
99
  fifu_get_setting('fifu_column_height');
100
  fifu_get_setting('fifu_priority');
 
101
  fifu_get_setting('fifu_auto_alt');
102
  fifu_get_setting('fifu_data_generation');
103
  fifu_get_setting('fifu_data_clean');
@@ -141,6 +143,7 @@ function fifu_update_menu_options() {
141
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
142
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
143
  fifu_update_option('fifu_input_priority', 'fifu_priority');
 
144
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
145
  fifu_update_option('fifu_input_data_generation', 'fifu_data_generation');
146
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
33
  $enable_ovw_first = get_option('fifu_ovw_first');
34
  $column_height = get_option('fifu_column_height');
35
  $enable_priority = get_option('fifu_priority');
36
+ $enable_grid_category = get_option('fifu_grid_category');
37
  $enable_auto_alt = get_option('fifu_auto_alt');
38
  $enable_data_generation = get_option('fifu_data_generation');
39
  $enable_data_clean = get_option('fifu_data_clean');
99
  fifu_get_setting('fifu_ovw_first');
100
  fifu_get_setting('fifu_column_height');
101
  fifu_get_setting('fifu_priority');
102
+ fifu_get_setting('fifu_grid_category');
103
  fifu_get_setting('fifu_auto_alt');
104
  fifu_get_setting('fifu_data_generation');
105
  fifu_get_setting('fifu_data_clean');
143
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
144
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
145
  fifu_update_option('fifu_input_priority', 'fifu_priority');
146
+ fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
147
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
148
  fifu_update_option('fifu_input_data_generation', 'fifu_data_generation');
149
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
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.0.8
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.0.9
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/thumbnail-category.php CHANGED
@@ -3,6 +3,9 @@
3
  add_filter('woocommerce_before_main_content', 'fifu_ctgr_show_image', 30);
4
 
5
  function fifu_ctgr_show_image() {
 
 
 
6
  $url = fifu_ctgr_get_url();
7
  $alt = fifu_ctgr_get_alt();
8
 
3
  add_filter('woocommerce_before_main_content', 'fifu_ctgr_show_image', 30);
4
 
5
  function fifu_ctgr_show_image() {
6
+ if (fifu_is_off('fifu_grid_category'))
7
+ return;
8
+
9
  $url = fifu_ctgr_get_url();
10
  $alt = fifu_ctgr_get_alt();
11
 
readme.txt CHANGED
@@ -161,6 +161,9 @@ Features:
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 2.0.8 =
165
  * Bug fix: stop button for fake internal featured image process.
166
 
@@ -455,6 +458,9 @@ was removed. To finish, a Premium version is now been presented.
455
 
456
  == Upgrade Notice ==
457
 
 
 
 
458
  = 2.0.8 =
459
  * Bug fix: stop button for fake internal featured image process.
460
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.0.9 =
165
+ * Improvement: allows to show/hide the WooCommerce category image on category page, before the product grid.
166
+
167
  = 2.0.8 =
168
  * Bug fix: stop button for fake internal featured image process.
169
 
458
 
459
  == Upgrade Notice ==
460
 
461
+ = 2.0.9 =
462
+ * Improvement: allows to show/hide the WooCommerce category image on category page, before the product grid.
463
+
464
  = 2.0.8 =
465
  * Bug fix: stop button for fake internal featured image process.
466