Featured Image From URL - Version 2.1.5

Version Description

  • Bug fix: parse error on menu.html; Style issue: Gutemberg + Meta Box; Improvement (Premium): integration with Product Variation + WooCommerce Rest API + Product Image Gallery.
Download this release

Release Info

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

Code changes from version 2.1.4 to 2.1.5

admin/html/css/editor.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .components-responsive-wrapper__content {
2
+ position:relative !important;
3
+ }
admin/html/js/menu.js CHANGED
@@ -30,6 +30,7 @@ jQuery(function () {
30
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
31
  jQuery("#tabsApi").tabs();
32
  jQuery("#tabsPremium").tabs();
 
33
  });
34
 
35
  function save(formName, url) {
30
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
31
  jQuery("#tabsApi").tabs();
32
  jQuery("#tabsPremium").tabs();
33
+ jQuery("#tabsWpAllImport").tabs();
34
  });
35
 
36
  function save(formName, url) {
admin/html/menu.html CHANGED
@@ -5,7 +5,7 @@
5
  <div class="wrap">
6
 
7
  <div class="box">
8
- <h1>Featured Image from URL <b style="color:red">2</b></h1>
9
  </div>
10
 
11
  <div class="box">
@@ -14,8 +14,6 @@
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;
18
- background-color: #eee; border-radius: 25px 5px;">You also can go back to the <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.13.zip">last stable version</a> while the issue is not solved</p>
19
  </div>
20
 
21
  <div class="box">
@@ -715,10 +713,127 @@
715
  <div class="box">
716
  <h2>WP All Import</h2>
717
  <div class="greybox">
718
- You can use Featured Image from URL with WP All Import plugin. For that, use the custom field <b>fifu_image_url</b>.<br/><br/> The other custom fields supported by FIFU are listed below, in the section WP REST API > Plugin Fields.
719
- <br/><br/>
720
- <div class="greybox" id="grad2">
721
- <b>Premium feature</b><br><br>But if you have a list of URLs delimited by "|", it's possible to use that with the custom field <b>fifu_list_url</b>. In this case, the first image will be considered the featured image and the others will be in the product image gallery. For sliders, use <b>fifu_slider_list_url</b>.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
722
  </div>
723
  </div>
724
  </div>
@@ -1371,7 +1486,7 @@
1371
  <h2>Validate Images</h2>
1372
  <div class="greybox" id="grad2">
1373
  <b>Premium feature</b><br><br>
1374
- Allows to check image URLs and, when an image is not found, its URL is not saved. However, the validation can make the saving time too long. It is not integrated with Auto Set Featured Image or WP Rest API features yet.
1375
  </div>
1376
  <br>
1377
  <input
@@ -1477,32 +1592,60 @@
1477
  <h2>WooCommerce Variable Product</h2>
1478
  <div class="greybox" id="grad2">
1479
  <b>Premium feature</b><br><br>
1480
- Allows to use external images in variations of WooCommerce Variable Products.
1481
  </div>
1482
  <br>
1483
- <form
1484
- action="javascript:void(0)"
1485
- method="post">
1486
- <input
1487
- type="image"
1488
- href="javascript:void(0)"
1489
- class="toggleoff"
1490
- value=""
1491
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1492
  </div>
1493
 
1494
  <div class="box">
1495
 
1496
- <h2>WP REST API</h2>
1497
 
1498
  <div class="greybox" id="grad2">
1499
  <b>Premium feature</b><br><br>
1500
  <div id="tabsApi">
1501
  <ul>
1502
  <li><a href="#tabs-1">Endpoints</a></li>
1503
- <li><a href="#tabs-2">Plugin Fields</a></li>
1504
  <li><a href="#tabs-3">Creating your first product...</a></li>
1505
- <li><a href="#tabs-4">Creating your first post...</a></li>
 
1506
  </ul>
1507
  <div id="tabs-1">
1508
  <table style="text-align:left">
@@ -1514,15 +1657,21 @@
1514
  </th>
1515
  </tr>
1516
  <tr>
1517
- <th>Shop</th>
 
 
 
 
 
 
1518
  <th>
1519
- http://yourdomain.com/wp-json/wc/v2/products
1520
  </th>
1521
  </tr>
1522
  <tr>
1523
- <th>Blog</th>
1524
  <th>
1525
- http://yourdomain.com/wp-json/wp/v2/posts
1526
  </th>
1527
  </tr>
1528
  </table>
@@ -1537,15 +1686,21 @@
1537
  </th>
1538
  </tr>
1539
  <tr>
1540
- <th>Shop</th>
1541
  <th>
1542
- http://yourdomain.com/wp-json/wc/v2/products/{id}
1543
  </th>
1544
  </tr>
1545
  <tr>
1546
- <th>Blog</th>
1547
  <th>
1548
- http://yourdomain.com/wp-json/wp/v2/posts/{id}
 
 
 
 
 
 
1549
  </th>
1550
  </tr>
1551
  </table>
@@ -1556,18 +1711,12 @@
1556
  <tr>
1557
  <th>
1558
  <th>
1559
- Key
1560
- </th>
1561
- <th>
1562
- Key
1563
- </th>
1564
- <th>
1565
- Key
1566
  </th>
1567
- </tr>
1568
  <tr>
1569
  <th>
1570
- Image
1571
  </th>
1572
  <th>
1573
  fifu_image_url
@@ -1575,32 +1724,34 @@
1575
  </tr>
1576
  <tr>
1577
  <th>
1578
- Alt
1579
  </th>
1580
  <th>
1581
  fifu_image_alt
1582
  </th>
1583
- </tr>
1584
  <tr>
1585
  <th>
1586
- Video
1587
  </th>
1588
  <th>
1589
- fifu_video_url
1590
  </th>
1591
- </tr>
1592
  <tr>
1593
  <th>
1594
- Image Gallery
1595
  </th>
1596
  <th>
1597
- fifu_image_url_0
1598
  </th>
 
 
1599
  <th>
1600
- fifu_image_url_1
1601
  </th>
1602
  <th>
1603
- ...
1604
  </th>
1605
  </tr>
1606
  <tr>
@@ -1608,13 +1759,7 @@
1608
  Video Gallery
1609
  </th>
1610
  <th>
1611
- fifu_video_url_0
1612
- </th>
1613
- <th>
1614
- fifu_video_url_1
1615
- </th>
1616
- <th>
1617
- ...
1618
  </th>
1619
  </tr>
1620
  <tr>
@@ -1622,30 +1767,31 @@
1622
  Slider
1623
  </th>
1624
  <th>
1625
- fifu_slider_image_url_0
1626
- </th>
1627
- <th>
1628
- fifu_slider_image_url_1
1629
- </th>
1630
- <th>
1631
- ...
1632
  </th>
1633
  </tr>
1634
  </table>
1635
  </div>
1636
 
1637
  <div id="tabs-3">
1638
- <p>
1639
- <iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/product.txt"
1640
- width="800px" height="230px" ></iframe>
1641
- </p>
1642
  </div>
1643
 
1644
  <div id="tabs-4">
1645
- <p>
1646
- <iframe src="../wp-content/plugins/featured-image-from-url/admin/html/txt/post.txt"
1647
- width="800px" height="230px" ></iframe>
1648
- </p>
 
 
 
 
 
 
 
1649
  </div>
1650
 
1651
  </div>
@@ -1704,7 +1850,7 @@
1704
  <h3>2) "Which plugins are compatible with Premium version?"</h3>
