Featured Image From URL - Version 1.9.6

Version Description

Download this release

Release Info

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

Code changes from version 1.9.5 to 1.9.6

admin/html/menu.html CHANGED
@@ -8,6 +8,16 @@
8
  <h1>Featured Image From URL</h1>
9
  </div>
10
 
 
 
 
 
 
 
 
 
 
 
11
  <div class="box">
12
  <h2>Help</h2>
13
  <div class="greybox">
@@ -18,7 +28,7 @@
18
  <div class="box">
19
  <h2>Report a Bug or Suggest an Improvement</h2>
20
  <div class="greybox">
21
- Suggestions for improvement are always welcome. Just send an email to <a href="mailto:support@featuredimagefromurl.com">support@featuredimagefromurl.com</a> and your request can be available in the next release.
22
  But if you want to report a bug, please provide as many details as possible such as plugin version, screenshots, JS errors on browser console, PHP errors in debug file, domain etc.
23
  The most common related problem is that the images aren't shown on public area. And in 90% of times it's caused because of errors in another plugin.
24
  </div>
@@ -848,171 +858,6 @@
848
  <br><br>
849
  <img src="https://c1.staticflickr.com/1/223/30820834393_f869fcff49_z_d.jpg" style="width:100%"/>
850
  </div>
851
- <h3>Choose the maximum image size for each screen</h3>
852
- <table style="text-align:left">
853
- <tr>
854
- <th>Archive:&nbsp;</th>
855
- <th>
856
- <select id="select_flickr_arch" style="font-family:courier;font-size:12px">
857
- <option value=""></option>
858
- <option value="s">&nbsp; 75 x 75</option>
859
- <option value="q">&nbsp;150 x 150</option>
860
- <option value="t">&nbsp;100&nbsp;on longest side</option>
861
- <option value="m">&nbsp;240&nbsp;on longest side</option>
862
- <option value="n">&nbsp;320&nbsp;on longest side</option>
863
- <option value="-">&nbsp;500&nbsp;on longest side</option>
864
- <option value="z">&nbsp;640&nbsp;on longest side</option>
865
- <option value="c">&nbsp;800&nbsp;on longest side</option>
866
- <option value="b">1024&nbsp;on longest side</option>
867
- <option value="h">1600&nbsp;on longest side</option>
868
- </select>
869
- </th>
870
- </tr>
871
- <tr>
872
- <th>Cart:&nbsp;</th>
873
- <th>
874
- <select id="select_flickr_cart" style="font-family:courier;font-size:12px">
875
- <option value=""></option>
876
- <option value="s">&nbsp; 75 x 75</option>
877
- <option value="q">&nbsp;150 x 150</option>
878
- <option value="t">&nbsp;100&nbsp;on longest side</option>
879
- <option value="m">&nbsp;240&nbsp;on longest side</option>
880
- <option value="n">&nbsp;320&nbsp;on longest side</option>
881
- <option value="-">&nbsp;500&nbsp;on longest side</option>
882
- <option value="z">&nbsp;640&nbsp;on longest side</option>
883
- <option value="c">&nbsp;800&nbsp;on longest side</option>
884
- <option value="b">1024&nbsp;on longest side</option>
885
- <option value="h">1600&nbsp;on longest side</option>
886
- </select>
887
- </th>
888
- </tr>
889
- <tr>
890
- <th>Category:&nbsp;</th>
891
- <th>
892
- <select id="select_flickr_ctgr" style="font-family:courier;font-size:12px">
893
- <option value=""></option>
894
- <option value="s">&nbsp; 75 x 75</option>
895
- <option value="q">&nbsp;150 x 150</option>
896
- <option value="t">&nbsp;100&nbsp;on longest side</option>
897
- <option value="m">&nbsp;240&nbsp;on longest side</option>
898
- <option value="n">&nbsp;320&nbsp;on longest side</option>
899
- <option value="-">&nbsp;500&nbsp;on longest side</option>
900
- <option value="z">&nbsp;640&nbsp;on longest side</option>
901
- <option value="c">&nbsp;800&nbsp;on longest side</option>
902
- <option value="b">1024&nbsp;on longest side</option>
903
- <option value="h">1600&nbsp;on longest side</option>
904
- </select>
905
- </th>
906
- </tr>
907
- <tr>
908
- <th>Home:&nbsp;</th>
909
- <th>
910
- <select id="select_flickr_home" style="font-family:courier;font-size:12px">
911
- <option value=""></option>
912
- <option value="s">&nbsp; 75 x 75</option>
913
- <option value="q">&nbsp;150 x 150</option>
914
- <option value="t">&nbsp;100&nbsp;on longest side</option>
915
- <option value="m">&nbsp;240&nbsp;on longest side</option>
916
- <option value="n">&nbsp;320&nbsp;on longest side</option>
917
- <option value="-">&nbsp;500&nbsp;on longest side</option>
918
- <option value="z">&nbsp;640&nbsp;on longest side</option>
919
- <option value="c">&nbsp;800&nbsp;on longest side</option>
920
- <option value="b">1024&nbsp;on longest side</option>
921
- <option value="h">1600&nbsp;on longest side</option>
922
- </select>
923
- </th>
924
- </tr>
925
- <tr>
926
- <th>Lightbox:&nbsp;</th>
927
- <th>
928
- <select id="select_flickr_lbox" style="font-family:courier;font-size:12px">
929
- <option value=""></option>
930
- <option value="s">&nbsp; 75 x 75</option>
931
- <option value="q">&nbsp;150 x 150</option>
932
- <option value="t">&nbsp;100&nbsp;on longest side</option>
933
- <option value="m">&nbsp;240&nbsp;on longest side</option>
934
- <option value="n">&nbsp;320&nbsp;on longest side</option>
935
- <option value="-">&nbsp;500&nbsp;on longest side</option>
936
- <option value="z">&nbsp;640&nbsp;on longest side</option>
937
- <option value="c">&nbsp;800&nbsp;on longest side</option>
938
- <option value="b">1024&nbsp;on longest side</option>
939
- <option value="h">1600&nbsp;on longest side</option>
940
- </select>
941
- </th>
942
- </tr>
943
- <tr>
944
- <th>Page:&nbsp;</th>
945
- <th>
946
- <select id="select_flickr_page" style="font-family:courier;font-size:12px">
947
- <option value=""></option>
948
- <option value="s">&nbsp; 75 x 75</option>
949
- <option value="q">&nbsp;150 x 150</option>
950
- <option value="t">&nbsp;100&nbsp;on longest side</option>
951
- <option value="m">&nbsp;240&nbsp;on longest side</option>
952
- <option value="n">&nbsp;320&nbsp;on longest side</option>
953
- <option value="-">&nbsp;500&nbsp;on longest side</option>
954
- <option value="z">&nbsp;640&nbsp;on longest side</option>
955
- <option value="c">&nbsp;800&nbsp;on longest side</option>
956
- <option value="b">1024&nbsp;on longest side</option>
957
- <option value="h">1600&nbsp;on longest side</option>
958
- </select>
959
- </th>
960
- </tr>
961
- <tr>
962
- <th>Post:&nbsp;</th>
963
- <th>
964
- <select id="select_flickr_post" style="font-family:courier;font-size:12px">
965
- <option value=""></option>
966
- <option value="s">&nbsp; 75 x 75</option>
967
- <option value="q">&nbsp;150 x 150</option>
968
- <option value="t">&nbsp;100&nbsp;on longest side</option>
969
- <option value="m">&nbsp;240&nbsp;on longest side</option>
970
- <option value="n">&nbsp;320&nbsp;on longest side</option>
971
- <option value="-">&nbsp;500&nbsp;on longest side</option>
972
- <option value="z">&nbsp;640&nbsp;on longest side</option>
973
- <option value="c">&nbsp;800&nbsp;on longest side</option>
974
- <option value="b">1024&nbsp;on longest side</option>
975
- <option value="h">1600&nbsp;on longest side</option>
976
- </select>
977
- </th>
978
- </tr>
979
- <tr>
980
- <th>Product:&nbsp;</th>
981
- <th>
982
- <select id="select_flickr_prod" style="font-family:courier;font-size:12px">
983
- <option value=""></option>
984
- <option value="s">&nbsp; 75 x 75</option>
985
- <option value="q">&nbsp;150 x 150</option>
986
- <option value="t">&nbsp;100&nbsp;on longest side</option>
987
- <option value="m">&nbsp;240&nbsp;on longest side</option>
988
- <option value="n">&nbsp;320&nbsp;on longest side</option>
989
- <option value="-">&nbsp;500&nbsp;on longest side</option>
990
- <option value="z">&nbsp;640&nbsp;on longest side</option>
991
- <option value="c">&nbsp;800&nbsp;on longest side</option>
992
- <option value="b">1024&nbsp;on longest side</option>
993
- <option value="h">1600&nbsp;on longest side</option>
994
- </select>
995
- </th>
996
- </tr>
997
- <tr>
998
- <th>Shop:&nbsp;</th>
999
- <th>
1000
- <select id="select_flickr_shop" style="font-family:courier;font-size:12px">
1001
- <option value=""></option>
1002
- <option value="s">&nbsp; 75 x 75</option>
1003
- <option value="q">&nbsp;150 x 150</option>
1004
- <option value="t">&nbsp;100&nbsp;on longest side</option>
1005
- <option value="m">&nbsp;240&nbsp;on longest side</option>
1006
- <option value="n">&nbsp;320&nbsp;on longest side</option>
1007
- <option value="-">&nbsp;500&nbsp;on longest side</option>
1008
- <option value="z">&nbsp;640&nbsp;on longest side</option>
1009
- <option value="c">&nbsp;800&nbsp;on longest side</option>
1010
- <option value="b">1024&nbsp;on longest side</option>
1011
- <option value="h">1600&nbsp;on longest side</option>
1012
- </select>
1013
- </th>
1014
- </tr>
1015
- </table><br>
1016
  </div>
