Version Description
- Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- admin/db.php +3 -0
- admin/html/menu.html +18 -2
- admin/html/meta-box.html +6 -2
- admin/meta-box.php +2 -8
- featured-image-from-url.php +1 -1
- includes/attachment.php +12 -0
- readme.txt +7 -1
admin/db.php
CHANGED
@@ -652,6 +652,9 @@ class FifuDb {
|
|
652 |
}
|
653 |
}
|
654 |
else {
|
|
|
|
|
|
|
655 |
// update
|
656 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
657 |
if ($has_fifu_attachment) {
|
652 |
}
|
653 |
}
|
654 |
else {
|
655 |
+
if (fifu_is_on('fifu_save_dimensions'))
|
656 |
+
fifu_save_dimensions($post_id, $url);
|
657 |
+
|
658 |
// update
|
659 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
660 |
if ($has_fifu_attachment) {
|
admin/html/menu.html
CHANGED
@@ -67,7 +67,7 @@
|
|
67 |
<h3>3) "Which plugins are compatible with Premium version?"</h3>
|
68 |
WooCommerce, WP All Import, Monarch, Frontend Publishing and others. If you intend to use the Premium version with a specific plugin, try to test with this free version first. Or you can ask me if they are compatible.<br><br>
|
69 |
<h3>4) "Are there known incompatibility issues?"</h3>
|
70 |
-
Some WooCommerce themes aren’t flexible enough to work with Videos, Sliders and Shortcodes. To know if your theme is compatible with those features, please take a look below
|
71 |
<h3>5) "Can I get my money back later?"</h3>
|
72 |
With the exception of rare situations, no. But don't worry about that. You will still have the best support and if, after your complete cooperation, I'm not able to solve your issue, I can refund you.<br><br>
|
73 |
</div>
|
@@ -1335,7 +1335,7 @@
|
|
1335 |
<div class="greybox" id="grad2">
|
1336 |
<b>Premium feature</b><br><br>
|
1337 |
|
1338 |
-
FIFU supports videos from YouTube, Vimeo, Cloudinary
|
1339 |
|
1340 |
</div>
|
1341 |
|
@@ -1703,6 +1703,21 @@
|
|
1703 |
start to play automatically
|
1704 |
</th>
|
1705 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1706 |
<tr>
|
1707 |
<th>
|
1708 |
<input id="fifu_input_slider_pause"
|
@@ -2635,3 +2650,4 @@ fifu_wc_zoom:<?php echo $enable_wc_zoom ?>;
|
|
2635 |
</textarea>
|
2636 |
</div>
|
2637 |
</div>
|
|
67 |
<h3>3) "Which plugins are compatible with Premium version?"</h3>
|
68 |
WooCommerce, WP All Import, Monarch, Frontend Publishing and others. If you intend to use the Premium version with a specific plugin, try to test with this free version first. Or you can ask me if they are compatible.<br><br>
|
69 |
<h3>4) "Are there known incompatibility issues?"</h3>
|
70 |
+
Some WooCommerce themes aren’t flexible enough to work with Videos, Sliders and Shortcodes. To know if your theme is compatible with those features, please take a look below.<br><br>
|
71 |
<h3>5) "Can I get my money back later?"</h3>
|
72 |
With the exception of rare situations, no. But don't worry about that. You will still have the best support and if, after your complete cooperation, I'm not able to solve your issue, I can refund you.<br><br>
|
73 |
</div>
|
1335 |
<div class="greybox" id="grad2">
|
1336 |
<b>Premium feature</b><br><br>
|
1337 |
|
1338 |
+
FIFU supports videos from YouTube, Vimeo, Facebook, Instagram, Imgur, 9GAG, Cloudinary and Tumblr. You can enable the video meta box here.
|
1339 |
|
1340 |
</div>
|
1341 |
|
1703 |
start to play automatically
|
1704 |
</th>
|
1705 |
</tr>
|
1706 |
+
<tr>
|
1707 |
+
<th>
|
1708 |
+
<input
|
1709 |
+
type="image"
|
1710 |
+
href="javascript:void(0)"
|
1711 |
+
id="fifu_toggle_slider_gallery"
|
1712 |
+
name="fifu_toggle_slider_gallery"
|
1713 |
+
class="toggleoff"
|
1714 |
+
value=""
|
1715 |
+
style="display:block">
|
1716 |
+
</th>
|
1717 |
+
<th>
|
1718 |
+
show gallery on click
|
1719 |
+
</th>
|
1720 |
+
</tr>
|
1721 |
<tr>
|
1722 |
<th>
|
1723 |
<input id="fifu_input_slider_pause"
|
2650 |
</textarea>
|
2651 |
</div>
|
2652 |
</div>
|
2653 |
+
|
admin/html/meta-box.html
CHANGED
@@ -59,7 +59,11 @@
|
|
59 |
<p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #ee4394; border-top: 2px solid #ee4394; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
|
60 |
background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Please report any problem to <b>marcel@featuredimagefromurl.com</b></p>
|
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="wp-admin/admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version
|
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
|
|
|
|
|
|
|
|
|
65 |
</div>
|
59 |
<p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #ee4394; border-top: 2px solid #ee4394; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
|
60 |
background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Please report any problem to <b>marcel@featuredimagefromurl.com</b></p>
|
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="wp-admin/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;"><b>New</b>: "ignore Auto Set First Image" checkbox added to post editor</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;"><b>New</b> (Premium): supports videos from Facebook, Instagram, Imgur and 9GAG</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;"><b>New</b>: Compatibility with <a href="https://wclovers.com/knowledgebase/wcfm-custom-fields/"><b>WooCommerce Frontend Manager</b></a> plugin</p>
|
69 |
</div>
|
admin/meta-box.php
CHANGED
@@ -86,14 +86,14 @@ function fifu_save_properties($post_id) {
|
|
86 |
if ($first && fifu_is_on('fifu_get_first') && (!$url || fifu_is_on('fifu_ovw_first')))
|
87 |
$url = $first;
|
88 |
}
|
89 |
-
|
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 |
-
|
97 |
}
|
98 |
|
99 |
/* alt */
|
@@ -106,12 +106,6 @@ function fifu_save_properties($post_id) {
|
|
106 |
fifu_save($post_id);
|
107 |
}
|
108 |
|
109 |
-
function fifu_save_url_and_dimensions($post_id, $url) {
|
110 |
-
fifu_update_or_delete($post_id, 'fifu_image_url', $url);
|
111 |
-
if (fifu_is_on('fifu_save_dimensions'))
|
112 |
-
fifu_save_dimensions($post_id, $url);
|
113 |
-
}
|
114 |
-
|
115 |
function fifu_save($post_id) {
|
116 |
fifu_update_fake_attach_id($post_id);
|
117 |
}
|
86 |
if ($first && fifu_is_on('fifu_get_first') && (!$url || fifu_is_on('fifu_ovw_first')))
|
87 |
$url = $first;
|
88 |
}
|
89 |
+
fifu_update_or_delete($post_id, 'fifu_image_url', $url);
|
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 */
|
106 |
fifu_save($post_id);
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
function fifu_save($post_id) {
|
110 |
fifu_update_fake_attach_id($post_id);
|
111 |
}
|
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.5.
|
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.5.3
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
includes/attachment.php
CHANGED
@@ -139,3 +139,15 @@ function fifu_filter_wp_get_attachment_metadata($data, $post_id) {
|
|
139 |
return $data;
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
return $data;
|
140 |
}
|
141 |
|
142 |
+
// accelerated-mobile-pages plugin
|
143 |
+
|
144 |
+
function fifu_amp_url($url, $width, $height) {
|
145 |
+
$size = get_post_meta(get_the_ID(), 'fifu_image_dimension');
|
146 |
+
if (!empty($size)) {
|
147 |
+
$size = explode(';', $size[0]);
|
148 |
+
$width = $size[0];
|
149 |
+
$height = $size[1];
|
150 |
+
}
|
151 |
+
return array(0 => $url, 1 => $width, 2 => $height);
|
152 |
+
}
|
153 |
+
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Plugin Name ===
|
2 |
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.2.2
|
7 |
Stable tag: 5.2.2
|
@@ -159,6 +159,9 @@ Features:
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 2.5.2 =
|
163 |
* Improvement: ignore Auto Set First Image checkbox added to post editor.
|
164 |
|
@@ -585,6 +588,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
585 |
|
586 |
== Upgrade Notice ==
|
587 |
|
|
|
|
|
|
|
588 |
= 2.5.2 =
|
589 |
* Improvement: ignore Auto Set First Image checkbox added to post editor.
|
590 |
|
1 |
=== Plugin Name ===
|
2 |
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
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 2.5.3 =
|
163 |
+
* Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
|
164 |
+
|
165 |
= 2.5.2 =
|
166 |
* Improvement: ignore Auto Set First Image checkbox added to post editor.
|
167 |
|
588 |
|
589 |
== Upgrade Notice ==
|
590 |
|
591 |
+
= 2.5.3 =
|
592 |
+
* Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
|
593 |
+
|
594 |
= 2.5.2 =
|
595 |
* Improvement: ignore Auto Set First Image checkbox added to post editor.
|
596 |
|