Featured Image From URL - Version 1.7.5

Version Description

  • Check compatibility between the user theme and Premium version features.

=

Download this release

Release Info

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

Code changes from version 1.7.4 to 1.7.5

admin/html/css/menu.css CHANGED
@@ -58,17 +58,9 @@ th {
58
  }
59
 
60
  #grad1 {
61
- background: #E3FFE2;
62
- background: -webkit-linear-gradient(left,rgba(255,0,0,0),rgba(227,255,226,1)); /*Safari 5.1-6*/
63
- background: -o-linear-gradient(right,rgba(255,0,0,0),rgba(227,255,226,1)); /*Opera 11.1-12*/
64
- background: -moz-linear-gradient(right,rgba(255,0,0,0),rgba(227,255,226,1)); /*Fx 3.6-15*/
65
- background: linear-gradient(to right, rgba(255,0,0,0), rgba(227,255,226,1)); /*Standard*/
66
  }
67
 
68
  #grad2 {
69
- background: #FFE2E2;
70
- background: -webkit-linear-gradient(left,rgba(255,0,0,0),rgba(255,226,226,1)); /*Safari 5.1-6*/
71
- background: -o-linear-gradient(right,rgba(255,0,0,0),rgba(255,226,226,1)); /*Opera 11.1-12*/
72
- background: -moz-linear-gradient(right,rgba(255,0,0,0),rgba(255,226,226,1)); /*Fx 3.6-15*/
73
- background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,226,226,1)); /*Standard*/
74
  }
58
  }
59
 
60
  #grad1 {
 
 
 
 
 
61
  }
62
 
63
  #grad2 {
64
+ border: 1px solid red;
65
+ border-radius: 15px;
 
 
 
66
  }
admin/html/js/menu.js CHANGED
@@ -27,6 +27,7 @@ jQuery(function () {
27
  jQuery("#fifu_input_slider_speed").spinner({min: 0});
28
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
29
  jQuery("#tabsApi").tabs();
 
30
  });
31
 
32
  function save(formName, url) {
27
  jQuery("#fifu_input_slider_speed").spinner({min: 0});
28
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
29
  jQuery("#tabsApi").tabs();
30
+ jQuery("#tabsPremium").tabs();
31
  });
32
 
33
  function save(formName, url) {
admin/html/menu.html CHANGED
@@ -9,7 +9,19 @@
9
  </div>
10
 
11
  <div class="box">
12
- <h2>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!</h2>
 
 
 
 
 
 
 
 
 
 
 
 
13
  </div>
14
 
15
  <div class="box">
@@ -104,81 +116,6 @@
104
 
105
  </div>
106
 
107
- <div class="box">
108
- <h2>Auto Set Featured Image: apply to all</h2>
109
- <div class="greybox" id="grad2">
110
- <b>Premium feature</b><br><br>
111
- Enable that to update all your posts/pages/products applying the configuration above. Very useful if you have hundreds of them and want to set the first image as featured image for all. To repeat/continue the process enable the toggle again.
112
- <br><br>
113
- It can take several minutes and you can monitor the progress here. It can't be undone, so make a backup.
114
- </div>
115
- <br>
116
- <table style="text-align:left">
117
- <tr>
118
- <th>
119
- <input type="text" value="" style="width:35px">
120
- <input type="submit" value="OK" >
121
- </th>
122
- <th>
123
- posts per second (high values can bring down your database)
124
- </th>
125
- </tr>
126
- <tr>
127
- <th>
128
- <input
129
- type="image"
130
- href="javascript:void(0)"
131
- class="toggleoff"
132
- value=""
133
- style="display:block">
134
- </th>
135
- <th>
136
- ignore posts that already have an external featured image
137
- </th>
138
- </tr>
139
- <tr>
140
- <th>
141
- <input
142
- type="image"
143
- href="javascript:void(0)"
144
- class="toggleoff"
145
- value=""
146
- style="display:block">
147
- </th>
148
- <th>
149
- update all your posts/pages/products now
150
- </th>
151
- <th>
152
- <div id='fifu_ajax_update_all'><b>Status: </b></div>
153
- </th>
154
- </tr>
155
- </table>
156
- </div>
157
-
158
- <div class="box">
159
- <h2>Crop images to the same size</h2>
160
- <div class="greybox" id="grad2">
161
- <b>Premium feature</b><br><br>
162
- If you are not happy with the different sizes of external featured images on your home/shop, enable the toggle below to crop them to the same size.
163
- </div>
164
- <p/>
165
- <table style="text-align:left">
166
- <tr>
167
- <th>
168
- <input
169
- type="image"
170
- href="javascript:void(0)"
171
- class="toggleoff"
172
- value=""
173
- style="display:block">
174
- </th>
175
- <th>
176
- crop images to the same size
177
- </th>
178
- </tr>
179
- </table>
180
- </div>
181
-
182
  <div class="box">
183
  <h2>Custom Post Types</h2>
184
  <div class="greybox" id="grad1">
@@ -457,6 +394,82 @@
457
  </div>
458
  </div>
459
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  <div class="box">
461
  <h2>CSS Style</h2>
462
  <div class="greybox" id="grad2">
@@ -1082,6 +1095,7 @@
1082
  <div class="box">
1083
  <h2>Video Thumbnail</h2>
1084
  <div class="greybox" id="grad2">
 
1085
  Enable the toggle below to show the video thumbnail instead of the video on home/shop.
1086
  </div>
1087
  <br>
@@ -1257,19 +1271,58 @@
1257
 
1258
  </div>
1259
 
1260
- <div class="box">
1261
- <h2>Help</h2>
1262
- <div class="greybox">
1263
- For more information, refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a>.
1264
- </div>
1265
- </div>
1266
 
1267
- <div class="box">
1268
- <h2>Report a Bug or Suggest an Improvement</h2>
1269
  <div class="greybox">
1270
- 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.
1271
- 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.
1272
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1273
  </div>
1274
  </div>
1275
 
@@ -1281,7 +1334,6 @@
1281
  <h3>2) "Which plugins are compatible with Premium version?"</h3>