1705
  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>
1706
  <h3>3) "Are there the known incompatibility issues?"</h3>
1707
- Themes: some WooCommerce themes aren’t flexible enough to work with Videos and Sliders. To know if your theme is compatible with those features, please take a look on “Checking compatibility” area, here in FIFU settings.<br><br>
1708
  <h3>4) "Can I get my money back later?"</h3>
1709
  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>
1710
  <h3>5) "How to get the Premium version?"</h3>
@@ -1790,7 +1936,7 @@
1790
 
1791
  <div id="dialog" title="About">
1792
  <textarea id="bar" style="width:600px;height:500px;resize:none;" readonly>
1793
- <?php echo get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php')['Name'] ?>:<?php echo get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php')['Version'] ?>;
1794
  Site:<?php echo get_home_url() ?>;
1795
  Theme:<?php echo wp_get_theme() ?>;
1796
  PHP:<?php echo phpversion() ?>;
5
  <div class="wrap">
6
 
7
  <div class="box">
8
+ <h1>Featured Image from URL <b style="color:orange">2</b></h1>
9
  </div>
10
 
11
  <div class="box">
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
  </div>
18
 
19
  <div class="box">
713
  <div class="box">
714
  <h2>WP All Import</h2>
715
  <div class="greybox">
716
+ You can use Featured Image from URL with WP All Import plugin. For that, use the custom fields below.
717
+ <br/>
718
+ <br/>
719
+
720
+ <div id="tabsWpAllImport">
721
+ <ul>
722
+ <li><a href="#tabs-1">Free</a></li>
723
+ <li><a href="#tabs-2">Premium</a></li>
724
+ </ul>
725
+ <div id="tabs-1">
726
+
727
+ <table style="text-align:left">
728
+ <tr>
729
+ <th>
730
+ <th>
731
+ Key
732
+ </th>
733
+ </tr>
734
+ <tr>
735
+ <th>
736
+ Image
737
+ </th>
738
+ <th>
739
+ fifu_image_url
740
+ </th>
741
+ </tr>
742
+ <tr>
743
+ <th>
744
+ Alt
745
+ </th>
746
+ <th>
747
+ fifu_image_alt
748
+ </th>
749
+ </tr>
750
+ </table>
751
+
752
+ <br/>
753
+ </div>
754
+
755
+ <div id="tabs-2">
756
+ <table style="text-align:left">
757
+ <tr>
758
+ <th>
759
+ <th>
760
+ Key(s)
761
+ </th>
762
+ </tr>
763
+ <tr>
764
+ <tr>
765
+ <th>
766
+ Image
767
+ </th>
768
+ <th>
769
+ fifu_image_url
770
+ </th>
771
+ </tr>
772
+ <tr>
773
+ <th>
774
+ Alt
775
+ </th>
776
+ <th>
777
+ fifu_image_alt
778
+ </th>
779
+ </tr>
780
+ <th>
781
+ Image Gallery
782
+ </th>
783
+ <th>
784
+ fifu_image_url_0, fifu_image_url_1, fifu_image_url_2 ...
785
+ </th>
786
+ </tr>
787
+ <tr>
788
+ <th>
789
+ Image + Image Gallery (URLs delimited by "|")
790
+ </th>
791
+ <th>
792
+ fifu_list_url
793
+ </th>
794
+ </tr>
795
+ <tr>
796
+ <th>
797
+ Alt Gallery
798
+ </th>
799
+ <th>
800
+ fifu_image_alt_0, fifu_image_alt_1, fifu_image_alt_2 ...
801
+ </th>
802
+ </tr>
803
+ <tr>
804
+ <th>
805
+ Video
806
+ </th>
807
+ <th>
808
+ fifu_video_url
809
+ </th>
810
+ </tr>
811
+ <tr>
812
+ <th>
813
+ Video Gallery
814
+ </th>
815
+ <th>
816
+ fifu_video_url_0, fifu_video_url_1, fifu_video_url_2 ...
817
+ </th>
818
+ </tr>
819
+ <tr>
820
+ <th>
821
+ Slider
822
+ </th>
823
+ <th>
824
+ fifu_slider_image_url_0, fifu_slider_image_url_1, fifu_slider_image_url_2 ...
825
+ </th>
826
+ </tr>
827
+ <tr>
828
+ <th>
829
+ Slider (URLs delimited by "|")
830
+ </th>
831
+ <th>
832
+ fifu_slider_list_url
833
+ </th>
834
+ </tr>
835
+ </table>
836
+ </div>
837
  </div>
