Version Description
- Minor PHP improvements
- Remove logo from plugin meta
- New hook: feedzy_summary_input
- $feedURL argument added on every available hooks
- French translation update
- readme.txt and hooks documentation update
Download this release
Release Info
Developer | briKou |
Plugin | FEEDZY RSS Feeds Lite |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
- feedzy-rss-feed.php +5 -14
- feedzy-rss-feeds-shortcode.php +30 -18
- langs/feedzy_rss_translate-fr_FR.mo +0 -0
- langs/feedzy_rss_translate-fr_FR.po +19 -19
- readme.txt +10 -2
feedzy-rss-feed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: FEEDZY RSS Feeds is a small and lightweight plugin. Fast and easy to use, it aggregates RSS feeds into your WordPress site through simple shortcodes.
|
6 |
* Author: Brice CAPOBIANCO
|
7 |
* Author URI: http://b-website.com/
|
8 |
-
* Version: 2.
|
9 |
* Text Domain: feedzy_rss_translate
|
10 |
* Domain Path: /langs
|
11 |
*/
|
@@ -14,12 +14,6 @@
|
|
14 |
/***************************************************************
|
15 |
* SECURITY : Exit if accessed directly
|
16 |
***************************************************************/
|
17 |
-
if ( !function_exists('add_action') ) {
|
18 |
-
header('Status: 403 Forbidden');
|
19 |
-
header('HTTP/1.1 403 Forbidden');
|
20 |
-
exit();
|
21 |
-
}
|
22 |
-
|
23 |
if ( !defined('ABSPATH') ) {
|
24 |
exit;
|
25 |
}
|
@@ -30,7 +24,7 @@ if ( !defined('ABSPATH') ) {
|
|
30 |
***************************************************************/
|
31 |
function feedzy_rss_load_textdomain() {
|
32 |
$path = dirname(plugin_basename( __FILE__ )) . '/langs/';
|
33 |
-
|
34 |
}
|
35 |
add_action('init', 'feedzy_rss_load_textdomain');
|
36 |
|
@@ -39,11 +33,10 @@ add_action('init', 'feedzy_rss_load_textdomain');
|
|
39 |
* Add custom meta link on plugin list page
|
40 |
***************************************************************/
|
41 |
function feedzy_meta_links( $links, $file ) {
|
42 |
-
if (
|
43 |
-
$links[
|
44 |
-
$links[] = '<a href="http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie" target="_blank" title="'. __( 'Documentation and examples', 'feedzy_rss_translate' ) .'"><strong style="color:#db3939">'. __( 'Documentation and examples', 'feedzy_rss_translate' ) .'</strong></a>';
|
45 |
$links[] = '<a href="http://b-website.com/category/plugins" target="_blank" title="'. __( 'More b*web Plugins', 'feedzy_rss_translate' ) .'">'. __( 'More b*web Plugins', 'feedzy_rss_translate' ) .'</a>';
|
46 |
-
$links[] = '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7Z6YVM63739Y8" target="_blank" title="'. __( 'Donate
|
47 |
}
|
48 |
return $links;
|
49 |
}
|
@@ -81,11 +74,9 @@ add_action('wp_footer', 'feedzy_print_custom_style');
|
|
81 |
***************************************************************/
|
82 |
function feedzy_insert_thumbnail_RSS($content) {
|
83 |
global $post;
|
84 |
-
|
85 |
if ( has_post_thumbnail( $post->ID ) ){
|
86 |
$content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
|
87 |
}
|
88 |
-
|
89 |
return $content;
|
90 |
}
|
91 |
add_filter('the_excerpt_rss', 'feedzy_insert_thumbnail_RSS');
|
5 |
* Description: FEEDZY RSS Feeds is a small and lightweight plugin. Fast and easy to use, it aggregates RSS feeds into your WordPress site through simple shortcodes.
|
6 |
* Author: Brice CAPOBIANCO
|
7 |
* Author URI: http://b-website.com/
|
8 |
+
* Version: 2.2
|
9 |
* Text Domain: feedzy_rss_translate
|
10 |
* Domain Path: /langs
|
11 |
*/
|
14 |
/***************************************************************
|
15 |
* SECURITY : Exit if accessed directly
|
16 |
***************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
if ( !defined('ABSPATH') ) {
|
18 |
exit;
|
19 |
}
|
24 |
***************************************************************/
|
25 |
function feedzy_rss_load_textdomain() {
|
26 |
$path = dirname(plugin_basename( __FILE__ )) . '/langs/';
|
27 |
+
load_plugin_textdomain( 'feedzy_rss_translate', false, $path);
|
28 |
}
|
29 |
add_action('init', 'feedzy_rss_load_textdomain');
|
30 |
|
33 |
* Add custom meta link on plugin list page
|
34 |
***************************************************************/
|
35 |
function feedzy_meta_links( $links, $file ) {
|
36 |
+
if ( $file === 'feedzy-rss-feeds/feedzy-rss-feed.php' ) {
|
37 |
+
$links[] = '<a href="http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie" target="_blank" title="'. __( 'Documentation and examples', 'feedzy_rss_translate' ) .'">'. __( 'Documentation and examples', 'feedzy_rss_translate' ) .'</a>';
|
|
|
38 |
$links[] = '<a href="http://b-website.com/category/plugins" target="_blank" title="'. __( 'More b*web Plugins', 'feedzy_rss_translate' ) .'">'. __( 'More b*web Plugins', 'feedzy_rss_translate' ) .'</a>';
|
39 |
+
$links[] = '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7Z6YVM63739Y8" target="_blank" title="' . __( 'Donate to this plugin »' ) . '"><strong>' . __( 'Donate to this plugin »' ) . '</strong></a>';
|
40 |
}
|
41 |
return $links;
|
42 |
}
|
74 |
***************************************************************/
|
75 |
function feedzy_insert_thumbnail_RSS($content) {
|
76 |
global $post;
|
|
|
77 |
if ( has_post_thumbnail( $post->ID ) ){
|
78 |
$content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
|
79 |
}
|
|
|
80 |
return $content;
|
81 |
}
|
82 |
add_filter('the_excerpt_rss', 'feedzy_insert_thumbnail_RSS');
|
feedzy-rss-feeds-shortcode.php
CHANGED
@@ -88,15 +88,15 @@ function feedzy_rss($atts, $content = "") {
|
|
88 |
|
89 |
//Load SimplePie Instance
|
90 |
$feed = new SimplePie();
|
91 |
-
$feed->set_feed_url($feedURL);
|
92 |
-
$feed->enable_cache(true);
|
93 |
-
$feed->enable_order_by_date(true);
|
94 |
-
$feed->set_cache_class('WP_Feed_Cache');
|
95 |
-
$feed->set_file_class('WP_SimplePie_File');
|
96 |
-
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 7200, $feedURL));
|
97 |
-
do_action_ref_array('wp_feed_options', array($feed, $feedURL));
|
98 |
-
$feed->strip_comments(true);
|
99 |
-
$feed->strip_htmltags(false);
|
100 |
$feed->init();
|
101 |
$feed->handle_content_type();
|
102 |
|
@@ -235,7 +235,7 @@ function feedzy_rss($atts, $content = "") {
|
|
235 |
$contentThumb .= '</div>';
|
236 |
|
237 |
//Filter: feedzy_thumb_output
|
238 |
-
$content .= apply_filters( 'feedzy_thumb_output', $contentThumb );
|
239 |
|
240 |
}
|
241 |
|
@@ -253,7 +253,7 @@ function feedzy_rss($atts, $content = "") {
|
|
253 |
$contentTitle .= '</a></span>';
|
254 |
|
255 |
//Filter: feedzy_title_output
|
256 |
-
$content .= apply_filters( 'feedzy_title_output', $contentTitle );
|
257 |
|
258 |
$content .= '<div class="rss_content">';
|
259 |
|
@@ -273,7 +273,7 @@ function feedzy_rss($atts, $content = "") {
|
|
273 |
$contentMeta .= '</small>';
|
274 |
|
275 |
//Filter: feedzy_meta_output
|
276 |
-
$content .= apply_filters( 'feedzy_meta_output', $contentMeta );
|
277 |
|
278 |
}
|
279 |
if ($summary == 'yes') {
|
@@ -281,9 +281,9 @@ function feedzy_rss($atts, $content = "") {
|
|
281 |
|
282 |
$contentSummary = '';
|
283 |
$contentSummary .= '<p>';
|
284 |
-
|
285 |
-
$description =
|
286 |
-
$description =
|
287 |
|
288 |
if (is_numeric($summarylength) && strlen($description) > $summarylength) {
|
289 |
|
@@ -296,7 +296,7 @@ function feedzy_rss($atts, $content = "") {
|
|
296 |
$contentSummary .= '</p>';
|
297 |
|
298 |
//Filter: feedzy_summary_output
|
299 |
-
$content .= apply_filters( 'feedzy_summary_output', $contentSummary, $item->get_permalink() );
|
300 |
|
301 |
}
|
302 |
$content .= '</div>';
|
@@ -305,7 +305,19 @@ function feedzy_rss($atts, $content = "") {
|
|
305 |
} //endforeach
|
306 |
|
307 |
$content .= '</div>';
|
308 |
-
return apply_filters( 'feedzy_global_output', $content );
|
309 |
|
310 |
}//end of feedzy_rss
|
311 |
-
add_shortcode('feedzy-rss', 'feedzy_rss');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
//Load SimplePie Instance
|
90 |
$feed = new SimplePie();
|
91 |
+
$feed->set_feed_url( $feedURL );
|
92 |
+
$feed->enable_cache( true );
|
93 |
+
$feed->enable_order_by_date( true );
|
94 |
+
$feed->set_cache_class( 'WP_Feed_Cache' );
|
95 |
+
$feed->set_file_class( 'WP_SimplePie_File' );
|
96 |
+
$feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 7200, $feedURL ) );
|
97 |
+
do_action_ref_array( 'wp_feed_options', array( $feed, $feedURL ) );
|
98 |
+
$feed->strip_comments( true );
|
99 |
+
$feed->strip_htmltags( false );
|
100 |
$feed->init();
|
101 |
$feed->handle_content_type();
|
102 |
|
235 |
$contentThumb .= '</div>';
|
236 |
|
237 |
//Filter: feedzy_thumb_output
|
238 |
+
$content .= apply_filters( 'feedzy_thumb_output', $contentThumb, $feedURL );
|
239 |
|
240 |
}
|
241 |
|
253 |
$contentTitle .= '</a></span>';
|
254 |
|
255 |
//Filter: feedzy_title_output
|
256 |
+
$content .= apply_filters( 'feedzy_title_output', $contentTitle, $feedURL );
|
257 |
|
258 |
$content .= '<div class="rss_content">';
|
259 |
|
273 |
$contentMeta .= '</small>';
|
274 |
|
275 |
//Filter: feedzy_meta_output
|
276 |
+
$content .= apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL );
|
277 |
|
278 |
}
|
279 |
if ($summary == 'yes') {
|
281 |
|
282 |
$contentSummary = '';
|
283 |
$contentSummary .= '<p>';
|
284 |
+
|
285 |
+
$description = $item->get_description();
|
286 |
+
$description = apply_filters( 'feedzy_summary_input', $description, $item->get_content(), $feedURL );
|
287 |
|
288 |
if (is_numeric($summarylength) && strlen($description) > $summarylength) {
|
289 |
|
296 |
$contentSummary .= '</p>';
|
297 |
|
298 |
//Filter: feedzy_summary_output
|
299 |
+
$content .= apply_filters( 'feedzy_summary_output', $contentSummary, $item->get_permalink(), $feedURL );
|
300 |
|
301 |
}
|
302 |
$content .= '</div>';
|
305 |
} //endforeach
|
306 |
|
307 |
$content .= '</div>';
|
308 |
+
return apply_filters( 'feedzy_global_output', $content, $feedURL );
|
309 |
|
310 |
}//end of feedzy_rss
|
311 |
+
add_shortcode('feedzy-rss', 'feedzy_rss');
|
312 |
+
|
313 |
+
|
314 |
+
/***************************************************************
|
315 |
+
* Filter feed description input
|
316 |
+
***************************************************************/
|
317 |
+
function feedzy_summary_input_filter( $description, $content, $feedURL ) {
|
318 |
+
$description = trim( strip_tags( $description ) );
|
319 |
+
$description = trim( chop( $description, '[…]' ) );
|
320 |
+
|
321 |
+
return $description;
|
322 |
+
}
|
323 |
+
add_filter('feedzy_summary_input', 'feedzy_summary_input_filter', 9, 3);
|
langs/feedzy_rss_translate-fr_FR.mo
CHANGED
Binary file
|
langs/feedzy_rss_translate-fr_FR.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: FEEDZY RSS Feeds by b*web
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: superadminopl <brice.capobianco@openlog.fr>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -25,36 +25,31 @@ msgstr ""
|
|
25 |
msgid "Sorry, this feed is currently unavailable or does not exists anymore."
|
26 |
msgstr "Désolé, ce flux est actuellement indisponible ou n'existe plus."
|
27 |
|
28 |
-
#: feedzy-rss-feeds-shortcode.php:
|
29 |
#@ feedzy_rss_translate
|
30 |
msgid "Posted by"
|
31 |
msgstr "Publié par"
|
32 |
|
33 |
-
#: feedzy-rss-feeds-shortcode.php:
|
34 |
#@ feedzy_rss_translate
|
35 |
msgid "on"
|
36 |
msgstr "le"
|
37 |
|
38 |
-
#: feedzy-rss-feeds-shortcode.php:
|
39 |
#@ feedzy_rss_translate
|
40 |
msgid "at"
|
41 |
msgstr "à"
|
42 |
|
43 |
-
#: feedzy-rss-feed.php:
|
44 |
#@ feedzy_rss_translate
|
45 |
msgid "Documentation and examples"
|
46 |
-
msgstr "Documentation
|
47 |
|
48 |
-
#: feedzy-rss-feed.php:
|
49 |
#@ feedzy_rss_translate
|
50 |
msgid "More b*web Plugins"
|
51 |
msgstr "Plus de plugins b*web"
|
52 |
|
53 |
-
#: feedzy-rss-feed.php:46
|
54 |
-
#@ feedzy_rss_translate
|
55 |
-
msgid "Donate"
|
56 |
-
msgstr "Faire un don"
|
57 |
-
|
58 |
#: feedzy-rss-feeds-ui-lang.php:11
|
59 |
#@ feedzy_rss_translate
|
60 |
msgid "Insert FEEDZY RSS Feeds Shortcode"
|
@@ -176,12 +171,6 @@ msgstr ""
|
|
176 |
msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
|
177 |
msgstr "http://b-website.com/feedzy-rss-feeds-plugin-wordpress-gratuit-utilisant-simplepie"
|
178 |
|
179 |
-
#. translators: plugin header field 'Version'
|
180 |
-
#: feedzy-rss-feed.php:0
|
181 |
-
#@ feedzy_rss_translate
|
182 |
-
msgid "1.7.1"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
#: feedzy-rss-feeds-widget.php:10
|
186 |
#@ feedzy_wp_widget
|
187 |
msgid "Feedzy RSS Feeds"
|
@@ -197,3 +186,14 @@ msgstr "Titre du Widget"
|
|
197 |
msgid "Intro text"
|
198 |
msgstr "Texte d'intro"
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: FEEDZY RSS Feeds by b*web v2.1\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2015-01-12 20:00:07+0000\n"
|
7 |
"Last-Translator: superadminopl <brice.capobianco@openlog.fr>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
25 |
msgid "Sorry, this feed is currently unavailable or does not exists anymore."
|
26 |
msgstr "Désolé, ce flux est actuellement indisponible ou n'existe plus."
|
27 |
|
28 |
+
#: feedzy-rss-feeds-shortcode.php:263
|
29 |
#@ feedzy_rss_translate
|
30 |
msgid "Posted by"
|
31 |
msgstr "Publié par"
|
32 |
|
33 |
+
#: feedzy-rss-feeds-shortcode.php:272
|
34 |
#@ feedzy_rss_translate
|
35 |
msgid "on"
|
36 |
msgstr "le"
|
37 |
|
38 |
+
#: feedzy-rss-feeds-shortcode.php:272
|
39 |
#@ feedzy_rss_translate
|
40 |
msgid "at"
|
41 |
msgstr "à"
|
42 |
|
43 |
+
#: feedzy-rss-feed.php:37
|
44 |
#@ feedzy_rss_translate
|
45 |
msgid "Documentation and examples"
|
46 |
+
msgstr "Documentation et exemples"
|
47 |
|
48 |
+
#: feedzy-rss-feed.php:38
|
49 |
#@ feedzy_rss_translate
|
50 |
msgid "More b*web Plugins"
|
51 |
msgstr "Plus de plugins b*web"
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
#: feedzy-rss-feeds-ui-lang.php:11
|
54 |
#@ feedzy_rss_translate
|
55 |
msgid "Insert FEEDZY RSS Feeds Shortcode"
|
171 |
msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
|
172 |
msgstr "http://b-website.com/feedzy-rss-feeds-plugin-wordpress-gratuit-utilisant-simplepie"
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
#: feedzy-rss-feeds-widget.php:10
|
175 |
#@ feedzy_wp_widget
|
176 |
msgid "Feedzy RSS Feeds"
|
186 |
msgid "Intro text"
|
187 |
msgstr "Texte d'intro"
|
188 |
|
189 |
+
#. translators: plugin header field 'Version'
|
190 |
+
#: feedzy-rss-feed.php:0
|
191 |
+
#@ feedzy_rss_translate
|
192 |
+
msgid "2.1"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: feedzy-rss-feed.php:39
|
196 |
+
#@ default
|
197 |
+
msgid "Donate to this plugin »"
|
198 |
+
msgstr ""
|
199 |
+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: RSS, SimplePie, shortcode, feed, thumbnail, image, rss feeds, aggregator, tinyMCE, WYSIWYG, MCE, UI, flux, plugin, WordPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -63,6 +63,7 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
|
|
63 |
* feedzy_thumb_output
|
64 |
* feedzy_title_output
|
65 |
* feedzy_meta_output
|
|
|
66 |
* feedzy_summary_output
|
67 |
* feedzy_global_output
|
68 |
|
@@ -100,10 +101,17 @@ Yes it is.
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
= 2.1 =
|
104 |
* internationalization of feeds dates and times (date_i18n)
|
105 |
|
106 |
-
|
107 |
= 2.0 =
|
108 |
* Widget added
|
109 |
* Translation update
|
4 |
Tags: RSS, SimplePie, shortcode, feed, thumbnail, image, rss feeds, aggregator, tinyMCE, WYSIWYG, MCE, UI, flux, plugin, WordPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
63 |
* feedzy_thumb_output
|
64 |
* feedzy_title_output
|
65 |
* feedzy_meta_output
|
66 |
+
* feedzy_summary_input
|
67 |
* feedzy_summary_output
|
68 |
* feedzy_global_output
|
69 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 2.2 =
|
105 |
+
* Minor PHP improvements
|
106 |
+
* Remove logo from plugin meta
|
107 |
+
* New hook: feedzy_summary_input
|
108 |
+
* $feedURL argument added on every available hooks
|
109 |
+
* French translation update
|
110 |
+
* readme.txt and hooks documentation update
|
111 |
+
|
112 |
= 2.1 =
|
113 |
* internationalization of feeds dates and times (date_i18n)
|
114 |
|
|
|
115 |
= 2.0 =
|
116 |
* Widget added
|
117 |
* Translation update
|