Featured Image From URL - Version 2.6.3

Version Description

  • New feature: Auto Set First Image > Remove Query Strings; Integration: Toolset Forms plugin; New: WordPress Plugins tab.
Download this release

Release Info

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

Code changes from version 2.6.2 to 2.6.3

admin/html/menu.html CHANGED
@@ -20,6 +20,7 @@
20
  <li><a href="#tabs-c">Video</a></li>
21
  <li><a href="#tabs-o">WooCommerce</a></li>
22
  <li><a href="#tabs-p">WP All Import</a></li>
 
23
  <li><a href="#tabs-a">Premium version <b style="border-radius:2px;padding:3px;background-color:#32373c;color:white">20%OFF</b></a></li>
24
  <br>
25
  <br>
@@ -319,6 +320,33 @@
319
  <th>
320
  hide the first image/video from content
321
  </th>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  </tr>
323
  <tr>
324
  <th>
@@ -1495,203 +1523,6 @@
1495
  </form>
1496
  </div>
1497
 
1498
- <div class="box">
1499
- <h2>Video Sizes</h2>
1500
- <div class="greybox" id="grad2">
1501
- <b>Premium feature</b><br><br>
1502
- The default value applied to the videos is "100%" and it usually works fine. However, here you can define the max size of the featured videos at different layouts and the ratio for those videos as well.<br><br>
1503
- <table style="text-align:left">
1504
- <tr>
1505
- <th>
1506
- Ratio:
1507
- </th>
1508
- <th>
1509
- <input id="fifu_input_video_width_rtio"
1510
- name="fifu_input_video_width_rtio"
1511
- size="7">
1512
- </th>
1513
- <th>
1514
- <input id="fifu_input_video_height_rtio"
1515
- name="fifu_input_video_height_rtio"
1516
- size="7">
1517
- </th>
1518
- <th>
1519
- <div style="font-style: italic;font-weight:normal;">e.g.: 1, 2, 3...</div>
1520
- </th>
1521
- </tr>
1522
- <tr>
1523
- <th>
1524
- Margin Bottom:
1525
- </th>
1526
- <th>
1527
- <input id="fifu_input_video_margin_bottom"
1528
- name="fifu_input_video_margin_bottom"
1529
- size="7">
1530
- </th>
1531
- <th>
1532
- <div style="font-style: italic;font-weight:normal;">e.g.: 10px, 1cm...</div>
1533
- </th>
1534
- </tr>
1535
- <tr>
1536
- <th>
1537
- Vertical Margin:
1538
- </th>
1539
- <th>
1540
- <input id="fifu_input_video_vertical_margin"
1541
- name="fifu_input_video_vertical_margin"
1542
- size="7">
1543
- </th>
1544
- <th>
1545
- <div style="font-style: italic;font-weight:normal;">e.g.: 10px, 1cm...</div>
1546
- </th>
1547
- </tr>
1548
- <tr>
1549
- <th>
1550
- Archive:
1551
- </th>
1552
- <th>
1553
- <input id="fifu_input_video_width_arch"
1554
- name="fifu_input_video_width_arch"
1555
- placeholder="max-width"
1556
- size="7">
1557
- </th>
1558
- <th>
1559
- <input id="fifu_input_video_height_arch"
1560
- name="fifu_input_video_height_arch"
1561
- placeholder="max-height"
1562
- size="7">
1563
- </th>
1564
- <th>
1565
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1566
- </th>
1567
- </tr>
1568
- <tr>
1569
- <th>
1570
- Category:
1571
- </th>
1572
- <th>
1573
- <input id="fifu_input_video_width_ctgr"
1574
- name="fifu_input_video_width_ctgr"
1575
- placeholder="max-width"
1576
- size="7">
1577
- </th>
1578
- <th>
1579
- <input id="fifu_input_video_height_ctgr"
1580
- name="fifu_input_video_height_ctgr"
1581
- placeholder="max-height"
1582
- size="7">
1583
- </th>
1584
- <th>
1585
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1586
- </th>
1587
- </tr>
1588
- <tr>
1589
- <th>
1590
- Home:
1591
- </th>
1592
- <th>
1593
- <input id="fifu_input_video_width_home"
1594
- name="fifu_input_video_width_home"
1595
- placeholder="max-width"
1596
- size="7">
1597
- </th>
1598
- <th>
1599
- <input id="fifu_input_video_height_home"
1600
- name="fifu_input_video_height_home"
1601
- placeholder="max-height"
1602
- size="7">
1603
- </th>
1604
- <th>
1605
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1606
- </th>
1607
- </tr>
1608
- <tr>
1609
- <th>
1610
- Page:
1611
- </th>
1612
- <th>
1613
- <input id="fifu_input_video_width_page"
1614
- name="fifu_input_video_width_page"
1615
- placeholder="max-width"
1616
- size="7">
1617
- </th>
1618
- <th>
1619
- <input id="fifu_input_video_height_page"
1620
- name="fifu_input_video_height_page"
1621
- placeholder="max-height"
1622
- size="7">
1623
- </th>
1624
- <th>
1625
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1626
- </th>
1627
- </tr>
1628
- <tr>
1629
- <th>
1630
- Post:
1631
- </th>
1632
- <th>
1633
- <input id="fifu_input_video_width_post"
1634
- name="fifu_input_video_width_post"
1635
- placeholder="max-width"
1636
- size="7">
1637
- </th>
1638
- <th>
1639
- <input id="fifu_input_video_height_post"
1640
- name="fifu_input_video_height_post"
1641
- placeholder="max-height"
1642
- size="7">
1643
- </th>
1644
- <th>
1645
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1646
- </th>
1647
- </tr>
1648
- <tr>
1649
- <th>
1650
- Product:
1651
- </th>
1652
- <th>
1653
- <input id="fifu_input_video_width_prod"
1654
- name="fifu_input_video_width_prod"
1655
- placeholder="max-width"
1656
- size="7">
1657
- </th>
1658
- <th>
1659
- <input id="fifu_input_video_height_prod"
1660
- name="fifu_input_video_height_prod"
1661
- placeholder="max-height"
1662
- size="7">
1663
- </th>
1664
- <th>
1665
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1666
- </th>
1667
- </tr>
1668
- <tr>
1669
- <th>
1670
- Shop:
1671
- </th>
1672
- <th>
1673
- <input id="fifu_input_video_width_shop"
1674
- name="fifu_input_video_width_shop"
1675
- placeholder="max-width"
1676
- size="7">
1677
- </th>
1678
- <th>
1679
- <input id="fifu_input_video_height_shop"
1680
- name="fifu_input_video_height_shop"
1681
- placeholder="max-height"
1682
- size="7">
1683
- </th>
1684
- <th>
1685
- <div style="font-style: italic;font-weight:normal;">e.g.: 300px, 8cm...</div>
1686
- </th>
1687
- </tr>
1688
- </table>
1689
- <br>
1690
- </div>
1691
- <br>
1692
- <input type="submit" value="Submit" disabled>
1693
- </div>
1694
-
1695
  <div class="box">