838
  </div>
839
  </div>
1486
  <h2>Validate Images</h2>
1487
  <div class="greybox" id="grad2">
1488
  <b>Premium feature</b><br><br>
1489
+ Allows to check image URLs and, when an image is not found, its URL is not saved. However, the validation can make the saving time too long. It is not integrated with Auto Set Featured Image or Rest API features yet.
1490
  </div>
1491
  <br>
1492
  <input
1592
  <h2>WooCommerce Variable Product</h2>
1593
  <div class="greybox" id="grad2">
1594
  <b>Premium feature</b><br><br>
1595
+ Settings for product variations.
1596
  </div>
1597
  <br>
1598
+ <table style="text-align:left">
1599
+ <tr>
1600
+ <th>
1601
+ <form
1602
+ action="javascript:void(0)"
1603
+ method="post">
1604
+ <input
1605
+ type="image"
1606
+ href="javascript:void(0)"
1607
+ class="toggleoff"
1608
+ value=""
1609
+ style="display:block" >
1610
+ </form>
1611
+ </th>
1612
+ <th>
1613
+ allows to use external images in product variations
1614
+ </th>
1615
+ </tr>
1616
+ <tr>
1617
+ <th>
1618
+ <form
1619
+ action="javascript:void(0)"
1620
+ method="post">
1621
+ <input
1622
+ type="image"
1623
+ href="javascript:void(0)"
1624
+ class="toggleoff"
1625
+ value=""
1626
+ style="display:block" >
1627
+ </form>
1628
+ </th>
1629
+ <th>
1630
+ allows to use a different image gallery for each product variation (only for WooCommerce Rest API users)
1631
+ </th>
1632
+ </tr>
1633
+ </table>
1634
  </div>