1282
  WooCommerce, WP All Import, Monarch, Frontend Publishing and others. If you intend to use the Premium version with a specific plugin, try to test with the free version first. Or you can ask me if they are compatible.<br><br>
1283
  <h3>3) "Are there the known incompatibility issues?"</h3>
1284
- - Flatsome and Newspaper: these themes apply your own style on the product gallery, overwriting the WooCommerce code. Then style issues will be present there;<br>
1285
  - Variable Product: this WooCommerce feature can be found at Product Data dropdown and allows to create variations of a same product, including images. FIFU doesn’t support that for now.<br><br>
1286
  <h3>4) "Can I get my money back later?"</h3>
1287
  With the exception of rare situations, no. But don't worry about that. You will still have the best support and if, after your complete cooperation, I'm not able to solve your issue, I may refund you.<br><br>
@@ -1303,7 +1355,7 @@
1303
  <div class="box">
1304
  <h2>About The Author</h2>
1305
  <div class="greybox">
1306
- Hi! I'm Marcel Jacques Machado. Graduated in Computer Science, I work as a Software Engineer for 10 years. I already worked with C, Python, Shell Script and other programming languages and technologies. Nowadays, I develop web applications in Brazil using Java. About PHP, this plugin, Featured Image From URL, has been a great pratical experience.
1307
  </div>
1308
  </div>
1309
  </div>
9
  </div>
10
 
11
  <div class="box">
12
+ <h2>Help</h2>
13
+ <div class="greybox">
14
+ For more information, refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a>.
15
+ </div>
16
+ </div>
17
+
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>
25
  </div>
26
 
27
  <div class="box">
116
 
117
  </div>
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  <div class="box">
120
  <h2>Custom Post Types</h2>
121
  <div class="greybox" id="grad1">
394
  </div>
395
  </div>
396
 
397
+ <div class="box">
398
+ <h2>Auto Set Featured Image: apply to all</h2>
399
+ <div class="greybox" id="grad2">
400
+ <b>Premium feature</b><br><br>
401
+ Enable that to update all your posts/pages/products applying the configuration above. Very useful if you have hundreds of them and want to set the first image as featured image for all. To repeat/continue the process enable the toggle again.
402
+ <br><br>
403
+ It can take several minutes and you can monitor the progress here. It can't be undone, so make a backup.
404
+ </div>
405
+ <br>
406
+ <table style="text-align:left">
407
+ <tr>
408
+ <th>
409
+ <input type="text" value="" style="width:35px">
410
+ <input type="submit" value="OK" >
411
+ </th>
412
+ <th>
413
+ posts per second (high values can bring down your database)
414
+ </th>
415
+ </tr>
416
+ <tr>
417
+ <th>
418
+ <input
419
+ type="image"
420
+ href="javascript:void(0)"
421
+ class="toggleoff"
422
+ value=""
423
+ style="display:block">
424
+ </th>
425
+ <th>
426
+ ignore posts that already have an external featured image
427
+ </th>
428
+ </tr>
429
+ <tr>
430
+ <th>
431
+ <input
432
+ type="image"
433
+ href="javascript:void(0)"
434
+ class="toggleoff"
435
+ value=""
436
+ style="display:block">
437
+ </th>
438
+ <th>
439
+ update all your posts/pages/products now
440
+ </th>
441
+ <th>
442
+ <div id='fifu_ajax_update_all'><b>Status: </b></div>
443
+ </th>
444
+ </tr>
445
+ </table>
446
+ </div>
447
+
448
+ <div class="box">
449
+ <h2>Crop images to the same size</h2>
450
+ <div class="greybox" id="grad2">
451
+ <b>Premium feature</b><br><br>
452
+ If you are not happy with the different sizes of external featured images on your home/shop, enable the toggle below to crop them to the same size.
453
+ </div>
454
+ <p/>
455
+ <table style="text-align:left">
456
+ <tr>
457
+ <th>
458
+ <input
459
+ type="image"
460
+ href="javascript:void(0)"
461
+ class="toggleoff"
462
+ value=""
463
+ style="display:block">
464
+ </th>
465
+ <th>
466
+ crop images to the same size
467
+ </th>
468
+ </tr>
469
+ </table>
470
+ </div>
471
+
472
+
473
  <div class="box">
