Featured Image From URL - Version 4.1.5

Version Description

  • New: FIFU Shortcodes > Edition forms; enhancement: Auto set featured image using post title and search engine (can limit the search to a list of sites); deprecated: Image Validation; fix: Lazy Load (JS error).
Download this release

Release Info

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

Code changes from version 4.1.4 to 4.1.5

admin/html/menu.html CHANGED
@@ -1046,21 +1046,6 @@
1046
  #id, .class, ...
1047
  </th>
1048
  </tr>
1049
- <tr class="color">
1050
- <th>
1051
- <?php $fifu['tab']['image']() ?>
1052
- </th>
1053
- <th>
1054
- <?php $fifu['title']['validation']() ?>
1055
- </th>
1056
- <th></th>
1057
- <th>
1058
- wp fifu image --validation &lt;toggle&gt;
1059
- </th>
1060
- <th>
1061
- on, off
1062
- </th>
1063
- </tr>
1064
  <tr class="color">
1065
  <th>
1066
  <?php $fifu['tab']['slider']() ?>
@@ -1898,6 +1883,23 @@
1898
  on, off
1899
  </th>
1900
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1901
  <tr class="color">
1902
  <th>
1903
  <?php $fifu['tab']['shortcode']() ?>
@@ -2565,8 +2567,8 @@
2565
  <li><a href="#tabsAutoSet-a"><?php $fifu['auto']['tab']['auto']() ?></a></li>
2566
  <li><a href="#tabsAutoSet-b"><?php $fifu['auto']['tab']['filters']() ?></a></li>
2567
  <li><a href="#tabsAutoSet-c"><?php $fifu['auto']['tab']['blocklist']() ?></a></li>
2568
- <li><a href="#tabsAutoSet-d"><?php $fifu['auto']['tab']['cpt']() ?></a></li>
2569
  <li><a href="#tabsAutoSet-e"><?php $fifu['auto']['tab']['source']() ?></a></li>
 
2570
  <br>
2571
  <br>
2572
  <div id="tabsAutoSet-a">
@@ -2650,7 +2652,8 @@
2650
  <th>
2651
  <input type="text"
2652
  style="width:800px"
2653
- value="">
 
2654
  <input type="submit"
2655
  value="<?php $fifu['button']['submit']() ?>" disabled>
2656
  </th>
@@ -2661,6 +2664,75 @@
2661
  </div>
2662
  </div>
2663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2664
  <div class="box">
2665
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2666
  <h2><?php $fifu['title']['isbn']() ?> </span></h2>
@@ -2800,75 +2872,6 @@
2800
  </div>
2801
  </div>
2802
 
2803
- <div class="box">
2804
- <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2805
- <h2><?php $fifu['title']['finder']() ?> </span></h2>
2806
- <div class="greybox" id="grad2">
2807
- <?php $fifu['finder']['desc']() ?>
2808
- </div>
2809
- <br>
2810
- <div id="tabsFinder">
2811
- <ul>
2812
- <li><a href="#tabsFinder-a"><?php $fifu['finder']['tab']['auto']() ?></a></li>
2813
- <li><a href="#tabsFinder-b"><?php $fifu['finder']['tab']['custom']() ?></a></li>
2814
- <li><a href="#tabsFinder-c"><?php $fifu['finder']['tab']['amazon']() ?></a></li>
2815
- <br>
2816
- <br>
2817
- <div id="tabsFinder-a">
2818
- <table style="text-align:left">
2819
- <tr>
2820
- <td>
2821
- <input
2822
- type="submit"
2823
- href="javascript:void(0)"
2824
- class="toggleoff"
2825
- value=""
2826
- style="display:block;border:none">
2827
- </td>
2828
- <td>
2829
- <?php $fifu['finder']['auto']() ?>
2830
- </td>
2831
- </tr>
2832
- <tr>
2833
- <td>
2834
- <input
2835
- type="submit"
2836
- href="javascript:void(0)"
2837
- class="toggleoff"
2838
- value=""
2839
- style="display:block;border:none">
2840
- </td>
2841
- <td>
2842
- <?php $fifu['finder']['video']() ?>
2843
- </td>
2844
- </tr>
2845
- </table>
2846
- </div>
2847
-
2848
- <div id="tabsFinder-b">
2849
- <?php $fifu['finder']['custom']['desc']() ?>
2850
- <br>
2851
- <br>
2852
- <table style="text-align:left">
2853
- <tr>
2854
- <th>
2855
- <input type="text"
2856
- style="width:800px"
2857
- value="">
2858
- <input type="submit"
2859
- value="<?php $fifu['button']['submit']() ?>" disabled>
2860
- </th>
2861
- </tr>
2862
- </table>
2863
- </div>
2864
-
2865
- <div id="tabsFinder-c">
2866
- For Amazon products the plugin will set the image gallery as well.
2867
- </div>
2868
- </ul>
2869
- </div>
2870
- </div>
2871
-
2872
  <div class="box">
