Version Description
- Social tags toggle.
=
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 1.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.9 to 1.5.0
- admin/html/js/menu.js +14 -0
- admin/html/menu.html +33 -6
- admin/html/meta-box.html +15 -14
- admin/menu.php +5 -1
- featured-image-from-url.php +1 -1
- includes/thumbnail-category.php +1 -1
- includes/thumbnail.php +1 -1
- readme.txt +10 -4
admin/html/js/menu.js
CHANGED
@@ -25,6 +25,20 @@ jQuery(function () {
|
|
25 |
});
|
26 |
});
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
jQuery("#fifu_form_content").submit(function () {
|
29 |
|
30 |
var frm = jQuery("#fifu_form_content");
|
25 |
});
|
26 |
});
|
27 |
|
28 |
+
jQuery("#fifu_form_social").submit(function () {
|
29 |
+
|
30 |
+
var frm = jQuery("#fifu_form_social");
|
31 |
+
|
32 |
+
jQuery.ajax({
|
33 |
+
type: frm.attr('method'),
|
34 |
+
url: url,
|
35 |
+
data: frm.serialize(),
|
36 |
+
success: function (data) {
|
37 |
+
//alert('saved');
|
38 |
+
}
|
39 |
+
});
|
40 |
+
});
|
41 |
+
|
42 |
jQuery("#fifu_form_content").submit(function () {
|
43 |
|
44 |
var frm = jQuery("#fifu_form_content");
|
admin/html/menu.html
CHANGED
@@ -29,6 +29,33 @@
|
|
29 |
<input type="submit" value="Submit" >
|
30 |
</form>
|
31 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<div class="box">
|
33 |
<h2>Featured Image in Content</h2>
|
34 |
<div class="greybox" style="background:#e3ffe2">
|
@@ -126,7 +153,7 @@
|
|
126 |
</form>
|
127 |
</div>
|
128 |
<div class="box">
|
129 |
-
<h2><a href="https://www.flickr.com/"><font color="#007ee5">flick</font><font color="#ff0084">r</font></a> Integration: Your Website Faster Than Ever</h2>
|
130 |
<div class="greybox" style="background:#ffe2e2">
|
131 |
<b>Premium feature</b><br><br>
|
132 |
<div id="accordion">
|
@@ -292,9 +319,9 @@
|
|
292 |
</select>
|
293 |
</th>
|
294 |
</tr>
|
295 |
-
</table>
|
|
|
296 |
</div>
|
297 |
-
|
298 |
</div>
|
299 |
<div class="box">
|
300 |
<h2>External Featured Videos</h2>
|
@@ -357,7 +384,7 @@
|
|
357 |
<div class="box">
|
358 |
<h2>Help</h2>
|
359 |
<div class="greybox">
|
360 |
-
Featured Image From URL plugin allows you to use an external image (from anywhere) as Featured Image of your Post, Page or Custom Post Type, such as WooCommerce Product. For WooCommerce users, it's also possible to use external images in the Product Category and Product Gallery. All included content still has social tags to facilitate sharing on social networks. And it's compatible with WP All Import and Sirv plugins. For more information, refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a>.
|
361 |
</div>
|
362 |
</div>
|
363 |
<div class="box">
|
@@ -442,7 +469,7 @@
|
|
442 |
<h3>3) "How to get support?"</h3>
|
443 |
You can inform any problem related to the Premium version (except theme issues) in the email above. It will be solved as soon as possible and without any cost.<br><br>
|
444 |
<h3>4) "Which plugins are compatible with Premium version?"</h3>
|
445 |
-
WooCommerce, WP All Import and others. If you intend to use the Premium version with a specific plugin, please ask me if they are compatible.<br><br>
|
446 |
<h3>5) "Can I get my money back later?"</h3>
|
447 |
With the exception of rare situations, no way. So don't go to the Premium version if you are not sure if your theme is compatible.<br><br>
|
448 |
<h3>6) "How to get the Premium version?"</h3>
|
@@ -462,7 +489,7 @@
|
|
462 |
<div class="box">
|
463 |
<h2>About The Author</h2>
|
464 |
<div class="greybox">
|
465 |
-
Hi! I'm Marcel Jacques Machado. Graduated in Computer Science, I work as a Software Engineer for 10 years. I already worked with C, Python,
|
466 |
</div>
|
467 |
</div>
|
468 |
</div>
|
29 |
<input type="submit" value="Submit" >
|
30 |
</form>
|
31 |
</div>
|
32 |
+
<div class="box">
|
33 |
+
<h2>Social Tags</h2>
|
34 |
+
<div class="greybox" style="background:#e3ffe2">
|
35 |
+
<b>Free feature</b><br><br>
|
36 |
+
Featured Image from URL provides social tags to share the external images on the social networks. Here you can enable/disable this feature.
|
37 |
+
</div>
|
38 |
+
<br>
|
39 |
+
<form
|
40 |
+
id="fifu_form_social"
|
41 |
+
action="javascript:void(0)"
|
42 |
+
method="post">
|
43 |
+
<input
|
44 |
+
type="image"
|
45 |
+
href="javascript:void(0)"
|
46 |
+
id="fifu_toggle_social"
|
47 |
+
onclick="invert('social')"
|
48 |
+
name="fifu_toggle_social"
|
49 |
+
class="<?php echo $enable_social; ?>"
|
50 |
+
value=" "
|
51 |
+
style="<?php echo $show_social_button; ?>">
|
52 |
+
<input
|
53 |
+
type="hidden"
|
54 |
+
id="fifu_input_social"
|
55 |
+
name="fifu_input_social"
|
56 |
+
value="" >
|
57 |
+
</form>
|
58 |
+
</div>
|
59 |
<div class="box">
|
60 |
<h2>Featured Image in Content</h2>
|
61 |
<div class="greybox" style="background:#e3ffe2">
|
153 |
</form>
|
154 |
</div>
|
155 |
<div class="box">
|
156 |
+
<h2><a href="https://www.flickr.com/"><font color="#007ee5">flick</font><font color="#ff0084">r</font></a> Integration (External Thumbnails): Your Website Faster Than Ever</h2>
|
157 |
<div class="greybox" style="background:#ffe2e2">
|
158 |
<b>Premium feature</b><br><br>
|
159 |
<div id="accordion">
|
319 |
</select>
|
320 |
</th>
|
321 |
</tr>
|
322 |
+
</table><br>
|
323 |
+
<a href="http://fifu.marceljm.com/" targe="_blank">Live preview</a> (site loaded 93% faster due external thumbnails feature)
|
324 |
</div>
|
|
|
325 |
</div>
|
326 |
<div class="box">
|
327 |
<h2>External Featured Videos</h2>
|
384 |
<div class="box">
|
385 |
<h2>Help</h2>
|
386 |
<div class="greybox">
|
387 |
+
Featured Image From URL plugin allows you to use an external image (from anywhere) as Featured Image of your Post, Page or Custom Post Type, such as WooCommerce Product. For WooCommerce users, it's also possible to use external images in the Product Category and Product Gallery. All included content still has social tags to facilitate sharing on social networks. And it's compatible with WP All Import, a3 Lazy Load and Sirv plugins. For more information, refer to <a href="https://wordpress.org/plugins/featured-image-from-url/faq/" target="_blank">FAQ</a> and <a href="https://wordpress.org/plugins/featured-image-from-url/screenshots/" target="_blank">screenshots</a>.
|
388 |
</div>
|
389 |
</div>
|
390 |
<div class="box">
|
469 |
<h3>3) "How to get support?"</h3>
|
470 |
You can inform any problem related to the Premium version (except theme issues) in the email above. It will be solved as soon as possible and without any cost.<br><br>
|
471 |
<h3>4) "Which plugins are compatible with Premium version?"</h3>
|
472 |
+
WooCommerce, WP All Import, a3 Lazy Load and others. If you intend to use the Premium version with a specific plugin, please ask me if they are compatible.<br><br>
|
473 |
<h3>5) "Can I get my money back later?"</h3>
|
474 |
With the exception of rare situations, no way. So don't go to the Premium version if you are not sure if your theme is compatible.<br><br>
|
475 |
<h3>6) "How to get the Premium version?"</h3>
|
489 |
<div class="box">
|
490 |
<h2>About The Author</h2>
|
491 |
<div class="greybox">
|
492 |
+
Hi! I'm Marcel Jacques Machado. Graduated in Computer Science, I work as a Software Engineer for 10 years. I already worked with C, Python, Shell Script and other programming languages and technologies. Nowadays, I develop web applications in Brazil using Java. About PHP, this plugin, Featured Image From URL, is my first pratical experience. I also have a <a href="http://marceljm.com/" target="_blank">blog</a> in WordPress and I expect to post some useful content very soon.
|
493 |
</div>
|
494 |
</div>
|
495 |
</div>
|
admin/html/meta-box.html
CHANGED
@@ -3,16 +3,16 @@
|
|
3 |
<!-- show alt field, image and link if URL was already provided -->
|
4 |
|
5 |
<input id="fifu_input_alt"
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
|
12 |
<div id="fifu_image"
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
</div>
|
17 |
|
18 |
<p/>
|
@@ -25,11 +25,11 @@
|
|
25 |
<!-- show URL field and preview button if URL was not provided yet -->
|
26 |
|
27 |
<input id="fifu_input_url"
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
<a id="fifu_button"
|
35 |
class="button"
|
@@ -44,4 +44,5 @@
|
|
44 |
title="Add image from Sirv"
|
45 |
style="<?php echo $show_sirv?>">Choose Sirv image</a>
|
46 |
|
47 |
-
<
|
|
3 |
<!-- show alt field, image and link if URL was already provided -->
|
4 |
|
5 |
<input id="fifu_input_alt"
|
6 |
+
type="text"
|
7 |
+
name="fifu_input_alt"
|
8 |
+
placeholder="alt attribute (optional)"
|
9 |
+
value="<?php echo $alt; ?>"
|
10 |
+
style="<?php echo $width, $margin, $show_alt ?>" />
|
11 |
|
12 |
<div id="fifu_image"
|
13 |
+
style="<?php echo $height, $margin, $show_image ?>
|
14 |
+
background:url('<?php echo $url; ?>') no-repeat center center;
|
15 |
+
background-size:cover;" >
|
16 |
</div>
|
17 |
|
18 |
<p/>
|
25 |
<!-- show URL field and preview button if URL was not provided yet -->
|
26 |
|
27 |
<input id="fifu_input_url"
|
28 |
+
type="text"
|
29 |
+
name="fifu_input_url"
|
30 |
+
placeholder="URL"
|
31 |
+
value="<?php echo $url; ?>"
|
32 |
+
style="<?php echo $width, $margin, $show_url ?>" />
|
33 |
|
34 |
<a id="fifu_button"
|
35 |
class="button"
|
44 |
title="Add image from Sirv"
|
45 |
style="<?php echo $show_sirv?>">Choose Sirv image</a>
|
46 |
|
47 |
+
<hr>
|
48 |
+
<p style="border: 1px solid green; padding: 25px;"><b>New free feature</b>: now you can enable/disable <b>social tags</b> for external images in the plugin settings. The dafault value is off.</p>
|
admin/menu.php
CHANGED
@@ -14,6 +14,7 @@ function fifu_get_menu_html() {
|
|
14 |
$image_button = plugins_url() . '/featured-image-from-url/admin/images/onoff.jpg';
|
15 |
|
16 |
$enable_woocommerce = get_option('fifu_woocommerce');
|
|
|
17 |
$enable_content = get_option('fifu_content');
|
18 |
$enable_hope = get_option('fifu_hope');
|
19 |
|
@@ -21,7 +22,8 @@ function fifu_get_menu_html() {
|
|
21 |
for ($x = 0; $x <= 4; $x++)
|
22 |
$array_cpt[$x] = get_option('fifu_cpt' . $x);
|
23 |
|
24 |
-
$show_woocommerce_button = $show_content_button = "display:block";
|
|
|
25 |
$output = shell_exec('uname -s');
|
26 |
if ($output == "") {
|
27 |
$compatible = "Unfortunatelly, the script and your server system are not compatible. " .
|
@@ -50,6 +52,7 @@ function fifu_get_menu_html() {
|
|
50 |
|
51 |
function fifu_get_menu_settings() {
|
52 |
fifu_get_setting('fifu_woocommerce');
|
|
|
53 |
fifu_get_setting('fifu_content');
|
54 |
fifu_get_setting('fifu_hope');
|
55 |
|
@@ -70,6 +73,7 @@ function fifu_get_setting($type) {
|
|
70 |
|
71 |
function fifu_update_menu_options() {
|
72 |
fifu_update_option('fifu_input_woocommerce', 'fifu_woocommerce');
|
|
|
73 |
fifu_update_option('fifu_input_content', 'fifu_content');
|
74 |
fifu_update_option('fifu_input_hope', 'fifu_hope');
|
75 |
|
14 |
$image_button = plugins_url() . '/featured-image-from-url/admin/images/onoff.jpg';
|
15 |
|
16 |
$enable_woocommerce = get_option('fifu_woocommerce');
|
17 |
+
$enable_social = get_option('fifu_social');
|
18 |
$enable_content = get_option('fifu_content');
|
19 |
$enable_hope = get_option('fifu_hope');
|
20 |
|
22 |
for ($x = 0; $x <= 4; $x++)
|
23 |
$array_cpt[$x] = get_option('fifu_cpt' . $x);
|
24 |
|
25 |
+
$show_woocommerce_button = $show_social_button = $show_content_button = "display:block";
|
26 |
+
|
27 |
$output = shell_exec('uname -s');
|
28 |
if ($output == "") {
|
29 |
$compatible = "Unfortunatelly, the script and your server system are not compatible. " .
|
52 |
|
53 |
function fifu_get_menu_settings() {
|
54 |
fifu_get_setting('fifu_woocommerce');
|
55 |
+
fifu_get_setting('fifu_social');
|
56 |
fifu_get_setting('fifu_content');
|
57 |
fifu_get_setting('fifu_hope');
|
58 |
|
73 |
|
74 |
function fifu_update_menu_options() {
|
75 |
fifu_update_option('fifu_input_woocommerce', 'fifu_woocommerce');
|
76 |
+
fifu_update_option('fifu_input_social', 'fifu_social');
|
77 |
fifu_update_option('fifu_input_content', 'fifu_content');
|
78 |
fifu_update_option('fifu_input_hope', 'fifu_hope');
|
79 |
|
featured-image-from-url.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
* Plugin Name: Featured Image From URL
|
5 |
* Description: Allows to use an external image as Featured Image of your post, page or Custom Post Type, such as WooCommerce Product (supports Product Gallery also).
|
6 |
-
* Version: 1.
|
7 |
* Author: Marcel Jacques Machado
|
8 |
* Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
|
9 |
*/
|
3 |
/*
|
4 |
* Plugin Name: Featured Image From URL
|
5 |
* Description: Allows to use an external image as Featured Image of your post, page or Custom Post Type, such as WooCommerce Product (supports Product Gallery also).
|
6 |
+
* Version: 1.5.0
|
7 |
* Author: Marcel Jacques Machado
|
8 |
* Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
|
9 |
*/
|
includes/thumbnail-category.php
CHANGED
@@ -20,7 +20,7 @@ function fifu_cat_add_social_tags() {
|
|
20 |
if ($term_id)
|
21 |
$description = wp_strip_all_tags(category_description($term_id));
|
22 |
|
23 |
-
if ($url)
|
24 |
include 'html/social.html';
|
25 |
}
|
26 |
|
20 |
if ($term_id)
|
21 |
$description = wp_strip_all_tags(category_description($term_id));
|
22 |
|
23 |
+
if ($url && get_option('fifu_social') == 'toggleon')
|
24 |
include 'html/social.html';
|
25 |
}
|
26 |
|
includes/thumbnail.php
CHANGED
@@ -9,7 +9,7 @@ function fifu_add_social_tags() {
|
|
9 |
$title = get_the_title($post_id);
|
10 |
$description = wp_strip_all_tags(get_post_field('post_content', $post_id));
|
11 |
|
12 |
-
if ($url)
|
13 |
include 'html/social.html';
|
14 |
}
|
15 |
|
9 |
$title = get_the_title($post_id);
|
10 |
$description = wp_strip_all_tags(get_post_field('post_content', $post_id));
|
11 |
|
12 |
+
if ($url && get_option('fifu_social') == 'toggleon')
|
13 |
include 'html/social.html';
|
14 |
}
|
15 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
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, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 4.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -278,6 +278,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
278 |
= 1.4.9 =
|
279 |
* Add information about theme compatibility.
|
280 |
|
|
|
|
|
|
|
281 |
== Upgrade Notice ==
|
282 |
|
283 |
= 1.0 =
|
@@ -381,4 +384,7 @@ was removed. To finish, a Premium version is now been presented.
|
|
381 |
* Bug fix.
|
382 |
|
383 |
= 1.4.9 =
|
384 |
-
* Add information about theme compatibility.
|
|
|
|
|
|
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, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, wp all import
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.7.3
|
7 |
+
Stable tag: 4.7.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
278 |
= 1.4.9 =
|
279 |
* Add information about theme compatibility.
|
280 |
|
281 |
+
= 1.5.0 =
|
282 |
+
* Social tags toggle.
|
283 |
+
|
284 |
== Upgrade Notice ==
|
285 |
|
286 |
= 1.0 =
|
384 |
* Bug fix.
|
385 |
|
386 |
= 1.4.9 =
|
387 |
+
* Add information about theme compatibility.
|
388 |
+
|
389 |
+
= 1.5.0 =
|
390 |
+
* Social tags toggle.
|