474
  <h2>CSS Style</h2>
475
  <div class="greybox" id="grad2">
1095
  <div class="box">
1096
  <h2>Video Thumbnail</h2>
1097
  <div class="greybox" id="grad2">
1098
+ <b>Premium feature</b><br><br>
1099
  Enable the toggle below to show the video thumbnail instead of the video on home/shop.
1100
  </div>
1101
  <br>
1271
 
1272
  </div>
1273
 
1274
+ <a name="top"></a>
 
 
 
 
 
1275
 
1276
+ <div class="box" style="">
1277
+ <h2><a name="top">Checking compatibility between your theme (<?php echo wp_get_theme()?>) and FIFU Premium...</a></h2>
1278
  <div class="greybox">
1279
+ <div id="tabsPremium">
1280
+ <ul>
1281
+ <li><a href="#tabs-1">Features Compatibility</a></li>
1282
+ <li style="<?php echo fifu_woo_theme() ? '' : 'display:none' ?>"><a href="#tabs-2">WooCommerce Additional Steps</a></li>
1283
+ <li style="<?php echo fifu_woo_theme() ? '' : 'display:none' ?>"><a href="#tabs-3">Official FIFU WooCommerce Theme</a></li>
1284
+ </ul>
1285
+ <div id="tabs-1">
1286
+ <table>
1287
+ <tr>
1288
+ <th>as <b>Blog</b></th>
1289
+ <th>as <b>Shop</b></th>
1290
+ </tr>
1291
+ <tr>
1292
+ <td>featured image: yes</td>
1293
+ <td>product image: yes</td>
1294
+ </tr>
1295
+ <tr>
1296
+ <td></td>
1297
+ <td>product gallery: yes</td>
1298
+ </tr>
1299
+ <tr>
1300
+ <td>featured video: yes</td>
1301
+ <td>product video: <?php echo fifu_woo_theme()?'no':'yes'?></td>
1302
+ </tr>
1303
+ <tr>
1304
+ <td>featured slider: yes</td>
1305
+ <td>product slider: <?php echo fifu_woo_theme()?'no':'yes'?></td>
1306
+ </tr>
1307
+ </table>
1308
+ </div>
1309
+ <div id="tabs-2">
1310
+ To use <b>FIFU Premium + WooCommerce + <?php echo wp_get_theme()?> theme</b>, you will need to follow the steps* below:
1311
+ <div class="box" style="">
1312
+ 1) Open this file:<br>
1313
+ woocommerce/includes/abstracts/abstract-wc-product.php<br><br>
1314
+ 2) Find this line:<br>
1315
+ public function get_gallery_image_ids( $context = 'view' ) {<br><br>
1316
+ 3) Add this line immediately below that one:<br>
1317
+ $tmp = array(); $i = 0; while ($url = get_post_meta(get_the_ID(), "fifu_image_url_" . $i, true)) $tmp[] = $i++; if ($i > 0) return $tmp;
1318
+ </div><br>
1319
+ *you will need to redo that always you decide to update your WooCommerce version.<br><br>
1320
+ </div>
1321
+ <div id="tabs-3">
1322
+ 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>
1323
+ If your theme isn't flexible enough to work with external images, please consider to move to Storefront. Check the <a href="http://shop.featuredimagefromurl.com"><b>Live Preview</b></a>.
1324
+ </div>
1325
+ </div>
1326
  </div>
1327
  </div>
1328
 
1334
  <h3>2) "Which plugins are compatible with Premium version?"</h3>
1335
  WooCommerce, WP All Import, Monarch, Frontend Publishing and others. If you intend to use the Premium version with a specific plugin, try to test with the free version first. Or you can ask me if they are compatible.<br><br>
1336
  <h3>3) "Are there the known incompatibility issues?"</h3>
 