1017
  </div>
1018
 
@@ -1090,20 +935,6 @@
1090
  <input type="submit" value="Submit" disabled>
1091
  </div>
1092
 
1093
- <div class="box">
1094
- <h2>Product Categories Grid</h2>
1095
- <div class="greybox" id="grad2">
1096
- <b>Premium feature</b><br><br>
1097
- Allows you to use use external images/videos on Product Categories Grid.
1098
- </div>
1099
- <br>
1100
- <input
1101
- type="image"
1102
- href="javascript:void(0)"
1103
- class="toggleoff"
1104
- value="" style="display:block">
1105
- </div>
1106
-
1107
  <div class="box">
1108
  <h2>Slider Settings</h2>
1109
  <div class="greybox" id="grad2">
@@ -1452,7 +1283,6 @@
1452
  <div id="tabsPremium">
1453
  <ul>
1454
  <li><a href="#tabs-1">Features Compatibility</a></li>
1455
- <li style="<?php echo fifu_woo_theme() ? '' : 'display:none' ?>"><a href="#tabs-2">WooCommerce Additional Steps</a></li>
1456
  <li style="<?php echo fifu_woo_theme() ? '' : 'display:none' ?>"><a href="#tabs-3">Official FIFU WooCommerce Theme</a></li>
1457
  </ul>
