Version Description
- FIFU 2 released.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- admin/html/menu.html +7 -7
- admin/html/meta-box.html +7 -7
- admin/menu.php +1 -1
- featured-image-from-url.php +2 -2
- includes/thumbnail.php +3 -3
- readme.txt +6 -0
admin/html/menu.html
CHANGED
@@ -5,17 +5,17 @@
|
|
5 |
<div class="wrap">
|
6 |
|
7 |
<div class="box">
|
8 |
-
<h1>Featured Image
|
9 |
</div>
|
10 |
|
11 |
<div class="box">
|
12 |
<h2>IMPORTANT!!!</h2>
|
13 |
-
<p style="font-size: 12px; padding: 5px; border-left: 6px solid
|
14 |
-
background-color: #eee; border-radius: 25px 5px;">
|
15 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
|
16 |
-
background-color: #eee; border-radius: 25px 5px;">
|
17 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
18 |
-
background-color: #eee; border-radius: 25px 5px;">You also can go back to the
|
19 |
</div>
|
20 |
|
21 |
<div class="box">
|
@@ -1034,7 +1034,7 @@
|
|
1034 |
<li>Creates automatic copies of your images in <b>many different sizes.</b></li>
|
1035 |
</ol>
|
1036 |
</div>
|
1037 |
-
<h3>  How does Featured Image
|
1038 |
<div>
|
1039 |
Smaller the images, faster your site.<br><br> So the plugin will load the images from Flickr in the exactly size your site needs.
|
1040 |
And the result is...<br><br>
|
@@ -1760,7 +1760,7 @@ WooCommerce:<?php echo class_exists('WooCommerce') ? WC()->version : '' ?>;
|
|
1760 |
WordPress:<?php echo get_bloginfo('version') ?>;
|
1761 |
Pages:<?php echo wp_count_posts('page')->publish ?>;
|
1762 |
Posts:<?php echo wp_count_posts('post')->publish ?>;
|
1763 |
-
Products:<?php echo wp_count_posts('product')->publish ?>;
|
1764 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
1765 |
fifu_column_height:<?php echo $column_height ?>;
|
1766 |
fifu_content:<?php echo $enable_content ?>;
|
5 |
<div class="wrap">
|
6 |
|
7 |
<div class="box">
|
8 |
+
<h1>Featured Image from URL <b style="color:red">2</b></h1>
|
9 |
</div>
|
10 |
|
11 |
<div class="box">
|
12 |
<h2>IMPORTANT!!!</h2>
|
13 |
+
<p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
|
14 |
+
background-color: #eee; border-radius: 25px 5px;">FIFU 2 was released this week with a lot of internal changes to overcome some old known issues</p>
|
15 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
|
16 |
+
background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
|
17 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
18 |
+
background-color: #eee; border-radius: 25px 5px;">You also can go back to the <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.13.zip">last stable version</a> while the issue is not solved</p>
|
19 |
</div>
|
20 |
|
21 |
<div class="box">
|
1034 |
<li>Creates automatic copies of your images in <b>many different sizes.</b></li>
|
1035 |
</ol>
|
1036 |
</div>
|
1037 |
+
<h3>  How does Featured Image from URL take advantage of Flickr?</h3>
|
1038 |
<div>
|
1039 |
Smaller the images, faster your site.<br><br> So the plugin will load the images from Flickr in the exactly size your site needs.
|
1040 |
And the result is...<br><br>
|
1760 |
WordPress:<?php echo get_bloginfo('version') ?>;
|
1761 |
Pages:<?php echo wp_count_posts('page')->publish ?>;
|
1762 |
Posts:<?php echo wp_count_posts('post')->publish ?>;
|
1763 |
+
Products:<?php echo class_exists('WooCommerce') ? wp_count_posts('product')->publish : null ?>;
|
1764 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
1765 |
fifu_column_height:<?php echo $column_height ?>;
|
1766 |
fifu_content:<?php echo $enable_content ?>;
|
admin/html/meta-box.html
CHANGED
@@ -51,12 +51,12 @@
|
|
51 |
<div style="<?php echo $show_news ?>">
|
52 |
<br>
|
53 |
<hr>
|
54 |
-
<p style="font-size: 12px; padding: 5px; border-left: 6px solid
|
55 |
-
background-color: #eee; border-radius: 25px 5px;">
|
56 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
|
57 |
-
background-color: #eee; border-radius: 25px 5px;">
|
58 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
59 |
-
background-color: #eee; border-radius: 25px 5px;">You also can go back to the
|
60 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
|
61 |
background-color: #eee; border-radius: 25px 5px;">New: WooCommerce <a href="admin.php?page=featured-image-from-url#variable">Product Variable</a> support (<a href="https://shop.featuredimagefromurl.com/product/variable-product/">live preview</a>)</p-->
|
62 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
@@ -65,7 +65,7 @@
|
|
65 |
background-color: #eee; border-radius: 25px 5px;">What should be the next plugin feature? Vote <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">here</a>.</p-->
|
66 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #3627c2; color: black;
|
67 |
background-color: #eee; border-radius: 25px 5px;">New: apply a <b><a href="admin.php?page=featured-image-from-url#css">CSS Style</a></b> to all your external featured images. It's a free feature now (16% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p-->
|
68 |
-
|
69 |
<center>
|
70 |
<table>
|
71 |
<tbody>
|
@@ -73,11 +73,11 @@
|
|
73 |
<th>premium live preview:</th>
|
74 |
<th><a href="https://blog.featuredimagefromurl.com/">blog
|
75 |
</a></th>
|
76 |
-
<th
|
77 |
</a></th>
|
78 |
</tr>
|
79 |
</tbody>
|
80 |
</table>
|
81 |
</center>
|
82 |
-
|
83 |
</div>
|
51 |
<div style="<?php echo $show_news ?>">
|
52 |
<br>
|
53 |
<hr>
|
54 |
+
<p style="font-size: 12px; padding: 5px; border-left: 6px solid rgb(0, 115, 170); color: black;
|
55 |
+
background-color: #eee; border-radius: 25px 5px;">FIFU 2 was released this week with a lot of internal changes to overcome some old known issues</p>
|
56 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: black;
|
57 |
+
background-color: #eee; border-radius: 25px 5px;">Please report any problem to <a href="mailto:marcel@featuredimagefromurl.com">marcel@featuredimagefromurl.com</a></p>
|
58 |
<p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
59 |
+
background-color: #eee; border-radius: 25px 5px;">You also can go back to the <a href="https://downloads.wordpress.org/plugin/featured-image-from-url.1.9.13.zip">last stable version</a> while the issue is not solved</p>
|
60 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #b20ab8; color: black;
|
61 |
background-color: #eee; border-radius: 25px 5px;">New: WooCommerce <a href="admin.php?page=featured-image-from-url#variable">Product Variable</a> support (<a href="https://shop.featuredimagefromurl.com/product/variable-product/">live preview</a>)</p-->
|
62 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid orange; color: black;
|
65 |
background-color: #eee; border-radius: 25px 5px;">What should be the next plugin feature? Vote <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">here</a>.</p-->
|
66 |
<!--p style="font-size: 12px; padding: 5px; border-left: 6px solid #3627c2; color: black;
|
67 |
background-color: #eee; border-radius: 25px 5px;">New: apply a <b><a href="admin.php?page=featured-image-from-url#css">CSS Style</a></b> to all your external featured images. It's a free feature now (16% of <a href="https://goo.gl/forms/TxLdhwXTqsuO5BHg2">votes</a>)</p-->
|
68 |
+
|
69 |
<center>
|
70 |
<table>
|
71 |
<tbody>
|
73 |
<th>premium live preview:</th>
|
74 |
<th><a href="https://blog.featuredimagefromurl.com/">blog
|
75 |
</a></th>
|
76 |
+
<th>/ <a href="https://shop.featuredimagefromurl.com/">shop
|
77 |
</a></th>
|
78 |
</tr>
|
79 |
</tbody>
|
80 |
</table>
|
81 |
</center>
|
82 |
+
|
83 |
</div>
|
admin/menu.php
CHANGED
@@ -4,7 +4,7 @@ add_action('admin_menu', 'fifu_insert_menu');
|
|
4 |
|
5 |
function fifu_insert_menu() {
|
6 |
add_menu_page(
|
7 |
-
'Featured Image
|
8 |
);
|
9 |
|
10 |
add_action('admin_init', 'fifu_get_menu_settings');
|
4 |
|
5 |
function fifu_insert_menu() {
|
6 |
add_menu_page(
|
7 |
+
'Featured Image from URL', 'Featured Image from URL', 'administrator', 'featured-image-from-url', 'fifu_get_menu_html', plugins_url() . '/featured-image-from-url/admin/images/favicon.png'
|
8 |
);
|
9 |
|
10 |
add_action('admin_init', 'fifu_get_menu_settings');
|
featured-image-from-url.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Plugin Name: Featured Image
|
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.0.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
1 |
<?php
|
2 |
|
3 |
/*
|
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.0.3
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
includes/thumbnail.php
CHANGED
@@ -96,7 +96,7 @@ function is_ajax_call() {
|
|
96 |
function fifu_get_html($url, $alt, $width, $height) {
|
97 |
include_once (ABSPATH . 'wp-admin/includes/plugin.php');
|
98 |
if (is_plugin_active('sirv/sirv.php') && strpos($url, "sirv.com") !== false)
|
99 |
-
return sprintf('<!-- Featured Image
|
100 |
|
101 |
$css = get_option('fifu_css');
|
102 |
|
@@ -105,10 +105,10 @@ function fifu_get_html($url, $alt, $width, $height) {
|
|
105 |
}
|
106 |
|
107 |
if (fifu_is_off('fifu_data_generation')) {
|
108 |
-
return sprintf('<!-- Powered by Featured Image
|
109 |
}
|
110 |
|
111 |
-
return sprintf('<!-- Featured Image
|
112 |
}
|
113 |
|
114 |
add_filter('the_content', 'fifu_add_to_content');
|
96 |
function fifu_get_html($url, $alt, $width, $height) {
|
97 |
include_once (ABSPATH . 'wp-admin/includes/plugin.php');
|
98 |
if (is_plugin_active('sirv/sirv.php') && strpos($url, "sirv.com") !== false)
|
99 |
+
return sprintf('<!-- Featured Image from URL plugin --> <img class="Sirv" data-src="%s">', $url);
|
100 |
|
101 |
$css = get_option('fifu_css');
|
102 |
|
105 |
}
|
106 |
|
107 |
if (fifu_is_off('fifu_data_generation')) {
|
108 |
+
return sprintf('<!-- Powered by Featured Image from URL plugin --> <img %s alt="%s" title="%s" style="%s" data-large_image="%s" data-large_image_width="%s" data-large_image_height="%s" onerror="%s" width="%s" height="%s">', fifu_lazy_url($url), $alt, $alt, $css, $url, "800", "600", "jQuery(this).hide();", $width, $height);
|
109 |
}
|
110 |
|
111 |
+
return sprintf('<!-- Featured Image from URL plugin --> <img %s alt="%s" title="%s" style="%s">', fifu_lazy_url($url), $alt, $alt, $css);
|
112 |
}
|
113 |
|
114 |
add_filter('the_content', 'fifu_add_to_content');
|
readme.txt
CHANGED
@@ -161,6 +161,9 @@ Features:
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
164 |
= 2.0.2 =
|
165 |
* Bug fix: priority feature.
|
166 |
|
@@ -437,6 +440,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
437 |
|
438 |
== Upgrade Notice ==
|
439 |
|
|
|
|
|
|
|
440 |
= 2.0.2 =
|
441 |
* Bug fix: priority feature.
|
442 |
|
161 |
|
162 |
== Changelog ==
|
163 |
|
164 |
+
= 2.0.3 =
|
165 |
+
* FIFU 2 released.
|
166 |
+
|
167 |
= 2.0.2 =
|
168 |
* Bug fix: priority feature.
|
169 |
|
440 |
|
441 |
== Upgrade Notice ==
|
442 |
|
443 |
+
= 2.0.3 =
|
444 |
+
* FIFU 2 released.
|
445 |
+
|
446 |
= 2.0.2 =
|
447 |
* Bug fix: priority feature.
|
448 |
|