2873
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2874
  <h2><?php $fifu['title']['tags']() ?> </span></h2>
@@ -3649,20 +3652,6 @@
3649
 
3650
  <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
3651
  </div>
3652
-
3653
- <div class="box">
3654
- <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3655
- <h2><?php $fifu['title']['validation']() ?></h2>
3656
- <div class="greybox" id="grad2">
3657
- <?php $fifu['validation']['desc']() ?>
3658
- </div>
3659
- <br>
3660
- <input
3661
- type="submit"
3662
- href="javascript:void(0)"
3663
- class="toggleoff"
3664
- value="" style="display:block;border:none">
3665
- </div>
3666
  </div>
3667
  <div id="tabs-j">
3668
  <div class="box">
@@ -3924,54 +3913,6 @@
3924
  </div>
3925
  </div>
3926
  <div id="tabs-l">
3927
- <div class="box">
3928
-
3929
- <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3930
- <h2><?php $fifu['title']['shortcode']() ?></h2>
3931
-
3932
- <div class="greybox" id="grad2">
3933
-
3934
- <?php $fifu['shortcode']['desc']() ?><br/><br/>
3935
- <div id="tabsShortcode">
3936
- <ul>
3937
- <li><a href="#tabs-0"><?php $fifu['shortcode']['tab']['featured']() ?></a></li>
3938
- <li><a href="#tabs-1"><?php $fifu['shortcode']['tab']['important']() ?></a></li>
3939
- <li><a href="#tabs-2"><?php $fifu['shortcode']['tab']['start']() ?></a></li>
3940
- </ul>
3941
- <div id="tabs-0">
3942
- <table style="text-align:left">
3943
- <tr>
3944
- <th>
3945
- <input
3946
- type="submit"
3947
- href="javascript:void(0)"
3948
- id="fifu_toggle_shortcode"
3949
- onclick="javascript:void(0)"
3950
- name="fifu_toggle_shortcode"
3951
- class="toggleoff"
3952
- value=""
3953
- style="display:block;border:none">
3954
- </th>
3955
- </tr>
3956
- </table>
3957
- </div>
3958
- <div id="tabs-1">
3959
- <?php $fifu['shortcode']['important']() ?>
3960
- </div>
3961
- <div id="tabs-2">
3962
- 1) <?php $fifu['shortcode']['start1']() ?> <?php $fifu['detail']['suggestion']() ?>: Shortcoder;<br>
3963
- 2) <?php $fifu['shortcode']['start2']() ?><br>
3964
- <input style="width:70%" value="&lt;iframe src=&quot;https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F&amp;show_text=false&amp;width=734&amp;height=411&amp;appId&quot; width=&quot;734&quot; height=&quot;411&quot; style=&quot;border:none;overflow:hidden&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; allow=&quot;encrypted-media&quot; allowFullScreen=&quot;true&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['facebook']() ?>)<br>
3965
- <input style="width:70%" value="&lt;iframe src=&quot;https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d99370.36297111909!2d-77.08461569891229!3d38.8937091395437!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89b7c6de5af6e45b%3A0xc2524522d4885d2a!2sWashington%2C%20D.C.%2C%20Distrito%20de%20Columbia%2C%20EUA!5e0!3m2!1spt-BR!2sbr!4v1599220409491!5m2!1spt-BR!2sbr&quot; width=&quot;600&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0;&quot; allowfullscreen=&quot;&quot; aria-hidden=&quot;false&quot; tabindex=&quot;0&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['map']() ?>)<br>
3966
- <input style="width:70%" value="&lt;iframe src=&quot;https://open.spotify.com/embed/artist/74cb3MG0x0BOnYNW1uXYnM&quot; width=&quot;300&quot; height=&quot;380&quot; frameborder=&quot;0&quot; allowtransparency=&quot;true&quot; allow=&quot;encrypted-media&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['spotify']() ?>)<br>
3967
- 3) <?php $fifu['shortcode']['start3']() ?><br>
3968
- 4) <?php $fifu['shortcode']['start4']() ?>
3969
- </div>
3970
- </div>
3971
-
3972
- </div>
3973
- </div>
3974
-
3975
  <div class="box">