1696
  <h2>Minimum Width</h2>
1697
  <div class="greybox" id="grad2">
@@ -1704,7 +1535,7 @@
1704
  </div>
1705
 
1706
  <div class="box">
1707
- <h2>Video Auto Play (mouseover)</h2>
1708
  <div class="greybox" id="grad2">
1709
  <b>Premium feature</b><br><br>
1710
  This option allows to play a video on "mouseover" and pause it on "mouseout".
@@ -2812,6 +2643,28 @@
2812
  </div>
2813
  </div>
2814
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2815
  </ul>
2816
  </div>
2817
 
@@ -2871,6 +2724,7 @@ fifu_original:<?php echo $enable_original ?>;
2871
  fifu_ovw_first:<?php echo $enable_ovw_first ?>;
2872
  fifu_pop_first:<?php echo $enable_pop_first ?>;
2873
  fifu_priority:<?php echo $enable_priority ?>;
 
2874
  fifu_save_dimensions:<?php echo $enable_save_dimensions ?>;
2875
  fifu_save_dimensions_all:<?php echo $enable_save_dimensions_all ?>;
2876
  fifu_save_dimensions_redirect:<?php echo $enable_save_dimensions_redirect ?>;
20
  <li><a href="#tabs-c">Video</a></li>
21
  <li><a href="#tabs-o">WooCommerce</a></li>
22
  <li><a href="#tabs-p">WP All Import</a></li>
23
+ <li><a href="#tabs-t">WordPress Plugins</a></li>
24
  <li><a href="#tabs-a">Premium version <b style="border-radius:2px;padding:3px;background-color:#32373c;color:white">20%OFF</b></a></li>
25
  <br>
26
  <br>
320
  <th>
321
  hide the first image/video from content
322
  </th>
