Version Description
- Improvement: compatible with WooCommerce Import feature now.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.3.1
- admin/html/js/menu.js +1 -0
- admin/html/menu.html +131 -9
- admin/html/txt/csv-woo.txt +3 -0
- admin/html/txt/csv.txt +3 -3
- admin/meta-box.php +10 -1
- featured-image-from-url.php +1 -1
- readme.txt +8 -2
admin/html/js/menu.js
CHANGED
@@ -37,6 +37,7 @@ jQuery(function () {
|
|
37 |
jQuery("#fifu_input_slider_pause").spinner({min: 0});
|
38 |
jQuery("#tabsApi").tabs();
|
39 |
jQuery("#tabsPremium").tabs();
|
|
|
40 |
jQuery("#tabsWpAllImport").tabs();
|
41 |
});
|
42 |
|
37 |
jQuery("#fifu_input_slider_pause").spinner({min: 0});
|
38 |
jQuery("#tabsApi").tabs();
|
39 |
jQuery("#tabsPremium").tabs();
|
40 |
+
jQuery("#tabsWooImport").tabs();
|
41 |
jQuery("#tabsWpAllImport").tabs();
|
42 |
});
|
43 |
|
admin/html/menu.html
CHANGED
@@ -1869,16 +1869,15 @@
|
|
1869 |
</tr>
|
1870 |
</table>
|
1871 |
</div>
|
1872 |
-
|
1873 |
-
<div id="tabs-p">
|
1874 |
<div class="box">
|
1875 |
-
<h2>
|
1876 |
<div class="greybox">
|
1877 |
-
You can use Featured Image from URL with
|
1878 |
<br/>
|
1879 |
<br/>
|
1880 |
|
1881 |
-
<div id="
|
1882 |
<ul>
|
1883 |
<li><a href="#tabs-3">Importing products...</a></li>
|
1884 |
<li><a href="#tabs-1">Custom Fields</a></li>
|
@@ -1940,6 +1939,14 @@
|
|
1940 |
fifu_image_alt
|
1941 |
</th>
|
1942 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1943 |
<tr>
|
1944 |
<th>
|
1945 |
Image + Image Gallery (URLs delimited by "|")
|
@@ -1950,10 +1957,109 @@
|
|
1950 |
</tr>
|
1951 |
<tr>
|
1952 |
<th>
|
1953 |
-
Alt Gallery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1954 |
</th>
|
1955 |
<th>
|
1956 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1957 |
</th>
|
1958 |
</tr>
|
1959 |
<tr>
|
@@ -1966,10 +2072,26 @@
|
|
1966 |
</tr>
|
1967 |
<tr>
|
1968 |
<th>
|
1969 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1970 |
</th>
|
1971 |
<th>
|
1972 |
-
|
1973 |
</th>
|
1974 |
</tr>
|
1975 |
<tr>
|
1869 |
</tr>
|
1870 |
</table>
|
1871 |
</div>
|
1872 |
+
|
|
|
1873 |
<div class="box">
|
1874 |
+
<h2>Import</h2>
|
1875 |
<div class="greybox">
|
1876 |
+
You can use Featured Image from URL with WooCommerce import. For that, use the custom fields below.
|
1877 |
<br/>
|
1878 |
<br/>
|
1879 |
|
1880 |
+
<div id="tabsWooImport">
|
1881 |
<ul>
|
1882 |
<li><a href="#tabs-3">Importing products...</a></li>
|
1883 |
<li><a href="#tabs-1">Custom Fields</a></li>
|
1939 |
fifu_image_alt
|
1940 |
</th>
|
1941 |
</tr>
|
1942 |
+
<tr>
|
1943 |
+
<th>
|
1944 |
+
Video
|
1945 |
+
</th>
|
1946 |
+
<th>
|
1947 |
+
fifu_video_url
|
1948 |
+
</th>
|
1949 |
+
</tr>
|
1950 |
<tr>
|
1951 |
<th>
|
1952 |
Image + Image Gallery (URLs delimited by "|")
|
1957 |
</tr>
|
1958 |
<tr>
|
1959 |
<th>
|
1960 |
+
Alt + Alt Gallery (titles delimited by "|")
|
1961 |
+
</th>
|
1962 |
+
<th>
|
1963 |
+
fifu_list_alt
|
1964 |
+
</th>
|
1965 |
+
</tr>
|
1966 |
+
<tr>
|
1967 |
+
<th>
|
1968 |
+
Video + Video Gallery (URLs delimited by "|")
|
1969 |
+
</th>
|
1970 |
+
<th>
|
1971 |
+
fifu_list_video_url
|
1972 |
+
</th>
|
1973 |
+
</tr>
|
1974 |
+
<tr>
|
1975 |
+
<th>
|
1976 |
+
Slider (URLs delimited by "|")
|
1977 |
+
</th>
|
1978 |
+
<th>
|
1979 |
+
fifu_slider_list_url
|
1980 |
+
</th>
|
1981 |
+
</tr>
|
1982 |
+
</table>
|
1983 |
+
</div>
|
1984 |
+
|
1985 |
+
<div id="tabs-3">
|
1986 |
+
<a href="../wp-content/plugins/fifu-premium/admin/html/txt/csv-woo.txt">CSV example</a>
|
1987 |
+
<br>
|
1988 |
+
<br>
|
1989 |
+
<center><img src="https://c1.staticflickr.com/1/216/31480097476_bf4915184b_o_d.jpg" style="width:90%"></center>
|
1990 |
+
</div>
|
1991 |
+
</div>
|
1992 |
+
</div>
|
1993 |
+
</div>
|
1994 |
+
</div>
|
1995 |
+
<div id="tabs-p">
|
1996 |
+
<div class="box">
|
1997 |
+
<h2>WP All Import</h2>
|
1998 |
+
<div class="greybox">
|
1999 |
+
You can use Featured Image from URL with <a href="http://www.wpallimport.com/" target="_blank">WP All Import</a> plugin. For that, use the custom fields below.
|
2000 |
+
<br/>
|
2001 |
+
<br/>
|
2002 |
+
|
2003 |
+
<div id="tabsWpAllImport">
|
2004 |
+
<ul>
|
2005 |
+
<li><a href="#tabs-3">Importing products...</a></li>
|
2006 |
+
<li><a href="#tabs-1">Custom Fields</a></li>
|
2007 |
+
<li><a href="#tabs-2">Custom Fields (Premium)</a></li>
|
2008 |
+
</ul>
|
2009 |
+
<div id="tabs-1">
|
2010 |
+
|
2011 |
+
<table style="text-align:left">
|
2012 |
+
<tr>
|
2013 |
+
<th>
|
2014 |
</th>
|
2015 |
<th>
|
2016 |
+
Key
|
2017 |
+
</th>
|
2018 |
+
</tr>
|
2019 |
+
<tr>
|
2020 |
+
<th>
|
2021 |
+
Image
|
2022 |
+
</th>
|
2023 |
+
<th>
|
2024 |
+
fifu_image_url
|
2025 |
+
</th>
|
2026 |
+
</tr>
|
2027 |
+
<tr>
|
2028 |
+
<th>
|
2029 |
+
Alt
|
2030 |
+
</th>
|
2031 |
+
<th>
|
2032 |
+
fifu_image_alt
|
2033 |
+
</th>
|
2034 |
+
</tr>
|
2035 |
+
</table>
|
2036 |
+
|
2037 |
+
<br/>
|
2038 |
+
</div>
|
2039 |
+
|
2040 |
+
<div id="tabs-2">
|
2041 |
+
<table style="text-align:left">
|
2042 |
+
<tr>
|
2043 |
+
<th>
|
2044 |
+
</th>
|
2045 |
+
<th>
|
2046 |
+
Key(s)
|
2047 |
+
</th>
|
2048 |
+
</tr>
|
2049 |
+
<tr>
|
2050 |
+
<th>
|
2051 |
+
Image
|
2052 |
+
</th>
|
2053 |
+
<th>
|
2054 |
+
fifu_image_url
|
2055 |
+
</th>
|
2056 |
+
</tr>
|
2057 |
+
<tr>
|
2058 |
+
<th>
|
2059 |
+
Alt
|
2060 |
+
</th>
|
2061 |
+
<th>
|
2062 |
+
fifu_image_alt
|
2063 |
</th>
|
2064 |
</tr>
|
2065 |
<tr>
|
2072 |
</tr>
|
2073 |
<tr>
|
2074 |
<th>
|
2075 |
+
Image + Image Gallery (URLs delimited by "|")
|
2076 |
+
</th>
|
2077 |
+
<th>
|
2078 |
+
fifu_list_url
|
2079 |
+
</th>
|
2080 |
+
</tr>
|
2081 |
+
<tr>
|
2082 |
+
<th>
|
2083 |
+
Alt + Alt Gallery (titles delimited by "|")
|
2084 |
+
</th>
|
2085 |
+
<th>
|
2086 |
+
fifu_list_alt
|
2087 |
+
</th>
|
2088 |
+
</tr>
|
2089 |
+
<tr>
|
2090 |
+
<th>
|
2091 |
+
Video + Video Gallery (URLs delimited by "|")
|
2092 |
</th>
|
2093 |
<th>
|
2094 |
+
fifu_list_video_url
|
2095 |
</th>
|
2096 |
</tr>
|
2097 |
<tr>
|
admin/html/txt/csv-woo.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
title,fifu_image_alt,fifu_image_url
|
2 |
+
Marvel,Iron Man,https://farm5.staticflickr.com/4415/36510266406_ee630f55e7_q.jpg
|
3 |
+
DC,Superman,https://farm5.staticflickr.com/4331/36556653975_79d2cb51ac_q.jpg
|
admin/html/txt/csv.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
title;
|
2 |
-
Marvel;https://farm5.staticflickr.com/4415/36510266406_ee630f55e7_q.jpg|https://farm5.staticflickr.com/4415/35747392283_e685519b88_q.jpg|https://farm5.staticflickr.com/4383/36510270056_0e52a799f4_q.jpg
|
3 |
-
DC;https://farm5.staticflickr.com/4331/36556653975_79d2cb51ac_q.jpg|https://farm5.staticflickr.com/4376/36388230522_0fb18ca60a.jpg|https://farm5.staticflickr.com/4405/36556653895_f1c5350e36.jpg
|
1 |
+
title;fifu_list_alt;fifu_list_url
|
2 |
+
Marvel;Iron Man|Hulk|American Captain;https://farm5.staticflickr.com/4415/36510266406_ee630f55e7_q.jpg|https://farm5.staticflickr.com/4415/35747392283_e685519b88_q.jpg|https://farm5.staticflickr.com/4383/36510270056_0e52a799f4_q.jpg
|
3 |
+
DC;Superman|Batman|Robin;https://farm5.staticflickr.com/4331/36556653975_79d2cb51ac_q.jpg|https://farm5.staticflickr.com/4376/36388230522_0fb18ca60a.jpg|https://farm5.staticflickr.com/4405/36556653895_f1c5350e36.jpg
|
admin/meta-box.php
CHANGED
@@ -66,7 +66,7 @@ function fifu_remove_first_image($data, $postarr) {
|
|
66 |
add_action('save_post', 'fifu_save_properties');
|
67 |
|
68 |
function fifu_save_properties($post_id) {
|
69 |
-
if (!$_POST)
|
70 |
return;
|
71 |
|
72 |
/* image url */
|
@@ -116,3 +116,12 @@ function fifu_wai_save($post_id) {
|
|
116 |
|
117 |
add_action('before_delete_post', 'fifu_db_before_delete_post');
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
add_action('save_post', 'fifu_save_properties');
|
67 |
|
68 |
function fifu_save_properties($post_id) {
|
69 |
+
if (!$_POST || get_post_type($post_id) == 'nav_menu_item')
|
70 |
return;
|
71 |
|
72 |
/* image url */
|
116 |
|
117 |
add_action('before_delete_post', 'fifu_db_before_delete_post');
|
118 |
|
119 |
+
// regular woocommerce import
|
120 |
+
add_action('woocommerce_product_import_inserted_product_object', 'fifu_woocommerce_import');
|
121 |
+
|
122 |
+
function fifu_woocommerce_import($object) {
|
123 |
+
$post_id = $object->get_id();
|
124 |
+
fifu_wai_save($post_id);
|
125 |
+
fifu_update_fake_attach_id($post_id);
|
126 |
+
}
|
127 |
+
|
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.3.
|
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.3.1
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
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
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.0
|
7 |
-
Stable tag: 5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -157,6 +157,9 @@ Features:
|
|
157 |
|
158 |
== Changelog ==
|
159 |
|
|
|
|
|
|
|
160 |
= 2.3.0 =
|
161 |
* Bug fix: CSS Style feature.
|
162 |
|
@@ -517,6 +520,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
517 |
|
518 |
== Upgrade Notice ==
|
519 |
|
|
|
|
|
|
|
520 |
= 2.3.0 =
|
521 |
* Bug fix: CSS Style feature.
|
522 |
|
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
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.1.0
|
7 |
+
Stable tag: 5.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
157 |
|
158 |
== Changelog ==
|
159 |
|
160 |
+
= 2.3.1 =
|
161 |
+
* Improvement: compatible with WooCommerce Import feature now.
|
162 |
+
|
163 |
= 2.3.0 =
|
164 |
* Bug fix: CSS Style feature.
|
165 |
|
520 |
|
521 |
== Upgrade Notice ==
|
522 |
|
523 |
+
= 2.3.1 =
|
524 |
+
* Improvement: compatible with WooCommerce Import feature now.
|
525 |
+
|
526 |
= 2.3.0 =
|
527 |
* Bug fix: CSS Style feature.
|
528 |
|