Version Description
- New feature: Auto set featured image from Unsplash using tags; new option: Auto set screenshot as featured image > Scale; new option: bbPress > copy the featured image/video to the forum/topic content.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 3.6.4 |
Comparing to | |
See all releases |
Code changes from version 3.6.3 to 3.6.4
- admin/db.php +12 -0
- admin/html/js/menu.js +1 -0
- admin/html/menu.html +141 -3
- admin/html/meta-box.html +3 -2
- admin/html/support-data.html +1 -0
- admin/strings.php +18 -1
- featured-image-from-url.php +1 -1
- readme.txt +9 -8
admin/db.php
CHANGED
@@ -295,6 +295,11 @@ class FifuDb {
|
|
295 |
);
|
296 |
}
|
297 |
|
|
|
|
|
|
|
|
|
|
|
298 |
// get last (images/videos/sliders/shortcodes)
|
299 |
function get_last($meta_key) {
|
300 |
return $this->wpdb->get_results("
|
@@ -1049,3 +1054,10 @@ function fifu_db_fix_guid() {
|
|
1049 |
return $db->fix_guid();
|
1050 |
}
|
1051 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
);
|
296 |
}
|
297 |
|
298 |
+
// guid size
|
299 |
+
function get_guid_size() {
|
300 |
+
return $this->wpdb->get_col_length($this->posts, 'guid')['length'];
|
301 |
+
}
|
302 |
+
|
303 |
// get last (images/videos/sliders/shortcodes)
|
304 |
function get_last($meta_key) {
|
305 |
return $this->wpdb->get_results("
|
1054 |
return $db->fix_guid();
|
1055 |
}
|
1056 |
|
1057 |
+
/* database info */
|
1058 |
+
|
1059 |
+
function fifu_db_get_guid_size() {
|
1060 |
+
$db = new FifuDb();
|
1061 |
+
return $db->get_guid_size();
|
1062 |
+
}
|
1063 |
+
|
admin/html/js/menu.js
CHANGED
@@ -41,6 +41,7 @@ jQuery(function () {
|
|
41 |
jQuery("#fifu_input_auto_set_width").spinner({min: 0});
|
42 |
jQuery("#fifu_input_auto_set_height").spinner({min: 0});
|
43 |
jQuery("#fifu_input_screenshot_height").spinner({min: 0});
|
|
|
44 |
jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
|
45 |
jQuery("#tabsApi").tabs();
|
46 |
jQuery("#tabsCrop").tabs();
|
41 |
jQuery("#fifu_input_auto_set_width").spinner({min: 0});
|
42 |
jQuery("#fifu_input_auto_set_height").spinner({min: 0});
|
43 |
jQuery("#fifu_input_screenshot_height").spinner({min: 0});
|
44 |
+
jQuery("#fifu_input_screenshot_scale").spinner({min: 0});
|
45 |
jQuery("#fifu_input_crop_delay").spinner({min: 0, step: 50});
|
46 |
jQuery("#tabsApi").tabs();
|
47 |
jQuery("#tabsCrop").tabs();
|
admin/html/menu.html
CHANGED
@@ -412,6 +412,21 @@
|
|
412 |
</th>
|
413 |
<th>400, 600, 800...</th>
|
414 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
<tr class="color">
|
416 |
<th>
|
417 |
<?php $fifu['tab']['auto']() ?>
|
@@ -427,6 +442,21 @@
|
|
427 |
on, off
|
428 |
</th>
|
429 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
<tr class="color">
|
431 |
<th>
|
432 |
<?php $fifu['tab']['image']() ?>
|
@@ -1668,6 +1698,23 @@
|
|
1668 |
on, off
|
1669 |
</th>
|
1670 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1671 |
<tr class="color">
|
1672 |
<th>
|
1673 |
<?php $fifu['tab']['social']() ?>
|
@@ -2128,7 +2175,7 @@
|
|
2128 |
</tr>
|
2129 |
<tr>
|
2130 |
<th>
|
2131 |
-
<input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
|
2132 |
</th>
|
2133 |
<th></th>
|
2134 |
</tr>
|
@@ -2199,6 +2246,7 @@
|
|
2199 |
<div id="tabsScreenshot">
|
2200 |
<ul>
|
2201 |
<li><a href="#tabsScreenshot-a"><?php $fifu['screenshot']['tab']['auto']() ?></a></li>
|
|
|
2202 |
<li><a href="#tabsScreenshot-b"><?php $fifu['screenshot']['tab']['crop']() ?></a></li>
|
2203 |
<br>
|
2204 |
<br>
|
@@ -2231,7 +2279,29 @@
|
|
2231 |
</tr>
|
2232 |
<tr>
|
2233 |
<th>
|
2234 |
-
<input type="submit" value="<?php $fifu['button']['submit']() ?>" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2235 |
</th>
|
2236 |
<th></th>
|
2237 |
</tr>
|
@@ -2261,6 +2331,27 @@
|
|
2261 |
</tr>
|
2262 |
</table>
|
2263 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2264 |
</div>
|
2265 |
|
2266 |
<div id="tabs-g">
|
@@ -3861,7 +3952,7 @@
|
|
3861 |
</tr>
|
3862 |
<tr>
|
3863 |
<th>
|
3864 |
-
<input type="submit" disabled value="<?php $fifu['button']['ok']() ?>" style="width:
|
3865 |
</th>
|
3866 |
</tr>
|
3867 |
</table>
|
@@ -4047,6 +4138,19 @@
|
|
4047 |
<?php $fifu['bbpress']['title']() ?>
|
4048 |
</th>
|
4049 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4050 |
<tr>
|
4051 |
<th>
|
4052 |
<input
|
@@ -4996,6 +5100,40 @@
|
|
4996 |
</div>
|
4997 |
</div>
|
4998 |
<div id="tabs-t">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4999 |
<div class="box">
|
5000 |
<table>
|
5001 |
<tr>
|
412 |
</th>
|
413 |
<th>400, 600, 800...</th>
|
414 |
</tr>
|
415 |
+
<tr class="color">
|
416 |
+
<th>
|
417 |
+
<?php $fifu['tab']['auto']() ?>
|
418 |
+
</th>
|
419 |
+
<th>
|
420 |
+
<?php $fifu['title']['screenshot']() ?>
|
421 |
+
</th>
|
422 |
+
<th>
|
423 |
+
<?php $fifu['screenshot']['scale']['width']() ?>
|
424 |
+
</th>
|
425 |
+
<th>
|
426 |
+
wp fifu screenshot --scale <integer>
|
427 |
+
</th>
|
428 |
+
<th>400, 600, 800...</th>
|
429 |
+
</tr>
|
430 |
<tr class="color">
|
431 |
<th>
|
432 |
<?php $fifu['tab']['auto']() ?>
|
442 |
on, off
|
443 |
</th>
|
444 |
</tr>
|
445 |
+
<tr class="color">
|
446 |
+
<th>
|
447 |
+
<?php $fifu['tab']['auto']() ?>
|
448 |
+
</th>
|
449 |
+
<th>
|
450 |
+
<?php $fifu['title']['tags']() ?>
|
451 |
+
</th>
|
452 |
+
<th></th>
|
453 |
+
<th>
|
454 |
+
wp fifu tags <toggle>
|
455 |
+
</th>
|
456 |
+
<th>
|
457 |
+
on, off
|
458 |
+
</th>
|
459 |
+
</tr>
|
460 |
<tr class="color">
|
461 |
<th>
|
462 |
<?php $fifu['tab']['image']() ?>
|
1698 |
on, off
|
1699 |
</th>
|
1700 |
</tr>
|
1701 |
+
<tr class="color">
|
1702 |
+
<th>
|
1703 |
+
<?php $fifu['tab']['social']() ?>
|
1704 |
+
</th>
|
1705 |
+
<th>
|
1706 |
+
<?php $fifu['title']['bbpress']() ?>
|
1707 |
+
</th>
|
1708 |
+
<th>
|
1709 |
+
<?php $fifu['bbpress']['copy']() ?>
|
1710 |
+
</th>
|
1711 |
+
<th>
|
1712 |
+
wp fifu bbpress --copy <toggle>
|
1713 |
+
</th>
|
1714 |
+
<th>
|
1715 |
+
on, off
|
1716 |
+
</th>
|
1717 |
+
</tr>
|
1718 |
<tr class="color">
|
1719 |
<th>
|
1720 |
<?php $fifu['tab']['social']() ?>
|
2175 |
</tr>
|
2176 |
<tr>
|
2177 |
<th>
|
2178 |
+
<input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled style="width:85px">
|
2179 |
</th>
|
2180 |
<th></th>
|
2181 |
</tr>
|
2246 |
<div id="tabsScreenshot">
|
2247 |
<ul>
|
2248 |
<li><a href="#tabsScreenshot-a"><?php $fifu['screenshot']['tab']['auto']() ?></a></li>
|
2249 |
+
<li><a href="#tabsScreenshot-c"><?php $fifu['screenshot']['tab']['scale']() ?></a></li>
|
2250 |
<li><a href="#tabsScreenshot-b"><?php $fifu['screenshot']['tab']['crop']() ?></a></li>
|
2251 |
<br>
|
2252 |
<br>
|
2279 |
</tr>
|
2280 |
<tr>
|
2281 |
<th>
|
2282 |
+
<input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled style="width: 85px">
|
2283 |
+
</th>
|
2284 |
+
<th></th>
|
2285 |
+
</tr>
|
2286 |
+
</table>
|
2287 |
+
</div>
|
2288 |
+
<div id="tabsScreenshot-c">
|
2289 |
+
<table>
|
2290 |
+
<tr style="text-align:center">
|
2291 |
+
<th>
|
2292 |
+
<input id="fifu_input_screenshot_scale"
|
2293 |
+
name="fifu_input_screenshot_scale"
|
2294 |
+
step="10"
|
2295 |
+
max="2000"
|
2296 |
+
size="5">
|
2297 |
+
</th>
|
2298 |
+
<th>
|
2299 |
+
<?php $fifu['screenshot']['scale']['width']() ?>
|
2300 |
+
</th>
|
2301 |
+
</tr>
|
2302 |
+
<tr>
|
2303 |
+
<th>
|
2304 |
+
<input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled style="width: 85px">
|
2305 |
</th>
|
2306 |
<th></th>
|
2307 |
</tr>
|
2331 |
</tr>
|
2332 |
</table>
|
2333 |
</div>
|
2334 |
+
|
2335 |
+
<div class="box">
|
2336 |
+
<div class="fifu-pro"><div class="fifu-pro-out"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all features"><h4 class="fifu-pro-text"><span class="dashicons dashicons-lock fifu-pro-icon"></span>PRO</h4></a></div></div>
|
2337 |
+
<h2><?php $fifu['title']['tags']() ?> </span></h2>
|
2338 |
+
<div class="greybox" id="grad2">
|
2339 |
+
<?php $fifu['tags']['desc']() ?>
|
2340 |
+
</div>
|
2341 |
+
<br>
|
2342 |
+
<table style="text-align:left">
|
2343 |
+
<tr>
|
2344 |
+
<th>
|
2345 |
+
<input
|
2346 |
+
type="submit"
|
2347 |
+
href="javascript:void(0)"
|
2348 |
+
class="toggleoff"
|
2349 |
+
value=""
|
2350 |
+
style="display:block;border:none">
|
2351 |
+
</th>
|
2352 |
+
</tr>
|
2353 |
+
</table>
|
2354 |
+
</div>
|
2355 |
</div>
|
2356 |
|
2357 |
<div id="tabs-g">
|
3952 |
</tr>
|
3953 |
<tr>
|
3954 |
<th>
|
3955 |
+
<input type="submit" disabled value="<?php $fifu['button']['ok']() ?>" style="width:72px">
|
3956 |
</th>
|
3957 |
</tr>
|
3958 |
</table>
|
4138 |
<?php $fifu['bbpress']['title']() ?>
|
4139 |
</th>
|
4140 |
</tr>
|
4141 |
+
<tr>
|
4142 |
+
<th>
|
4143 |
+
<input
|
4144 |
+
type="submit"
|
4145 |
+
href="javascript:void(0)"
|
4146 |
+
class="toggleoff"
|
4147 |
+
value=""
|
4148 |
+
style="display:block;border:none">
|
4149 |
+
</th>
|
4150 |
+
<th>
|
4151 |
+
<?php $fifu['bbpress']['copy']() ?>
|
4152 |
+
</th>
|
4153 |
+
</tr>
|
4154 |
<tr>
|
4155 |
<th>
|
4156 |
<input
|
5100 |
</div>
|
5101 |
</div>
|
5102 |
<div id="tabs-t">
|
5103 |
+
<div class="box">
|
5104 |
+
<table>
|
5105 |
+
<tr>
|
5106 |
+
<td style="border-bottom:none">2021-06-28</td>
|
5107 |
+
<td style="border-bottom:none"><h3> Octolooks Scrapes</h3></td>
|
5108 |
+
<td style="border-bottom:none">plugin</td>
|
5109 |
+
</tr>
|
5110 |
+
</table>
|
5111 |
+
<div class="greybox" style="position: relative; top: -10px">
|
5112 |
+
Using external featured images. <br>
|
5113 |
+
0) enable "FIFU Settings > Metadata > Schedule Metadata Generation" toggle;<br>
|
5114 |
+
1) access "Scrapes > All Scrapes > Actions > Edit > POST > CUSTOM FIELDS";<br>
|
5115 |
+
2) set "fifu_image_url" for "Name";<br>
|
5116 |
+
3) for "Value", click on the icon and select the featured image;<br>
|
5117 |
+
4) set "src" for "Attribute";<br>
|
5118 |
+
5) make sure "POST > FEATURED IMAGE > Value" is empty;<br>
|
5119 |
+
6) save.<br>
|
5120 |
+
</div>
|
5121 |
+
</div>
|
5122 |
+
<div class="box">
|
5123 |
+
<table>
|
5124 |
+
<tr>
|
5125 |
+
<td style="border-bottom:none">2021-06-23</td>
|
5126 |
+
<td style="border-bottom:none"><h3> Domain</h3></td>
|
5127 |
+
<td style="border-bottom:none">address</td>
|
5128 |
+
</tr>
|
5129 |
+
</table>
|
5130 |
+
<div class="greybox" style="position: relative; top: -10px">
|
5131 |
+
Images missing due domain change. <br>
|
5132 |
+
1) run this SQL command: UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'https://domain/', 'https://newdomain/') WHERE meta_key = 'fifu_image_url' AND meta_value LIKE '%//domain/%';<br>
|
5133 |
+
2) run Metadata > Clean Metadata;<br>
|
5134 |
+
3) enable Metadata > Image Metadata.<br>
|
5135 |
+
</div>
|
5136 |
+
</div>
|
5137 |
<div class="box">
|
5138 |
<table>
|
5139 |
<tr>
|
admin/html/meta-box.html
CHANGED
@@ -96,9 +96,9 @@
|
|
96 |
</div>
|
97 |
|
98 |
<div id="fifu_premium" style="<?php echo $show_button ?>">
|
99 |
-
<table style="position: relative; top: 11px; background-color: #444444; color:white; width: 100%; border-radius:
|
100 |
<tr style="text-align: center;">
|
101 |
-
<td style="width: 90px; font-size: 11px; background-color: #1da867; border-radius:
|
102 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured video" class="dashicons dashicons-video-alt3" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
103 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce image gallery" class="dashicons dashicons-format-gallery" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
104 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
@@ -108,6 +108,7 @@
|
|
108 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="ISBN (Auto set featured image using ISBN and books API)" class="dashicons dashicons-book-alt" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
109 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Screenshot (Auto set screenshot as featured image)" class="dashicons dashicons-cover-image" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
110 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Image finder (Auto set featured image using web page address)" class="dashicons dashicons-code-standards" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
|
|
111 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured image/video (for bbPress forms)" class="dashicons dashicons-buddicons-bbpress-logo" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
112 |
</tr>
|
113 |
</table>
|
96 |
</div>
|
97 |
|
98 |
<div id="fifu_premium" style="<?php echo $show_button ?>">
|
99 |
+
<table style="position: relative; top: 11px; background-color: #444444; color:white; width: 100%; border-radius: 5px">
|
100 |
<tr style="text-align: center;">
|
101 |
+
<td style="width: 90px; font-size: 11px; background-color: #1da867; border-radius: 3px"><a style="color:white; text-decoration: none" target="_blank" href="https://fifu.app/" title="Unlock all features">Go <b>PRO</b></a></td>
|
102 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured video" class="dashicons dashicons-video-alt3" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
103 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce image gallery" class="dashicons dashicons-format-gallery" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
104 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Woocommerce video gallery" class="dashicons dashicons-format-video" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
108 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="ISBN (Auto set featured image using ISBN and books API)" class="dashicons dashicons-book-alt" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
109 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Screenshot (Auto set screenshot as featured image)" class="dashicons dashicons-cover-image" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
110 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Image finder (Auto set featured image using web page address)" class="dashicons dashicons-code-standards" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
111 |
+
<td style="padding: 0px 0px" class="fifu-hover"><span title="Tags (Auto set featured image from Unsplash using tags)" class="dashicons dashicons-tag" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
112 |
<td style="padding: 0px 0px" class="fifu-hover"><span title="Featured image/video (for bbPress forms)" class="dashicons dashicons-buddicons-bbpress-logo" style="font-size:15px; display: unset; vertical-align:sub;"></span></td>
|
113 |
</tr>
|
114 |
</table>
|
admin/html/support-data.html
CHANGED
@@ -19,6 +19,7 @@ Images without dimensions:<?php echo fifu_db_missing_dimensions() ?>;
|
|
19 |
URLs with metadata:<?php echo fifu_db_count_urls_with_metadata() ?>;
|
20 |
URLs:<?php echo fifu_db_count_urls() ?>;
|
21 |
php-curl:<?php echo fifu_has_curl() ? 'yes' : 'no' ?>;
|
|
|
22 |
Plugins:<?php echo fifu_get_plugins_list() ?>;
|
23 |
Active plugins:<?php echo fifu_get_active_plugins_list() ?>;
|
24 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
19 |
URLs with metadata:<?php echo fifu_db_count_urls_with_metadata() ?>;
|
20 |
URLs:<?php echo fifu_db_count_urls() ?>;
|
21 |
php-curl:<?php echo fifu_has_curl() ? 'yes' : 'no' ?>;
|
22 |
+
Max lenght:<?php echo fifu_db_get_guid_size() ?>;
|
23 |
Plugins:<?php echo fifu_get_plugins_list() ?>;
|
24 |
Active plugins:<?php echo fifu_get_active_plugins_list() ?>;
|
25 |
fifu_auto_alt:<?php echo $enable_auto_alt ?>;
|
admin/strings.php
CHANGED
@@ -223,6 +223,9 @@ function fifu_get_strings_settings() {
|
|
223 |
$fifu['title']['finder'] = function() {
|
224 |
_e("Auto set featured image using web page address", FIFU_SLUG);
|
225 |
};
|
|
|
|
|
|
|
226 |
$fifu['title']['giphy'] = function() {
|
227 |
_e("Giphy Search", FIFU_SLUG);
|
228 |
};
|
@@ -667,15 +670,26 @@ function fifu_get_strings_settings() {
|
|
667 |
$fifu['screenshot']['tab']['crop'] = function() {
|
668 |
_e("Crop", FIFU_SLUG);
|
669 |
};
|
|
|
|
|
|
|
670 |
$fifu['screenshot']['crop']['height'] = function() {
|
671 |
_e("height (px)", FIFU_SLUG);
|
672 |
};
|
|
|
|
|
|
|
673 |
|
674 |
// find
|
675 |
$fifu['finder']['desc'] = function() {
|
676 |
_e("Set images from external web pages as featured images automatically. FIFU will check every minute if there are post types without featured images and will access the informed web page URLs to get the main image. For that FIFU looks for the Open Graph tag image (used for sharing on social media). If og:image is not found, FIFU will get the larger image found.", FIFU_SLUG);
|
677 |
};
|
678 |
|
|
|
|
|
|
|
|
|
|
|
679 |
// giphy
|
680 |
$fifu['giphy']['desc'] = function() {
|
681 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
@@ -1147,6 +1161,9 @@ function fifu_get_strings_settings() {
|
|
1147 |
$fifu['bbpress']['avatar'] = function() {
|
1148 |
_e("replace profile picture by featured image", FIFU_SLUG);
|
1149 |
};
|
|
|
|
|
|
|
1150 |
|
1151 |
// title
|
1152 |
$fifu['title']['desc'] = function() {
|
@@ -1444,7 +1461,7 @@ function fifu_get_strings_meta_box() {
|
|
1444 |
_e("Image URL or Keywords", FIFU_SLUG);
|
1445 |
};
|
1446 |
$fifu['image']['help'] = function() {
|
1447 |
-
_e("Examples: https://domain
|
1448 |
};
|
1449 |
$fifu['image']['remove'] = function() {
|
1450 |
_e("remove external featured image", FIFU_SLUG);
|
223 |
$fifu['title']['finder'] = function() {
|
224 |
_e("Auto set featured image using web page address", FIFU_SLUG);
|
225 |
};
|
226 |
+
$fifu['title']['tags'] = function() {
|
227 |
+
_e("Auto set featured image from Unsplash using tags", FIFU_SLUG);
|
228 |
+
};
|
229 |
$fifu['title']['giphy'] = function() {
|
230 |
_e("Giphy Search", FIFU_SLUG);
|
231 |
};
|
670 |
$fifu['screenshot']['tab']['crop'] = function() {
|
671 |
_e("Crop", FIFU_SLUG);
|
672 |
};
|
673 |
+
$fifu['screenshot']['tab']['scale'] = function() {
|
674 |
+
_e("Scale", FIFU_SLUG);
|
675 |
+
};
|
676 |
$fifu['screenshot']['crop']['height'] = function() {
|
677 |
_e("height (px)", FIFU_SLUG);
|
678 |
};
|
679 |
+
$fifu['screenshot']['scale']['width'] = function() {
|
680 |
+
_e("width (px)", FIFU_SLUG);
|
681 |
+
};
|
682 |
|
683 |
// find
|
684 |
$fifu['finder']['desc'] = function() {
|
685 |
_e("Set images from external web pages as featured images automatically. FIFU will check every minute if there are post types without featured images and will access the informed web page URLs to get the main image. For that FIFU looks for the Open Graph tag image (used for sharing on social media). If og:image is not found, FIFU will get the larger image found.", FIFU_SLUG);
|
686 |
};
|
687 |
|
688 |
+
// tags
|
689 |
+
$fifu['tags']['desc'] = function() {
|
690 |
+
_e("Set images from Unsplash as featured images automatically. FIFU will check every minute if there are post types without featured images and will perform Unsplash searches based on the tags to get the image URLs.", FIFU_SLUG);
|
691 |
+
};
|
692 |
+
|
693 |
// giphy
|
694 |
$fifu['giphy']['desc'] = function() {
|
695 |
_e("Enable keyword gif search at featured image box.", FIFU_SLUG);
|
1161 |
$fifu['bbpress']['avatar'] = function() {
|
1162 |
_e("replace profile picture by featured image", FIFU_SLUG);
|
1163 |
};
|
1164 |
+
$fifu['bbpress']['copy'] = function() {
|
1165 |
+
_e("copy the featured image/video to the forum/topic content", FIFU_SLUG);
|
1166 |
+
};
|
1167 |
|
1168 |
// title
|
1169 |
$fifu['title']['desc'] = function() {
|
1461 |
_e("Image URL or Keywords", FIFU_SLUG);
|
1462 |
};
|
1463 |
$fifu['image']['help'] = function() {
|
1464 |
+
_e("Examples: https://domain/image.jpg (image URL); sea,sun (keywords); empty (random image).", FIFU_SLUG);
|
1465 |
};
|
1466 |
$fifu['image']['remove'] = function() {
|
1467 |
_e("remove external featured image", FIFU_SLUG);
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
-
* Version: 3.6.
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
4 |
* Plugin Name: Featured Image from URL (FIFU)
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
|
7 |
+
* Version: 3.6.4
|
8 |
* Author: fifu.app
|
9 |
* Author URI: https://fifu.app/
|
10 |
* WC requires at least: 4.0
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
|
|
4 |
Tags: featured, image, url, video, woocommerce
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 3.6.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -45,6 +45,7 @@ Use an external image as featured image of your post, page or custom post type.
|
|
45 |
* **[PRO]** Auto set featured image using ISBN and books API
|
46 |
* **[PRO]** Auto set screenshot as featured image
|
47 |
* **[PRO]** Auto set featured image using web page address
|
|
|
48 |
|
49 |
#### PERFORMANCE
|
50 |
|
@@ -112,8 +113,8 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio,
|
|
112 |
|
113 |
#### INTEGRATION FUNCTION FOR DEVELOPERS
|
114 |
|
115 |
-
* fifu_dev_set_image(post_id, image_url)
|
116 |
-
* **[PRO]** fifu_dev_set_image_list(post_id, image_url_list)
|
117 |
* **[PRO]** fifu_dev_set_video($post_id, $video_url)
|
118 |
* **[PRO]** fifu_dev_set_category_image($term_id, $image_url)
|
119 |
* **[PRO]** fifu_dev_set_category_video($term_id, $video_url)
|
@@ -218,20 +219,20 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio,
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
221 |
= 3.6.3 =
|
222 |
* New feature: Quick Edit (for featured images and videos); new feature: FIFU Shortcodes; new widget: Product gallery; new integration functions: fifu_dev_set_video(), fifu_dev_set_category_image() and fifu_dev_set_category_video(); new option: Auto set featured image using post title and search engine > Post types.
|
223 |
|
224 |
= 3.6.2 =
|
225 |
* Improvement: query optimizations (for sites with hundreds of thousands of URLs); improvement: CDN + Optimized Thumbnails (perfect image croppig for less style issues); improvement: Save Image Dimensions (150% faster, CLI integration); deprecated: CDN + Optimized Thumbnails > Shortpixel; fix: Lazy Load (conflict with AMP plugin).
|
226 |
|
227 |
-
= 3.6.1 =
|
228 |
-
* New: FIFU widgets for WordPress and Elementor.
|
229 |
-
|
230 |
= others =
|
231 |
* [more](https://fifu.app/changelog)
|
232 |
|
233 |
|
234 |
== Upgrade Notice ==
|
235 |
|
236 |
-
= 3.6.
|
237 |
-
* New feature:
|
4 |
Tags: featured, image, url, video, woocommerce
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 3.6.4
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
45 |
* **[PRO]** Auto set featured image using ISBN and books API
|
46 |
* **[PRO]** Auto set screenshot as featured image
|
47 |
* **[PRO]** Auto set featured image using web page address
|
48 |
+
* **[PRO]** Auto set featured image from Unsplash using tags
|
49 |
|
50 |
#### PERFORMANCE
|
51 |
|
113 |
|
114 |
#### INTEGRATION FUNCTION FOR DEVELOPERS
|
115 |
|
116 |
+
* fifu_dev_set_image($post_id, $image_url)
|
117 |
+
* **[PRO]** fifu_dev_set_image_list($post_id, $image_url_list)
|
118 |
* **[PRO]** fifu_dev_set_video($post_id, $video_url)
|
119 |
* **[PRO]** fifu_dev_set_category_image($term_id, $image_url)
|
120 |
* **[PRO]** fifu_dev_set_category_video($term_id, $video_url)
|
219 |
|
220 |
== Changelog ==
|
221 |
|
222 |
+
= 3.6.4 =
|
223 |
+
* New feature: Auto set featured image from Unsplash using tags; new option: Auto set screenshot as featured image > Scale; new option: bbPress > copy the featured image/video to the forum/topic content.
|
224 |
+
|
225 |
= 3.6.3 =
|
226 |
* New feature: Quick Edit (for featured images and videos); new feature: FIFU Shortcodes; new widget: Product gallery; new integration functions: fifu_dev_set_video(), fifu_dev_set_category_image() and fifu_dev_set_category_video(); new option: Auto set featured image using post title and search engine > Post types.
|
227 |
|
228 |
= 3.6.2 =
|
229 |
* Improvement: query optimizations (for sites with hundreds of thousands of URLs); improvement: CDN + Optimized Thumbnails (perfect image croppig for less style issues); improvement: Save Image Dimensions (150% faster, CLI integration); deprecated: CDN + Optimized Thumbnails > Shortpixel; fix: Lazy Load (conflict with AMP plugin).
|
230 |
|
|
|
|
|
|
|
231 |
= others =
|
232 |
* [more](https://fifu.app/changelog)
|
233 |
|
234 |
|
235 |
== Upgrade Notice ==
|
236 |
|
237 |
+
= 3.6.4 =
|
238 |
+
* New feature: Auto set featured image from Unsplash using tags; new option: Auto set screenshot as featured image > Scale; new option: bbPress > copy the featured image/video to the forum/topic content.
|