3976
 
3977
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
@@ -3986,6 +3927,7 @@
3986
  <div id="tabsFifuShortcode">
3987
  <ul>
3988
  <li><a href="#tabs-1"><?php $fifu['shortcodes']['tab']['shortcodes']() ?></a></li>
 
3989
  </ul>
3990
  <div id="tabs-1">
3991
  <table style="text-align:left; width:100%">
@@ -4035,12 +3977,102 @@
4035
  </tr>
4036
  </table>
4037
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4038
  </div>
4039
 
4040
  </div>
4041
 
4042
  <br>
4043
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4044
  </div>
4045
 
4046
  <div id="tabs-c">
1046
  #id, .class, ...
1047
  </th>
1048
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  <tr class="color">
1050
  <th>
1051
  <?php $fifu['tab']['slider']() ?>
1883
  on, off
1884
  </th>
1885
  </tr>
1886
+ <tr class="color">
1887
+ <th>
1888
+ <?php $fifu['tab']['shortcode']() ?>
1889
+ </th>
1890
+ <th>
1891
+ <?php $fifu['title']['shortcodes']() ?>
1892
+ </th>
1893
+ <th>
1894
+ <?php $fifu['shortcodes']['tab']['edition']() ?>
1895
+ </th>
1896
+ <th>
1897
+ wp fifu shortform &lt;toggle&gt;
1898
+ </th>
1899
+ <th>
1900
+ on, off
1901
+ </th>
1902
+ </tr>
1903
  <tr class="color">
1904
  <th>
1905
  <?php $fifu['tab']['shortcode']() ?>
2567
  <li><a href="#tabsAutoSet-a"><?php $fifu['auto']['tab']['auto']() ?></a></li>
2568
  <li><a href="#tabsAutoSet-b"><?php $fifu['auto']['tab']['filters']() ?></a></li>
2569
  <li><a href="#tabsAutoSet-c"><?php $fifu['auto']['tab']['blocklist']() ?></a></li>
 
2570
  <li><a href="#tabsAutoSet-e"><?php $fifu['auto']['tab']['source']() ?></a></li>
2571
+ <li><a href="#tabsAutoSet-d"><?php $fifu['auto']['tab']['cpt']() ?></a></li>
2572
  <br>
2573
  <br>
2574
  <div id="tabsAutoSet-a">
2652
  <th>
2653
  <input type="text"
2654
  style="width:800px"
2655
+ value=""
2656
+ placeholder="unsplash.com,pexels.com,500px.com">
2657
  <input type="submit"
2658
  value="<?php $fifu['button']['submit']() ?>" disabled>
2659
  </th>
2664
  </div>
2665
  </div>
2666
 
