Version Description
- Improvement: development function created to make the integration with FIFU easier; bug fix: image title was not being shown; bug fix: conflict between lazy load and background-images.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.1.7 |
Comparing to | |
See all releases |
Code changes from version 3.1.6 to 3.1.7
- admin/html/menu.html +43 -20
- admin/menu.php +3 -3
- featured-image-from-url.php +1 -1
- includes/attachment.php +2 -2
- includes/thumbnail.php +10 -5
- includes/util.php +12 -0
- languages/featured-image-from-url-pt_BR.mo +0 -0
- languages/featured-image-from-url-pt_BR.po +19 -2
- languages/featured-image-from-url.pot +10 -1
- readme.txt +88 -83
admin/html/menu.html
CHANGED
@@ -2314,42 +2314,42 @@
|
|
2314 |
|
2315 |
<div id="tabs-3">
|
2316 |
|
2317 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/product.txt"
|
2318 |
width="100%" height="250px" ></iframe>
|
2319 |
|
2320 |
</div>
|
2321 |
|
2322 |
<div id="tabs-4">
|
2323 |
|
2324 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/product-variation.txt"
|
2325 |
width="100%" height="450px" ></iframe>
|
2326 |
|
2327 |
</div>
|
2328 |
|
2329 |
<div id="tabs-5">
|
2330 |
|
2331 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/post.txt"
|
2332 |
width="100%" height="150px" ></iframe>
|
2333 |
|
2334 |
</div>
|
2335 |
|
2336 |
<div id="tabs-6">
|
2337 |
|
2338 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/product-category.txt"
|
2339 |
width="100%" height="225px" ></iframe>
|
2340 |
|
2341 |
</div>
|
2342 |
|
2343 |
<div id="tabs-7">
|
2344 |
|
2345 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/product-variable.txt"
|
2346 |
width="100%" height="565px" ></iframe>
|
2347 |
|
2348 |
</div>
|
2349 |
|
2350 |
<div id="tabs-8">
|
2351 |
|
2352 |
-
<iframe src="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/batch.txt"
|
2353 |
width="100%" height="535px" ></iframe>
|
2354 |
|
2355 |
</div>
|
@@ -2648,7 +2648,7 @@
|
|
2648 |
</div>
|
2649 |
|
2650 |
<div id="tabs-3">
|
2651 |
-
<a href="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/csv-woo.txt"><?php esc_html_e('CSV example', 'featured-image-from-url'); ?></a>
|
2652 |
<br>
|
2653 |
<br>
|
2654 |
<center><img src="https://c1.staticflickr.com/1/216/31480097476_bf4915184b_o_d.jpg" style="width:90%"></center>
|
@@ -2769,7 +2769,7 @@
|
|
2769 |
</div>
|
2770 |
|
2771 |
<div id="tabs-2">
|
2772 |
-
<a href="<?php echo plugins_url()?>/featured-image-from-url/admin/html/txt/csv.txt"><?php esc_html_e('CSV example', 'featured-image-from-url'); ?></a>
|
2773 |
<br>
|
2774 |
<br>
|
2775 |
<img src="https://storage.googleapis.com/featuredimagefromurl/wp-all-import-addon.jpg" style="width:100%">
|
@@ -2838,18 +2838,20 @@
|
|
2838 |
</div>
|
2839 |
</div-->
|
2840 |
<div class="box">
|
2841 |
-
<h2
|
2842 |
-
<div class="greybox"
|
2843 |
-
<
|
2844 |
-
|
2845 |
-
|
2846 |
-
|
2847 |
-
|
2848 |
-
|
2849 |
-
|
2850 |
-
|
2851 |
-
|
2852 |
-
|
|
|
|
|
2853 |
</div>
|
2854 |
</div>
|
2855 |
<div class="box">
|
@@ -2888,6 +2890,27 @@
|
|
2888 |
</hgroup>
|
2889 |
</div>
|
2890 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2891 |
</div>
|
2892 |
<div id="tabs-t">
|
2893 |
<div class="box">
|
2314 |
|
2315 |
<div id="tabs-3">
|
2316 |
|
2317 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/product.txt"
|
2318 |
width="100%" height="250px" ></iframe>
|
2319 |
|
2320 |
</div>
|
2321 |
|
2322 |
<div id="tabs-4">
|
2323 |
|
2324 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/product-variation.txt"
|
2325 |
width="100%" height="450px" ></iframe>
|
2326 |
|
2327 |
</div>
|
2328 |
|
2329 |
<div id="tabs-5">
|
2330 |
|
2331 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/post.txt"
|
2332 |
width="100%" height="150px" ></iframe>
|
2333 |
|
2334 |
</div>
|
2335 |
|
2336 |
<div id="tabs-6">
|
2337 |
|
2338 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/product-category.txt"
|
2339 |
width="100%" height="225px" ></iframe>
|
2340 |
|
2341 |
</div>
|
2342 |
|
2343 |
<div id="tabs-7">
|
2344 |
|
2345 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/product-variable.txt"
|
2346 |
width="100%" height="565px" ></iframe>
|
2347 |
|
2348 |
</div>
|
2349 |
|
2350 |
<div id="tabs-8">
|
2351 |
|
2352 |
+
<iframe src="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/batch.txt"
|
2353 |
width="100%" height="535px" ></iframe>
|
2354 |
|
2355 |
</div>
|
2648 |
</div>
|
2649 |
|
2650 |
<div id="tabs-3">
|
2651 |
+
<a href="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/csv-woo.txt"><?php esc_html_e('CSV example', 'featured-image-from-url'); ?></a>
|
2652 |
<br>
|
2653 |
<br>
|
2654 |
<center><img src="https://c1.staticflickr.com/1/216/31480097476_bf4915184b_o_d.jpg" style="width:90%"></center>
|
2769 |
</div>
|
2770 |
|
2771 |
<div id="tabs-2">
|
2772 |
+
<a href="<?php echo plugins_url() ?>/featured-image-from-url/admin/html/txt/csv.txt"><?php esc_html_e('CSV example', 'featured-image-from-url'); ?></a>
|
2773 |
<br>
|
2774 |
<br>
|
2775 |
<img src="https://storage.googleapis.com/featuredimagefromurl/wp-all-import-addon.jpg" style="width:100%">
|
2838 |
</div>
|
2839 |
</div-->
|
2840 |
<div class="box">
|
2841 |
+
<h2><?php esc_html_e('Integrate your plugin with FIFU', 'featured-image-from-url'); ?></h2>
|
2842 |
+
<div class="greybox">
|
2843 |
+
<table>
|
2844 |
+
<tr>
|
2845 |
+
<td style="width:15%;vertical-align:unset;">
|
2846 |
+
<i class="fab fa-dev" style="font-size:110px"></i>
|
2847 |
+
</td>
|
2848 |
+
<td style="width:85%">
|
2849 |
+
<?php esc_html_e('Are you a WordPress developer? So now you can easily integrate your code with FIFU using the function below.', 'featured-image-from-url'); ?><br>
|
2850 |
+
<?php esc_html_e('All you need is to inform the post id and the image url. And FIFU will set the custom fields and create the metadata.', 'featured-image-from-url'); ?><br><br>
|
2851 |
+
<div style="background-color:#0073aa;color:white;padding:15px;border-radius:5px;font-weight:bold;">fifu_dev_set_image($post_id, $image_url)</div><br>
|
2852 |
+
</td>
|
2853 |
+
</tr>
|
2854 |
+
</table>
|
2855 |
</div>
|
2856 |
</div>
|
2857 |
<div class="box">
|
2890 |
</hgroup>
|
2891 |
</div>
|
2892 |
</div>
|
2893 |
+
<div class="box">
|
2894 |
+
<h2>How to become a FIFU translator</h2>
|
2895 |
+
<div class="greybox">
|
2896 |
+
<table>
|
2897 |
+
<tr>
|
2898 |
+
<td style="width:17%;vertical-align:unset;">
|
2899 |
+
<span class="dashicons dashicons-translation" style="font-size:110px"></span>
|
2900 |
+
</td>
|
2901 |
+
<td style="width:83%">
|
2902 |
+
1) please check if your NATIVE language is still available <a href="https://fifu.app/translate/" target="_blank">here</a> and get the language code (e.g. de_DE);<br>
|
2903 |
+
2) send an email to support@featuredimagefromurl.com with the subject <i>I'd like to translate FIFU to [language code]</i>;<br>
|
2904 |
+
3) please wait for an answer. Once you are accepted as an official translator, you will be responsible for:<br>
|
2905 |
+
|_ translating the POT file in /plugins/featured-image-from-url/languages/ (~350 strings)<br>
|
2906 |
+
|_ translating the strings in <a href="https://translate.wordpress.org/projects/wp-plugins/featured-image-from-url/" target="_blank">WordPress.org</a> (~280 strings);<br>
|
2907 |
+
|_ updating the translations periodically (once or twice a month is fine).<br>
|
2908 |
+
And to thank you for your valuable efforts <b>you will receive the Premium version and updates</b>.<span class="dashicons dashicons-smiley" style="font-size:16px"></span>
|
2909 |
+
</td>
|
2910 |
+
</tr>
|
2911 |
+
</table>
|
2912 |
+
</div>
|
2913 |
+
</div>
|
2914 |
</div>
|
2915 |
<div id="tabs-t">
|
2916 |
<div class="box">
|
admin/menu.php
CHANGED
@@ -156,7 +156,7 @@ function fifu_get_setting($type) {
|
|
156 |
$arr1 = array('fifu_spinner_nth');
|
157 |
$arrEmpty = array('fifu_default_url', 'fifu_css');
|
158 |
$arr64 = array('fifu_column_height');
|
159 |
-
$
|
160 |
$arrOn = array('fifu_auto_alt', 'fifu_wc_zoom', 'fifu_wc_lbox');
|
161 |
$arrOnNo = array('fifu_fake', 'fifu_social');
|
162 |
$arrOffNo = array('fifu_data_clean', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_social_image_only');
|
@@ -168,8 +168,8 @@ function fifu_get_setting($type) {
|
|
168 |
update_option($type, 1);
|
169 |
else if (in_array($type, $arr64))
|
170 |
update_option($type, "64", 'no');
|
171 |
-
else if (in_array($type, $
|
172 |
-
update_option($type,
|
173 |
else if (in_array($type, $arrOn))
|
174 |
update_option($type, 'toggleon');
|
175 |
else if (in_array($type, $arrOnNo))
|
156 |
$arr1 = array('fifu_spinner_nth');
|
157 |
$arrEmpty = array('fifu_default_url', 'fifu_css');
|
158 |
$arr64 = array('fifu_column_height');
|
159 |
+
$arr1000 = array('fifu_spinner_db');
|
160 |
$arrOn = array('fifu_auto_alt', 'fifu_wc_zoom', 'fifu_wc_lbox');
|
161 |
$arrOnNo = array('fifu_fake', 'fifu_social');
|
162 |
$arrOffNo = array('fifu_data_clean', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_social_image_only');
|
168 |
update_option($type, 1);
|
169 |
else if (in_array($type, $arr64))
|
170 |
update_option($type, "64", 'no');
|
171 |
+
else if (in_array($type, $arr1000))
|
172 |
+
update_option($type, 1000, 'no');
|
173 |
else if (in_array($type, $arrOn))
|
174 |
update_option($type, 'toggleon');
|
175 |
else if (in_array($type, $arrOnNo))
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
-
* Version: 3.1.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
+
* Version: 3.1.7
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 3.0
|
includes/attachment.php
CHANGED
@@ -44,7 +44,7 @@ function fifu_query_attachments($where) {
|
|
44 |
return $where;
|
45 |
}
|
46 |
|
47 |
-
add_filter('posts_where', function (
|
48 |
if (is_admin() && $q->is_main_query() && fifu_is_off('fifu_media_library')) {
|
49 |
global $wpdb;
|
50 |
$where .= ' AND ' . $wpdb->prefix . 'posts.post_author <> 77777 ';
|
@@ -169,7 +169,7 @@ function fifu_callback($buffer) {
|
|
169 |
foreach ($imgList[0] as $imgItem) {
|
170 |
$mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
|
171 |
if ($mainDelimiter)
|
172 |
-
$url = preg_split('/[\'\"]/', preg_split('/url\([\'\"]/', $imgItem, -1)[1], -1)[0];
|
173 |
else
|
174 |
$url = preg_split('/[ ]{0,1}\)\;/', preg_split('/url\([ ]{0,1}/', $imgItem, -1)[1], -1)[0];
|
175 |
$newImgItem = preg_replace("/background-image[^:]*:[^\)]*url[^\)]*[\)]/", "", $imgItem);
|
44 |
return $where;
|
45 |
}
|
46 |
|
47 |
+
add_filter('posts_where', function ($where, \WP_Query $q) {
|
48 |
if (is_admin() && $q->is_main_query() && fifu_is_off('fifu_media_library')) {
|
49 |
global $wpdb;
|
50 |
$where .= ' AND ' . $wpdb->prefix . 'posts.post_author <> 77777 ';
|
169 |
foreach ($imgList[0] as $imgItem) {
|
170 |
$mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
|
171 |
if ($mainDelimiter)
|
172 |
+
$url = preg_split('/[\'\" ]{0,1}\)/', preg_split('/url\([\'\" ]{0,1}/', $imgItem, -1)[1], -1)[0];
|
173 |
else
|
174 |
$url = preg_split('/[ ]{0,1}\)\;/', preg_split('/url\([ ]{0,1}/', $imgItem, -1)[1], -1)[0];
|
175 |
$newImgItem = preg_replace("/background-image[^:]*:[^\)]*url[^\)]*[\)]/", "", $imgItem);
|
includes/thumbnail.php
CHANGED
@@ -91,11 +91,14 @@ add_filter('post_thumbnail_html', 'fifu_replace', 10, 4);
|
|
91 |
function fifu_replace($html, $post_id, $post_thumbnail_id, $size) {
|
92 |
$url = get_post_meta($post_id, 'fifu_image_url', true);
|
93 |
|
|
|
94 |
if (fifu_is_on('fifu_dynamic_alt')) {
|
95 |
$alt = get_the_title($post_id);
|
96 |
-
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=
|
97 |
-
} else
|
98 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
|
|
|
|
99 |
|
100 |
$width = fifu_get_attribute('width', $html);
|
101 |
$height = fifu_get_attribute('height', $html);
|
@@ -107,9 +110,11 @@ function fifu_replace($html, $post_id, $post_thumbnail_id, $size) {
|
|
107 |
|
108 |
if ($url) {
|
109 |
if (fifu_is_on('fifu_class')) {
|
110 |
-
if (strpos($html, 'class='))
|
111 |
-
$
|
112 |
-
|
|
|
|
|
113 |
$html = str_replace('<img', '<img class="fifu-class"', $html);
|
114 |
}
|
115 |
|
91 |
function fifu_replace($html, $post_id, $post_thumbnail_id, $size) {
|
92 |
$url = get_post_meta($post_id, 'fifu_image_url', true);
|
93 |
|
94 |
+
$delimiter = fifu_get_delimiter('src', $html);
|
95 |
if (fifu_is_on('fifu_dynamic_alt')) {
|
96 |
$alt = get_the_title($post_id);
|
97 |
+
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter, $html);
|
98 |
+
} else {
|
99 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
100 |
+
$html = preg_replace('/alt=[\'\"][^[\'\"]*[\'\"]/', 'alt=' . $delimiter . $alt . $delimiter . ' title=' . $delimiter . $alt . $delimiter, $html);
|
101 |
+
}
|
102 |
|
103 |
$width = fifu_get_attribute('width', $html);
|
104 |
$height = fifu_get_attribute('height', $html);
|
110 |
|
111 |
if ($url) {
|
112 |
if (fifu_is_on('fifu_class')) {
|
113 |
+
if (strpos($html, 'class=')) {
|
114 |
+
$delimiter = substr(explode('class=', $html)[1], 0, 1);
|
115 |
+
$class = explode($delimiter, explode('class=' . $delimiter, $html)[1])[0];
|
116 |
+
$html = preg_replace('/class=[\'\"][^[\'\"]*[\'\"]/', 'class=' . $delimiter . $class . ' fifu-class' . $delimiter, $html);
|
117 |
+
} else
|
118 |
$html = str_replace('<img', '<img class="fifu-class"', $html);
|
119 |
}
|
120 |
|
includes/util.php
CHANGED
@@ -57,6 +57,11 @@ function fifu_maximum($dimension) {
|
|
57 |
return $size ? $size : null;
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
/* dimensions */
|
61 |
|
62 |
function fifu_curl($url) {
|
@@ -80,6 +85,13 @@ function fifu_get_dimension_backend($url) {
|
|
80 |
return ($width && $height) ? $width . ";" . $height : null;
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
// active plugins
|
84 |
|
85 |
function fifu_is_elementor_active() {
|
57 |
return $size ? $size : null;
|
58 |
}
|
59 |
|
60 |
+
function fifu_get_delimiter($property, $html) {
|
61 |
+
$delimiter = explode($property . '=', $html);
|
62 |
+
return $delimiter ? substr($delimiter[1], 0, 1) : null;
|
63 |
+
}
|
64 |
+
|
65 |
/* dimensions */
|
66 |
|
67 |
function fifu_curl($url) {
|
85 |
return ($width && $height) ? $width . ";" . $height : null;
|
86 |
}
|
87 |
|
88 |
+
// developers
|
89 |
+
|
90 |
+
function fifu_dev_set_image($post_id, $image_url) {
|
91 |
+
fifu_update_or_delete($post_id, 'fifu_image_url', esc_url_raw($image_url));
|
92 |
+
fifu_update_fake_attach_id($post_id);
|
93 |
+
}
|
94 |
+
|
95 |
// active plugins
|
96 |
|
97 |
function fifu_is_elementor_active() {
|
languages/featured-image-from-url-pt_BR.mo
CHANGED
Binary file
|
languages/featured-image-from-url-pt_BR.po
CHANGED
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"POT-Creation-Date: 2020-06-26T18:49:47-03:00\n"
|
13 |
-
"PO-Revision-Date: 2020-
|
14 |
"X-Generator: Loco https://localise.biz/\n"
|
15 |
"X-Domain: featured-image-from-url\n"
|
16 |
"Language: pt_BR\n"
|
@@ -1364,5 +1364,22 @@ msgstr "Extensão do Google Chrome para FIFU"
|
|
1364 |
msgid "support to private videos from Vimeo"
|
1365 |
msgstr "suporte a vídeos privados do Vimeo"
|
1366 |
|
1367 |
-
msgid "integration with
|
1368 |
msgstr "integração com o plugin WooCommerce Additional Variation Images"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"POT-Creation-Date: 2020-06-26T18:49:47-03:00\n"
|
13 |
+
"PO-Revision-Date: 2020-07-09 17:52+0000\n"
|
14 |
"X-Generator: Loco https://localise.biz/\n"
|
15 |
"X-Domain: featured-image-from-url\n"
|
16 |
"Language: pt_BR\n"
|
1364 |
msgid "support to private videos from Vimeo"
|
1365 |
msgstr "suporte a vídeos privados do Vimeo"
|
1366 |
|
1367 |
+
msgid "integration with WooCommerce Additional Variation Images plugin"
|
1368 |
msgstr "integração com o plugin WooCommerce Additional Variation Images"
|
1369 |
+
|
1370 |
+
msgid "Integrate your plugin with FIFU"
|
1371 |
+
msgstr "Integre seu plugin ao FIFU"
|
1372 |
+
|
1373 |
+
msgid ""
|
1374 |
+
"Are you a WordPress developer? So now you can easily integrate your code "
|
1375 |
+
"with FIFU using the function below."
|
1376 |
+
msgstr ""
|
1377 |
+
"Você é um desenvolvedor WordPress? Então agora você pode integrar facilmente "
|
1378 |
+
"seu código ao FIFU usando a função abaixo."
|
1379 |
+
|
1380 |
+
msgid ""
|
1381 |
+
"All you need is to inform the post id and the image url. And FIFU will set "
|
1382 |
+
"the custom fields and create the metadata."
|
1383 |
+
msgstr ""
|
1384 |
+
"Tudo que você precisa é informar o ID do post e o URL da imagem. E FIFU "
|
1385 |
+
"definirá os campos personalizados e criará os metadados."
|
languages/featured-image-from-url.pot
CHANGED
@@ -1056,5 +1056,14 @@ msgstr ""
|
|
1056 |
msgid "support to private videos from Vimeo"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
msgid "integration with
|
1060 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
msgid "support to private videos from Vimeo"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
msgid "integration with WooCommerce Additional Variation Images plugin"
|
1060 |
msgstr ""
|
1061 |
+
|
1062 |
+
msgid "Integrate your plugin with FIFU"
|
1063 |
+
msgstr ""
|
1064 |
+
|
1065 |
+
msgid "Are you a WordPress developer? So now you can easily integrate your code with FIFU using the function below."
|
1066 |
+
msgstr ""
|
1067 |
+
|
1068 |
+
msgid "All you need is to inform the post id and the image url. And FIFU will set the custom fields and create the metadata."
|
1069 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,90 +1,94 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: marceljm
|
3 |
Donate link: https://donorbox.org/fifu
|
4 |
-
Tags: featured image, featured, image, url,
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
Use an external image as
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
### WordPress plugin for external
|
16 |
|
17 |
Since 2015 FIFU has helped thousands of websites worldwide to save money on storage, processing and copyright.
|
18 |
|
19 |
#### FEATURED IMAGE
|
20 |
-
Use an external image as
|
21 |
-
|
22 |
-
* External
|
23 |
-
* Unsplash
|
24 |
-
* Lazy
|
25 |
-
* Default
|
26 |
-
* Hide
|
27 |
-
* Featured
|
28 |
-
* CSS
|
29 |
-
* Original
|
30 |
-
* Add
|
31 |
-
* Save
|
32 |
-
* Featured
|
33 |
-
* **[Premium]** Giphy
|
34 |
-
* **[Premium]** Unsplash
|
35 |
-
* **[Premium]** Same
|
36 |
-
* **[Premium]** Hover
|
37 |
-
* **[Premium]** Replace
|
38 |
-
* **[Premium]** Image
|
39 |
-
* **[Premium]** Flickr
|
40 |
|
41 |
#### SEO
|
42 |
|
43 |
-
* Auto
|
44 |
-
* Social
|
45 |
-
* **[Premium]** Media RSS
|
46 |
|
47 |
#### AUTOMATION
|
48 |
|
49 |
-
* WP All Import
|
50 |
-
* WooCommerce
|
51 |
-
* URL from
|
52 |
* **[Premium]** WP REST API
|
53 |
* **[Premium]** WooCommerce REST API
|
54 |
-
* **[Premium]** Schedule
|
55 |
|
56 |
#### WOOCOMMERCE
|
57 |
|
58 |
-
* External
|
59 |
-
* Lightbox and
|
60 |
-
* Category
|
61 |
-
* **[Premium]** External
|
62 |
-
* **[Premium]** External
|
63 |
-
* **[Premium]** Auto
|
64 |
-
* **[Premium]** Variable
|
65 |
-
* **[Premium]** Variation
|
66 |
-
* **[Premium]** Variation
|
67 |
|
68 |
#### FEATURED VIDEO
|
69 |
Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publitio.
|
70 |
|
71 |
-
* **[Premium]** Featured
|
72 |
-
* **[Premium]** Video
|
73 |
-
* **[Premium]** Play
|
74 |
-
* **[Premium]** Minimum
|
75 |
-
* **[Premium]** Black
|
76 |
-
* **[Premium]** Mouseover
|
77 |
* **[Premium]** Autoplay
|
78 |
* **[Premium]** Loop
|
79 |
* **[Premium]** Mute
|
80 |
-
* **[Premium]** Background
|
81 |
-
* **[Premium]** Related
|
82 |
-
* **[Premium]** Gallery
|
83 |
|
84 |
#### OTHERS
|
85 |
|
86 |
-
* **[Premium]** Featured
|
87 |
-
* **[Premium]** Featured
|
|
|
|
|
|
|
|
|
88 |
|
89 |
#### LANGUAGES
|
90 |
|
@@ -95,7 +99,7 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
95 |
#### LINKS
|
96 |
|
97 |
* **<a href="https://fifu.app/">Featured Image from URL Premium</a>**
|
98 |
-
* **<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome
|
99 |
|
100 |
|
101 |
== Installation ==
|
@@ -109,18 +113,18 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
109 |
### INSTALL FIFU MANUALLY
|
110 |
|
111 |
1. Upload the 'featured-image-from-url' folder to the /wp-content/plugins/ directory;
|
112 |
-
1. Activate
|
113 |
|
114 |
|
115 |
== Frequently Asked Questions ==
|
116 |
|
117 |
-
= Where is the external
|
118 |
|
119 |
-
* Next to the regular
|
120 |
|
121 |
-
= Why isn't
|
122 |
|
123 |
-
* Your image URL is invalid. Take a look at
|
124 |
|
125 |
= Does FIFU save the images in the media library? =
|
126 |
|
@@ -128,17 +132,17 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
128 |
|
129 |
= Is any action necessary before removing FIFU?
|
130 |
|
131 |
-
* Access
|
132 |
|
133 |
= What's the metadata created by FIFU?
|
134 |
|
135 |
-
* Database registers that help WordPress components to work with
|
136 |
|
137 |
-
= What are the disadvantages of
|
138 |
|
139 |
* No image optimization or thumbnails. You may fix that with Jetpack (performance settings).
|
140 |
|
141 |
-
= What are the advantages of
|
142 |
|
143 |
* You save money on storage, processing and copyright.
|
144 |
|
@@ -149,53 +153,53 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
149 |
|
150 |
2. If the image URL is correct, the image will be shown
|
151 |
|
152 |
-
3. Featured
|
153 |
|
154 |
-
4. Featured
|
155 |
|
156 |
-
5. Featured
|
157 |
|
158 |
-
6. External
|
159 |
|
160 |
-
7. External
|
161 |
|
162 |
-
8. Featured
|
163 |
|
164 |
-
9. Featured
|
165 |
|
166 |
-
10.
|
167 |
|
168 |
-
11. External
|
169 |
|
170 |
-
12. External
|
171 |
|
172 |
-
13. External
|
173 |
|
174 |
-
14. External
|
175 |
|
176 |
-
15. External
|
177 |
|
178 |
-
16. External
|
179 |
|
180 |
17. Zoom
|
181 |
|
182 |
-
18. Video
|
183 |
|
184 |
-
19. Featured
|
185 |
|
186 |
20. Fullscreen
|
187 |
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
191 |
= 3.1.6 =
|
192 |
* Improvement: readme changes to comply with the WordPress.org plugin guidelines.
|
193 |
|
194 |
= 3.1.5 =
|
195 |
-
* New language: German;
|
196 |
-
|
197 |
-
= 3.1.4 =
|
198 |
-
* Notice: FIFU is ready to receive translations; New language: Portuguese (Brazil); New features: Mute and Background Video; Improvement: og:image tag for internal images.
|
199 |
|
200 |
= others =
|
201 |
* [more](https://fifu.app/changelog/)
|
@@ -203,5 +207,6 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publiti
|
|
203 |
|
204 |
== Upgrade Notice ==
|
205 |
|
206 |
-
= 3.1.
|
207 |
-
* Improvement:
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: marceljm
|
3 |
Donate link: https://donorbox.org/fifu
|
4 |
+
Tags: featured image, featured, image, url, link, woocommerce, product, gallery, video, slider, external, thumbnail
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 3.1.7
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Use an external image as featured image of a post or WooCommerce product. Includes image search, video, social tags, SEO, lazy load, gallery, automation etc.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
### WordPress plugin for external featured image
|
16 |
|
17 |
Since 2015 FIFU has helped thousands of websites worldwide to save money on storage, processing and copyright.
|
18 |
|
19 |
#### FEATURED IMAGE
|
20 |
+
Use an external image as featured image of your post, page or custom post type.
|
21 |
+
|
22 |
+
* External featured image
|
23 |
+
* Unsplash image search
|
24 |
+
* Lazy load
|
25 |
+
* Default featured image
|
26 |
+
* Hide featured media
|
27 |
+
* Featured image in content
|
28 |
+
* CSS style
|
29 |
+
* Original size
|
30 |
+
* Add class
|
31 |
+
* Save image dimensions
|
32 |
+
* Featured image column
|
33 |
+
* **[Premium]** Giphy animated image search
|
34 |
+
* **[Premium]** Unsplash image size
|
35 |
+
* **[Premium]** Same height
|
36 |
+
* **[Premium]** Hover effects
|
37 |
+
* **[Premium]** Replace not found image
|
38 |
+
* **[Premium]** Image validation
|
39 |
+
* **[Premium]** Flickr thumbnails
|
40 |
|
41 |
#### SEO
|
42 |
|
43 |
+
* Auto set image title
|
44 |
+
* Social tags
|
45 |
+
* **[Premium]** Media RSS tags
|
46 |
|
47 |
#### AUTOMATION
|
48 |
|
49 |
+
* WP All Import add-on
|
50 |
+
* WooCommerce import
|
51 |
+
* URL from post content
|
52 |
* **[Premium]** WP REST API
|
53 |
* **[Premium]** WooCommerce REST API
|
54 |
+
* **[Premium]** Schedule metadata generation
|
55 |
|
56 |
#### WOOCOMMERCE
|
57 |
|
58 |
+
* External product image
|
59 |
+
* Lightbox and zoom
|
60 |
+
* Category image on grid
|
61 |
+
* **[Premium]** External image gallery
|
62 |
+
* **[Premium]** External video gallery
|
63 |
+
* **[Premium]** Auto set category images
|
64 |
+
* **[Premium]** Variable product
|
65 |
+
* **[Premium]** Variation image
|
66 |
+
* **[Premium]** Variation image gallery
|
67 |
|
68 |
#### FEATURED VIDEO
|
69 |
Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr and Publitio.
|
70 |
|
71 |
+
* **[Premium]** Featured video
|
72 |
+
* **[Premium]** Video thumbnail
|
73 |
+
* **[Premium]** Play button
|
74 |
+
* **[Premium]** Minimum width
|
75 |
+
* **[Premium]** Black background
|
76 |
+
* **[Premium]** Mouseover autoplay
|
77 |
* **[Premium]** Autoplay
|
78 |
* **[Premium]** Loop
|
79 |
* **[Premium]** Mute
|
80 |
+
* **[Premium]** Background video
|
81 |
+
* **[Premium]** Related videos
|
82 |
+
* **[Premium]** Gallery icon
|
83 |
|
84 |
#### OTHERS
|
85 |
|
86 |
+
* **[Premium]** Featured slider
|
87 |
+
* **[Premium]** Featured shortcode
|
88 |
+
|
89 |
+
#### INTEGRATION FUNCTION FOR DEVELOPERS
|
90 |
+
|
91 |
+
* fifu_dev_set_image($post_id, $image_url)
|
92 |
|
93 |
#### LANGUAGES
|
94 |
|
99 |
#### LINKS
|
100 |
|
101 |
* **<a href="https://fifu.app/">Featured Image from URL Premium</a>**
|
102 |
+
* **<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome extension</a>**
|
103 |
|
104 |
|
105 |
== Installation ==
|
113 |
### INSTALL FIFU MANUALLY
|
114 |
|
115 |
1. Upload the 'featured-image-from-url' folder to the /wp-content/plugins/ directory;
|
116 |
+
1. Activate FIFU through the 'Plugins' menu in WordPress;
|
117 |
|
118 |
|
119 |
== Frequently Asked Questions ==
|
120 |
|
121 |
+
= Where is the external featured image box? =
|
122 |
|
123 |
+
* Next to the regular featured image box, in the post editor.
|
124 |
|
125 |
+
= Why isn't preview button working? =
|
126 |
|
127 |
+
* Your image URL is invalid. Take a look at Settings > Getting Started.
|
128 |
|
129 |
= Does FIFU save the images in the media library? =
|
130 |
|
132 |
|
133 |
= Is any action necessary before removing FIFU?
|
134 |
|
135 |
+
* Access settings and clean the metadata.
|
136 |
|
137 |
= What's the metadata created by FIFU?
|
138 |
|
139 |
+
* Database registers that help WordPress components to work with external images.
|
140 |
|
141 |
+
= What are the disadvantages of external images?
|
142 |
|
143 |
* No image optimization or thumbnails. You may fix that with Jetpack (performance settings).
|
144 |
|
145 |
+
= What are the advantages of external images?
|
146 |
|
147 |
* You save money on storage, processing and copyright.
|
148 |
|
153 |
|
154 |
2. If the image URL is correct, the image will be shown
|
155 |
|
156 |
+
3. Featured video
|
157 |
|
158 |
+
4. Featured slider
|
159 |
|
160 |
+
5. Featured image column
|
161 |
|
162 |
+
6. External featured media on home
|
163 |
|
164 |
+
7. External featured image on post
|
165 |
|
166 |
+
8. Featured video on post
|
167 |
|
168 |
+
9. Featured slider on post
|
169 |
|
170 |
+
10. Settings
|
171 |
|
172 |
+
11. External image gallery
|
173 |
|
174 |
+
12. External video gallery
|
175 |
|
176 |
+
13. External featured media on WooCommerce shop
|
177 |
|
178 |
+
14. External featured media on cart
|
179 |
|
180 |
+
15. External image gallery
|
181 |
|
182 |
+
16. External featured image on lightbox
|
183 |
|
184 |
17. Zoom
|
185 |
|
186 |
+
18. Video gallery
|
187 |
|
188 |
+
19. Featured video on lightbox
|
189 |
|
190 |
20. Fullscreen
|
191 |
|
192 |
|
193 |
== Changelog ==
|
194 |
|
195 |
+
= 3.1.7 =
|
196 |
+
* Improvement: development function created to make the integration with FIFU easier; bug fix: image title was not being shown; bug fix: conflict between lazy load and background-images.
|
197 |
+
|
198 |
= 3.1.6 =
|
199 |
* Improvement: readme changes to comply with the WordPress.org plugin guidelines.
|
200 |
|
201 |
= 3.1.5 =
|
202 |
+
* New language: German; improvement: short readme to make translations easier.
|
|
|
|
|
|
|
203 |
|
204 |
= others =
|
205 |
* [more](https://fifu.app/changelog/)
|
207 |
|
208 |
== Upgrade Notice ==
|
209 |
|
210 |
+
= 3.1.7 =
|
211 |
+
* Improvement: development function created to make the integration with FIFU easier; bug fix: image title was not being shown; bug fix: conflict between lazy load and background-images.
|
212 |
+
|