Featured Image From URL - Version 2.2.0

Version Description

  • Improvement: hide inconvenient notices from other plugins/themes in FIFU settings.
Download this release

Release Info

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

Code changes from version 2.1.9 to 2.2.0

admin/html/css/menu.css CHANGED
@@ -8,8 +8,9 @@
8
  background: #fff;
9
  border: 1px solid #dbdbdb;
10
  padding: 20px;
11
- padding-top: 10px;
12
- border-radius: 50px 0px 0px;
 
13
  }
14
 
15
  .box {
8
  background: #fff;
9
  border: 1px solid #dbdbdb;
10
  padding: 20px;
11
+ padding-top: 0px;
12
+ border-radius: 100px 0px 0px;
13
+ height: 25px !important;
14
  }
15
 
16
  .box {
admin/html/js/menu.js CHANGED
@@ -24,6 +24,7 @@ jQuery(function () {
24
  jQuery("#accordionClean").accordion();
25
  jQuery("#tabs").tabs();
26
  jQuery("#tabs-top").tabs();
 
27
  jQuery("#fifu_input_spinner_image").spinner({min: 0});
28
  jQuery("#fifu_input_spinner_video").spinner({min: 0});
29
  jQuery("#fifu_input_spinner_slider").spinner({min: 0});
24
  jQuery("#accordionClean").accordion();
25
  jQuery("#tabs").tabs();
26
  jQuery("#tabs-top").tabs();
27
+ jQuery("#fifu_input_spinner_db").spinner({min: 100, step: 100});
28
  jQuery("#fifu_input_spinner_image").spinner({min: 0});
29
  jQuery("#fifu_input_spinner_video").spinner({min: 0});
30
  jQuery("#fifu_input_spinner_slider").spinner({min: 0});
admin/html/menu.html CHANGED
@@ -4,7 +4,7 @@
4
  <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
5
  <div class="wrap">
6
 
7
- <div class="header-box" style="background-color:#007fff">
8
  <h1 style="color:white"><img src="http://localhost/wp-content/plugins/featured-image-from-url/admin/images/favicon.png" alt=""> <b>Featured Image from URL</b> 2</h1>
9
  </div>
10
 
@@ -158,6 +158,28 @@
158
  <br>
159
  <input type="submit" value="Submit" disabled>
160
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  </div>
162
  <div id="tabs-b">
163
  <div class="box">
@@ -255,21 +277,15 @@
255
  <h2>Auto Set Featured Image: apply to all</h2>
256
  <div class="greybox" id="grad2">
257
  <b>Premium feature</b><br><br>
258
- 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. It can take several minutes and you can monitor the progress here. It can't be undone, so make a backup.
 
 
 
259
  <br><br>
260
  To schedule this process (hourly, daily etc), you can use the Hook <b>fifu_event</b> with your favorite cron event plugin. I like <a href="https://wordpress.org/plugins/wp-crontrol/">WP Control</a>.
261
  </div>
262
  <br>
263
- <table style="text-align:left">
264
- <tr>
265
- <th>
266
- <input type="text" value="" style="width:35px">
267
- <input type="submit" value="OK" >
268
- </th>
269
- <th>
270
- posts per second (high values can bring down your database)
271
- </th>
272
- </tr>
273
  <tr>
274
  <th>
275
  <input
@@ -295,9 +311,6 @@
295
  <th>
296
  update all your posts/pages/products now
297
  </th>
298
- <th>
299
- <div id='fifu_ajax_update_all'><b>Status: </b></div>
300
- </th>
301
  </tr>
302
  </table>
303
  </div>
@@ -1794,7 +1807,24 @@
1794
  <th>
1795
  allows to use external images in product variations
1796
  </th>
1797
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1798
  </table>
1799
  </div>
1800
  </div>
@@ -1944,22 +1974,21 @@
1944
  </div>
1945
  <div id="tabs-d">
1946
  <div class="box">
1947
- <h2>Report a Bug or Suggest an Improvement</h2>
1948
  <div class="greybox">
1949
- Suggestions for improvement are always welcome. Just send an email to <b><a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></b> and your request can be available in the next release.
1950
- But if you want to report a bug, first <b><button id="opener">click here</button></b> to get your plugin version and options. You can also attach as many details as possible such as screenshots, JS errors on browser console, PHP errors in debug file etc.
1951
  </div>
1952
  </div>
1953
  <div class="box">
1954
- <h2>Help</h2>
1955
  <div class="greybox">
1956
- 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>.
1957
  </div>
1958
  </div>
1959
  <div class="box">
1960
- <h2>Keep this Plugin Alive <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank"><img style="position:relative;top:10px" src="https://c2.staticflickr.com/8/7859/44681400660_3ee78cc155_o_d.png"></a></h2>
1961
  <div class="greybox">
1962
- Please give FIFU a 5-star rating. Thanks!
1963
  </div>
1964
  </div>
1965
  </div>
4
  <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
5
  <div class="wrap">
6
 
7
+ <div class="header-box" style="background-color:#23282d">
8
  <h1 style="color:white"><img src="http://localhost/wp-content/plugins/featured-image-from-url/admin/images/favicon.png" alt=""> <b>Featured Image from URL</b> 2</h1>
9
  </div>
10
 
158
  <br>
159
  <input type="submit" value="Submit" disabled>
160
  </div>
161
+ <div class="box">
162
+ <h2>Database</h2>
163
+ <div class="greybox" id="grad2">
164
+ <b>Premium feature</b><br><br>
165
+ Limit of rows to UPDATE, INSERT or DELETE by query. Higher this number, faster the features Auto Set (Apply to All) and Metadata (Fake Internal Featured Image and Clean). However, if you have limited resources, don't increase this value too much, otherwise your database can bring down.<br><br>
166
+ <table style="text-align:left">
167
+ <tr>
168
+ <th>
169
+ <label for="fifu_input_spinner_db"
170
+ placehold>Rows Limit</label>
171
+ </th>
172
+ <th>
173
+ <input id="fifu_input_spinner_db"
174
+ name="fifu_input_spinner_db"
175
+ size="4">
176
+ </th>
177
+ </tr>
178
+ </table>
179
+ </div>
180
+ <br>
181
+ <input type="submit" value="Submit" disabled>
182
+ </div>
183
  </div>
184
  <div id="tabs-b">
185
  <div class="box">
277
  <h2>Auto Set Featured Image: apply to all</h2>
278
  <div class="greybox" id="grad2">
279
  <b>Premium feature</b><br><br>
280
+ Enable that to update all your posts/pages/products applying the configuration above.
281
+ Very useful if you have hundreds of them and want to set the first image as featured image for all.
282
+ It can take some minutes and can't be undone, so make a backup.
283
+ To repeat the process enable the toggle again.
284
  <br><br>
285
  To schedule this process (hourly, daily etc), you can use the Hook <b>fifu_event</b> with your favorite cron event plugin. I like <a href="https://wordpress.org/plugins/wp-crontrol/">WP Control</a>.
286
  </div>
287
  <br>
288
+ <table style="text-align:left">
 
 
 
 
 
 
 
 
 
289
  <tr>
290
  <th>
291
  <input
311
  <th>
312
  update all your posts/pages/products now
313
  </th>
 
 
 
314
  </tr>
315
  </table>
316
  </div>
1807
  <th>
1808
  allows to use external images in product variations
1809
  </th>
1810
+ </tr>
1811
+ <tr>
1812
+ <th>
1813
+ <form
1814
+ action="javascript:void(0)"
1815
+ method="post">
1816
+ <input
1817
+ type="image"
1818
+ href="javascript:void(0)"
1819
+ class="toggleoff"
1820
+ value=""
1821
+ style="display:block" >
1822
+ </form>
1823
+ </th>
1824
+ <th>
1825
+ allows to use a different image gallery for each product variation (only for WooCommerce Rest API users)
1826
+ </th>
1827
+ </tr>
1828
  </table>
1829
  </div>
1830
  </div>
1974
  </div>
1975
  <div id="tabs-d">
1976
  <div class="box">
1977
+ <h2>Report a Bug / Suggest an Improvement</h2>
1978
  <div class="greybox">
1979
+ Send an email to <b><a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></b>. If you are reporting a bug, first <b><button id="opener">click here</button></b> and send me this dialog data, please.
 
1980
  </div>
1981
  </div>
1982
  <div class="box">
1983
+ <h2>Give FIFU a 5-star rating <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank"><img style="position:relative;top:10px" src="https://c2.staticflickr.com/8/7859/44681400660_3ee78cc155_o_d.png"></a></h2>
1984
  <div class="greybox">
1985
+ It helps me to keep the support and this FREE version alive.
1986
  </div>
1987
  </div>
1988
  <div class="box">
1989
+ <h2>Help</h2>
1990
  <div class="greybox">
1991
+ 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>.
1992
  </div>
1993
  </div>
1994
  </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: 2.1.9
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.2.0
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/external-post.php CHANGED
@@ -55,7 +55,7 @@ function fifu_show_all_images($content) {
55
  function fifu_hide_image($img) {
56
  if (strpos($img, 'style=\"') !== false)
57
  return preg_replace('/style=..[^"]*["]/', 'style=\"display:none\"', $img);
58
- return str_replace('/>', 'style=\"display:none\"/>', $img);
59
  }
60
 
61
  function fifu_show_image($img) {
55
  function fifu_hide_image($img) {
56
  if (strpos($img, 'style=\"') !== false)
57
  return preg_replace('/style=..[^"]*["]/', 'style=\"display:none\"', $img);
58
+ return str_replace('/>', ' style=\"display:none\"/>', $img);
59
  }
60
 
61
  function fifu_show_image($img) {
readme.txt CHANGED
@@ -161,6 +161,9 @@ Features:
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 2.1.9 =
165
  * Improvement: new menu of settings.
166
 
@@ -488,6 +491,9 @@ was removed. To finish, a Premium version is now been presented.
488
 
489
  == Upgrade Notice ==
490
 
 
 
 
491
  = 2.1.9 =
492
  * Improvement: new menu of settings.
493
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.2.0 =
165
+ * Improvement: hide inconvenient notices from other plugins/themes in FIFU settings.
166
+
167
  = 2.1.9 =
168
  * Improvement: new menu of settings.
169
 
491
 
492
  == Upgrade Notice ==
493
 
494
+ = 2.2.0 =
495
+ * Improvement: hide inconvenient notices from other plugins/themes in FIFU settings.
496
+
497
  = 2.1.9 =
498
  * Improvement: new menu of settings.
499