323
+ </tr>
324
+ <tr>
325
+ <th>
326
+ <form
327
+ id="fifu_form_query_strings"
328
+ action="javascript:void(0)"
329
+ method="post">
330
+ <input
331
+ type="image"
332
+ href="javascript:void(0)"
333
+ id="fifu_toggle_query_strings"
334
+ onclick="invert('query_strings')"
335
+ name="fifu_toggle_query_strings"
336
+ class="<?php echo $enable_query_strings; ?>"
337
+ value=""
338
+ style="display:block">
339
+
340
+ <input
341
+ type="hidden"
342
+ id="fifu_input_query_strings"
343
+ name="fifu_input_query_strings"
344
+ value="" >
345
+ </form>
346
+ </th>
347
+ <th>
348
+ remove query strings (whatever follows the question mark sign "?")
349
+ </th>
350
  </tr>
351
  <tr>
352
  <th>
1523
  </form>
1524
  </div>
1525
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1526
  <div class="box">
1527
  <h2>Minimum Width</h2>
1528
  <div class="greybox" id="grad2">
1535
  </div>
1536
 
1537
  <div class="box">
1538
+ <h2>Video Autoplay (mouseover)</h2>
1539
  <div class="greybox" id="grad2">
1540
  <b>Premium feature</b><br><br>
1541
  This option allows to play a video on "mouseover" and pause it on "mouseout".
2643
  </div>
2644
  </div>
2645
  </div>
2646
+ <div id="tabs-t">
2647
+ <div class="box">
2648
+ <h2>WordPress Plugins</h2>
2649
+ <div class="greybox">
2650
+ From <b>September 2019</b>, always you guys report an issue between FIFU and another plugin, a comment about that will be posted here. Stay tuned!
2651
+ </div>
2652
+ </div>
2653
+ <div class="box">
2654
+ <table>
2655
+ <tr>
2656
+ <td style="border-bottom:none">2019-09-13</td>
2657
+ <td style="border-bottom:none"><h4>Toolset Forms</h4></td>
2658
+ </tr>
2659
+ </table>
2660
+ <div class="greybox" style="position: relative; top: -10px">
2661
+ Adding "Featured Image from URL" field to an external post form:<br>
2662
+ 1) add a new "Group";<br>
2663
+ 2) add a new "Field";<br>
2664
+ 3) set "fifu_image_url" for "Field slug".<br>
2665
+ </div>
2666
+ </div>
2667
+ </div>
2668
  </ul>
2669
  </div>
2670
 
2724
  fifu_ovw_first:<?php echo $enable_ovw_first ?>;
2725
  fifu_pop_first:<?php echo $enable_pop_first ?>;
2726
  fifu_priority:<?php echo $enable_priority ?>;
2727
+ fifu_query_strings:<?php echo $enable_query_strings ?>;
2728
  fifu_save_dimensions:<?php echo $enable_save_dimensions ?>;
2729
  fifu_save_dimensions_all:<?php echo $enable_save_dimensions_all ?>;
2730
  fifu_save_dimensions_redirect:<?php echo $enable_save_dimensions_redirect ?>;
admin/html/meta-box.html CHANGED
@@ -61,9 +61,9 @@
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Tip: if you use FIFU Social Tags and have <b>Yoast SEO</b> installed, don't set a default image for Facebook, because Yoast will use the default image even when you have an external one. </p>
65
- <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: "Save Image Dimensions > Follow Redirects" option</p-->
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
68
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: "Premium > Donate" replaced by regular PayPal payment button</p-->
69
  </div>
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New feature: "Auto Set First Image > Remove Query Strings"</p>
65
+ <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: tips about the integration between FIFU and other plugins will be posted <a href='admin.php?page=featured-image-from-url#tabs-t'>here</a></p>
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
68
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: "Premium > Donate" replaced by regular PayPal payment button</p-->
69
  </div>
admin/menu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_original', 'fifu_lazy', 'fifu_media_library', 'fifu_content', 'fifu_content_page', 'fifu_enable_default_url', 'fifu_fake', 'fifu_fake2', 'fifu_css', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_class', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_column_height', 'fifu_priority', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_data_generation', 'fifu_data_clean', 'fifu_image_height_shop', 'fifu_image_width_shop', 'fifu_image_height_prod', 'fifu_image_width_prod', 'fifu_image_height_cart', 'fifu_image_width_cart', 'fifu_image_height_ctgr', 'fifu_image_width_ctgr', 'fifu_image_height_arch', 'fifu_image_width_arch', 'fifu_image_height_home', 'fifu_image_width_home', 'fifu_image_height_page', 'fifu_image_width_page', 'fifu_image_height_post', 'fifu_image_width_post', 'fifu_save_dimensions', 'fifu_save_dimensions_redirect', 'fifu_save_dimensions_all', 'fifu_clean_dimensions_all')));
4
 
