Featured Image From URL - Version 2.4.1

Version Description

  • Improvement: integration with REST API + Custom Post Types.
Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.1

Files changed (3) hide show
  1. admin/html/menu.html +22 -31
  2. featured-image-from-url.php +1 -1
  3. readme.txt +6 -0
admin/html/menu.html CHANGED
@@ -957,12 +957,12 @@
957
  <div id="tabs-l">
958
  <div class="box">
959
 
960
- <h2>Shortcode (beta feature)</h2>
961
 
962
  <div class="greybox" id="grad2">
963
  <b>Premium feature</b><br><br>
964
 
965
- This experimental feature allows to use a shortcode as "featured image" of posts/pages/products. Using shortcodes you are not limited to images/videos/sliders anymore. You can use any content provided by the shortcode, what could be a music, a text, a whole site etc. However, some contents will need a large area of your site to be shown properly. So you should define a minimum width that an area of your site should have to be able to show the shortcode content, otherwise it will be shown the regular featured image. Important: shortcodes can be not compatible with other FIFU features, such as CSS Style and Crop Image.
966
 
967
  </div>
968
 
@@ -1387,25 +1387,13 @@
1387
  <table style="text-align:left">
1388
  <tr>
1389
  <th>
1390
- <form
1391
- id="fifu_form_slider"
1392
- action="javascript:void(0)"
1393
- method="post">
1394
- <input
1395
- type="image"
1396
- href="javascript:void(0)"
1397
- id="fifu_toggle_slider"
1398
- onclick="javascript:void(0)"
1399
- name="fifu_toggle_slider"
1400
- class="toggleoff"
1401
- value="">
1402
-
1403
- <input
1404
- type="hidden"
1405
- id="fifu_input_slider"
1406
- name="fifu_input_slider"
1407
- value="" >
1408
- </form>
1409
  </th>
1410
  <th>
1411
  slider
@@ -1583,7 +1571,7 @@
1583
  </div>
1584
  <div id="tabs-flickr-d">
1585
  <br><br><br>
1586
- You don't need to change anything here to make the images appear. However, some themes can't calculate the sufficient size that an image should have in each place, which is a waste. So if in a post, for example, a 1600px wide image is being loaded in an area that you know that is never larger than 750px wide, you could disable the options 1024 and 1600, which will make your site much faster without losing quality.
1587
  <br><br>
1588
  <table id="thumbnail-size">
1589
  <tr>
@@ -1597,7 +1585,6 @@
1597
  <th>640</th>
1598
  <th>800</th>
1599
  <th>1024</th>
1600
- <th>1600</th>
1601
  </tr>
1602
  <tr>
1603
  <td><center>post</center></td>
@@ -1610,7 +1597,6 @@
1610
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-640"></center></td>
1611
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-800"></center></td>
1612
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-1024"></center></td>
1613
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-1600"></center></td>
1614
  </tr>
1615
  <tr>
1616
  <td><center>page</center></td>
@@ -1623,7 +1609,6 @@
1623
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-640"></center></td>
1624
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-800"></center></td>
1625
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-1024"></center></td>
1626
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-1600"></center></td>
1627
  </tr>
1628
  <tr>
1629
  <td><center>archive</center></td>
@@ -1636,7 +1621,6 @@
1636
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-640"></center></td>
1637
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-800"></center></td>
1638
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-1024"></center></td>
1639
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-1600"></center></td>
1640
  </tr>
1641
  <tr>
1642
  <td><center>cart</center></td>
@@ -1649,7 +1633,6 @@
1649
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-640"></center></td>
1650
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-800"></center></td>
1651
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-1024"></center></td>
1652
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-1600"></center></td>
1653
  </tr>
1654
  <tr>
1655
  <td><center>category</center></td>
@@ -1662,7 +1645,6 @@
1662
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-640"></center></td>
1663
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-800"></center></td>
1664
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-1024"></center></td>
1665
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-1600"></center></td>
1666
  </tr>
1667
  <tr>
1668
  <td><center>home</center></td>
@@ -1675,7 +1657,6 @@
1675
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-640"></center></td>
1676
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-800"></center></td>
1677
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-1024"></center></td>
1678
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-1600"></center></td>
1679
  </tr>
1680
  <tr>
1681
  <td><center>product</center></td>
@@ -1688,7 +1669,6 @@
1688
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-640"></center></td>
1689
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-800"></center></td>
1690
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-1024"></center></td>
1691
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-1600"></center></td>
1692
  </tr>
1693
  <tr>
1694
  <td><center>shop</center></td>
@@ -1701,7 +1681,6 @@
1701
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-640"></center></td>
1702
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-800"></center></td>
1703
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-1024"></center></td>
1704
- <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-1600"></center></td>
1705
  </tr>
1706
  </table>
1707
  </div>
@@ -1759,6 +1738,12 @@
1759
  http://yourdomain/wp-json/wp/v2/posts
1760
  </th>
1761
  </tr>
 
 
 
 
 
 
1762
  </table>
1763
  <br>
1764
  <br>
@@ -1794,6 +1779,12 @@
1794
  http://yourdomain/wp-json/wp/v2/posts/{id}
1795
  </th>
1796
  </tr>
 
 
 
 
 
 
1797
  </table>
1798
  </div>
1799
 
957
  <div id="tabs-l">
958
  <div class="box">