2667
+ <div class="box">
2668
+ <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2669
+ <h2><?php $fifu['title']['finder']() ?> </span></h2>
2670
+ <div class="greybox" id="grad2">
2671
+ <?php $fifu['finder']['desc']() ?>
2672
+ </div>
2673
+ <br>
2674
+ <div id="tabsFinder">
2675
+ <ul>
2676
+ <li><a href="#tabsFinder-a"><?php $fifu['finder']['tab']['auto']() ?></a></li>
2677
+ <li><a href="#tabsFinder-b"><?php $fifu['finder']['tab']['custom']() ?></a></li>
2678
+ <li><a href="#tabsFinder-c"><?php $fifu['finder']['tab']['amazon']() ?></a></li>
2679
+ <br>
2680
+ <br>
2681
+ <div id="tabsFinder-a">
2682
+ <table style="text-align:left">
2683
+ <tr>
2684
+ <td>
2685
+ <input
2686
+ type="submit"
2687
+ href="javascript:void(0)"
2688
+ class="toggleoff"
2689
+ value=""
2690
+ style="display:block;border:none">
2691
+ </td>
2692
+ <td>
2693
+ <?php $fifu['finder']['auto']() ?>
2694
+ </td>
2695
+ </tr>
2696
+ <tr>
2697
+ <td>
2698
+ <input
2699
+ type="submit"
2700
+ href="javascript:void(0)"
2701
+ class="toggleoff"
2702
+ value=""
2703
+ style="display:block;border:none">
2704
+ </td>
2705
+ <td>
2706
+ <?php $fifu['finder']['video']() ?>
2707
+ </td>
2708
+ </tr>
2709
+ </table>
2710
+ </div>
2711
+
2712
+ <div id="tabsFinder-b">
2713
+ <?php $fifu['finder']['custom']['desc']() ?>
2714
+ <br>
2715
+ <br>
2716
+ <table style="text-align:left">
2717
+ <tr>
2718
+ <th>
2719
+ <input type="text"
2720
+ style="width:800px"
2721
+ value="">
2722
+ <input type="submit"
2723
+ value="<?php $fifu['button']['submit']() ?>" disabled>
2724
+ </th>
2725
+ </tr>
2726
+ </table>
2727
+ </div>
2728
+
2729
+ <div id="tabsFinder-c">
2730
+ For Amazon products the plugin will set the image gallery as well.
2731
+ </div>
2732
+ </ul>
2733
+ </div>
2734
+ </div>
2735
+
2736
  <div class="box">
2737
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2738
  <h2><?php $fifu['title']['isbn']() ?> </span></h2>
2872
  </div>
2873
  </div>
2874
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2875
  <div class="box">
2876
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
2877
  <h2><?php $fifu['title']['tags']() ?> </span></h2>
3652
 
3653
  <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
3654
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3655
  </div>
3656
  <div id="tabs-j">
3657
  <div class="box">
3913
  </div>
3914
  </div>
3915
  <div id="tabs-l">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3916
  <div class="box">
3917
 
3918
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3927
  <div id="tabsFifuShortcode">
3928
  <ul>
3929
  <li><a href="#tabs-1"><?php $fifu['shortcodes']['tab']['shortcodes']() ?></a></li>
3930
+ <li><a href="#tabs-2"><?php $fifu['shortcodes']['tab']['edition']() ?></a></li>
3931
  </ul>
3932
  <div id="tabs-1">
3933
  <table style="text-align:left; width:100%">
3977
  </tr>
3978
  </table>
3979
  </div>
3980
+ <div id="tabs-2">
3981
+ <table style="text-align:left; width:100%">
3982
+ <tr class="color">
3983
+ <th>
3984
+ <b><?php $fifu['shortcodes']['column']['shortcode']() ?></b>
3985
+ </th>
3986
+ <th>
3987
+ <b><?php $fifu['shortcodes']['column']['description']() ?></b>
3988
+ </th>
3989
+ <th>
3990
+ <b><?php $fifu['shortcodes']['column']['optional']() ?></b>
3991
+ </th>
3992
+ </tr>
3993
+ <tr class="color">
3994
+ <th>
3995
+ [fifu_form_image]
3996
+ </th>
3997
+ <th>
3998
+ <?php $fifu['shortcodes']['description']['form']['image']() ?>
3999
+ </th>
4000
+ <th>
4001
+ post_id
4002
+ </th>
4003
+ </tr>
4004
+ </table>
4005
+ <br>
4006
+ <table style="text-align:left">
4007
+ <tr>
4008
+ <th>
4009
+ <input
4010
+ type="submit"
4011
+ href="javascript:void(0)"
4012
+ id="fifu_toggle_shortform"
4013
+ onclick="javascript:void(0)"
4014
+ name="fifu_toggle_shortform"
4015
+ class="toggleoff"
4016
+ value=""
4017
+ style="display:block;border:none">
4018
+ </th>
4019
+ </tr>
4020
+ </table>
4021
+ </div>
4022
  </div>
