Featured Image From URL - Version 2.5.4

Version Description

  • Improvement: integration with Accelerated Mobile Pages plugin.
Download this release

Release Info

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

Code changes from version 2.5.3 to 2.5.4

admin/html/js/menu.js CHANGED
@@ -99,7 +99,9 @@ function fifu_fake_js() {
99
  console.log(errorThrown);
100
  },
101
  complete: function () {
102
- jQuery('.wrap').unblock();
 
 
103
  },
104
  timeout: 0
105
  });
@@ -123,11 +125,13 @@ function fifu_clean_js() {
123
  console.log(errorThrown);
124
  },
125
  complete: function () {
126
- jQuery("#fifu_toggle_data_clean").attr('class', 'toggleoff');
127
- jQuery("#fifu_toggle_fake").attr('class', 'toggleoff');
128
- jQuery("#fifu_toggle_fake2").attr('class', 'toggleoff');
129
- jQuery("#fifu_toggle_data_generation").attr('class', 'toggleoff');
130
- jQuery('.wrap').unblock();
 
 
131
  }
132
  });
133
  }
@@ -150,8 +154,10 @@ function fifu_save_dimensions_all_js() {
150
  console.log(errorThrown);
151
  },
152
  complete: function () {
153
- jQuery("#fifu_toggle_save_dimensions_all").attr('class', 'toggleoff');
154
- jQuery('.wrap').unblock();
 
 
155
  }
156
  });
157
  }
99
  console.log(errorThrown);
100
  },
101
  complete: function () {
102
+ setTimeout(function () {
103
+ jQuery('.wrap').unblock();
104
+ }, 1000);
105
  },
106
  timeout: 0
107
  });
125
  console.log(errorThrown);
126
  },
127
  complete: function () {
128
+ setTimeout(function () {
129
+ jQuery("#fifu_toggle_data_clean").attr('class', 'toggleoff');
130
+ jQuery("#fifu_toggle_fake").attr('class', 'toggleoff');
131
+ jQuery("#fifu_toggle_fake2").attr('class', 'toggleoff');
132
+ jQuery("#fifu_toggle_data_generation").attr('class', 'toggleoff');
133
+ jQuery('.wrap').unblock();
134
+ }, 1000);
135
  }
136
  });
137
  }
154
  console.log(errorThrown);
155
  },
156
  complete: function () {
157
+ setTimeout(function () {
158
+ jQuery("#fifu_toggle_save_dimensions_all").attr('class', 'toggleoff');
159
+ jQuery('.wrap').unblock();
160
+ }, 1000);
161
  }
162
  });
163
  }
admin/html/menu.html CHANGED
@@ -40,7 +40,7 @@
40
  <div>
41
  Donate <strike>US$ 50,00</strike> <b>US$ 39,90</b> and receive your license key and the download link by email within 12 hours.
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
- <i>* price valid for June 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
@@ -2600,6 +2600,7 @@
2600
  Version:<?php echo fifu_version() ?>;
2601
  Site:<?php echo get_home_url() ?>;
2602
  Theme:<?php echo wp_get_theme() ?>;
 
2603
  PHP:<?php echo phpversion() ?>;
2604
  WooCommerce:<?php echo class_exists('WooCommerce') ? WC()->version : '' ?>;
2605
  WordPress:<?php echo get_bloginfo('version') ?>;
40
  <div>
41
  Donate <strike>US$ 50,00</strike> <b>US$ 39,90</b> and receive your license key and the download link by email within 12 hours.
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
+ <i>* price valid for July 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
2600
  Version:<?php echo fifu_version() ?>;
2601
  Site:<?php echo get_home_url() ?>;
2602
  Theme:<?php echo wp_get_theme() ?>;
2603
+ Plugins:<?php echo fifu_get_plugins_list() ?>;
2604
  PHP:<?php echo phpversion() ?>;
2605
  WooCommerce:<?php echo class_exists('WooCommerce') ? WC()->version : '' ?>;
2606
  WordPress:<?php echo get_bloginfo('version') ?>;
admin/html/meta-box.html CHANGED
@@ -59,11 +59,11 @@
59
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #ee4394; border-top: 2px solid #ee4394; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
60
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Please report any problem to <b>marcel@featuredimagefromurl.com</b></p>
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="wp-admin/admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><b>New</b>: "ignore Auto Set First Image" checkbox added to post editor</p>
65
- <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><b>New</b> (Premium): supports videos from Facebook, Instagram, Imgur and 9GAG</p>
67
- <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
68
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><b>New</b>: Compatibility with <a href="https://wclovers.com/knowledgebase/wcfm-custom-fields/"><b>WooCommerce Frontend Manager</b></a> plugin</p>
69
  </div>