1635
 
1636
  <div class="box">
1637
 
1638
+ <h2>WP / WooCommerce REST API</h2>
1639
 
1640
  <div class="greybox" id="grad2">
1641
  <b>Premium feature</b><br><br>
1642
  <div id="tabsApi">
1643
  <ul>
1644
  <li><a href="#tabs-1">Endpoints</a></li>
1645
+ <li><a href="#tabs-2">Custom Fields</a></li>
1646
  <li><a href="#tabs-3">Creating your first product...</a></li>
1647
+ <li><a href="#tabs-4">product variation...</a></li>
1648
+ <li><a href="#tabs-5">post...</a></li>
1649
  </ul>
1650
  <div id="tabs-1">
1651
  <table style="text-align:left">
1657
  </th>
1658
  </tr>
1659
  <tr>
1660
+ <th>Product</th>
1661
+ <th>
1662
+ http://yourdomain/wp-json/wc/v3/products
1663
+ </th>
1664
+ </tr>
1665
+ <tr>
1666
+ <th>Product Variation</th>
1667
  <th>
1668
+ http://yourdomain/wp-json/wc/v3/products/{id}/variations/
1669
  </th>
1670
  </tr>
1671
  <tr>
1672
+ <th>Post</th>
1673
  <th>
1674
+ http://yourdomain/wp-json/wp/v2/posts
1675
  </th>
1676
  </tr>
1677
  </table>
1686
  </th>
1687
  </tr>
1688
  <tr>
1689
+ <th>Product</th>
1690
  <th>
1691
+ http://yourdomain/wp-json/wc/v3/products/{id}
1692
  </th>
1693
  </tr>
1694
  <tr>
1695
+ <th>Product Variation</th>
1696
  <th>
1697
+ http://yourdomain/wp-json/wc/v3/products/{id}/variations/{variation_id}
1698
+ </th>
1699
+ </tr>
1700
+ <tr>
1701
+ <th>Post</th>
1702
+ <th>
1703
+ http://yourdomain/wp-json/wp/v2/posts/{id}
1704
  </th>
1705
  </tr>
1706
  </table>
1711
  <tr>
1712
  <th>
1713
  <th>
1714
+ Key(s)
 
 
 
 
 
 
1715
  </th>
1716
+ </tr>
1717
  <tr>
1718
  <th>
1719
+ Post Image
1720
  </th>
1721
  <th>
1722
  fifu_image_url
1724
  </tr>
1725
  <tr>
1726
  <th>
1727
+ Post Image Alt
1728
  </th>
1729
  <th>
1730
  fifu_image_alt
1731
  </th>
1732
+ </tr>
1733
  <tr>
1734
  <th>
1735
+ Product Image + Gallery (URLs delimited by "|")
1736
  </th>
1737
  <th>
1738
+ fifu_list_url
1739
  </th>
1740
+ </tr>
1741
  <tr>
1742
  <th>
1743
+ Product Image Alt + Gallery (titles delimited by "|")
1744
  </th>
1745
  <th>
1746
+ fifu_list_alt
1747
  </th>