4023
 
4024
  </div>
4025
 
4026
  <br>
4027
  </div>
4028
+
4029
+ <div class="box">
4030
+
4031
+ <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
4032
+ <h2><?php $fifu['title']['shortcode']() ?></h2>
4033
+
4034
+ <div class="greybox" id="grad2">
4035
+
4036
+ <?php $fifu['shortcode']['desc']() ?><br/><br/>
4037
+ <div id="tabsShortcode">
4038
+ <ul>
4039
+ <li><a href="#tabs-0"><?php $fifu['shortcode']['tab']['featured']() ?></a></li>
4040
+ <li><a href="#tabs-1"><?php $fifu['shortcode']['tab']['important']() ?></a></li>
4041
+ <li><a href="#tabs-2"><?php $fifu['shortcode']['tab']['start']() ?></a></li>
4042
+ </ul>
4043
+ <div id="tabs-0">
4044
+ <table style="text-align:left">
4045
+ <tr>
4046
+ <th>
4047
+ <input
4048
+ type="submit"
4049
+ href="javascript:void(0)"
4050
+ id="fifu_toggle_shortcode"
4051
+ onclick="javascript:void(0)"
4052
+ name="fifu_toggle_shortcode"
4053
+ class="toggleoff"
4054
+ value=""
4055
+ style="display:block;border:none">
4056
+ </th>
4057
+ </tr>
4058
+ </table>
4059
+ </div>
4060
+ <div id="tabs-1">
4061
+ <?php $fifu['shortcode']['important']() ?>
4062
+ </div>
4063
+ <div id="tabs-2">
4064
+ 1) <?php $fifu['shortcode']['start1']() ?> <?php $fifu['detail']['suggestion']() ?>: Shortcoder;<br>
4065
+ 2) <?php $fifu['shortcode']['start2']() ?><br>
4066
+ <input style="width:70%" value="&lt;iframe src=&quot;https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F&amp;show_text=false&amp;width=734&amp;height=411&amp;appId&quot; width=&quot;734&quot; height=&quot;411&quot; style=&quot;border:none;overflow:hidden&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; allow=&quot;encrypted-media&quot; allowFullScreen=&quot;true&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['facebook']() ?>)<br>
4067
+ <input style="width:70%" value="&lt;iframe src=&quot;https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d99370.36297111909!2d-77.08461569891229!3d38.8937091395437!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89b7c6de5af6e45b%3A0xc2524522d4885d2a!2sWashington%2C%20D.C.%2C%20Distrito%20de%20Columbia%2C%20EUA!5e0!3m2!1spt-BR!2sbr!4v1599220409491!5m2!1spt-BR!2sbr&quot; width=&quot;600&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0;&quot; allowfullscreen=&quot;&quot; aria-hidden=&quot;false&quot; tabindex=&quot;0&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['map']() ?>)<br>
4068
+ <input style="width:70%" value="&lt;iframe src=&quot;https://open.spotify.com/embed/artist/74cb3MG0x0BOnYNW1uXYnM&quot; width=&quot;300&quot; height=&quot;380&quot; frameborder=&quot;0&quot; allowtransparency=&quot;true&quot; allow=&quot;encrypted-media&quot;&gt;&lt;/iframe&gt;"></input> (<?php $fifu['shortcode']['spotify']() ?>)<br>
4069
+ 3) <?php $fifu['shortcode']['start3']() ?><br>
4070
+ 4) <?php $fifu['shortcode']['start4']() ?>
4071
+ </div>
4072
+ </div>
4073
+
4074
+ </div>
4075
+ </div>
4076
  </div>
4077
 
4078
  <div id="tabs-c">
admin/meta-box.php CHANGED
@@ -23,6 +23,10 @@ add_action('add_meta_boxes', 'remove_metaboxes', 50);
23
 
