Version Description
- Compatible with any theme now.
=
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 1.5.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.5 to 1.5.6
- admin/category.php +2 -2
- admin/html/category-advertisement.html +0 -17
- admin/html/category.html +1 -1
- admin/html/css/blink.css +0 -7
- admin/html/css/hover.css +0 -7
- admin/html/hover.html +0 -9
- admin/html/js/meta-box.js +0 -2
- admin/html/menu.html +10 -72
- admin/html/meta-box.html +22 -50
- admin/meta-box.php +2 -1
- featured-image-from-url.php +2 -2
- includes/external-post.php +2 -0
- readme.txt +12 -11
admin/category.php
CHANGED
@@ -6,8 +6,9 @@ add_action('product_cat_add_form_fields', 'fifu_cat_show_box');
|
|
6 |
function fifu_cat_show_box($term) {
|
7 |
$margin = 'margin-top:10px;';
|
8 |
$width = 'width:100%;';
|
9 |
-
$height = 'height:
|
10 |
$align = 'text-align:left;';
|
|
|
11 |
$is_sirv_active = is_plugin_active('sirv/sirv.php');
|
12 |
|
13 |
$url = get_term_meta($term->term_id, 'fifu_image_url', true);
|
@@ -21,7 +22,6 @@ function fifu_cat_show_box($term) {
|
|
21 |
}
|
22 |
|
23 |
include 'html/category.html';
|
24 |
-
include 'html/category-advertisement.html';
|
25 |
}
|
26 |
|
27 |
add_action('edited_product_cat', 'fifu_cat_save_properties', 10, 2);
|
6 |
function fifu_cat_show_box($term) {
|
7 |
$margin = 'margin-top:10px;';
|
8 |
$width = 'width:100%;';
|
9 |
+
$height = 'height:200px;';
|
10 |
$align = 'text-align:left;';
|
11 |
+
$show_news = 'display:none';
|
12 |
$is_sirv_active = is_plugin_active('sirv/sirv.php');
|
13 |
|
14 |
$url = get_term_meta($term->term_id, 'fifu_image_url', true);
|
22 |
}
|
23 |
|
24 |
include 'html/category.html';
|
|
|
25 |
}
|
26 |
|
27 |
add_action('edited_product_cat', 'fifu_cat_save_properties', 10, 2);
|
admin/html/category-advertisement.html
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<style><?php include 'css/category.css' ?></style>
|
2 |
-
|
3 |
-
<tr>
|
4 |
-
<th>External Featured Video</th>
|
5 |
-
<td>
|
6 |
-
<div class="box">
|
7 |
-
|
8 |
-
<iframe src="https://www.youtube.com/embed/LuynS-Y-fZs" width="100%" allowfullscreen="" frameborder="0"></iframe>
|
9 |
-
|
10 |
-
<a href="http://marceljm.com/wordpress/featured-image-from-url-premium/">Enable this functionality</a>
|
11 |
-
|
12 |
-
</div>
|
13 |
-
</td>
|
14 |
-
</tr>
|
15 |
-
|
16 |
-
<br/>
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/category.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<style><?php include 'css/category.css' ?></style>
|
2 |
|
3 |
<tr>
|
4 |
-
<th>
|
5 |
<td>
|
6 |
<div class="box">
|
7 |
<?php include 'meta-box.html' ?>
|
1 |
<style><?php include 'css/category.css' ?></style>
|
2 |
|
3 |
<tr>
|
4 |
+
<th>Featured Image from URL</th>
|
5 |
<td>
|
6 |
<div class="box">
|
7 |
<?php include 'meta-box.html' ?>
|
admin/html/css/blink.css
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
.blink_me {
|
2 |
-
animation: blinker 2s linear infinite;
|
3 |
-
}
|
4 |
-
|
5 |
-
@keyframes blinker {
|
6 |
-
50% { opacity: 0.0; }
|
7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/css/hover.css
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
.blink_me {
|
2 |
-
animation: blinker 2s linear infinite;
|
3 |
-
}
|
4 |
-
|
5 |
-
@keyframes blinker {
|
6 |
-
50% { opacity: 0.0; }
|
7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/hover.html
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<script><?php include 'js/meta-box.js' ?></script>
|
2 |
-
<style><?php include 'css/hover.css' ?></style>
|
3 |
-
|
4 |
-
<p/>
|
5 |
-
|
6 |
-
<a id="fifu_hover"
|
7 |
-
class="blink_me"
|
8 |
-
href="http://marceljm.com/wordpress/featured-image-from-url-premium/#hover"
|
9 |
-
style="<?php echo $show_hover ?>" >Apply a hover effect</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/js/meta-box.js
CHANGED
@@ -2,7 +2,6 @@ function removeImage() {
|
|
2 |
jQuery("#fifu_input_alt").hide();
|
3 |
jQuery("#fifu_image").hide();
|
4 |
jQuery("#fifu_link").hide();
|
5 |
-
jQuery("#fifu_hover").hide();
|
6 |
|
7 |
jQuery("#fifu_input_alt").val("");
|
8 |
jQuery("#fifu_input_url").val("");
|
@@ -25,6 +24,5 @@ function previewImage() {
|
|
25 |
jQuery("#fifu_input_alt").show();
|
26 |
jQuery("#fifu_image").show();
|
27 |
jQuery("#fifu_link").show();
|
28 |
-
jQuery("#fifu_hover").show();
|
29 |
}
|
30 |
}
|
2 |
jQuery("#fifu_input_alt").hide();
|
3 |
jQuery("#fifu_image").hide();
|
4 |
jQuery("#fifu_link").hide();
|
|
|
5 |
|
6 |
jQuery("#fifu_input_alt").val("");
|
7 |
jQuery("#fifu_input_url").val("");
|
24 |
jQuery("#fifu_input_alt").show();
|
25 |
jQuery("#fifu_image").show();
|
26 |
jQuery("#fifu_link").show();
|
|
|
27 |
}
|
28 |
}
|
admin/html/menu.html
CHANGED
@@ -289,13 +289,11 @@
|
|
289 |
</th>
|
290 |
<th>
|
291 |
<input id="fifu_input_video_width_rtio"
|
292 |
-
style="border: 1px solid black;"
|
293 |
name="fifu_input_video_width_rtio"
|
294 |
size="4">
|
295 |
</th>
|
296 |
<th>
|
297 |
<input id="fifu_input_video_height_rtio"
|
298 |
-
style="border: 1px solid black;"
|
299 |
name="fifu_input_video_height_rtio"
|
300 |
size="4">
|
301 |
</th>
|
@@ -445,7 +443,6 @@
|
|
445 |
</tr>
|
446 |
</table>
|
447 |
<br>
|
448 |
-
<a href="http://fifu.marceljm.com/" targe="_blank">Live preview</a>
|
449 |
</div>
|
450 |
<br>
|
451 |
<input type="submit" value="Submit" disabled>
|
@@ -636,7 +633,6 @@
|
|
636 |
</th>
|
637 |
</tr>
|
638 |
</table><br>
|
639 |
-
<a href="http://fifu.marceljm.com/" targe="_blank">Live preview</a> (site loaded 93% faster due external thumbnails feature)
|
640 |
</div>
|
641 |
</div>
|
642 |
|
@@ -645,7 +641,6 @@
|
|
645 |
<div class="greybox" style="background:#ffe2e2">
|
646 |
<b>Premium feature</b><br><br>
|
647 |
Choose one among 18 hover effects to be applied to all external featured images of your posts on your main page.<br><br>
|
648 |
-
<a href="http://marceljm.com/wordpress/featured-image-from-url-premium#hover" targe="_blank">Live preview</a>
|
649 |
</div>
|
650 |
<br>
|
651 |
<select id="select_hover" style="width:90%">
|
@@ -830,8 +825,7 @@
|
|
830 |
</th>
|
831 |
</tr>
|
832 |
</table>
|
833 |
-
|
834 |
-
<a href="http://fifu.marceljm.com/" targe="_blank">Live preview</a>
|
835 |
</div>
|
836 |
</div>
|
837 |
|
@@ -839,7 +833,7 @@
|
|
839 |
<h2>WooCommerce Lightbox</h2>
|
840 |
<div class="greybox" style="background:#ffe2e2">
|
841 |
<b>Premium feature</b><br><br>
|
842 |
-
You can enable/disable the WooCommerce lightbox here.<br
|
843 |
</div>
|
844 |
<br>
|
845 |
<input
|
@@ -871,71 +865,15 @@
|
|
871 |
</div>
|
872 |
|
873 |
<div class="box">
|
874 |
-
<h2>About Premium
|
875 |
<div class="greybox">
|
876 |
-
<h3>1) "
|
877 |
-
|
878 |
-
<
|
879 |
-
|
880 |
-
|
881 |
-
text-align: left;
|
882 |
-
}
|
883 |
-
</style>
|
884 |
-
<table style="text-align:left">
|
885 |
-
<tr><th>Working as...</th><th>Blog (70%)</th><th>WooCommerce Shop (100%)</th></tr>
|
886 |
-
<tr><th>Twenty Seventeen</th><th>yes</th><th>yes</th></tr>
|
887 |
-
<tr><th>Twenty Sixteen</th><th>yes</th><th>yes</th></tr>
|
888 |
-
<tr><th>Consulting</th><th>no</th><th>yes</th></tr>
|
889 |
-
<tr><th>Twenty Fifteen</th><th>yes</th><th>yes</th></tr>
|
890 |
-
<tr><th>Hestia</th><th>yes</th><th>yes</th></tr>
|
891 |
-
<tr><th>Twenty Fourteen</th><th>yes</th><th>yes</th></tr>
|
892 |
-
<tr><th>Sydney</th><th>yes</th><th>yes</th></tr>
|
893 |
-
<tr><th>Twenty Twelve</th><th>yes</th><th>yes</th></tr>
|
894 |
-
<tr><th>Total</th><th>no</th><th>yes</th></tr>
|
895 |
-
<tr><th>One Page Express</th><th>yes</th><th>yes</th></tr>
|
896 |
-
<tr><th>Shapely</th><th>no</th><th>yes</th></tr>
|
897 |
-
<tr><th>Twenty Eleven</th><th>yes</th><th>yes</th></tr>
|
898 |
-
<tr><th>Giga Store</th><th>-</th><th>yes</th></tr>
|
899 |
-
<tr><th>Twenty Thirteen</th><th>yes</th><th>yes</th></tr>
|
900 |
-
<tr><th>Flash</th><th>yes</th><th>yes</th></tr>
|
901 |
-
<tr><th>Zerif Lite</th><th>no</th><th>yes</th></tr>
|
902 |
-
<tr><th>Activation</th><th>yes</th><th>yes</th></tr>
|
903 |
-
<tr><th>Astra</th><th>yes</th><th>yes</th></tr>
|
904 |
-
<tr><th>Envo Store</th><th>no</th><th>yes</th></tr>
|
905 |
-
<tr><th>Kale</th><th>no</th><th>yes</th></tr>
|
906 |
-
<tr><th>Eleganto</th><th>yes</th><th>yes</th></tr>
|
907 |
-
<tr><th>ColorMag</th><th>yes</th><th>yes</th></tr>
|
908 |
-
<tr><th>OnePress</th><th>no</th><th>yes</th></tr>
|
909 |
-
<tr><th>E-Shop</th><th>-</th><th>yes</th></tr>
|
910 |
-
<tr><th>Twenty Ten</th><th>yes</th><th>yes</th></tr>
|
911 |
-
<tr><th>Storefront</th><th>yes</th><th>yes</th></tr>
|
912 |
-
<tr><th>Shop Isle</th><th>yes</th><th>yes</th></tr>
|
913 |
-
<tr><th>Spacious</th><th>yes</th><th>yes</th></tr>
|
914 |
-
<tr><th>Anissa</th><th>yes</th><th>yes</th></tr>
|
915 |
-
<tr><th>Resortica Lite</th><th>no</th><th>yes</th></tr>
|
916 |
-
</table>
|
917 |
-
<br>
|
918 |
-
Other popular themes...
|
919 |
-
<table style="text-align:left">
|
920 |
-
<tr><th>Working as...</th><th>Blog</th><th>Shop (WooCommerce)</th></tr>
|
921 |
-
<tr><th>Avada</th><th>no</th><th>yes</th></tr>
|
922 |
-
<tr><th>Divi</th><th>no</th><th>yes</th></tr>
|
923 |
-
<tr><th>Salient</th><th>yes</th><th>yes</th></tr>
|
924 |
-
<tr><th>Themify Ultra</th><th>no</th><th>yes</th></tr>
|
925 |
-
</table>
|
926 |
-
<br>
|
927 |
-
And I will continue updating those lists...<br>
|
928 |
-
<br>
|
929 |
-
<h3>2) "And if my theme isn't listed above?"</h3>
|
930 |
-
All themes tested worked fine as a WooCommerce Shop. But when tested as a Blog, 30% of themes had some problem to show Video/Slider features. So if you intend to use the plugin in a Blog, I strongly recommend you to send the zip file to <a href="mailto:marceljmachado@gmail.com">marceljmachado@gmail.com</a>. Then I can test and inform you if all plugin features will work with your theme.<br>
|
931 |
-
<br>
|
932 |
-
<h3>3) "How to get support?"</h3>
|
933 |
-
You can inform any problem related to the Premium version in the email above. It will be solved as soon as possible and without any cost (except theme issues).<br><br>
|
934 |
-
<h3>4) "Which plugins are compatible with Premium version?"</h3>
|
935 |
-
WooCommerce, WP All Import, Monarch, a3 Lazy Load, AccessPress Anonymous Post and others. If you intend to use the Premium version with a specific plugin, you can ask me if they are compatible.<br><br>
|
936 |
-
<h3>5) "Can I get my money back later?"</h3>
|
937 |
With the exception of rare situations, no way. 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 may refund you.<br><br>
|
938 |
-
<h3>
|
939 |
<div style="display:inline-block;">
|
940 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
941 |
<input type="hidden" name="cmd" value="_s-xclick">
|
@@ -953,7 +891,7 @@
|
|
953 |
<div class="box">
|
954 |
<h2>About The Author</h2>
|
955 |
<div class="greybox">
|
956 |
-
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,
|
957 |
</div>
|
958 |
</div>
|
959 |
</div>
|
289 |
</th>
|
290 |
<th>
|
291 |
<input id="fifu_input_video_width_rtio"
|
|
|
292 |
name="fifu_input_video_width_rtio"
|
293 |
size="4">
|
294 |
</th>
|
295 |
<th>
|
296 |
<input id="fifu_input_video_height_rtio"
|
|
|
297 |
name="fifu_input_video_height_rtio"
|
298 |
size="4">
|
299 |
</th>
|
443 |
</tr>
|
444 |
</table>
|
445 |
<br>
|
|
|
446 |
</div>
|
447 |
<br>
|
448 |
<input type="submit" value="Submit" disabled>
|
633 |
</th>
|
634 |
</tr>
|
635 |
</table><br>
|
|
|
636 |
</div>
|
637 |
</div>
|
638 |
|
641 |
<div class="greybox" style="background:#ffe2e2">
|
642 |
<b>Premium feature</b><br><br>
|
643 |
Choose one among 18 hover effects to be applied to all external featured images of your posts on your main page.<br><br>
|
|
|
644 |
</div>
|
645 |
<br>
|
646 |
<select id="select_hover" style="width:90%">
|
825 |
</th>
|
826 |
</tr>
|
827 |
</table>
|
828 |
+
<br>
|
|
|
829 |
</div>
|
830 |
</div>
|
831 |
|
833 |
<h2>WooCommerce Lightbox</h2>
|
834 |
<div class="greybox" style="background:#ffe2e2">
|
835 |
<b>Premium feature</b><br><br>
|
836 |
+
You can enable/disable the WooCommerce lightbox here.<br>
|
837 |
</div>
|
838 |
<br>
|
839 |
<input
|
865 |
</div>
|
866 |
|
867 |
<div class="box">
|
868 |
+
<h2>About <a href="http://featuredimagefromurl.com/">Featured Image from URL Premium</a></h2>
|
869 |
<div class="greybox">
|
870 |
+
<h3>1) "How to get support?"</h3>
|
871 |
+
You can inform any problem related to the Premium version in the email above. It will be solved as soon as possible and without any cost.<br><br>
|
872 |
+
<h3>2) "Which plugins are compatible with Premium version?"</h3>
|
873 |
+
WooCommerce, WP All Import, Monarch, AccessPress Anonymous Post and others. If you intend to use the Premium version with a specific plugin, you can ask me if they are compatible.<br><br>
|
874 |
+
<h3>3) "Can I get my money back later?"</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
With the exception of rare situations, no way. 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 may refund you.<br><br>
|
876 |
+
<h3>4) "How to get the Premium version?"</h3>
|
877 |
<div style="display:inline-block;">
|
878 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
879 |
<input type="hidden" name="cmd" value="_s-xclick">
|
891 |
<div class="box">
|
892 |
<h2>About The Author</h2>
|
893 |
<div class="greybox">
|
894 |
+
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, has been a great pratical experience.
|
895 |
</div>
|
896 |
</div>
|
897 |
</div>
|
admin/html/meta-box.html
CHANGED
@@ -1,5 +1,21 @@
|
|
1 |
<script><?php include 'js/meta-box.js' ?></script>
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<!-- show alt field, image and link if URL was already provided -->
|
4 |
|
5 |
<input id="fifu_input_alt"
|
@@ -23,11 +39,12 @@
|
|
23 |
style="<?php echo $width, $margin ?>" />
|
24 |
|
25 |
<p/>
|
26 |
-
|
27 |
-
<a id="fifu_link"
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
31 |
|
32 |
<!-- show preview button if URL was not provided yet -->
|
33 |
|
@@ -43,48 +60,3 @@
|
|
43 |
class="button sirv-add-image-modal-click"
|
44 |
title="Add image from Sirv"
|
45 |
style="<?php echo $show_sirv?>">Choose Sirv image</a>
|
46 |
-
|
47 |
-
<hr>
|
48 |
-
|
49 |
-
<p style="padding: 5px; border-left: 6px solid red;
|
50 |
-
background-color: lightgrey;">New Features 06/2017</p>
|
51 |
-
<table style="text-align:left; font-weight: normal; font-size: 10px">
|
52 |
-
<tr>
|
53 |
-
<th>Free: URL field isn't hidden anymore</th>
|
54 |
-
</th>
|
55 |
-
<tr>
|
56 |
-
<tr>
|
57 |
-
<th>Free: less annoying advertisements</th>
|
58 |
-
</th>
|
59 |
-
<tr>
|
60 |
-
<tr>
|
61 |
-
<th>Free: Use the first image as featured image</th>
|
62 |
-
</th>
|
63 |
-
<tr>
|
64 |
-
<tr>
|
65 |
-
<th>Free: Hide featured media on page/post</th>
|
66 |
-
</th>
|
67 |
-
<tr>
|
68 |
-
<tr>
|
69 |
-
<th>Premium: WooCommerce integration (any server)</th>
|
70 |
-
</th>
|
71 |
-
<tr>
|
72 |
-
<tr>
|
73 |
-
<th>Premium: Product Categories Grid</th>
|
74 |
-
</th>
|
75 |
-
<tr>
|
76 |
-
<th>Premium: Video ratio/resize</th>
|
77 |
-
</th>
|
78 |
-
<tr>
|
79 |
-
<th>Premium: Slider settings</th>
|
80 |
-
</th>
|
81 |
-
<tr>
|
82 |
-
<th>Premium: Unlimited galleries/slider</th>
|
83 |
-
</th>
|
84 |
-
<tr>
|
85 |
-
<th>Premium: WooCommerce 3 compatibility</th>
|
86 |
-
</th>
|
87 |
-
<tr>
|
88 |
-
<th>Premium: Disable WooCommerce Lightbox</th>
|
89 |
-
</th>
|
90 |
-
</table>
|
1 |
<script><?php include 'js/meta-box.js' ?></script>
|
2 |
|
3 |
+
<div style="<?php echo $show_news?>">
|
4 |
+
<table>
|
5 |
+
<tbody>
|
6 |
+
<tr>
|
7 |
+
<th>Premium Live Preview:</th>
|
8 |
+
<th><a href="http://blog.featuredimagefromurl.com/">Blog
|
9 |
+
</a></th>
|
10 |
+
<th><a href="http://shop.featuredimagefromurl.com/">Shop
|
11 |
+
</a></th>
|
12 |
+
</tr>
|
13 |
+
</tbody>
|
14 |
+
</table>
|
15 |
+
<p style="font-size: 12px; padding: 5px; border-left: 6px solid red; color: white;
|
16 |
+
background-color: black; border-radius: 15px 50px;">free and premium version are compatible with any theme now</p>
|
17 |
+
</div>
|
18 |
+
|
19 |
<!-- show alt field, image and link if URL was already provided -->
|
20 |
|
21 |
<input id="fifu_input_alt"
|
39 |
style="<?php echo $width, $margin ?>" />
|
40 |
|
41 |
<p/>
|
42 |
+
<center>
|
43 |
+
<a id="fifu_link"
|
44 |
+
href="#"
|
45 |
+
onClick="removeImage();"
|
46 |
+
style="<?php echo $show_link ?>" >remove external featured image</a>
|
47 |
+
</center>
|
48 |
|
49 |
<!-- show preview button if URL was not provided yet -->
|
50 |
|
60 |
class="button sirv-add-image-modal-click"
|
61 |
title="Add image from Sirv"
|
62 |
style="<?php echo $show_sirv?>">Choose Sirv image</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/meta-box.php
CHANGED
@@ -29,6 +29,7 @@ function fifu_show_elements($post) {
|
|
29 |
$width = 'width:100%;';
|
30 |
$height = 'height:200px;';
|
31 |
$align = 'text-align:left;';
|
|
|
32 |
$is_sirv_active = is_plugin_active('sirv/sirv.php');
|
33 |
|
34 |
$url = get_post_meta($post->ID, 'fifu_image_url', true);
|
@@ -49,7 +50,7 @@ function fifu_show_elements($post) {
|
|
49 |
function fifu_wc_show_elements($post) {
|
50 |
$margin = 'margin-top:1px;';
|
51 |
$width = 'width:70%;';
|
52 |
-
$height = 'height:
|
53 |
$align = 'text-align:left;';
|
54 |
$altWidth = 'width:86%;';
|
55 |
|
29 |
$width = 'width:100%;';
|
30 |
$height = 'height:200px;';
|
31 |
$align = 'text-align:left;';
|
32 |
+
$show_news = 'display:inline';
|
33 |
$is_sirv_active = is_plugin_active('sirv/sirv.php');
|
34 |
|
35 |
$url = get_post_meta($post->ID, 'fifu_image_url', true);
|
50 |
function fifu_wc_show_elements($post) {
|
51 |
$margin = 'margin-top:1px;';
|
52 |
$width = 'width:70%;';
|
53 |
+
$height = 'height:200px;';
|
54 |
$align = 'text-align:left;';
|
55 |
$altWidth = 'width:86%;';
|
56 |
|
featured-image-from-url.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
/*
|
4 |
* Plugin Name: Featured Image From URL
|
5 |
* 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.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: Marcel Jacques Machado
|
8 |
-
* Author URI: http://
|
9 |
*/
|
10 |
|
11 |
define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
3 |
/*
|
4 |
* Plugin Name: Featured Image From URL
|
5 |
* 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.
|
6 |
+
* Version: 1.5.6
|
7 |
* Author: Marcel Jacques Machado
|
8 |
+
* Author URI: http://featuredimagefromurl.com/
|
9 |
*/
|
10 |
|
11 |
define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
includes/external-post.php
CHANGED
@@ -65,6 +65,8 @@ function fifu_show_image($img) {
|
|
65 |
|
66 |
function fifu_first_url_in_content($post_id) {
|
67 |
$content = get_post_field('post_content', $post_id);
|
|
|
|
|
68 |
$matches = array();
|
69 |
preg_match_all('/<img[^>]*>/', $content, $matches);
|
70 |
$aux1 = explode('src="', $matches[0][0]);
|
65 |
|
66 |
function fifu_first_url_in_content($post_id) {
|
67 |
$content = get_post_field('post_content', $post_id);
|
68 |
+
if (!$content)
|
69 |
+
return;
|
70 |
$matches = array();
|
71 |
preg_match_all('/<img[^>]*>/', $content, $matches);
|
72 |
$aux1 = explode('src="', $matches[0][0]);
|
readme.txt
CHANGED
@@ -44,17 +44,16 @@ And you still can:
|
|
44 |
|
45 |
* define the video size for each screen;
|
46 |
|
47 |
-
* apply your own **CSS style** or **<a href="http://
|
48 |
|
49 |
* disable the WooCommerce lightbox.
|
50 |
|
51 |
-
Click <a href="http://
|
52 |
|
53 |
*WooCommerce compatibility: 3.0.X. and later.*
|
54 |
|
55 |
-
**<a href="http://
|
56 |
-
|
57 |
-
[youtube https://www.youtube.com/watch?v=LuynS-Y-fZs]
|
58 |
|
59 |
== Installation ==
|
60 |
|
@@ -71,7 +70,7 @@ Click <a href="http://marceljm.com/wordpress/featured-image-from-url-premium/" t
|
|
71 |
|
72 |
= What's the URL field? =
|
73 |
|
74 |
-
* There you should paste the image URL. For example:
|
75 |
|
76 |
= What's the preview button? =
|
77 |
|
@@ -93,10 +92,6 @@ Click <a href="http://marceljm.com/wordpress/featured-image-from-url-premium/" t
|
|
93 |
|
94 |
* The external image has priority in this case and the internal image won't be shown.
|
95 |
|
96 |
-
= Why aren't the external images showing in my site? =
|
97 |
-
|
98 |
-
* Because your theme is nonstandard. For US$ 50,00, I can analyse your theme code and make the required changes.
|
99 |
-
|
100 |
= How to integrate WooCommerce and Featured Image From URL? =
|
101 |
|
102 |
* There is a toggle (on/off) in Featured Image From URL settings. When enabled, a shell script is executed to overwrite some code lines from WooCommerce plugin. Otherwise, the changes are undone.
|
@@ -302,6 +297,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
302 |
= 1.5.5 =
|
303 |
* URL field isn't hidden anymore.
|
304 |
|
|
|
|
|
|
|
305 |
== Upgrade Notice ==
|
306 |
|
307 |
= 1.0 =
|
@@ -423,4 +421,7 @@ was removed. To finish, a Premium version is now been presented.
|
|
423 |
* Bug fix: compatibility with old PHP versions.
|
424 |
|
425 |
= 1.5.5 =
|
426 |
-
* URL field isn't hidden anymore.
|
|
|
|
|
|
44 |
|
45 |
* define the video size for each screen;
|
46 |
|
47 |
+
* apply your own **CSS style** or **<a href="http://featuredimagefromurl.com/hover-effects/">18 hover effects</a>** to the images;
|
48 |
|
49 |
* disable the WooCommerce lightbox.
|
50 |
|
51 |
+
Click <a href="http://featuredimagefromurl.com/" targe="_blank">here</a> to know more.
|
52 |
|
53 |
*WooCommerce compatibility: 3.0.X. and later.*
|
54 |
|
55 |
+
**<a href="http://blog.featuredimagefromurl.com/">Blog - Live Preview</a>**
|
56 |
+
**<a href="http://shop.featuredimagefromurl.com/">Shop - Live Preview</a>**
|
|
|
57 |
|
58 |
== Installation ==
|
59 |
|
70 |
|
71 |
= What's the URL field? =
|
72 |
|
73 |
+
* There you should paste the image URL. For example: https://farm4.staticflickr.com/3761/9944251684_e16fd019c0_b.jpg
|
74 |
|
75 |
= What's the preview button? =
|
76 |
|
92 |
|
93 |
* The external image has priority in this case and the internal image won't be shown.
|
94 |
|
|
|
|
|
|
|
|
|
95 |
= How to integrate WooCommerce and Featured Image From URL? =
|
96 |
|
97 |
* There is a toggle (on/off) in Featured Image From URL settings. When enabled, a shell script is executed to overwrite some code lines from WooCommerce plugin. Otherwise, the changes are undone.
|
297 |
= 1.5.5 =
|
298 |
* URL field isn't hidden anymore.
|
299 |
|
300 |
+
= 1.5.6 =
|
301 |
+
* Compatible with any theme now.
|
302 |
+
|
303 |
== Upgrade Notice ==
|
304 |
|
305 |
= 1.0 =
|
421 |
* Bug fix: compatibility with old PHP versions.
|
422 |
|
423 |
= 1.5.5 =
|
424 |
+
* URL field isn't hidden anymore.
|
425 |
+
|
426 |
+
= 1.5.6 =
|
427 |
+
* Compatible with any theme now.
|