1337
  - Variable Product: this WooCommerce feature can be found at Product Data dropdown and allows to create variations of a same product, including images. FIFU doesn’t support that for now.<br><br>
1338
  <h3>4) "Can I get my money back later?"</h3>
1339
  With the exception of rare situations, no. But don't worry about that. You will still have the best support and if, after your complete cooperation, I'm not able to solve your issue, I may refund you.<br><br>
1355
  <div class="box">
1356
  <h2>About The Author</h2>
1357
  <div class="greybox">
1358
+ Hi! I'm Marcel Jacques Machado. Graduated in Computer Science and postgraduated in Machine Learning, I work as Software Engineer for 10 years. I already worked with C, Python, Shell Script and other programming languages and technologies. Nowadays, I develop web applications in Brazil using Java. About PHP, this plugin, Featured Image From URL, has been a great pratical experience.
1359
  </div>
1360
  </div>
1361
  </div>
admin/html/meta-box.html CHANGED
@@ -47,17 +47,13 @@
47
  style="<?php echo $show_sirv?>">Choose Sirv image</a>
48
 
49
 
50
- <div style="<?php echo $show_news?>;display:none">
51
  <br>
52
  <hr>
53
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid #6a04c9; color: black;
54
- background-color: #eee; border-radius: 25px 5px;">New: disable product zoom/lightbox.</p>
55
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid #e8c814; color: black;
56
- background-color: #eee; border-radius: 25px 5px;">New: crop all external featured images on home/shop to the same size.</p>
57
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid #d83ed2; color: black;
58
- background-color: #eee; border-radius: 25px 5px;">New: button to update all posts/pages. Useful if you have hundreds of them and want to set the first image as featured image for all. (28% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p>
59
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid #4286f4; color: black;
60
- background-color: #eee; border-radius: 25px 5px;">New: show the video thumbnail instead of the video on home/shop.</p>
61
  <center>
62
  <table>
63
  <tbody>
47
  style="<?php echo $show_sirv?>">Choose Sirv image</a>
48
 
49
 
50
+ <div style="<?php echo $show_news?>">
51
  <br>
52
  <hr>
53
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid #336699; color: black;
54
+ background-color: #eee; border-radius: 25px 5px;">New: compatibility improvements. External Product Gallery works with the most famous themes now.</p><!-- (28% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p>-->
55
+ <p style="font-size: 12px; padding: 5px; border-left: 6px solid #cc6600; color: black;
56
+ background-color: #eee; border-radius: 25px 5px;">New: <a href="admin.php?page=featured-image-from-url#top">check compatibility</a> between FIFU Premium and your theme.</p>
 
 
 
 
57
  <center>
58
  <table>
59
  <tbody>
featured-image-from-url.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: Featured Image From URL
5
  * 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.
6
- * Version: 1.7.4
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://featuredimagefromurl.com/
9
  */
3
  /*
4
  * Plugin Name: Featured Image From URL
5
  * 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.
6
+ * Version: 1.7.5
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://featuredimagefromurl.com/
9
  */
includes/woo.php CHANGED
@@ -7,3 +7,7 @@ function fifu_woo_zoom() {
7
  function fifu_woo_lbox() {
8
  return get_option('fifu_wc_lbox') == 'toggleon';
9
  }
 
 
 
 
7
  function fifu_woo_lbox() {
8
  return get_option('fifu_wc_lbox') == 'toggleon';
9
  }
10
+
11
+ function fifu_woo_theme() {
12
+ return file_exists(get_template_directory() . '/woocommerce');
13
+ }
readme.txt CHANGED
@@ -331,6 +331,9 @@ was removed. To finish, a Premium version is now been presented.
331
  = 1.7.4 =
332
  * Bug fix: Instagram URLs. Scripts removed: no more support to WooCommerce 2.
333
 
 
 
 
334
  == Upgrade Notice ==
335
 
336
  = 1.0 =
@@ -509,4 +512,7 @@ was removed. To finish, a Premium version is now been presented.
509
  * Bug fix.
510
 
511
  = 1.7.4 =
512
- * Bug fix: Instagram URLs. Scripts removed: no more support to WooCommerce 2.
 
 
 
331
  = 1.7.4 =
332
  * Bug fix: Instagram URLs. Scripts removed: no more support to WooCommerce 2.
333
 
334
+ = 1.7.5 =
335
+ * Check compatibility between the user theme and Premium version features.
336
+
337
  == Upgrade Notice ==
338
 
339
  = 1.0 =
512
  * Bug fix.
513
 
514
  = 1.7.4 =
515
+ * Bug fix: Instagram URLs. Scripts removed: no more support to WooCommerce 2.
516
+
517
+ = 1.7.5 =
518
+ * Check compatibility between the user theme and Premium version features.