24
  function remove_metaboxes() {
25
  global $post;
 
 
 
 
26
  $url = get_post_meta($post->ID, 'fifu_image_url', true);
27
  if ($url) {
28
  if (!fifu_is_rank_math_seo_active())
23
 
24
  function remove_metaboxes() {
25
  global $post;
26
+
27
+ if (!$post)
28
+ return;
29
+
30
  $url = get_post_meta($post->ID, 'fifu_image_url', true);
31
  if ($url) {
32
  if (!fifu_is_rank_math_seo_active())
admin/strings.php CHANGED
@@ -261,9 +261,6 @@ function fifu_get_strings_settings() {
261
  $fifu['title']['hover'] = function () {
262
  _e("Hover Effects", FIFU_SLUG);
263
  };
264
- $fifu['title']['validation'] = function () {
265
- _e("Image Validation", FIFU_SLUG);
266
- };
267
  $fifu['title']['html'] = function () {
268
  _e("Auto set featured media from post content", FIFU_SLUG);
269
  };
@@ -661,7 +658,7 @@ function fifu_get_strings_settings() {
661
  _e("Auto set", FIFU_SLUG);
662
  };
663
  $fifu['auto']['tab']['filters'] = function () {
664
- _e("Filters", FIFU_SLUG);
665
  };
666
  $fifu['auto']['tab']['blocklist'] = function () {
667
  _e("Blocklist", FIFU_SLUG);
@@ -670,7 +667,7 @@ function fifu_get_strings_settings() {
670
  _e("Post types", FIFU_SLUG);
671
  };
672
  $fifu['auto']['tab']['source'] = function () {
673
- _e("Source", FIFU_SLUG);
674
  };
675
  $fifu['auto']['filter']['width'] = function () {
676
  _e("minimum width (px)", FIFU_SLUG);
@@ -688,7 +685,7 @@ function fifu_get_strings_settings() {
688
  _e("Post types found on your site: ", FIFU_SLUG);
689
  };
690
  $fifu['auto']['source']['desc'] = function () {
691
- _e("Here you can limit the search to a single site, such as \"unsplash.com\".", FIFU_SLUG);
692
  };
693
 
694
  // isbn
@@ -866,11 +863,6 @@ function fifu_get_strings_settings() {
866
  _e("Zoom Out", FIFU_SLUG);
867
  };
868
 
869
- // validation
870
- $fifu['validation']['desc'] = function () {
871
- _e("It checks images addresses and, when an image is not found, its URL is not saved. However, each validation can take a few seconds.", FIFU_SLUG);
872
- };
873
-
874
  // configuration
875
  $fifu['html']['desc'] = function () {
876
  _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button. Images URLs must be in \"img\" tags.", FIFU_SLUG);
@@ -1128,7 +1120,7 @@ function fifu_get_strings_settings() {
1128
 
1129
  // shortcode
1130
  $fifu['shortcode']['desc'] = function () {
1131
- _e("This feature adds a field where you can input a shortcode instead of an URL. This way you could have a featured map, featured music etc.", FIFU_SLUG);
1132
  };
1133
  $fifu['shortcode']['important'] = function () {
1134
  _e("FIFU has no control over your shortcode content or how your theme or plugins (or even other FIFU features) will deal with that. So normally there are style issues, except if you use a simple theme, such as Twenty Twenty. Featured Shortcode shouldn't work with page builders, lightboxes, sliders and ajax calls (the shortcode conversion happens on backend). If your theme use background-images, this feature won't work as well.", FIFU_SLUG);
@@ -1169,7 +1161,10 @@ function fifu_get_strings_settings() {
1169
  _e("Add FIFU elements anywhere with a shortcode.", FIFU_SLUG);
1170
  };
1171
  $fifu['shortcodes']['tab']['shortcodes'] = function () {
1172
- _e("Shortcodes", FIFU_SLUG);
 
 
 
1173
  };
1174
  $fifu['shortcodes']['column']['shortcode'] = function () {
1175
  _e("Shortcode", FIFU_SLUG);
@@ -1180,14 +1175,20 @@ function fifu_get_strings_settings() {
1180
  $fifu['shortcodes']['column']['optional'] = function () {
1181
  _e("Optional parameters", FIFU_SLUG);
1182
  };
 
 
 
1183
  $fifu['shortcodes']['description']['fifu'] = function () {
1184
- _e("Displays the featured image/video of the current post.", FIFU_SLUG);
1185
  };
1186
  $fifu['shortcodes']['description']['slider'] = function () {
1187
- _e("Displays the featured slider of the current post.", FIFU_SLUG);
1188
  };
1189
  $fifu['shortcodes']['description']['gallery'] = function () {
1190
- _e("Displays the product gallery of the current product.", FIFU_SLUG);
 
 
 
1191
  };
1192
 
1193
  // slider
261
  $fifu['title']['hover'] = function () {
262
  _e("Hover Effects", FIFU_SLUG);
263
  };
 
 
 
264
  $fifu['title']['html'] = function () {
265
  _e("Auto set featured media from post content", FIFU_SLUG);
266
  };
658
  _e("Auto set", FIFU_SLUG);
659
  };
660
  $fifu['auto']['tab']['filters'] = function () {
661
+ _e("Size filter", FIFU_SLUG);
662
  };
663
  $fifu['auto']['tab']['blocklist'] = function () {
664
  _e("Blocklist", FIFU_SLUG);
667
  _e("Post types", FIFU_SLUG);
668
  };
669
  $fifu['auto']['tab']['source'] = function () {
670
+ _e("Source filter", FIFU_SLUG);
671
  };
672
  $fifu['auto']['filter']['width'] = function () {
673
  _e("minimum width (px)", FIFU_SLUG);
685
  _e("Post types found on your site: ", FIFU_SLUG);
686
  };
687
  $fifu['auto']['source']['desc'] = function () {
688
+ _e("Here you can limit the search to one or more sites.", FIFU_SLUG);
689
  };
690
 
691
  // isbn
863
  _e("Zoom Out", FIFU_SLUG);
864
  };
865
 
 
 
 
 
 
866
  // configuration
867
  $fifu['html']['desc'] = function () {
868
  _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button. Images URLs must be in \"img\" tags.", FIFU_SLUG);
1120
 
1121
  // shortcode
1122
  $fifu['shortcode']['desc'] = function () {
1123
+ _e("This feature adds a field where you can input a shortcode instead of a URL. This way you could have a featured map, featured music etc.", FIFU_SLUG);
1124
  };
1125
  $fifu['shortcode']['important'] = function () {
1126
  _e("FIFU has no control over your shortcode content or how your theme or plugins (or even other FIFU features) will deal with that. So normally there are style issues, except if you use a simple theme, such as Twenty Twenty. Featured Shortcode shouldn't work with page builders, lightboxes, sliders and ajax calls (the shortcode conversion happens on backend). If your theme use background-images, this feature won't work as well.", FIFU_SLUG);
1161
  _e("Add FIFU elements anywhere with a shortcode.", FIFU_SLUG);
1162
  };
1163
  $fifu['shortcodes']['tab']['shortcodes'] = function () {
1164
+ _e("Display media", FIFU_SLUG);
1165
+ };
1166
+ $fifu['shortcodes']['tab']['edition'] = function () {
1167
+ _e("Edition forms", FIFU_SLUG);
1168
  };
1169
  $fifu['shortcodes']['column']['shortcode'] = function () {
1170
  _e("Shortcode", FIFU_SLUG);
1175
  $fifu['shortcodes']['column']['optional'] = function () {
1176
  _e("Optional parameters", FIFU_SLUG);
1177
  };
1178
+ $fifu['shortcodes']['column']['required'] = function () {
1179
+ _e("Required parameters", FIFU_SLUG);
1180
+ };
1181
  $fifu['shortcodes']['description']['fifu'] = function () {
1182
+ _e("Displays the featured image/video", FIFU_SLUG);
1183
  };
1184
  $fifu['shortcodes']['description']['slider'] = function () {
1185
+ _e("Displays the featured slider", FIFU_SLUG);
1186
  };
1187
  $fifu['shortcodes']['description']['gallery'] = function () {
1188
+ _e("Displays the product gallery", FIFU_SLUG);
1189
+ };
1190
+ $fifu['shortcodes']['description']['form']['image'] = function () {
1191
+ _e("Input text field for featured image URL", FIFU_SLUG);
1192
  };
1193
 
1194
  // slider
featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video/audio as featured image/video/audio of a post or WooCommerce product.
7
- * Version: 4.1.4
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video/audio as featured image/video/audio of a post or WooCommerce product.
7
+ * Version: 4.1.5
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
includes/html/js/lazySizesConfig.js CHANGED
@@ -123,7 +123,11 @@ function fifu_add_srcset(selector) {
123
  for (j = 0; j < sizes.length; j++) {
124
  ssl = src.includes('ssl=1') ? '&ssl=1' : '';
125
 
126
- resize = src.match(/\?resize=[0-9,]+/)[0].split('=')[1].split(',');
 
 
 
 
127
  resizeW = Number(resize[0]);
128
  resizeH = Number(resize[1]);
129
  newResizeW = sizes[j];
123
  for (j = 0; j < sizes.length; j++) {
124
  ssl = src.includes('ssl=1') ? '&ssl=1' : '';
125
 
126
+ match = src.match(/\?resize=[0-9,]+/);
127
+ if (!match)
128
+ continue;
129
+
130
+ resize = match[0].split('=')[1].split(',');
131
  resizeW = Number(resize[0]);
132
  resizeH = Number(resize[1]);
133
  newResizeW = sizes[j];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 6.0.2
7
- Stable tag: 4.1.4
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -34,7 +34,6 @@ Use an external image as featured image of your post, page or custom post type.
34
  * **[PRO]** Same height
35
  * **[PRO]** Hover effects
36
  * **[PRO]** Replace not found image
37
- * **[PRO]** Image validation
38
  * **[PRO]** Page redirection
39
 
40
  #### AUTOMATIC FEATURED MEDIA
@@ -261,20 +260,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
261
 
262
  == Changelog ==
263
 
 
 
 
264
  = 4.1.4 =
265
  * Enhancement: Status > Copy to Clipboard; fix: conflict with Web Stories plugin; deprecated: Product Gallery > Number of Fields.
266
 
267
  = 4.1.3 =
268
  * New option: Fast Buy > custom field; enhancement: WP All Import add-on (documentation added); fix: Lazy Load (conflict with Slider Revolution plugin); fix: conflict with Web Stories plugin; deprecated: Featured Slider > number of fields; deprecated: Unsplash Image Sizes.
269
 
270
- = 4.1.2 =
271
- * Fix: CDN + Optimized Thumbnails (conflict with Facebook images); fix: Lazy Load (conflict with Image and Video Gallery from Google Drive plugin).
272
-
273
  = others =
274
  * [more](https://fifu.app/changelog)
275
 
276
 
277
  == Upgrade Notice ==
278
 
279
- = 4.1.4 =
280
- * Enhancement: Status > Copy to Clipboard; fix: conflict with Web Stories plugin; deprecated: Product Gallery > Number of Fields.
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 6.0.2
7
+ Stable tag: 4.1.5
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
34
  * **[PRO]** Same height
35
  * **[PRO]** Hover effects
36
  * **[PRO]** Replace not found image
 
37
  * **[PRO]** Page redirection
38
 
39
  #### AUTOMATIC FEATURED MEDIA
260
 
261
  == Changelog ==
262
 
263
+ = 4.1.5 =
264
+ * New: FIFU Shortcodes > Edition forms; enhancement: Auto set featured image using post title and search engine (can limit the search to a list of sites); deprecated: Image Validation; fix: Lazy Load (JS error).
265
+
266
  = 4.1.4 =
267
  * Enhancement: Status > Copy to Clipboard; fix: conflict with Web Stories plugin; deprecated: Product Gallery > Number of Fields.
268
 
269
  = 4.1.3 =
270
  * New option: Fast Buy > custom field; enhancement: WP All Import add-on (documentation added); fix: Lazy Load (conflict with Slider Revolution plugin); fix: conflict with Web Stories plugin; deprecated: Featured Slider > number of fields; deprecated: Unsplash Image Sizes.
271
 
 
 
 
272
  = others =
273
  * [more](https://fifu.app/changelog)
274
 
275
 
276
  == Upgrade Notice ==
277
 
278
+ = 4.1.5 =
279
+ * New: FIFU Shortcodes > Edition forms; enhancement: Auto set featured image using post title and search engine (can limit the search to a list of sites); deprecated: Image Validation; fix: Lazy Load (JS error).