5
  add_action('admin_menu', 'fifu_insert_menu');
6
 
@@ -44,6 +44,7 @@ function fifu_get_menu_html() {
44
  $enable_get_first = get_option('fifu_get_first');
45
  $enable_pop_first = get_option('fifu_pop_first');
46
  $enable_ovw_first = get_option('fifu_ovw_first');
 
47
  $column_height = get_option('fifu_column_height');
48
  $enable_priority = get_option('fifu_priority');
49
  $enable_grid_category = get_option('fifu_grid_category');
@@ -144,6 +145,7 @@ function fifu_update_menu_options() {
144
  fifu_update_option('fifu_input_get_first', 'fifu_get_first');
145
  fifu_update_option('fifu_input_pop_first', 'fifu_pop_first');
146
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
 
147
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
148
  fifu_update_option('fifu_input_priority', 'fifu_priority');
149
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
1
  <?php
2
 
3
+ define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_original', 'fifu_lazy', 'fifu_media_library', 'fifu_content', 'fifu_content_page', 'fifu_enable_default_url', 'fifu_fake', 'fifu_fake2', 'fifu_css', 'fifu_default_url', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_class', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_column_height', 'fifu_priority', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_data_generation', 'fifu_data_clean', 'fifu_image_height_shop', 'fifu_image_width_shop', 'fifu_image_height_prod', 'fifu_image_width_prod', 'fifu_image_height_cart', 'fifu_image_width_cart', 'fifu_image_height_ctgr', 'fifu_image_width_ctgr', 'fifu_image_height_arch', 'fifu_image_width_arch', 'fifu_image_height_home', 'fifu_image_width_home', 'fifu_image_height_page', 'fifu_image_width_page', 'fifu_image_height_post', 'fifu_image_width_post', 'fifu_save_dimensions', 'fifu_save_dimensions_redirect', 'fifu_save_dimensions_all', 'fifu_clean_dimensions_all')));
4
 
5
  add_action('admin_menu', 'fifu_insert_menu');
6
 
44
  $enable_get_first = get_option('fifu_get_first');
45
  $enable_pop_first = get_option('fifu_pop_first');
46
  $enable_ovw_first = get_option('fifu_ovw_first');
47
+ $enable_query_strings = get_option('fifu_query_strings');
48
  $column_height = get_option('fifu_column_height');
49
  $enable_priority = get_option('fifu_priority');
50
  $enable_grid_category = get_option('fifu_grid_category');
145
  fifu_update_option('fifu_input_get_first', 'fifu_get_first');
146
  fifu_update_option('fifu_input_pop_first', 'fifu_pop_first');
147
  fifu_update_option('fifu_input_ovw_first', 'fifu_ovw_first');
148
+ fifu_update_option('fifu_input_query_strings', 'fifu_query_strings');
149
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
150
  fifu_update_option('fifu_input_priority', 'fifu_priority');
151
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
admin/meta-box.php CHANGED
@@ -90,12 +90,19 @@ function fifu_save_properties($post_id) {
90
  }
91
 
92
  /* image url from wcfm */
93
- if (!$url && fifu_is_wcfm_activate() && isset($_POST['wcfm_products_manage_form'])) {
94
  $url = esc_url_raw(fifu_get_wcfm_url($_POST['wcfm_products_manage_form']));
95
  if ($url)
96
  fifu_update_or_delete($post_id, 'fifu_image_url', $url);
97
  }
98
 
 
 
 
 
 
 
 
99
  /* alt */
100
  if (isset($_POST['fifu_input_alt'])) {
101
  $alt = wp_strip_all_tags($_POST['fifu_input_alt']);
@@ -144,9 +151,9 @@ function fifu_woocommerce_import($object) {
144
  fifu_update_fake_attach_id($post_id);
145
  }
146
 
147
- /* wcfm */
148
 
149
- function fifu_is_wcfm_activate() {
150
  return is_plugin_active('wc-frontend-manager/wc_frontend_manager.php');
151
  }
152
 
@@ -155,3 +162,9 @@ function fifu_get_wcfm_url($content) {
155
  return $url ? urldecode(explode('&', $url)[0]) : null;
156
  }
157
 
 
 
 
 
 
 
90
  }
91
 
92
  /* image url from wcfm */
