FEEDZY RSS Feeds Lite - Version 2.5.1

Version Description

  • Japanese translation thanks to sama55
  • Image optimisation (feedzy-default.jpg)
  • Improve image's fetching to avoid catching audio or video files from item description
Download this release

Release Info

Developer briKou
Plugin Icon 128x128 FEEDZY RSS Feeds Lite
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5 to 2.5.1

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.5
9
  * Text Domain: feedzy_rss_translate
10
  * Domain Path: /langs
11
  */
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.5.1
9
  * Text Domain: feedzy_rss_translate
10
  * Domain Path: /langs
11
  */
feedzy-rss-feeds-functions.php CHANGED
@@ -56,6 +56,7 @@ function feedzy_retrieve_image( $item ) {
56
  if ( $enclosures = $item->get_enclosures() ) {
57
 
58
  foreach( (array) $enclosures as $enclosure ){
 
59
 
60
  //item thumb
61
  if ( $thumbnail = $enclosure->get_thumbnail() ) {
@@ -73,7 +74,8 @@ function feedzy_retrieve_image( $item ) {
73
 
74
  //enclosure
75
  if ( $thumbnail = $enclosure->embed() ) {
76
-
 
77
  $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
78
 
79
  if ( preg_match( $pattern, $thumbnail, $matches ) ) {
@@ -82,14 +84,14 @@ function feedzy_retrieve_image( $item ) {
82
 
83
  }
84
 
85
- //media:content
86
  foreach ( (array) $enclosure->get_link() as $thumbnail ) {
87
 
88
  $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
89
  $imgsrc = $thumbnail;
90
 
91
 
92
- if ( preg_match( $pattern, $imgsrc, $matches ) ) {
93
  $thethumbnail = $matches[0];
94
  break;
95
  }
@@ -134,9 +136,9 @@ function feedzy_returnImage( $string ) {
134
  $pattern = "/<img[^>]+\>/i";
135
  preg_match( $pattern, $img, $matches );
136
  if( isset( $matches[0] ) ){
137
- $string = $matches[0];
138
  }
139
- return $string;
140
  }
141
 
142
  function feedzy_scrapeImage( $string ) {
56
  if ( $enclosures = $item->get_enclosures() ) {
57
 
58
  foreach( (array) $enclosures as $enclosure ){
59
+
60
 
61
  //item thumb
62
  if ( $thumbnail = $enclosure->get_thumbnail() ) {
74
 
75
  //enclosure
76
  if ( $thumbnail = $enclosure->embed() ) {
77
+
78
+
79
  $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
80
 
81
  if ( preg_match( $pattern, $thumbnail, $matches ) ) {
84
 
85
  }
86
 
87
+ //media:content && strpos( $enclosure->type, 'image' ) !== false
88
  foreach ( (array) $enclosure->get_link() as $thumbnail ) {
89
 
90
  $pattern = '/https?:\/\/.*\.(?:jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/iU';
91
  $imgsrc = $thumbnail;
92
 
93
 
94
+ if ( preg_match( $pattern, $imgsrc, $matches ) ) {
95
  $thethumbnail = $matches[0];
96
  break;
97
  }
136
  $pattern = "/<img[^>]+\>/i";
137
  preg_match( $pattern, $img, $matches );
138
  if( isset( $matches[0] ) ){
139
+ return $matches[0];
140
  }
141
+ return;
142
  }
143
 
144
  function feedzy_scrapeImage( $string ) {
img/feedzy-default.jpg CHANGED
Binary file
langs/feedzy_rss_translate-ja.mo ADDED
Binary file
langs/feedzy_rss_translate-ja.po ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: FEEDZY RSS Feeds by b*web v2.2\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2015-06-28 08:42+0900\n"
7
+ "Last-Translator: Shinichiro Sato <sama55@cmsbox.jp>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n>1;\n"
13
+ "X-Generator: Poedit 1.8.1\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "Language: fr_FR\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ # @ feedzy_rss_translate
21
+ #: feedzy-rss-feeds-shortcode.php:120
22
+ msgid "Sorry, this feed is currently unavailable or does not exists anymore."
23
+ msgstr "このフィードは現在利用できないか存在しません。"
24
+
25
+ # @ feedzy_rss_translate
26
+ #: feedzy-rss-feeds-shortcode.php:298
27
+ msgid "on"
28
+ msgstr "on"
29
+
30
+ # @ feedzy_rss_translate
31
+ #: feedzy-rss-feeds-shortcode.php:298
32
+ msgid "at"
33
+ msgstr "at"
34
+
35
+ # @ feedzy_rss_translate
36
+ #: feedzy-rss-feed.php:37
37
+ msgid "Documentation and examples"
38
+ msgstr "ドキュメントと例"
39
+
40
+ # @ feedzy_rss_translate
41
+ #: feedzy-rss-feed.php:38
42
+ msgid "More b*web Plugins"
43
+ msgstr "他の b*web プラグイン"
44
+
45
+ # @ feedzy_rss_translate
46
+ #: feedzy-rss-feeds-ui-lang.php:19
47
+ msgid "Insert FEEDZY RSS Feeds Shortcode"
48
+ msgstr "FEEDZY RSSフィード ショートコードを追加"
49
+
50
+ # @ feedzy_rss_translate
51
+ #: feedzy-rss-feeds-ui-lang.php:21 feedzy-rss-feeds-widget.php:69
52
+ msgid "Number of items to display."
53
+ msgstr "表示数:"
54
+
55
+ # @ feedzy_rss_translate
56
+ #: feedzy-rss-feeds-ui-lang.php:23 feedzy-rss-feeds-widget.php:73
57
+ msgid "Links may be opened in the same window or a new tab."
58
+ msgstr "リンク先の開き方:"
59
+
60
+ # @ feedzy_rss_translate
61
+ #: feedzy-rss-feeds-ui-lang.php:24 feedzy-rss-feeds-widget.php:84
62
+ msgid "Trim the title of the item after X characters."
63
+ msgstr "タイトルの切り取り文字数:"
64
+
65
+ # @ feedzy_rss_translate
66
+ #: feedzy-rss-feeds-ui-lang.php:25 feedzy-rss-feeds-widget.php:89
67
+ msgid "Should we display the date of publication and the author name?"
68
+ msgstr "公開日と著作者を表示:"
69
+
70
+ # @ feedzy_rss_translate
71
+ #: feedzy-rss-feeds-ui-lang.php:26 feedzy-rss-feeds-widget.php:93
72
+ msgid "Should we display a description (abstract) of the retrieved item?"
73
+ msgstr "詳細を表示:"
74
+
75
+ # @ feedzy_rss_translate
76
+ #: feedzy-rss-feeds-ui-lang.php:27 feedzy-rss-feeds-widget.php:96
77
+ msgid "Crop description (summary) of the element after X characters."
78
+ msgstr "詳細の切り取り文字数:"
79
+
80
+ # @ feedzy_rss_translate
81
+ #: feedzy-rss-feeds-ui-lang.php:28 feedzy-rss-feeds-widget.php:101
82
+ msgid "Should we display the first image of the content if it is available?"
83
+ msgstr "最初の画像を表示:"
84
+
85
+ # @ feedzy_rss_translate
86
+ #: feedzy-rss-feeds-ui-lang.php:29 feedzy-rss-feeds-widget.php:104
87
+ msgid "Default thumbnail URL if no image is found."
88
+ msgstr "画像がない場合のデフォルトサムネイル:"
89
+
90
+ # @ feedzy_rss_translate
91
+ #: feedzy-rss-feeds-ui-lang.php:30 feedzy-rss-feeds-widget.php:108
92
+ msgid "Thumblails dimension. Do not include \"px\". Eg: 150"
93
+ msgstr "サムネイルのサイズ(\"px\"はなし 例:150):"
94
+
95
+ # @ feedzy_rss_translate
96
+ #: feedzy-rss-feeds-ui-lang.php:31 feedzy-rss-feeds-widget.php:112
97
+ msgid "Only display item if title contains specific keyword(s) (comma-separated list/case sensitive)."
98
+ msgstr "特定なキーワードがタイトルに含まれる項目のみ表示 (複数指定時は大文字小文字を意識してカンマ区切り):"
99
+
100
+ # @ feedzy_rss_translate
101
+ #: feedzy-rss-feeds-ui-lang.php:32
102
+ msgid "Do not specify"
103
+ msgstr "指定しない"
104
+
105
+ # @ feedzy_rss_translate
106
+ #: feedzy-rss-feeds-ui-lang.php:33
107
+ msgid "No"
108
+ msgstr "しない"
109
+
110
+ # @ feedzy_rss_translate
111
+ #: feedzy-rss-feeds-ui-lang.php:34
112
+ msgid "Yes"
113
+ msgstr "する"
114
+
115
+ # @ feedzy_rss_translate
116
+ #: feedzy-rss-feeds-ui-lang.php:20 feedzy-rss-feeds-widget.php:65
117
+ msgid "The feed(s) URL (comma-separated list)."
118
+ msgstr "フィードアドレス (複数指定する場合はカンマ区切り):"
119
+
120
+ # @ feedzy_rss_translate
121
+ #: feedzy-rss-feeds-ui-lang.php:22
122
+ msgid "Should we display the RSS title?"
123
+ msgstr "タイトルを表示:"
124
+
125
+ # @ feedzy_rss_translate
126
+ #. translators: plugin header field 'Name'
127
+ #: feedzy-rss-feed.php:0
128
+ msgid "FEEDZY RSS Feeds by b*web"
129
+ msgstr "FEEDZY RSS Feeds by b*web"
130
+
131
+ # @ feedzy_rss_translate
132
+ #. translators: plugin header field 'Description'
133
+ #: feedzy-rss-feed.php:0
134
+ msgid "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."
135
+ msgstr "FEEDZY RSS Feeds は小さく軽いプラグインです。高速で使い方も簡単。あなたのワードプレスサイトにシンプルなショートコードによるRSSフィードの収集機能を追加します。"
136
+
137
+ # @ feedzy_rss_translate
138
+ #. translators: plugin header field 'Author'
139
+ #: feedzy-rss-feed.php:0
140
+ msgid "Brice CAPOBIANCO"
141
+ msgstr "Brice CAPOBIANCO"
142
+
143
+ # @ feedzy_rss_translate
144
+ #. translators: plugin header field 'AuthorURI'
145
+ #: feedzy-rss-feed.php:0
146
+ msgid "http://b-website.com/"
147
+ msgstr "http://b-website.com/"
148
+
149
+ # @ feedzy_rss_translate
150
+ #. translators: plugin header field 'PluginURI'
151
+ #: feedzy-rss-feed.php:0
152
+ msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
153
+ msgstr "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
154
+
155
+ # @ feedzy_wp_widget
156
+ #: feedzy-rss-feeds-widget.php:18
157
+ msgid "Feedzy RSS Feeds"
158
+ msgstr "Feedzy RSS フィード"
159
+
160
+ # @ feedzy_rss_translate
161
+ #: feedzy-rss-feeds-widget.php:57
162
+ msgid "Widget Title"
163
+ msgstr "タイトル"
164
+
165
+ # @ feedzy_rss_translate
166
+ #: feedzy-rss-feeds-widget.php:61
167
+ msgid "Intro text"
168
+ msgstr "イントロテキスト"
169
+
170
+ # @ default
171
+ #: feedzy-rss-feed.php:39
172
+ msgid "Donate to this plugin &#187;"
173
+ msgstr "このプラグインに寄付 &#187;"
174
+
175
+ # @ feedzy_rss_translate
176
+ #. translators: plugin header field 'Version'
177
+ #: feedzy-rss-feed.php:0
178
+ msgid "2.2"
179
+ msgstr "2.2"
180
+
181
+ # @ feedzy_rss_translate
182
+ #: feedzy-rss-feeds-shortcode.php:289
183
+ msgid "Posted"
184
+ msgstr "投稿日"
185
+
186
+ # @ feedzy_rss_translate
187
+ #: feedzy-rss-feeds-shortcode.php:294
188
+ msgid "by"
189
+ msgstr "by"
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, widget, importer, XML, ATOM, API, parser
5
  Requires at least: 3.7
6
  Tested up to: 4.2
7
- Stable tag: 2.4.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,10 +80,10 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
80
  * English
81
  * French
82
  * Serbian [Borisa Djuraskovic](http://www.webhostinghub.com/ "Borisa Djuraskovic")
 
83
 
84
  Become a translator and send me your translation! [Contact-me](http://b-website.com/contact "Contact")
85
 
86
-
87
  == Installation ==
88
 
89
  1. Upload and activate the plugin (or install it through the WP admin console)
@@ -106,6 +106,11 @@ Yes it is.
106
 
107
  == Changelog ==
108
 
 
 
 
 
 
109
  = 2.5 =
110
  * Improve author name fetching
111
  * Better HTML marckup
4
  Tags: RSS, SimplePie, shortcode, feed, thumbnail, image, rss feeds, aggregator, tinyMCE, WYSIWYG, MCE, UI, flux, plugin, WordPress, widget, importer, XML, ATOM, API, parser
5
  Requires at least: 3.7
6
  Tested up to: 4.2
7
+ Stable tag: 2.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
  * English
81
  * French
82
  * Serbian [Borisa Djuraskovic](http://www.webhostinghub.com/ "Borisa Djuraskovic")
83
+ * Japanese [sama55](http://askive.cmsbox.jp/ "sama55")
84
 
85
  Become a translator and send me your translation! [Contact-me](http://b-website.com/contact "Contact")
86
 
 
87
  == Installation ==
88
 
89
  1. Upload and activate the plugin (or install it through the WP admin console)
106
 
107
  == Changelog ==
108
 
109
+ = 2.5.1 =
110
+ * Japanese translation thanks to [sama55](http://askive.cmsbox.jp/ "sama55")
111
+ * Image optimisation (feedzy-default.jpg)
112
+ * Improve image's fetching to avoid catching audio or video files from item description
113
+
114
  = 2.5 =
115
  * Improve author name fetching
116
  * Better HTML marckup