Featured Image From URL - Version 1.2.1

Version Description

  • Readme fixed.

=

Download this release

Release Info

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

Code changes from version 1.1.5 to 1.2.1

admin/category.php CHANGED
@@ -18,6 +18,7 @@ function fifu_show_category_box($term) {
18
  $show_alt = $show_image = $show_link = 'display:none;';
19
 
20
  include 'html/category.html';
 
21
  }
22
 
23
  add_action( 'edited_product_cat', 'fifu_save_category_image_properties', 10, 2 );
18
  $show_alt = $show_image = $show_link = 'display:none;';
19
 
20
  include 'html/category.html';
21
+ include 'html/category-advertisement.html';
22
  }
23
 
24
  add_action( 'edited_product_cat', 'fifu_save_category_image_properties', 10, 2 );
admin/column.php CHANGED
@@ -5,8 +5,10 @@ add_action('admin_init', 'fifu_column');
5
  function fifu_column() {
6
  add_filter('manage_posts_columns', 'fifu_column_head');
7
  add_filter('manage_pages_columns', 'fifu_column_head');
 
8
  add_action('manage_posts_custom_column', 'fifu_column_content', 10, 2);
9
  add_action('manage_pages_custom_column', 'fifu_column_content', 10, 2);
 
10
  }
11
 