93
+ if (!$url && fifu_is_wcfm_active() && isset($_POST['wcfm_products_manage_form'])) {
94
  $url = esc_url_raw(fifu_get_wcfm_url($_POST['wcfm_products_manage_form']));
95
  if ($url)
96
  fifu_update_or_delete($post_id, 'fifu_image_url', $url);
97
  }
98
 
99
+ /* image url from toolset forms */
100
+ if (fifu_is_toolset_active() && isset($_POST['wpcf-fifu_image_url'])) {
101
+ $url = esc_url_raw($_POST['wpcf-fifu_image_url']);
102
+ if ($url)
103
+ fifu_update_or_delete($post_id, 'fifu_image_url', $url);
104
+ }
105
+
106
  /* alt */
107
  if (isset($_POST['fifu_input_alt'])) {
108
  $alt = wp_strip_all_tags($_POST['fifu_input_alt']);
151
  fifu_update_fake_attach_id($post_id);
152
  }
153
 
154
+ /* plugin: wcfm */
155
 
156
+ function fifu_is_wcfm_active() {
157
  return is_plugin_active('wc-frontend-manager/wc_frontend_manager.php');
158
  }
159
 
162
  return $url ? urldecode(explode('&', $url)[0]) : null;
163
  }
164
 
165
+ /* plugin: toolset forms */
166
+
167
+ function fifu_is_toolset_active() {
168
+ return is_plugin_active('cred-frontend-editor/plugin.php');
169
+ }
170
+
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.6.2
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.6.3
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/external-post.php CHANGED
@@ -97,6 +97,10 @@ function fifu_first_url_in_content($post_id) {
97
  $aux2 = explode("'", $aux1[1]);
98
  }
99
 
 
 
 
 
100
  return $tag ? $aux2[0] : null;
101
  }
102
 
97
  $aux2 = explode("'", $aux1[1]);
98
  }
99
 
100
+ //query strings
101
+ if (fifu_is_on('fifu_query_strings'))
102
+ return $tag ? preg_replace('/\?.*/', '', $aux2[0]) : null;
103
+
104
  return $tag ? $aux2[0] : null;
105
  }
106
 
includes/html/social.html CHANGED
@@ -1,8 +1,8 @@
1
- <meta property="og:title" content="<?php echo $title ?>" />
2
- <meta property="og:description" content="<?php echo $description ?>" />
3
- <meta property="og:image" content="<?php echo $url ?>" />
4
 
5
- <meta name="twitter:card" content="summary_large_image" />
6
- <meta name="twitter:title" content="<?php echo $title ?>" />
7
- <meta name="twitter:description" content="<?php echo $description ?>" />
8
- <meta name="twitter:image" content="<?php echo $url ?>" />
1
+ <meta property="og:title" content='<?php echo $title ?>' />
2
+ <meta property="og:description" content='<?php echo $description ?>' />
3
+ <meta property="og:image" content='<?php echo $url ?>' />
4
 
5
+ <meta name="twitter:card" content='summary_large_image' />
6
+ <meta name="twitter:title" content='<?php echo $title ?>' />
7
+ <meta name="twitter:description" content='<?php echo $description ?>' />
8
+ <meta name="twitter:image" content='<?php echo $url ?>' />
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, priority, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm
5
  Requires at least: 4.0
6
- Tested up to: 5.2.2
7
- Stable tag: 5.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.6.2 =
163
  * Notice: about conflict with Facebook social tags from Yoast SEO plugin.
164
 
@@ -615,6 +618,9 @@ was removed. To finish, a Premium version is now been presented.
615
 
616
  == Upgrade Notice ==
617
 
 
 
 
618
  = 2.6.2 =
619
  * Notice: about conflict with Facebook social tags from Yoast SEO plugin.
620
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, priority, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm
5
  Requires at least: 4.0
6
+ Tested up to: 5.2.3
7
+ Stable tag: 5.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.6.3 =
163
+ * New feature: Auto Set First Image > Remove Query Strings; Integration: Toolset Forms plugin; New: WordPress Plugins tab.
164
+
165
  = 2.6.2 =
166
  * Notice: about conflict with Facebook social tags from Yoast SEO plugin.
167
 
618
 
619
  == Upgrade Notice ==
620
 
621
+ = 2.6.3 =
622
+ * New feature: Auto Set First Image > Remove Query Strings; Integration: Toolset Forms plugin; New: WordPress Plugins tab.
623
+
624
  = 2.6.2 =
625
  * Notice: about conflict with Facebook social tags from Yoast SEO plugin.
626