1748
+ </tr>
1749
+ <tr>
1750
  <th>
1751
+ Video
1752
  </th>
1753
  <th>
1754
+ fifu_video_url
1755
  </th>
1756
  </tr>
1757
  <tr>
1759
  Video Gallery
1760
  </th>
1761
  <th>
1762
+ fifu_video_url_0, fifu_video_url_1 ...
 
 
 
 
 
 
1763
  </th>
1764
  </tr>
1765
  <tr>
1767
  Slider
1768
  </th>
1769
  <th>
1770
+ fifu_slider_image_url_0, fifu_slider_image_url_1 ...
 
 
 
 
 
 
1771
  </th>
1772
  </tr>
1773
  </table>
1774
  </div>
1775
 
1776
  <div id="tabs-3">
1777
+
1778
+ <iframe src="../wp-content/plugins/fifu-premium/admin/html/txt/product.txt"
1779
+ width="800px" height="250px" ></iframe>
1780
+
1781
  </div>
1782
 
1783
  <div id="tabs-4">
1784
+
1785
+ <iframe src="../wp-content/plugins/fifu-premium/admin/html/txt/product-variation.txt"
1786
+ width="800px" height="450px" ></iframe>
1787
+
1788
+ </div>
1789
+
1790
+ <div id="tabs-5">
1791
+
1792
+ <iframe src="../wp-content/plugins/fifu-premium/admin/html/txt/post.txt"
1793
+ width="800px" height="150px" ></iframe>
1794
+
1795
  </div>
1796
 
1797
  </div>
1850
  <h3>2) "Which plugins are compatible with Premium version?"</h3>
1851
  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>
1852
  <h3>3) "Are there the known incompatibility issues?"</h3>
1853
+ Some WooCommerce themes aren’t flexible enough to work with Videos, Sliders and Shortcodes. To know if your theme is compatible with those features, please take a look on “Checking compatibility” area, here in FIFU settings.<br><br>
1854
  <h3>4) "Can I get my money back later?"</h3>
1855
  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>
1856
  <h3>5) "How to get the Premium version?"</h3>
1936
 
1937
  <div id="dialog" title="About">
1938
  <textarea id="bar" style="width:600px;height:500px;resize:none;" readonly>