12
  function fifu_column_head($default) {
@@ -14,6 +16,15 @@ function fifu_column_head($default) {
14
  return $default;
15
  }
16
 
 
 
 
 
 
 
 
 
 
17
  function fifu_column_content($column, $post_id) {
18
  if ($column == 'featured_image') {
19
  $url = get_post_meta($post_id, 'fifu_image_url', true);
5
  function fifu_column() {
6
  add_filter('manage_posts_columns', 'fifu_column_head');
7
  add_filter('manage_pages_columns', 'fifu_column_head');
8
+ add_filter('manage_edit-product_cat_columns', 'fifu_column_head');
9
  add_action('manage_posts_custom_column', 'fifu_column_content', 10, 2);
10
  add_action('manage_pages_custom_column', 'fifu_column_content', 10, 2);
11
+ add_action('manage_product_cat_custom_column', 'fifu_cat_column_content', 10, 3);
12
  }
13
 
14
  function fifu_column_head($default) {
16
  return $default;
17
  }
18
 
19
+ function fifu_cat_column_content($internal_image, $column, $term_id) {
20
+ if ($column == 'featured_image') {
21
+ $url = get_term_meta($term_id, 'fifu_image_url', true);
22
+ if ($url != '')
23
+ echo sprintf('<img src="%s" width="100"/>', $url);
24
+ } else
25
+ echo $internal_image;
26
+ }
27
+
28
  function fifu_column_content($column, $post_id) {
29
  if ($column == 'featured_image') {
30
  $url = get_post_meta($post_id, 'fifu_image_url', true);
admin/html/category-advertisement.html ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/js/menu.js CHANGED
@@ -12,9 +12,9 @@ function invert(id) {
12
  jQuery(function () {
13
  var url = window.location.href;
14
 
15
- jQuery("#fifu_form_backlink").submit(function () {
16
 
17
- var frm = jQuery("#fifu_form_backlink");
18
 
19
  jQuery.ajax({
20
  type: frm.attr('method'),
@@ -26,9 +26,9 @@ jQuery(function () {
26
  });
27
  });
28
 
29
- jQuery("#fifu_form_woocommerce").submit(function () {
30
 
31
- var frm = jQuery("#fifu_form_woocommerce");
32
 
33
  jQuery.ajax({
34
  type: frm.attr('method'),
@@ -40,9 +40,9 @@ jQuery(function () {
40
  });
41
  });
42
 
43
- jQuery("#fifu_form_content").submit(function () {
44
 
45
- var frm = jQuery("#fifu_form_content");
46
 
47
  jQuery.ajax({
48
  type: frm.attr('method'),
@@ -53,19 +53,5 @@ jQuery(function () {
53
  }
54
  });
55
  });
56
-
57
- jQuery("#fifu_form_cpt").submit(function () {
58
-
59
- var frm = jQuery("#fifu_form_cpt");
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
  });
71
 
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'),
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'),
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'),
53
  }
54
  });
55
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  });
57
 
admin/html/menu.html CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="greybox">
12
 
13
- <p>This plugin allows you to use an external image as Featured Image of your post, page or WooCommerce product. And now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server). 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
 
@@ -18,11 +18,13 @@
18
 
19
  <div class="box">
20
 
21
- <h2>Make a Donation</h2>
22
 
23
  <div class="greybox">
24
 
25
- <p>Featured Image From URL is completely free and without advertising. To help me to continue updating and improving it, please consider making a donation by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG" target="_blank">PayPal</a>. Thank you!</p>
 
 
26
 
27
  </div>
28
 
@@ -30,11 +32,11 @@
30
 
31
  <div class="box">
32
 
33
- <h2>Give This Plugin a 5-Star Rating</h2>
34
 
35
  <div class="greybox">
36
 
37
- <p>Do you really love Featured Image From URL? So give your <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank">rating</a> right now. It's very important for me and WordPress community too.</p>
38
 
39
  </div>
40
 
@@ -156,42 +158,6 @@
156
 
157
  </div>
158
 
159
- <div class="box">
160
-
161
- <h2>Backlink to Featured Image From URL</h2>
162
-
163
- <div class="greybox">
164
-
165
- <p>Do you mind if I put a invisible and not clickable backlink in your page/post/product? Just Googlebot will be able to see that. This may seem very simple but increases the plugin page position on Google without interfering with your site layout, performance or SEO : )</p>
166
-
167
- </div>
168
-
169
- <p/>
170
-
171
- <form
172
- id="fifu_form_backlink"
173
- action="javascript:void(0)"
174
- method="post">
175
-
176
- <input
177
- type="image"
178
- href="javascript:void(0)"
179
- id="fifu_toggle_backlink"
180
- onclick="invert('backlink')"
181
- name="fifu_toggle_backlink"
182
- class="<?php echo $enable_backlink; ?>"
183
- style="display:block"
184
- value=" ">
185
-
186
- <input
187
- type="hidden"
188
- id="fifu_input_backlink"
189
- name="fifu_input_backlink"
190
- value="" >
191
- </form>
192
-
193
- </div>
194
-
195
  <div class="box">
196
 
197
  <h2>About The Author</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, i's also possible to use external images in the Product Category and Product Gallery, but in this case your site should be hosted on a Linux server. All included content still has social tags to facilitate sharing on social networks. 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
 
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. Click <a href="https://marceljm.com/wordpress/featured-image-from-url-premium/" targe="_blank">here</a> to know more.<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
 
32
 
33
  <div class="box">
34
 
35
+ <h2>Give Your Rating and Earn a Discount on Premium Version</h2>
36
 
37
  <div class="greybox">
38
 
39
+ <p>Do you really love Featured Image From URL? So give this plugin a N-star <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank">rating</a> and earn a US$ N discount on premium version. For example, if the plugin costs US$ 25 and you gave a 5-star rating, then you can pay just the difference, US$ 20, making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG" target="_blank">PayPal</a> donation.
40
 
41
  </div>
42
 
158
 
159
  </div>
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  <div class="box">
162
 
163
  <h2>About The Author</h2>
admin/html/meta-box-advertisement.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <iframe src="https://www.youtube.com/embed/LuynS-Y-fZs" width="100%" allowfullscreen="" frameborder="0"></iframe>
2
+
3
+ <a href="http://marceljm.com/wordpress/featured-image-from-url-premium/">Enable this functionality</a>
admin/menu.php CHANGED
@@ -18,7 +18,6 @@ function fifu_insert_menu() {
18
  function fifu_get_menu_html() {
19
  $image_button = plugins_url() . '/featured-image-from-url/admin/images/onoff.jpg';
20
 
21
- $enable_backlink = get_option('fifu_backlink');
22
  $enable_woocommerce = get_option('fifu_woocommerce');
23
  $enable_content = get_option('fifu_content');
24
 
@@ -26,7 +25,7 @@ function fifu_get_menu_html() {
26
  for ($x = 0; $x <= 4; $x++)
27
  $array_cpt[$x] = get_option('fifu_cpt' . $x);
28
 
29
- $show_woocommerce_button = "display:block";
30
  $output = shell_exec('uname -s');
31
  if ($output == "") {
32
  $compatible = "Unfortunatelly, the script and your server system are not compatible =/";
@@ -46,7 +45,6 @@ function fifu_get_menu_html() {
46
  }
47
 
48
  function fifu_get_menu_settings() {
49
- fifu_get_setting('fifu_backlink');
50
  fifu_get_setting('fifu_woocommerce');
51
  fifu_get_setting('fifu_content');
52
 
@@ -66,7 +64,6 @@ function fifu_get_setting($type) {
66
  }
67
 
68
  function fifu_update_menu_options() {
69
- fifu_update_option('fifu_input_backlink', 'fifu_backlink');
70
  fifu_update_option('fifu_input_woocommerce', 'fifu_woocommerce');
71
  fifu_update_option('fifu_input_content', 'fifu_content');
72
 
18
  function fifu_get_menu_html() {
19
  $image_button = plugins_url() . '/featured-image-from-url/admin/images/onoff.jpg';
20
 
 
21
  $enable_woocommerce = get_option('fifu_woocommerce');
22
  $enable_content = get_option('fifu_content');
23
 
25
  for ($x = 0; $x <= 4; $x++)
26
  $array_cpt[$x] = get_option('fifu_cpt' . $x);
27
 
28
+ $show_woocommerce_button = $show_content_button = "display:block";
29
  $output = shell_exec('uname -s');
30
  if ($output == "") {
31
  $compatible = "Unfortunatelly, the script and your server system are not compatible =/";
45
  }
46
 
47
  function fifu_get_menu_settings() {
 
48
  fifu_get_setting('fifu_woocommerce');
49
  fifu_get_setting('fifu_content');
50
 
64
  }
65
 
66
  function fifu_update_menu_options() {
 
67
  fifu_update_option('fifu_input_woocommerce', 'fifu_woocommerce');
68
  fifu_update_option('fifu_input_content', 'fifu_content');
69
 
admin/meta-box.php CHANGED
@@ -37,6 +37,16 @@ function fifu_insert_meta_box() {
37
  'default'
38
  );
39
  }
 
 
 
 
 
 
 
 
 
 
40
  }
41
  }
42
 
@@ -57,6 +67,15 @@ function fifu_show_elements($post) {
57
  include 'html/meta-box.html';
58
  }
59
 
 
 
 
 
 
 
 
 
 
60
  function fifu_wc_show_elements($post) {
61
  $margin = 'margin-top:1px;';
62
  $width = 'width:70%;';
37
  'default'
38
  );
39
  }
40
+
41
+ if ($post_type)
42
+ add_meta_box(
43
+ 'Video Url Meta Box',
44
+ 'External Featured Video',
45
+ 'fifu_show_advertisement',
46
+ $post_type,
47
+ 'side',
48
+ 'low'
49
+ );
50
  }
51
  }
52
 
67
  include 'html/meta-box.html';
68
  }
69
 
70
+ function fifu_show_advertisement($post) {
71
+ $margin = 'margin-top:10px;';
72
+ $width = 'width:100%;';
73
+ $height = 'height:266px;';
74
+ $align = 'text-align:left;';
75
+
76
+ include 'html/meta-box-advertisement.html';
77
+ }
78
+
79
  function fifu_wc_show_elements($post) {
80
  $margin = 'margin-top:1px;';
81
  $width = 'width:70%;';
featured-image-from-url.php CHANGED
@@ -3,9 +3,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.1.5
7
  * Author: Marcel Jacques Machado
8
- * Author URI: http://marceljm.com
9
  */
10
 
11
  define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
@@ -13,7 +13,7 @@ define('FIFU_INCLUDES_DIR', FIFU_PLUGIN_DIR . '/includes');
13
  define('FIFU_ADMIN_DIR', FIFU_PLUGIN_DIR . '/admin');
14
 
15
  require_once( FIFU_INCLUDES_DIR . '/thumbnail.php' );
16
- require_once( FIFU_INCLUDES_DIR . '/thumbnail_category.php' );
17
 
18
  if (is_admin()) {
19
  require_once( FIFU_ADMIN_DIR . '/meta-box.php' );
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.2
7
  * Author: Marcel Jacques Machado
8
+ * Author URI: https://marceljm.com/wordpress/featured-image-from-url-premium/
9
  */
10
 
11
  define('FIFU_PLUGIN_DIR', plugin_dir_path(__FILE__));
13
  define('FIFU_ADMIN_DIR', FIFU_PLUGIN_DIR . '/admin');
14
 
15
  require_once( FIFU_INCLUDES_DIR . '/thumbnail.php' );
16
+ require_once( FIFU_INCLUDES_DIR . '/thumbnail-category.php' );
17
 
18
  if (is_admin()) {
19
  require_once( FIFU_ADMIN_DIR . '/meta-box.php' );
includes/html/backlink.html DELETED
@@ -1,5 +0,0 @@
1
- <a
2
- href="https://wordpress.org/plugins/featured-image-from-url/"
3
- style="display:none;">
4
- Generated by Featured Image From URL (WordPress plugin).
5
- </a>
 
 
 
 
 
includes/html/social.html CHANGED
@@ -1,9 +1,8 @@
1
- <meta
2
- property="og:image"
3
- content="<?php echo $image_url; ?>"
4
- />
5
 
6
- <meta
7
- name="twitter:image"
8
- content="<?php echo $image_url; ?>"
9
- />
1
+ <meta property="og:title" content="<?php echo $title ?>" />
2
+ <meta property="og:description" content="<?php echo $description ?>" />
3
+ <meta property="og:image" content="<?php echo $url ?>" />
 
4
 
5
+ <meta name="twitter:card" content="summary_large_image" />
6
+ <meta name="twitter:title" content="<?php echo $title ?>" />
7
+ <meta name="twitter:description" content="<?php echo $description ?>" />
8
+ <meta name="twitter:image" content="<?php echo $url ?>" />
includes/{thumbnail_category.php → thumbnail-category.php} RENAMED
@@ -6,19 +6,21 @@ function fifu_category_show_image() {
6
  $image_url = fifu_get_image_url();
7
  $image_alt = fifu_get_image_alt();
8
 
9
- if ($image_url) {
10
  $html = fifu_category_get_html($image_url, $image_alt);
11
- if (get_option('fifu_backlink') == 'toggleon')
12
- include 'html/backlink.html';
13
- }
14
  echo $html;
15
  }
16
 
17
- add_filter('wp_head', 'fifu_category_image_social_tags');
18
 
19
- function fifu_category_image_social_tags() {
20
- $image_url = fifu_get_image_url();
21
- if ($image_url)
 
 
 
 
22
  include 'html/social.html';
23
  }
24
 
@@ -38,5 +40,5 @@ function fifu_get_term_id() {
38
  }
39
 
40
  function fifu_category_get_html($image_url, $image_alt) {
41
- return sprintf('<!-- Generated by Featured Image from URL (Wordpress plugin) --> <img src="%s" alt="%s"></img>', $image_url, $image_alt);
42
  }
6
  $image_url = fifu_get_image_url();
7
  $image_alt = fifu_get_image_alt();
8
 
9
+ if ($image_url)
10
  $html = fifu_category_get_html($image_url, $image_alt);
11
+
 
 
12
  echo $html;
13
  }
14
 
15
+ add_filter('wp_head', 'fifu_cat_add_social_tags');
16
 
17
+ function fifu_cat_add_social_tags() {
18
+ $url = fifu_get_image_url();
19
+ $term_id = fifu_get_term_id();
20
+ $title = single_cat_title('', false);
21
+ $description = wp_strip_all_tags(category_description($term_id));
22
+
23
+ if ($url)
24
  include 'html/social.html';
25
  }
26
 
40
  }
41
 
42
  function fifu_category_get_html($image_url, $image_alt) {
43
+ return sprintf('<!-- Featured Image From URL plugin --> <img src="%s" alt="%s"></img>', $image_url, $image_alt);
44
  }
includes/thumbnail.php CHANGED
@@ -1,14 +1,15 @@
1
  <?php
2
 
3
- add_filter('wp_head', 'fifu_image_social_tags');
4
 
5
- function fifu_image_social_tags() {
 
6
  $post_id = get_the_ID();
 
 
7
 
8
- $image_url = get_post_meta($post_id, 'fifu_image_url', true);
9
-
10
- if ($image_url)
11
- include 'html/social.html';
12
  }
13
 
14
  add_action('the_post', 'fifu_choose');
@@ -36,16 +37,14 @@ function fifu_replace($html, $post_id) {
36
  $image_url = get_post_meta($post_id, 'fifu_image_url', true);
37
  $image_alt = get_post_meta($post_id, 'fifu_image_alt', true);
38
 
39
- if ($image_url) {
40
- $html = fifu_get_html($post_id, $image_url, $image_alt);
41
- if (get_option('fifu_backlink') == 'toggleon')
42
- include 'html/backlink.html';
43
- }
44
  return $html;
45
  }
46
 
47
- function fifu_get_html($id, $image_url, $image_alt) {
48
- return sprintf('<!-- Featured Image from URL: http://marceljm.com/wordpress/featured-image-from-url/ --> <img src="%s" alt="%s"></img>', $image_url, $image_alt);
49
  }
50
 
51
  add_filter('the_content', 'fifu_add_to_content');
1
  <?php
2
 
3
+ add_filter('wp_head', 'fifu_add_social_tags');
4
 
5
+ function fifu_add_social_tags() {
6
+ $url = get_post_meta(get_the_ID(), 'fifu_image_url', true);
7
  $post_id = get_the_ID();
8
+ $title = get_the_title($post_id);
9
+ $description = wp_strip_all_tags(get_post_field('post_content', $post_id));
10
 
11
+ if ($url)
12
+ include 'html/social.html';
 
 
13
  }
14
 
15
  add_action('the_post', 'fifu_choose');
37
  $image_url = get_post_meta($post_id, 'fifu_image_url', true);
38
  $image_alt = get_post_meta($post_id, 'fifu_image_alt', true);
39
 
40
+ if ($image_url)
41
+ $html = fifu_get_html($image_url, $image_alt);
42
+
 
 
43
  return $html;
44
  }
45
 
46
+ function fifu_get_html($image_url, $image_alt) {
47
+ return sprintf('<!-- Featured Image From URL plugin --> <img src="%s" alt="%s"></img>', $image_url, $image_alt);
48
  }
49
 
50
  add_filter('the_content', 'fifu_add_to_content');
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, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
  Stable tag: 4.4.2
@@ -16,9 +16,15 @@ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere et
16
 
17
  It's also possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server) and WooCommerce Product Category.
18
 
19
- Besides that, when you access "All Posts", "All Pages" or "Products" in admin menu, the Featured Images (internal or external) are shown in a new column.
20
 
21
- And if your theme don't show Featured Image (internal or external) in Posts, Pages or Products, now it's possible to include that at the beginning of the content automatically.
 
 
 
 
 
 
22
 
23
  == Installation ==
24
 
@@ -77,7 +83,7 @@ And if your theme don't show Featured Image (internal or external) in Posts, Pag
77
 
78
  * Because you are not filling the alt attribute field. It's required by WooCommerce.
79
 
80
- = When accessing "All Pages", "All Posts" or "Products" in admin menu, how can I enable or disable "Featured Image" column? =
81
 
82
  * Just click on "Screen Options", and check or uncheck "Featured Image".
83
 
@@ -168,6 +174,13 @@ And if your theme don't show Featured Image (internal or external) in Posts, Pag
168
  = 1.1.5 =
169
  * Now it's possible to use an external image as Featured Image of your WooCommerce Product Category. Then an "External Featured Image" box will be shown when you create/edit a Product Category. Depending on your theme, you must enable "WooCommerce Full Integration" on Featured Image From URL settings.
170
 
 
 
 
 
 
 
 
171
  == Upgrade Notice ==
172
 
173
  = 1.0 =
@@ -196,3 +209,10 @@ And if your theme don't show Featured Image (internal or external) in Posts, Pag
196
 
197
  = 1.1.5 =
198
  * Now it's possible to use an external image as Featured Image of your WooCommerce Product Category. Then an "External Featured Image" box will be shown when you create/edit a Product Category. Depending on your theme, you must enable "WooCommerce Full Integration" on Featured Image From URL settings.
 
 
 
 
 
 
 
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
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
  Stable tag: 4.4.2
16
 
17
  It's also possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server) and WooCommerce Product Category.
18
 
19
+ Besides that, when you access "All Posts", "All Pages", "Products" or "Product Categories" in admin menu, the Featured Images (internal or external) are shown in a new column.
20
 
21
+ And if your theme didn't show Featured Image (internal or external) in Posts, Pages or Products, now it's possible to include that at the beginning of the content automatically.
22
+
23
+ Premium Version:
24
+
25
+ All functionalities created for external images are now available for <b>external videos</b> (from YouTube), everything in one plugin. Click <a href="https://marceljm.com/wordpress/featured-image-from-url-premium/" targe="_blank">here</a> to know more.
26
+
27
+ [youtube https://www.youtube.com/watch?v=LuynS-Y-fZs]
28
 
29
  == Installation ==
30
 
83
 
84
  * Because you are not filling the alt attribute field. It's required by WooCommerce.
85
 
86
+ = When accessing "All Pages", "All Posts", "Products" or "Product Categories" in admin menu, how can I enable or disable "Featured Image" column? =
87
 
88
  * Just click on "Screen Options", and check or uncheck "Featured Image".
89
 
174
  = 1.1.5 =
175
  * Now it's possible to use an external image as Featured Image of your WooCommerce Product Category. Then an "External Featured Image" box will be shown when you create/edit a Product Category. Depending on your theme, you must enable "WooCommerce Full Integration" on Featured Image From URL settings.
176
 
177
+ = 1.2 =
178
+ * It was included a Featured Image column in Product Categories. Moreover, it was fixed a problem with a toggle (Featured Image in Content) that didn't appear in Firefox. And another toggle, for backlink,
179
+ was removed. To finish, a Premium version is now been presented.
180
+
181
+ = 1.2.1 =
182
+ * Readme fixed.
183
+
184
  == Upgrade Notice ==
185
 
186
  = 1.0 =
209
 
210
  = 1.1.5 =
211
  * Now it's possible to use an external image as Featured Image of your WooCommerce Product Category. Then an "External Featured Image" box will be shown when you create/edit a Product Category. Depending on your theme, you must enable "WooCommerce Full Integration" on Featured Image From URL settings.
212
+
213
+ = 1.2 =
214
+ * It was included a Featured Image column in Product Categories. Moreover, it was fixed a problem with a toggle (Featured Image in Content) that didn't appear in Firefox. And another toggle, for backlink,
215
+ was removed. To finish, a Premium version is now been presented.
216
+
217
+ = 1.2.1 =
218
+ * Readme fixed.
scripts/enableWoocommerce.sh CHANGED
@@ -27,7 +27,7 @@ gallery()
27
  if($image_link){\
28
  $image_caption=get_post_meta($post->ID,"fifu_image_alt_".$i,true);\
29
  $image_class="attachment-shop_thumbnail";\
30
- $image=fifu_get_html($post->ID,$image_link,$image_caption);\
31
  $attachment_id=1;\
32
  echo\ apply_filters("woocommerce_single_product_image_thumbnail_html",\
33
  sprintf("<a\ href='%s'\ class='%s'\ title='%s'\ data-rel='prettyPhoto[product-gallery]'>%s<\/a>",\
27
  if($image_link){\
28
  $image_caption=get_post_meta($post->ID,"fifu_image_alt_".$i,true);\
29
  $image_class="attachment-shop_thumbnail";\
30
+ $image=fifu_get_html($image_link,$image_caption);\
31
  $attachment_id=1;\
32
  echo\ apply_filters("woocommerce_single_product_image_thumbnail_html",\
33
  sprintf("<a\ href='%s'\ class='%s'\ title='%s'\ data-rel='prettyPhoto[product-gallery]'>%s<\/a>",\