59
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #ee4394; border-top: 2px solid #ee4394; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
60
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Please report any problem to <b>marcel@featuredimagefromurl.com</b></p>
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: Integration with <a href="https://wordpress.org/plugins/accelerated-mobile-pages/"><b>Accelerated Mobile Pages</b></a> plugin</p>
65
+ <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><b>New</b> (Premium): supports videos from Facebook, Instagram, Imgur and 9GAG</p-->
67
+ <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
68
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;"><b>New</b>: Compatibility with <a href="https://wclovers.com/knowledgebase/wcfm-custom-fields/"><b>WooCommerce Frontend Manager</b></a> plugin</p-->
69
  </div>
admin/menu.php CHANGED
@@ -47,7 +47,7 @@ function fifu_get_menu_html() {
47
  $enable_grid_category = get_option('fifu_grid_category');
48
  $enable_auto_alt = get_option('fifu_auto_alt');
49
  $enable_data_generation = get_option('fifu_data_generation');
50
- $enable_data_clean = get_option('fifu_data_clean');
51
  $max_image_height_shop = get_option('fifu_image_height_shop');
52
  $max_image_width_shop = get_option('fifu_image_width_shop');
53
  $max_image_height_prod = get_option('fifu_image_height_prod');
@@ -210,3 +210,13 @@ function fifu_version() {
210
  return $plugin_data ? $plugin_data['Name'] . ':' . $plugin_data['Version'] : '';
211
  }
212
 
 
 
 
 
 
 
 
 
 
 
47
  $enable_grid_category = get_option('fifu_grid_category');
48
  $enable_auto_alt = get_option('fifu_auto_alt');
49
  $enable_data_generation = get_option('fifu_data_generation');
50
+ $enable_data_clean = 'toggleoff';
51
  $max_image_height_shop = get_option('fifu_image_height_shop');
52
  $max_image_width_shop = get_option('fifu_image_width_shop');
53
  $max_image_height_prod = get_option('fifu_image_height_prod');
210
  return $plugin_data ? $plugin_data['Name'] . ':' . $plugin_data['Version'] : '';
211
  }
212
 
213
+ function fifu_get_plugins_list() {
214
+ $list = '';
215
+ $count = 0;
216
+ foreach (get_plugins() as $key => $domain) {
217
+ $name = $domain['Name'] . ' (' . $domain['TextDomain'] . ')';
218
+ $list .= ($count++ == 0) ? $name : ', ' . $name;
219
+ }
220
+ return $list;
221
+ }
222
+
featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
- * Version: 2.5.3
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
+ * Version: 2.5.4
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/attachment.php CHANGED
@@ -78,8 +78,8 @@ function fifu_replace_attachment_image_src($image, $att_id, $size) {
78
  );
79
  }
80
 
81
- $dimension = get_post_meta($post->post_parent, 'fifu_image_dimension');
82
- if ($dimension) {
83
  $dimension = $dimension[0];
84
  $width = explode(';', $dimension)[0];
85
  $height = explode(';', $dimension)[1];
78
  );
79
  }
80
 
81
+ $dimension = $post ? get_post_meta($post->post_parent, 'fifu_image_dimension') : null;
82
+ if ($dimension && fifu_is_on('fifu_image_dimension')) {
83
  $dimension = $dimension[0];
84
  $width = explode(';', $dimension)[0];
85
  $height = explode(';', $dimension)[1];
readme.txt CHANGED
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.5.3 =
163
  * Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
164
 
@@ -588,6 +591,9 @@ was removed. To finish, a Premium version is now been presented.
588
 
589
  == Upgrade Notice ==
590
 
 
 
 
591
  = 2.5.3 =
592
  * Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
593
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.5.4 =
163
+ * Improvement: integration with Accelerated Mobile Pages plugin.
164
+
165
  = 2.5.3 =
166
  * Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
167
 
591
 
592
  == Upgrade Notice ==
593
 
594
+ = 2.5.4 =
595
+ * Improvement: integration with Accelerated Mobile Pages plugin.
596
+
597
  = 2.5.3 =
598
  * Improvement: integration with WooCommerce Frontend Manager plugin and Wordpress Automatic plugin.
599