1939
+ <?php echo (get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php') ? get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php')['Name']:'') ?>:<?php echo (get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php') ? get_plugin_data(FIFU_PLUGIN_DIR.'featured-image-from-url.php')['Version']:'') ?>;
1940
  Site:<?php echo get_home_url() ?>;
1941
  Theme:<?php echo wp_get_theme() ?>;
1942
  PHP:<?php echo phpversion() ?>;
admin/html/meta-box.html CHANGED
@@ -23,8 +23,6 @@
23
  value="<?php echo $url; ?>"
24
  style="<?php echo $width, $margin ?>" />
25
 
26
- <p/>
27
-
28
  <center>
29
  <a id="fifu_link"
30
  href="#"
@@ -49,14 +47,11 @@
49
 
50
 
51
  <div style="<?php echo $show_news ?>">
52
- <br>
53
  <hr>
54
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
55
  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>
56
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
57
  background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
58
- <p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
59
- background-color: #eee; border-radius: 25px 5px;">You also can go back to the <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.13.zip">last stable version</a> while the issue is not solved</p>
60
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
61
  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-->
62
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
@@ -65,19 +60,4 @@
65
  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-->
66
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #3627c2; color: black;
67
  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-->
68
-
69
- <center>
70
- <table>
71
- <tbody>
72
- <tr>
73
- <th>premium live preview:</th>
74
- <th><a href="https://blog.featuredimagefromurl.com/">blog
75
- </a></th>
76
- <th>/ <a href="https://shop.featuredimagefromurl.com/">shop
77
- </a></th>
78
- </tr>
79
- </tbody>
80
- </table>
81
- </center>
82
-
83
  </div>
23
  value="<?php echo $url; ?>"
24
  style="<?php echo $width, $margin ?>" />
25
 
 
 
26
  <center>
27
  <a id="fifu_link"
28
  href="#"
47
 
48
 
49
  <div style="<?php echo $show_news ?>">
 
50
  <hr>
51
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
52
  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>
53
  <p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
54
  background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
 
 
55
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
56
  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-->
57
  <!--p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; 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
  </div>
admin/html/script.html ADDED
@@ -0,0 +1 @@
 
1
+ <style><?php include 'css/editor.css' ?></style>
admin/html/txt/product-variation.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Avengers",
3
+ "meta_data": [
4
+ {
5
+ "key": "fifu_list_url",
6
+ "value": "https://farm5.staticflickr.com/4333/35721637764_c6f1e93380_q.jpg|https://farm5.staticflickr.com/4424/36388235842_5de2f3e351_q.jpg|https://farm5.staticflickr.com/4383/36510270056_0e52a799f4_q.jpg"
7
+ },
8
+ {
9
+ "key": "fifu_list_alt",
10
+ "value": "black widow|hawkeye|captain america"
11
+ }
12
+ ],
13
+ "regular_price": "1.00",
14
+ "attributes": [
15
+ {
16
+ "name": "Color",
17
+ "option": "Black"
18
+ },
19
+ {
20
+ "name": "Size",
21
+ "option": "Small"
22
+ }
23
+ ]
24
+ }
admin/html/txt/product.txt CHANGED
@@ -1,13 +1,13 @@
1
  {
2
- "name": "Featured Image from URL",
3
- "meta_data": [
4
- {
5
- "key": "fifu_image_url",
6
- "value": "https://ps.w.org/featured-image-from-url/assets/icon-256x256.png"
7
- },
8
- {
9
- "key": "fifu_image_alt",
10
- "value": "Logo"
11
- }
12
- ]
13
- }
1
  {
2
+ "name": "Avengers",
3
+ "meta_data": [
4
+ {
5
+ "key": "fifu_list_url",
6
+ "value": "https://farm5.staticflickr.com/4411/36159714680_cc552f124f_q.jpg|https://farm5.staticflickr.com/4415/36510266406_ee630f55e7_q.jpg|https://farm5.staticflickr.com/4415/35747392283_e685519b88_q.jpg"
7
+ },
8
+ {
9
+ "key": "fifu_list_alt",
10
+ "value": "avengers|iron man|hulk"
11
+ }
12
+ ]
13
+ }
admin/meta-box.php CHANGED
@@ -27,6 +27,12 @@ function fifu_insert_meta_box() {
27
  }
28
  }
29
 
 
 
 
 
 
 
30
  function fifu_show_elements($post) {
31
  $margin = 'margin-top:10px;';
32
  $width = 'width:100%;';
27
  }
28
  }
29
 
30
+ add_action('add_meta_boxes', 'fifu_add_css');
31
+
32
+ function fifu_add_css() {
33
+ include 'html/script.html';
34
+ }
35
+
36
  function fifu_show_elements($post) {
37
  $margin = 'margin-top:10px;';
38
  $width = 'width:100%;';
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.4
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.1.5
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -161,6 +161,9 @@ Features:
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 2.1.4 =
165
  * Improvement: now FIFU can generate/remove all the fake internal featured images in a few seconds, even if you have thousands of products/posts.
166
 
@@ -473,6 +476,9 @@ was removed. To finish, a Premium version is now been presented.
473
 
474
  == Upgrade Notice ==
475
 
 
 
 
476
  = 2.1.4 =
477
  * Improvement: now FIFU can generate/remove all the fake internal featured images in a few seconds, even if you have thousands of products/posts.
478
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.1.5 =
165
+ * Bug fix: parse error on menu.html; Style issue: Gutemberg + Meta Box; Improvement (Premium): integration with Product Variation + WooCommerce Rest API + Product Image Gallery.
166
+
167
  = 2.1.4 =
168
  * Improvement: now FIFU can generate/remove all the fake internal featured images in a few seconds, even if you have thousands of products/posts.
169
 
476
 
477
  == Upgrade Notice ==
478
 
479
+ = 2.1.5 =
480
+ * Bug fix: parse error on menu.html; Style issue: Gutemberg + Meta Box; Improvement (Premium): integration with Product Variation + WooCommerce Rest API + Product Image Gallery.
481
+
482
  = 2.1.4 =
483
  * Improvement: now FIFU can generate/remove all the fake internal featured images in a few seconds, even if you have thousands of products/posts.
484