1458
  <div id="tabs-1">
@@ -1479,18 +1309,6 @@
1479
  </tr>
1480
  </table>
1481
  </div>
1482
- <div id="tabs-2">
1483
- To use <b>FIFU Premium + WooCommerce + <?php echo wp_get_theme()?> theme</b>, you will need to follow the steps* below:
1484
- <div class="box" style="">
1485
- 1) Open this file:<br>
1486
- woocommerce/includes/abstracts/abstract-wc-product.php<br><br>
1487
- 2) Find this line:<br>
1488
- public function get_gallery_image_ids( $context = 'view' ) {<br><br>
1489
- 3) Add this line immediately below that one:<br>
1490
- $tmp = array(); $i = 0; while ($url = get_post_meta(get_the_ID(), "fifu_image_url_" . $i, true)) $tmp[] = $i++; if ($i > 0) return $tmp;
1491
- </div><br>
1492
- *you will need to redo that always you decide to update your WooCommerce version.<br><br>
1493
- </div>
1494
  <div id="tabs-3">
1495
  FIFU is developed using <b><a href="https://wordpress.org/themes/storefront/">Storefront</a></b>, the official WooCommerce theme. So all the plugin features are compatible with that without any additional steps.<br><br>
1496
  If your theme isn't flexible enough to work with external images, please consider to move to Storefront. Check the <a href="https://shop.featuredimagefromurl.com"><b>Live Preview</b></a>.
8
  <h1>Featured Image From URL</h1>
9
  </div>
10
 
11
+ <div class="box">
12
+ <h2>IMPORTANT!!!</h2>
13
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid orangered; color: black;
14
+ background-color: #eee; border-radius: 25px 5px;">In the next days (starting on October 31) this plugin will undergo several improvements and updates 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;">If you have any problem please report immediately to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a>. It should be fixed in some hours.</p>
17
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
18
+ background-color: #eee; border-radius: 25px 5px;">You also can go back to the last stable version while the issue is not solved: <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.5.zip">download</a></p>
19
+ </div>
20
+
21
  <div class="box">
22
  <h2>Help</h2>
23
  <div class="greybox">
28
  <div class="box">
29
  <h2>Report a Bug or Suggest an Improvement</h2>
30
  <div class="greybox">