959
 
960
+ <h2>Shortcode</h2>
961
 
962
  <div class="greybox" id="grad2">
963
  <b>Premium feature</b><br><br>
964
 
965
+ This experimental feature allows to use a shortcode as "featured image" of posts/pages/products. Using shortcodes you are not limited to images/videos/sliders anymore. You can use any content provided by the shortcode, what could be a music, a text, a whole site etc. However, some contents will need a large area of your site to be shown properly. So you should define a minimum width that an area of your site should have to be able to show the shortcode content, otherwise it will be shown the regular featured image (required field). Important: shortcodes can be not compatible with other FIFU features, such as CSS Style, Crop Image, Lazy Load etc.
966
 
967
  </div>
968
 
1387
  <table style="text-align:left">
1388
  <tr>
1389
  <th>
1390
+ <input
1391
+ type="image"
1392
+ href="javascript:void(0)"
1393
+ id="fifu_toggle_slider"
1394
+ name="fifu_toggle_slider"
1395
+ class="toggleoff"
1396
+ value="" style="display:block">
 
 
 
 
 
 
 
 
 
 
 
 
1397
  </th>
1398
  <th>
1399
  slider
1571
  </div>
1572
  <div id="tabs-flickr-d">
1573
  <br><br><br>
1574
+ You don't need to change anything here to make the images appear. However, some themes can't calculate the sufficient size that an image should have in each place, which is a waste. So if in a post, for example, a 1024px wide image is being loaded in an area that you know that is never larger than 750px wide, you could disable the option 1024, which will make your site much faster without losing quality.
1575
  <br><br>
1576
  <table id="thumbnail-size">
1577
  <tr>
1585
  <th>640</th>
1586
  <th>800</th>
1587
  <th>1024</th>
 
1588
  </tr>
1589
  <tr>
1590
  <td><center>post</center></td>
1597
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-640"></center></td>
1598
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-800"></center></td>
1599
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-post-1024"></center></td>
 
1600
  </tr>
1601
  <tr>
1602
  <td><center>page</center></td>
1609
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-640"></center></td>
1610
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-800"></center></td>
1611
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-page-1024"></center></td>
 
1612
  </tr>
1613
  <tr>
1614
  <td><center>archive</center></td>
1621
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-640"></center></td>
1622
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-800"></center></td>
1623
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-arch-1024"></center></td>
 
1624
  </tr>
1625
  <tr>
1626
  <td><center>cart</center></td>
1633
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-640"></center></td>
1634
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-800"></center></td>
1635
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-cart-1024"></center></td>
 
1636
  </tr>
1637
  <tr>
1638
  <td><center>category</center></td>
1645
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-640"></center></td>
1646
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-800"></center></td>
1647
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-ctgr-1024"></center></td>
 
1648
  </tr>
1649
  <tr>
1650
  <td><center>home</center></td>
1657
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-640"></center></td>
1658
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-800"></center></td>
1659
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-home-1024"></center></td>
 
1660
  </tr>
1661
  <tr>
1662
  <td><center>product</center></td>
1669
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-640"></center></td>
1670
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-800"></center></td>
1671
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-prod-1024"></center></td>
 
1672
  </tr>
1673
  <tr>
1674
  <td><center>shop</center></td>
1681
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-640"></center></td>
1682
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-800"></center></td>
1683
  <td><center><input type="checkbox" onclick="javascript:void(0)" id="cb-shop-1024"></center></td>
 
1684
  </tr>
1685
  </table>
1686
  </div>
1738
  http://yourdomain/wp-json/wp/v2/posts
1739
  </th>
1740
  </tr>
1741
+ <tr>
1742
+ <th>Custom Post Type</th>
1743
+ <th>
1744
+ http://yourdomain/wp-json/wp/v2/{post_type}
1745
+ </th>
1746
+ </tr>
1747
  </table>
1748
  <br>
1749
  <br>
1779
  http://yourdomain/wp-json/wp/v2/posts/{id}
1780
  </th>
1781
  </tr>
1782
+ <tr>
1783
+ <th>Custom Post Type</th>
1784
+ <th>
1785
+ http://yourdomain/wp-json/wp/v2/{post_type}/{id}
1786
+ </th>
1787
+ </tr>
1788
  </table>
1789
  </div>
1790
 
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.4.0
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.4.1
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -157,6 +157,9 @@ Features:
157
 
158
  == Changelog ==
159
 
 
 
 
160
  = 2.4.0 =
161
  * Improvement: FIFU column shows the images in the same size now.
162
 
@@ -547,6 +550,9 @@ was removed. To finish, a Premium version is now been presented.
547
 
548
  == Upgrade Notice ==
549
 
 
 
 
550
  = 2.4.0 =
551
  * Improvement: FIFU column shows the images in the same size now.
552
 
157
 
158
  == Changelog ==
159
 
160
+ = 2.4.1 =
161
+ * Improvement: integration with REST API + Custom Post Types.
162
+
163
  = 2.4.0 =
164
  * Improvement: FIFU column shows the images in the same size now.
165
 
550
 
551
  == Upgrade Notice ==
552
 
553
+ = 2.4.1 =
554
+ * Improvement: integration with REST API + Custom Post Types.
555
+
556
  = 2.4.0 =
557
  * Improvement: FIFU column shows the images in the same size now.
558