Featured Image From URL - Version 1.4.7

Version Description

  • Flickr integration advertisement.

=

Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.7

admin/category.php CHANGED
@@ -8,6 +8,7 @@ function fifu_cat_show_box($term) {
8
  $width = 'width:100%;';
9
  $height = 'height:266px;';
10
  $align = 'text-align:left;';
 
11
 
12
  $url = get_term_meta($term->term_id, 'fifu_image_url', true);
13
  $alt = get_term_meta($term->term_id, 'fifu_image_alt', true);
8
  $width = 'width:100%;';
9
  $height = 'height:266px;';
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);
14
  $alt = get_term_meta($term->term_id, 'fifu_image_alt', true);
admin/html/css/menu.css CHANGED
@@ -1,36 +1,49 @@
1
  .wrap {
2
- max-width: 800px;
3
- margin: 20px 20px 20px 15px;
4
  }
5
 
6
  .box {
7
- margin: 20px 0 0;
8
- background: #fff;
9
- border: 1px solid #dbdbdb;
10
- padding: 20px;
11
  }
12
 
13
  .greybox {
14
- margin: 10px 0 0;
15
- background: #f9f9f9;
16
- border: 1px solid #dbdbdb;
17
- padding: 20px;
18
  }
19
 
20
  .greybox p {
21
- font-style: italic;
22
- color: #999;
23
  }
24
 
25
  .toggleon, .toggleoff {
26
- padding: 0;
27
- overflow: hidden;
28
- width: 72px;
29
- height: 24px;
30
- background: url("<?php echo $image_button ?>") 0 0 no-repeat;
31
- text-align: center !important;
32
  }
33
 
34
  .toggleoff {
35
- background: url("<?php echo $image_button ?>") -72px 0 no-repeat;
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .wrap {
2
+ max-width: 800px;
3
+ margin: 20px 20px 20px 15px;
4
  }
5
 
6
  .box {
7
+ margin: 20px 0 0;
8
+ background: #fff;
9
+ border: 1px solid #dbdbdb;
10
+ padding: 20px;
11
  }
12
 
13
  .greybox {
14
+ margin: 10px 0 0;
15
+ background: #f9f9f9;
16
+ border: 1px solid #dbdbdb;
17
+ padding: 20px;
18
  }
19
 
20
  .greybox p {
21
+ font-style: italic;
22
+ color: #000000;
23
  }
24
 
25
  .toggleon, .toggleoff {
26
+ padding: 0;
27
+ overflow: hidden;
28
+ width: 72px;
29
+ height: 24px;
30
+ background: url("<?php echo $image_button ?>") 0 0 no-repeat;
31
+ text-align: center !important;
32
  }
33
 
34
  .toggleoff {
35
+ background: url("<?php echo $image_button ?>") -72px 0 no-repeat;
36
  }
37
+
38
+ .fifubox {
39
+ border: 1px;
40
+ color: black;
41
+ padding: 15px 32px;
42
+ text-align: center;
43
+ text-decoration: none;
44
+ display: inline-block;
45
+ font-size: 16px;
46
+ margin: 4px 2px;
47
+ border-style: solid;
48
+ }
49
+
admin/html/js/menu.js CHANGED
@@ -1,70 +1,72 @@
1
  function invert(id) {
2
- if (jQuery("#fifu_toggle_" + id).attr("class") == "toggleon") {
3
- jQuery("#fifu_toggle_" + id).attr("class", "toggleoff");
4
- jQuery("#fifu_input_" + id).val('off');
5
- }
6
- else {
7
- jQuery("#fifu_toggle_" + id).attr("class", "toggleon");
8
- jQuery("#fifu_input_" + id).val('on');
9
- }
10
  }
11
 
12
  jQuery(function () {
13
- var url = window.location.href;
14
 
15
- jQuery("#fifu_form_woocommerce").submit(function () {
16
 
17
- var frm = jQuery("#fifu_form_woocommerce");
18
 
19
- jQuery.ajax({
20
- type: frm.attr('method'),
21
- url: url,
22
- data: frm.serialize(),
23
- success: function (data) {
24
- //alert('saved');
25
- }
26
- });
27
- });
28
 
29
- jQuery("#fifu_form_content").submit(function () {
30
 
31
- var frm = jQuery("#fifu_form_content");
32
 
33
- jQuery.ajax({
34
- type: frm.attr('method'),
35
- url: url,
36
- data: frm.serialize(),
37
- success: function (data) {
38
- //alert('saved');
39
- }
40
- });
41
- });
42
 
43
- jQuery("#fifu_form_cpt").submit(function () {
44
 
45
- var frm = jQuery("#fifu_form_cpt");
46
 
47
- jQuery.ajax({
48
- type: frm.attr('method'),
49
- url: url,
50
- data: frm.serialize(),
51
- success: function (data) {
52
- //alert('saved');
53
- }
54
- });
55
- });
56
 
57
- jQuery("#fifu_form_hope").submit(function () {
58
 
59
- var frm = jQuery("#fifu_form_hope");
60
 
61
- jQuery.ajax({
62
- type: frm.attr('method'),
63
- url: url,
64
- data: frm.serialize(),
65
- success: function (data) {
66
- //alert('saved');
67
- }
68
- });
69
- });
 
 
 
70
  });
1
  function invert(id) {
2
+ if (jQuery("#fifu_toggle_" + id).attr("class") == "toggleon") {
3
+ jQuery("#fifu_toggle_" + id).attr("class", "toggleoff");
4
+ jQuery("#fifu_input_" + id).val('off');
5
+ } else {
6
+ jQuery("#fifu_toggle_" + id).attr("class", "toggleon");
7
+ jQuery("#fifu_input_" + id).val('on');
8
+ }
 
9
  }
10
 
11
  jQuery(function () {
12
+ var url = window.location.href;
13
 
14
+ jQuery("#fifu_form_woocommerce").submit(function () {
15
 
16
+ var frm = jQuery("#fifu_form_woocommerce");
17
 
18
+ jQuery.ajax({
19
+ type: frm.attr('method'),
20
+ url: url,
21
+ data: frm.serialize(),
22
+ success: function (data) {
23
+ //alert('saved');
24
+ }
25
+ });
26
+ });
27
 
28
+ jQuery("#fifu_form_content").submit(function () {
29
 
30
+ var frm = jQuery("#fifu_form_content");
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_cpt").submit(function () {
43
 
44
+ var frm = jQuery("#fifu_form_cpt");
45
 
46
+ jQuery.ajax({
47
+ type: frm.attr('method'),
48
+ url: url,
49
+ data: frm.serialize(),
50
+ success: function (data) {
51
+ //alert('saved');
52
+ }
53
+ });
54
+ });
55
 
56
+ jQuery("#fifu_form_hope").submit(function () {
57
 
58
+ var frm = jQuery("#fifu_form_hope");
59
 
60
+ jQuery.ajax({
61
+ type: frm.attr('method'),
62
+ url: url,
63
+ data: frm.serialize(),
64
+ success: function (data) {
65
+ //alert('saved');
66
+ }
67
+ });
68
+ });
69
+
70
+ jQuery("#accordion").accordion();
71
+ jQuery("#tabs").tabs();
72
  });
admin/html/menu.html CHANGED
@@ -2,70 +2,251 @@
2
 
3
  <script><?php include 'js/menu.js' ?></script>
4
 
 
 
 
5
  <div class="wrap">
6
 
7
  <div class="box">
8
 
9
- <h2>Help</h2>
10
-
11
- <div class="greybox">
12
-
13
- <p>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>. </p>
14
 
15
- </div>
 
 
16
 
17
  </div>
18
 
19
  <div class="box">
20
 
21
- <h2>Premium Version</h2>
22
 
23
- <div class="greybox">
24
 
25
- <p>All functionalities created for external images are now available for <b>external videos</b> (from YouTube), everything in one plugin. You can still apply your <b>CSS style</b> or <b>18 hover effects</b> to the images and use a <b>slider of images</b> as featured image. Supports the <b>last WooCommerce version</b>. Click <a href="http://marceljm.com/wordpress/featured-image-from-url-premium/" targe="_blank">here</a> to know more. Or you can have a <a href="http://fifu.marceljm.com/" targe="_blank">Live Preview</a>.<p/>
26
 
27
- <iframe src="https://www.youtube.com/embed/LuynS-Y-fZs" height="402" width="715" allowfullscreen="" frameborder="0"></iframe>
28
 
29
- </div>
 
 
 
 
 
 
 
 
30
 
31
- </div>
 
 
 
 
 
32
 
33
- <div class="box">
34
 
35
- <h2>Make a Donation and Receive the Premium Version</h2>
36
 
37
- <div class="greybox">
38
- <div style="display:inline-block;">
39
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
40
- <input type="hidden" name="cmd" value="_s-xclick">
41
- <input type="hidden" name="hosted_button_id" value="8BLDLZ3HDBGQG">
42
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
43
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
44
- </form>
45
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- <div style="display:inline-block;top:-20px;position:relative">
48
- <p>(US$ 15 or more, please) and receive the Premium Version by email within 12 hours.<p/>
49
- </div>
50
  </div>
51
 
 
 
52
  </div>
53
 
54
  <div class="box">
55
 
56
- <h2>WooCommerce Full Integration and Compatibility</h2>
57
 
58
- <div class="greybox">
59
 
60
- <p>Would you like to integrate WooCommerce to Featured Image From URL? For that, a script will be executed to overwrite some lines of code from WooCommerce plugin. It's safe and reversible but it will only work if your site is hosted on a Linux server. So let me check...</p>
61
 
62
- <p/>
 
 
 
63
 
64
- <?php echo $compatible; ?>
 
 
 
 
65
 
66
- <p/>
 
 
 
67
 
68
- <p>This free version supports WooCommerce 2.4.X and 2.5.X. If you use 2.6.X and later, you will need <b>Premium version</b>.</p>
 
 
69
 
70
  </div>
71
 
@@ -99,7 +280,7 @@
99
 
100
  <h2>Custom Post Types</h2>
101
 
102
- <div class="greybox">
103
 
104
  <p>Featured Image from URL is preconfigured to work with only one Custom Post Type (WooCommerce Product). But you also can use this plugin with other ones. For that, you just need to know the correct Custom Post Type names and fill the fields below. Please, let me know if you need more than 5 inputs here.</p>
105
 
@@ -123,31 +304,11 @@
123
 
124
  </div>
125
 
126
- <div class="box">
127
-
128
- <h2>CSS Style</h2>
129
-
130
- <div class="greybox">
131
-
132
- <p>Here you can define a CSS style to be applied to all external featured images. However, this feature is only available in <b>Featured Image From URL Premium</b>. Usage example:</p>
133
-
134
- <p>width: 100%; border-radius: 8px; border: 1px solid #ddd; padding: 5px;</p>
135
-
136
- </div>
137
-
138
- <p/>
139
-
140
- <input id="fifu_input_css" type="text" name="fifu_input_css" style="width:675px" disabled>
141
-
142
- <input type="submit" value="Submit" disabled>
143
-
144
- </div>
145
-
146
  <div class="box">
147
 
148
  <h2>Featured Image in Content</h2>
149
 
150
- <div class="greybox">
151
 
152
  <p>It will sound crazy, but some themes don't show the Featured Image on the posts or pages. If it is your case and you would like to show the Featured Image there, just enable the toggle. The Featured Image will appear at the beginning of the content, before the text.</p>
153
 
@@ -179,45 +340,11 @@
179
 
180
  </div>
181
 
182
- <div class="box">
183
-
184
- <h2>Hover Effects</h2>
185
-
186
- <div class="greybox">
187
-
188
- <p>Make your front page cool! Choose a hover effect in the plugin settings to be applied to all external featured images of your posts on your main page. <b>Featured Image From URL Premium</b> has 18 hover effects available. <a href="http://marceljm.com/wordpress/featured-image-from-url-premium#hover" targe="_blank">Check it out</a>.<p/>
189
-
190
- <select id="select_hover" style="width:100%">
191
- <option value=""></option>
192
- <option value="hover17">315 Degrees</option>
193
- <option value="hover02">360 Degrees</option>
194
- <option value="hover07">Blur</option>
195
- <option value="hover10">Blur Gray Scale</option>
196
- <option value="hover04">Brighten</option>
197
- <option value="hover15">Circle</option>
198
- <option value="hover13">Flashing</option>
199
- <option value="hover08">Gray Scale</option>
200
- <option value="hover16">Horizontal Rotation</option>
201
- <option value="hover12">Opacity Color</option>
202
- <option value="hover11">Opacity White</option>
203
- <option value="hover18">Rainbow</option>
204
- <option value="hover06">Rotate</option>
205
- <option value="hover09">Sepia</option>
206
- <option value="hover14">Shine</option>
207
- <option value="hover05">Vertical Rotation</option>
208
- <option value="hover01">Zoom In</option>
209
- <option value="hover03">Zoom Out</option>
210
- </select>
211
-
212
- </div>
213
-
214
- </div>
215
-
216
  <div class="box">
217
 
218
  <h2>"This Plugin Doesn't Work, Man!"</h2>
219
 
220
- <div class="greybox">
221
 
222
  <p>If the external featured images of your posts or pages aren't being shown, congratulations: you're using a nonstandard theme! But there is a last hope. Enabling the toggle below, your external featured images will be associated to a symbolic file in your Media Library. It's a desperate attempt to cheat your theme that will think that there is an internal image there. Then when the theme tries to show the image, that doesn't exist, a function will replace the symbolic file by your URL on execution time. It should allow you to use the main feature of this plugin, but secondary ones, such as "External Featured Image Slider" may not work.</p>
223
 
@@ -249,6 +376,114 @@
249
 
250
  </div>
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  <div class="box">
253
 
254
  <h2>Give This Plugin a 5-Star Rating</h2>
@@ -273,6 +508,27 @@
273
 
274
  </div>
275
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  <div class="box">
277
 
278
  <h2>About The Author</h2>
@@ -286,3 +542,4 @@
286
  </div>
287
 
288
  </div>
 
2
 
3
  <script><?php include 'js/menu.js' ?></script>
4
 
5
+ <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
6
+ <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
7
+
8
  <div class="wrap">
9
 
10
  <div class="box">
11
 
12
+ <h1>Featured Image From URL</h1>
 
 
 
 
13
 
14
+ <div class="fifubox" style="background:#e3ffe2">Free</div>
15
+ <div class="fifubox" style="background:#ffe2e2">Premium</div>
16
+ <div class="fifubox" style="background:#ffffbc">Depends on WooCommerce Version</div>
17
 
18
  </div>
19
 
20
  <div class="box">
21
 
22
+ <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>
23
 
24
+ <div class="greybox" style="background:#ffe2e2">
25
 
26
+ <p><b>Premium feature</b><p/>
27
 
28
+ <div id="accordion">
29
 
30
+ <h3>Do you know Flickr?</h3>
31
+ <div>
32
+ <ol>
33
+ <li><p>It's free;</p></li>
34
+ <li><p>Offers 1000 GB of space;<p></li>
35
+ <li><p>It's dedicated to store and provide images, probably faster than the most of servers;<p></li>
36
+ <li><p>Creates automatic copies of your images in <b>many different sizes.</b><p></li>
37
+ </ol>
38
+ </div>
39
 
40
+ <h3>How does Featured Image From URL take advantage of Flickr?</h3>
41
+ <div>
42
+ <p>Smaller the images, faster your site. So the plugin will load the images from Flickr in the exactly size your site needs.<p/>
43
+ <p>And the result is...</p>
44
+ <p><b>The images will be shown with the best quality and the shortest time possible.</b><p/>
45
+ </div>
46
 
47
+ </div>
48
 
49
+ <p/>
50
 
51
+ </br>
52
+ <h3>Getting Flickr URL</h3>
53
+ <div>
54
+ <p>You just need to get one URL (Square 75). Use that to fill the External Featured Image field of your post, page or product. The plugin will handle this URL to provide the image in different sizes.</p>
55
+ <img src="https://c1.staticflickr.com/1/745/31593837206_8e081be749_z_d.jpg"/>
56
+ <img src="https://c1.staticflickr.com/1/223/30820834393_f869fcff49_z_d.jpg"/>
57
+ </div>
58
+
59
+ </br>
60
+ <h3>Choose the maximum image size for each screen</h3>
61
+
62
+ <table style="text-align:left">
63
+ <tr>
64
+ <th>Cart:&nbsp;</th>
65
+ <th>
66
+
67
+ <select id="select_flickr_cart" style="font-family:courier;font-size:12px">
68
+ <option value=""></option>
69
+ <option value="s">&nbsp; 75 x 75</option>
70
+ <option value="q">&nbsp;150 x 150</option>
71
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
72
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
73
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
74
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
75
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
76
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
77
+ <option value="b">1024&nbsp;on longest side</option>
78
+ </select>
79
+
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th>Category:&nbsp;</th>
84
+ <th>
85
+
86
+ <select id="select_flickr_ctgr" style="font-family:courier;font-size:12px">
87
+ <option value=""></option>
88
+ <option value="s">&nbsp; 75 x 75</option>
89
+ <option value="q">&nbsp;150 x 150</option>
90
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
91
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
92
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
93
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
94
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
95
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
96
+ <option value="b">1024&nbsp;on longest side</option>
97
+ </select>
98
+
99
+ </th>
100
+ </tr>
101
+ <tr>
102
+ <th>Home:&nbsp;</th>
103
+ <th>
104
+
105
+ <select id="select_flickr_home" style="font-family:courier;font-size:12px">
106
+ <option value=""></option>
107
+ <option value="s">&nbsp; 75 x 75</option>
108
+ <option value="q">&nbsp;150 x 150</option>
109
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
110
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
111
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
112
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
113
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
114
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
115
+ <option value="b">1024&nbsp;on longest side</option>
116
+ </select>
117
+
118
+ </th>
119
+ </tr>
120
+ <tr>
121
+ <th>Lightbox:&nbsp;</th>
122
+ <th>
123
+
124
+ <select id="select_flickr_lbox" style="font-family:courier;font-size:12px">
125
+ <option value=""></option>
126
+ <option value="s">&nbsp; 75 x 75</option>
127
+ <option value="q">&nbsp;150 x 150</option>
128
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
129
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
130
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
131
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
132
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
133
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
134
+ <option value="b">1024&nbsp;on longest side</option>
135
+ </select>
136
+
137
+ </th>
138
+ </tr>
139
+ <tr>
140
+ <th>Page:&nbsp;</th>
141
+ <th>
142
+
143
+ <select id="select_flickr_page" style="font-family:courier;font-size:12px">
144
+ <option value=""></option>
145
+ <option value="s">&nbsp; 75 x 75</option>
146
+ <option value="q">&nbsp;150 x 150</option>
147
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
148
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
149
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
150
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
151
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
152
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
153
+ <option value="b">1024&nbsp;on longest side</option>
154
+ </select>
155
+
156
+ </th>
157
+ </tr>
158
+ <tr>
159
+ <th>Post:&nbsp;</th>
160
+ <th>
161
+
162
+ <select id="select_flickr_post" style="font-family:courier;font-size:12px">
163
+ <option value=""></option>
164
+ <option value="s">&nbsp; 75 x 75</option>
165
+ <option value="q">&nbsp;150 x 150</option>
166
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
167
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
168
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
169
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
170
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
171
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
172
+ <option value="b">1024&nbsp;on longest side</option>
173
+ </select>
174
+
175
+ </th>
176
+ </tr>
177
+ <tr>
178
+ <th>Product:&nbsp;</th>
179
+ <th>
180
+
181
+ <select id="select_flickr_prod" style="font-family:courier;font-size:12px">
182
+ <option value=""></option>
183
+ <option value="s">&nbsp; 75 x 75</option>
184
+ <option value="q">&nbsp;150 x 150</option>
185
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
186
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
187
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
188
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
189
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
190
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
191
+ <option value="b">1024&nbsp;on longest side</option>
192
+ </select>
193
+
194
+ </th>
195
+ </tr>
196
+ <tr>
197
+ <th>Shop:&nbsp;</th>
198
+ <th>
199
+
200
+ <select id="select_flickr_shop" style="font-family:courier;font-size:12px">
201
+ <option value=""></option>
202
+ <option value="s">&nbsp; 75 x 75</option>
203
+ <option value="q">&nbsp;150 x 150</option>
204
+ <option value="t">&nbsp;100&nbsp;on longest side</option>
205
+ <option value="m">&nbsp;240&nbsp;on longest side</option>
206
+ <option value="n">&nbsp;320&nbsp;on longest side</option>
207
+ <option value="-">&nbsp;500&nbsp;on longest side</option>
208
+ <option value="z">&nbsp;640&nbsp;on longest side</option>
209
+ <option value="c">&nbsp;800&nbsp;on longest side</option>
210
+ <option value="b">1024&nbsp;on longest side</option>
211
+ </select>
212
+
213
+ </th>
214
+ </tr>
215
+ </table>
216
 
 
 
 
217
  </div>
218
 
219
+ <p/>
220
+
221
  </div>
222
 
223
  <div class="box">
224
 
225
+ <h2>WooCommerce Full Integration</h2>
226
 
227
+ <div class="greybox" style="background:#ffffbc">
228
 
229
+ <div id="tabs">
230
 
231
+ <ul>
232
+ <li><a href="#tabs-1">Full Integration</a></li>
233
+ <li><a href="#tabs-2">Compatible Versions</a></li>
234
+ </ul>
235
 
236
+ <div id="tabs-1">
237
+ <p>Would you like to integrate WooCommerce to Featured Image From URL? For that, a script will be executed to overwrite some lines of code from WooCommerce plugin. It's safe and reversible but it will only work if your site is hosted on a Linux server. So let me check...</p>
238
+ <p/>
239
+ <b><?php echo $compatible; ?></b>
240
+ </div>
241
 
242
+ <div id="tabs-2">
243
+ <p><b>Free</b>: supports WooCommerce 2.4.X and 2.5.X.</p>
244
+ <p><b>Premium</b>: supports WooCommerce 2.6.X and later.</p>
245
+ </div>
246
 
247
+ </div>
248
+
249
+ <p/>
250
 
251
  </div>
252
 
280
 
281
  <h2>Custom Post Types</h2>
282
 
283
+ <div class="greybox" style="background:#e3ffe2">
284
 
285
  <p>Featured Image from URL is preconfigured to work with only one Custom Post Type (WooCommerce Product). But you also can use this plugin with other ones. For that, you just need to know the correct Custom Post Type names and fill the fields below. Please, let me know if you need more than 5 inputs here.</p>
286
 
304
 
305
  </div>
306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  <div class="box">
308
 
309
  <h2>Featured Image in Content</h2>
310
 
311
+ <div class="greybox" style="background:#e3ffe2">
312
 
313
  <p>It will sound crazy, but some themes don't show the Featured Image on the posts or pages. If it is your case and you would like to show the Featured Image there, just enable the toggle. The Featured Image will appear at the beginning of the content, before the text.</p>
314
 
340
 
341
  </div>
342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  <div class="box">
344
 
345
  <h2>"This Plugin Doesn't Work, Man!"</h2>
346
 
347
+ <div class="greybox" style="background:#e3ffe2">
348
 
349
  <p>If the external featured images of your posts or pages aren't being shown, congratulations: you're using a nonstandard theme! But there is a last hope. Enabling the toggle below, your external featured images will be associated to a symbolic file in your Media Library. It's a desperate attempt to cheat your theme that will think that there is an internal image there. Then when the theme tries to show the image, that doesn't exist, a function will replace the symbolic file by your URL on execution time. It should allow you to use the main feature of this plugin, but secondary ones, such as "External Featured Image Slider" may not work.</p>
350
 
376
 
377
  </div>
378
 
379
+ <div class="box">
380
+
381
+ <h2>External Featured Videos</h2>
382
+
383
+ <div class="greybox" style="background:#ffe2e2">
384
+
385
+ <p><b>Premium feature</b><p/>
386
+
387
+ <p>Allows you to use an external video from YouTube instead of a featured image.<p/>
388
+
389
+ <p><a href="http://fifu.marceljm.com/shop/music/guns-n-roses/" targe="_blank">Live preview</a><p/>
390
+
391
+ </div>
392
+
393
+ </div>
394
+
395
+ <div class="box">
396
+
397
+ <h2>Slider</h2>
398
+
399
+ <div class="greybox" style="background:#ffe2e2">
400
+
401
+ <p><b>Premium feature</b><p/>
402
+
403
+ <p>You can use a slider of external images as featured image.</p>
404
+
405
+ <p><a href="http://fifu.marceljm.com/" targe="_blank">Live preview</a><p/>
406
+
407
+ </div>
408
+
409
+ </div>
410
+
411
+ <div class="box">
412
+
413
+ <h2>CSS Style</h2>
414
+
415
+ <div class="greybox" style="background:#ffe2e2">
416
+
417
+ <p><b>Premium feature</b><p/>
418
+
419
+ <p>Here you can define a CSS style to be applied to all external featured images. Usage example:</p>
420
+
421
+ <p>width: 100%; border-radius: 8px; border: 1px solid #ddd; padding: 5px;</p>
422
+
423
+ </div>
424
+
425
+ <p/>
426
+
427
+ <input id="fifu_input_css" type="text" name="fifu_input_css" style="width:675px">
428
+
429
+ <input type="submit" value="Submit" disabled>
430
+
431
+ </div>
432
+
433
+ <div class="box">
434
+
435
+ <h2>Hover Effects</h2>
436
+
437
+ <div class="greybox" style="background:#ffe2e2">
438
+
439
+ <p><b>Premium feature</b><p/>
440
+
441
+ <p>Choose one among 18 hover effects to be applied to all external featured images of your posts on your main page.<p/>
442
+
443
+ <p><a href="http://marceljm.com/wordpress/featured-image-from-url-premium#hover" targe="_blank">Live preview</a><p/>
444
+
445
+ </div>
446
+
447
+ <p/>
448
+
449
+ <select id="select_hover" style="width:90%">
450
+ <option value=""></option>
451
+ <option value="hover17">315 Degrees</option>
452
+ <option value="hover02">360 Degrees</option>
453
+ <option value="hover07">Blur</option>
454
+ <option value="hover10">Blur Gray Scale</option>
455
+ <option value="hover04">Brighten</option>
456
+ <option value="hover15">Circle</option>
457
+ <option value="hover13">Flashing</option>
458
+ <option value="hover08">Gray Scale</option>
459
+ <option value="hover16">Horizontal Rotation</option>
460
+ <option value="hover12">Opacity Color</option>
461
+ <option value="hover11">Opacity White</option>
462
+ <option value="hover18">Rainbow</option>
463
+ <option value="hover06">Rotate</option>
464
+ <option value="hover09">Sepia</option>
465
+ <option value="hover14">Shine</option>
466
+ <option value="hover05">Vertical Rotation</option>
467
+ <option value="hover01">Zoom In</option>
468
+ <option value="hover03">Zoom Out</option>
469
+ </select>
470
+
471
+ <input type="submit" value="Submit" disabled>
472
+
473
+ </div>
474
+
475
+ <div class="box">
476
+
477
+ <h2>Help</h2>
478
+
479
+ <div class="greybox">
480
+
481
+ <p>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>. </p>
482
+
483
+ </div>
484
+
485
+ </div>
486
+
487
  <div class="box">
488
 
489
  <h2>Give This Plugin a 5-Star Rating</h2>
508
 
509
  </div>
510
 
511
+ <div class="box">
512
+
513
+ <h2>Make a Donation and Receive the Premium Version</h2>
514
+
515
+ <div class="greybox">
516
+ <div style="display:inline-block;">
517
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
518
+ <input type="hidden" name="cmd" value="_s-xclick">
519
+ <input type="hidden" name="hosted_button_id" value="8BLDLZ3HDBGQG">
520
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
521
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
522
+ </form>
523
+ </div>
524
+
525
+ <div style="display:inline-block;top:-20px;position:relative">
526
+ <p>(US$ 25 or more, please) and receive the Premium Version by email within 12 hours.<p/>
527
+ </div>
528
+ </div>
529
+
530
+ </div>
531
+
532
  <div class="box">
533
 
534
  <h2>About The Author</h2>
542
  </div>
543
 
544
  </div>
545
+
admin/html/meta-box.html CHANGED
@@ -43,3 +43,5 @@
43
  class="button sirv-add-image-modal-click"
44
  title="Add image from Sirv"
45
  style="<?php echo $show_sirv?>">Choose Sirv image</a>
 
 
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
+ <p>Now you can use <b>external thumbnails</b> to make your site really faster. Go to the plugin settings to know more.</p>
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.4.6
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.4.7
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
9
  */
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, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider
5
  Requires at least: 4.0
6
  Tested up to: 4.6.1
7
  Stable tag: 4.6.1
@@ -36,6 +36,8 @@ All functionalities created for external images are now available for **external
36
 
37
  And you still can:
38
 
 
 
39
  * use a **slider** of images as featured image;
40
 
41
  * apply your own **CSS style** or **<a href="http://marceljm.com/wordpress/featured-image-from-url-premium/#hover">18 hover effects</a>** to the images;
@@ -267,6 +269,9 @@ was removed. To finish, a Premium version is now been presented.
267
  = 1.4.6 =
268
  * Bug fixes.
269
 
 
 
 
270
  == Upgrade Notice ==
271
 
272
  = 1.0 =
@@ -362,3 +367,6 @@ was removed. To finish, a Premium version is now been presented.
362
 
363
  = 1.4.6 =
364
  * Bug fixes.
 
 
 
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.6.1
7
  Stable tag: 4.6.1
36
 
37
  And you still can:
38
 
39
+ * use **external thumbnails** from Flickr to make your site really faster;
40
+
41
  * use a **slider** of images as featured image;
42
 
43
  * apply your own **CSS style** or **<a href="http://marceljm.com/wordpress/featured-image-from-url-premium/#hover">18 hover effects</a>** to the images;
269
  = 1.4.6 =
270
  * Bug fixes.
271
 
272
+ = 1.4.7 =
273
+ * Flickr integration advertisement.
274
+
275
  == Upgrade Notice ==
276
 
277
  = 1.0 =
367
 
368
  = 1.4.6 =
369
  * Bug fixes.
370
+
371
+ = 1.4.7 =
372
+ * Flickr integration advertisement.