31
+ Suggestions for improvement are always welcome. Just send an email to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a> and your request can be available in the next release.
32
  But if you want to report a bug, please provide as many details as possible such as plugin version, screenshots, JS errors on browser console, PHP errors in debug file, domain etc.
33
  The most common related problem is that the images aren't shown on public area. And in 90% of times it's caused because of errors in another plugin.
34
  </div>
858
  <br><br>
859
  <img src="https://c1.staticflickr.com/1/223/30820834393_f869fcff49_z_d.jpg" style="width:100%"/>
860
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
861
  </div>
862
  </div>
863
 
935
  <input type="submit" value="Submit" disabled>
936
  </div>
937
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
938
  <div class="box">
939
  <h2>Slider Settings</h2>
940
  <div class="greybox" id="grad2">
1283
  <div id="tabsPremium">
1284
  <ul>
1285
  <li><a href="#tabs-1">Features Compatibility</a></li>
 
1286
  <li style="<?php echo fifu_woo_theme() ? '' : 'display:none' ?>"><a href="#tabs-3">Official FIFU WooCommerce Theme</a></li>
1287
  </ul>
1288
  <div id="tabs-1">
1309
  </tr>
1310
  </table>
1311
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
1312
  <div id="tabs-3">
1313
  FIFU is developed using <b><a href="https://wordpress.org/themes/storefront/">Storefront</a></b>, the official WooCommerce theme. So all the plugin features are compatible with that without any additional steps.<br><br>
1314
  If your theme isn't flexible enough to work with external images, please consider to move to Storefront. Check the <a href="https://shop.featuredimagefromurl.com"><b>Live Preview</b></a>.
admin/html/meta-box.html CHANGED
@@ -50,16 +50,21 @@
50
  <div style="<?php echo $show_news ?>">
51
  <br>
52
  <hr>
53
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
54
- background-color: #eee; border-radius: 25px 5px;">New: WooCommerce <a href="admin.php?page=featured-image-from-url#variable">Product Variable</a> support (<a href="https://shop.featuredimagefromurl.com/product/variable-product/">live preview</a>)</p>
55
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid navy; color: black;
56
- background-color: #eee; border-radius: 25px 5px;">New: supports Tumblr videos now</p>
57
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
58
- background-color: #eee; border-radius: 25px 5px;">New: if the Alt/Title field is empty then automatically set that with the post/page/product title</p>
59
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid chartreuse; color: black;
60
- background-color: #eee; border-radius: 25px 5px;">What should be the next plugin feature? Vote <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">here</a>.</p>
 
 
 
 
61
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #3627c2; color: black;
62
  background-color: #eee; border-radius: 25px 5px;">New: apply a <b><a href="admin.php?page=featured-image-from-url#css">CSS Style</a></b> to all your external featured images. It's a free feature now (16% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p-->
 
63
  <center>
64
  <table>
65
  <tbody>
@@ -73,4 +78,5 @@
73
  </tbody>
74
  </table>
75
  </center>
 
76
  </div>
50
  <div style="<?php echo $show_news ?>">
51
  <br>
52
  <hr>
53
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid orangered; color: black;
54
+ background-color: #eee; border-radius: 25px 5px;">In the next days this plugin will undergo several improvements and updates to overcome some old known issues.</p>
55
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
56
+ background-color: #eee; border-radius: 25px 5px;">If you have any problem please report to <a href="mailto:support@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
57
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
58
+ background-color: #eee; border-radius: 25px 5px;">You also can go back to the last stable version: <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.5.zip">download</a></p>
59
+ <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
60
+ background-color: #eee; border-radius: 25px 5px;">New: WooCommerce <a href="admin.php?page=featured-image-from-url#variable">Product Variable</a> support (<a href="https://shop.featuredimagefromurl.com/product/variable-product/">live preview</a>)</p-->
61
+ <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
62
+ background-color: #eee; border-radius: 25px 5px;">New: if the Alt/Title field is empty then automatically set that with the post/page/product title</p-->
63
+ <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid chartreuse; color: black;
64
+ background-color: #eee; border-radius: 25px 5px;">What should be the next plugin feature? Vote <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">here</a>.</p-->
65
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #3627c2; color: black;
66
  background-color: #eee; border-radius: 25px 5px;">New: apply a <b><a href="admin.php?page=featured-image-from-url#css">CSS Style</a></b> to all your external featured images. It's a free feature now (16% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p-->
67
+ <!--
68
  <center>
69
  <table>
70
  <tbody>
78
  </tbody>
79
  </table>
80
  </center>
81
+ -->
82
  </div>
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: 1.9.5
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: 1.9.6
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */