Version Description
- Bug fix: CSS Style feature.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.9 to 2.3.0
- admin/html/menu.html +1 -17
- admin/menu.php +1 -2
- featured-image-from-url.php +1 -1
- includes/thumbnail.php +4 -3
- readme.txt +6 -0
admin/html/menu.html
CHANGED
@@ -659,7 +659,7 @@
|
|
659 |
<h2>CSS Style</h2>
|
660 |
<div class="greybox">
|
661 |
Here you can define a CSS style to be applied to all external featured images. Usage example:<br><br>
|
662 |
-
width:
|
663 |
</div>
|
664 |
<br>
|
665 |
<form
|
@@ -1940,14 +1940,6 @@
|
|
1940 |
fifu_image_alt
|
1941 |
</th>
|
1942 |
</tr>
|
1943 |
-
<tr>
|
1944 |
-
<th>
|
1945 |
-
Image Gallery
|
1946 |
-
</th>
|
1947 |
-
<th>
|
1948 |
-
fifu_image_url_0, fifu_image_url_1, fifu_image_url_2 ...
|
1949 |
-
</th>
|
1950 |
-
</tr>
|
1951 |
<tr>
|
1952 |
<th>
|
1953 |
Image + Image Gallery (URLs delimited by "|")
|
@@ -1980,14 +1972,6 @@
|
|
1980 |
fifu_video_url_0, fifu_video_url_1, fifu_video_url_2 ...
|
1981 |
</th>
|
1982 |
</tr>
|
1983 |
-
<tr>
|
1984 |
-
<th>
|
1985 |
-
Slider
|
1986 |
-
</th>
|
1987 |
-
<th>
|
1988 |
-
fifu_slider_image_url_0, fifu_slider_image_url_1, fifu_slider_image_url_2 ...
|
1989 |
-
</th>
|
1990 |
-
</tr>
|
1991 |
<tr>
|
1992 |
<th>
|
1993 |
Slider (URLs delimited by "|")
|
659 |
<h2>CSS Style</h2>
|
660 |
<div class="greybox">
|
661 |
Here you can define a CSS style to be applied to all external featured images. Usage example:<br><br>
|
662 |
+
width: 50%; border-radius: 8px; border: 1px solid #ddd; padding: 5px;
|
663 |
</div>
|
664 |
<br>
|
665 |
<form
|
1940 |
fifu_image_alt
|
1941 |
</th>
|
1942 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1943 |
<tr>
|
1944 |
<th>
|
1945 |
Image + Image Gallery (URLs delimited by "|")
|
1972 |
fifu_video_url_0, fifu_video_url_1, fifu_video_url_2 ...
|
1973 |
</th>
|
1974 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1975 |
<tr>
|
1976 |
<th>
|
1977 |
Slider (URLs delimited by "|")
|
admin/menu.php
CHANGED
@@ -5,8 +5,7 @@ define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_original', 'fifu_la
|
|
5 |
add_action('admin_menu', 'fifu_insert_menu');
|
6 |
|
7 |
function fifu_insert_menu() {
|
8 |
-
//
|
9 |
-
wp_enqueue_style('jquery-css', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css');
|
10 |
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.11.4/jquery-ui.min.js');
|
11 |
wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
|
12 |
wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
|
5 |
add_action('admin_menu', 'fifu_insert_menu');
|
6 |
|
7 |
function fifu_insert_menu() {
|
8 |
+
wp_enqueue_style('jquery-ui-style', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css');
|
|
|
9 |
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.11.4/jquery-ui.min.js');
|
10 |
wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
|
11 |
wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
|
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.
|
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.0
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
includes/thumbnail.php
CHANGED
@@ -75,11 +75,12 @@ function fifu_replace($html, $post_id, $post_thumbnail_id, $size) {
|
|
75 |
if (fifu_is_on('fifu_lazy') && !is_admin())
|
76 |
$html = str_replace("src", "data-src", $html);
|
77 |
|
78 |
-
if (get_post_meta($post_id, 'fifu_image_url', true))
|
79 |
-
return $html;
|
80 |
-
|
81 |
$url = get_post_meta($post_id, 'fifu_image_url', true);
|
82 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
|
|
|
|
|
|
|
|
83 |
|
84 |
return !$url ? $html : fifu_get_html($url, $alt, $width, $height);
|
85 |
}
|
75 |
if (fifu_is_on('fifu_lazy') && !is_admin())
|
76 |
$html = str_replace("src", "data-src", $html);
|
77 |
|
|
|
|
|
|
|
78 |
$url = get_post_meta($post_id, 'fifu_image_url', true);
|
79 |
$alt = get_post_meta($post_id, 'fifu_image_alt', true);
|
80 |
+
$css = get_option('fifu_css');
|
81 |
+
|
82 |
+
if ($url)
|
83 |
+
return $css ? str_replace('/>', ' style="' . $css . '"/>', $html) : $html;
|
84 |
|
85 |
return !$url ? $html : fifu_get_html($url, $alt, $width, $height);
|
86 |
}
|
readme.txt
CHANGED
@@ -157,6 +157,9 @@ Features:
|
|
157 |
|
158 |
== Changelog ==
|
159 |
|
|
|
|
|
|
|
160 |
= 2.2.9 =
|
161 |
* Bug fix: WP All Import.
|
162 |
|
@@ -514,6 +517,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
514 |
|
515 |
== Upgrade Notice ==
|
516 |
|
|
|
|
|
|
|
517 |
= 2.2.9 =
|
518 |
* Bug fix: WP All Import.
|
519 |
|
157 |
|
158 |
== Changelog ==
|
159 |
|
160 |
+
= 2.3.0 =
|
161 |
+
* Bug fix: CSS Style feature.
|
162 |
+
|
163 |
= 2.2.9 =
|
164 |
* Bug fix: WP All Import.
|
165 |
|
517 |
|
518 |
== Upgrade Notice ==
|
519 |
|
520 |
+
= 2.3.0 =
|
521 |
+
* Bug fix: CSS Style feature.
|
522 |
+
|
523 |
= 2.2.9 =
|
524 |
* Bug fix: WP All Import.
|
525 |
|