FEEDZY RSS Feeds Lite - Version 2.6.2

Version Description

  • Spanish translation thanks to Angel Calzado
  • PHP issue fix in feedzy_returnImage() "strpos() expects parameter 1 to be string"
  • Remove SSL from feeds URL to prevent fetching errors
  • New hook: feedzy_default_image
  • readme.txt and hooks documentation update
Download this release

Release Info

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

Code changes from version 2.6.1 to 2.6.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.6.1
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.6.2
9
  * Text Domain: feedzy_rss_translate
10
  * Domain Path: /langs
11
  */
feedzy-rss-feeds-functions.php CHANGED
@@ -6,6 +6,13 @@ if ( !defined( 'ABSPATH' ) ) {
6
  die( 'Direct access not allowed!' );
7
  }
8
 
 
 
 
 
 
 
 
9
 
10
  /***************************************************************
11
  * Enqueue feedzy CSS
@@ -154,7 +161,7 @@ function feedzy_returnImage( $string ) {
154
  $blacklist = array();
155
  $blacklist = apply_filters( 'feedzy_feed_blacklist_images', feedzy_blacklist_images( $blacklist ) );
156
  foreach( $blacklist as $string ) {
157
- if ( strpos( $link, $string ) !== false) {
158
  $blacklistCount++;
159
  }
160
  }
@@ -165,13 +172,11 @@ function feedzy_returnImage( $string ) {
165
  return;
166
  }
167
 
168
- function feedzy_scrapeImage( $string ) {
169
- $link = '';
170
  $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/';
171
  preg_match( $pattern, $string, $link );
172
  if( isset( $link[1] ) ){
173
- $link = $link[1];
174
- $link = urldecode( $link );
175
  }
176
  return $link;
177
  }
6
  die( 'Direct access not allowed!' );
7
  }
8
 
9
+ /***************************************************************
10
+ * Feed item container class
11
+ ***************************************************************/
12
+ function feedzy_define_default_image( $imageSrc ){
13
+ return plugins_url( 'img/feedzy-default.jpg', __FILE__ );
14
+ }
15
+ add_filter( 'feedzy_default_image', 'feedzy_define_default_image' );
16
 
17
  /***************************************************************
18
  * Enqueue feedzy CSS
161
  $blacklist = array();
162
  $blacklist = apply_filters( 'feedzy_feed_blacklist_images', feedzy_blacklist_images( $blacklist ) );
163
  foreach( $blacklist as $string ) {
164
+ if ( strpos( (string) $link, $string ) !== false) {
165
  $blacklistCount++;
166
  }
167
  }
172
  return;
173
  }
174
 
175
+ function feedzy_scrapeImage( $string, $link = '' ) {
 
176
  $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/';
177
  preg_match( $pattern, $string, $link );
178
  if( isset( $link[1] ) ){
179
+ $link = urldecode( $link[1] );
 
180
  }
181
  return $link;
182
  }
feedzy-rss-feeds-shortcode.php CHANGED
@@ -39,7 +39,12 @@ function feedzy_rss( $atts, $content = '' ) {
39
 
40
  if ( !empty( $feeds ) ) {
41
  $feeds = rtrim( $feeds, ',' );
42
- $feedURL = explode( ',', $feeds );
 
 
 
 
 
43
 
44
  if ( count( $feedURL ) === 1 ) {
45
  $feedURL = $feedURL[0];
@@ -76,7 +81,7 @@ function feedzy_rss( $atts, $content = '' ) {
76
  $default = $default;
77
 
78
  } else {
79
- $default = plugins_url( 'img/feedzy-default.jpg', __FILE__ );
80
  }
81
 
82
  //Load SimplePie Instance
39
 
40
  if ( !empty( $feeds ) ) {
41
  $feeds = rtrim( $feeds, ',' );
42
+ $feeds = explode( ',', $feeds );
43
+
44
+ //Remove SSL from HTTP request to prevent fetching errors
45
+ foreach( $feeds as $feed ){
46
+ $feedURL[] = preg_replace("/^https:/i", "http:", $feed);
47
+ }
48
 
49
  if ( count( $feedURL ) === 1 ) {
50
  $feedURL = $feedURL[0];
81
  $default = $default;
82
 
83
  } else {
84
+ $default = apply_filters( 'feedzy_default_image', $default );
85
  }
86
 
87
  //Load SimplePie Instance
langs/feedzy_rss_translate-es_ES.mo ADDED
Binary file
langs/feedzy_rss_translate-es_ES.po ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: FEEDZY RSS Feeds by b*web\n"
4
+ "POT-Creation-Date: 2015-10-12 21:49+0200\n"
5
+ "PO-Revision-Date: 2015-10-12 22:13+0200\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: es_ES\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.4\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-WPHeader: feedzy-rss-feed.php\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
18
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
19
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: feedzy-rss-feed.php:52
24
+ msgid "Documentation and examples"
25
+ msgstr "Documentación y ejemplos"
26
+
27
+ #: feedzy-rss-feed.php:53
28
+ msgid "More b*web Plugins"
29
+ msgstr "Más plugins de b*web"
30
+
31
+ #: feedzy-rss-feed.php:54
32
+ msgid "Donate to this plugin »"
33
+ msgstr "Donar a este plugin »"
34
+
35
+ #: feedzy-rss-feeds-shortcode.php:98
36
+ msgid "Sorry, this feed is currently unavailable or does not exists anymore."
37
+ msgstr "Lo sentimos, este feed no está disponible en este momento o no existe."
38
+
39
+ #: feedzy-rss-feeds-shortcode.php:205
40
+ msgid "Posted"
41
+ msgstr "Publicado"
42
+
43
+ #: feedzy-rss-feeds-shortcode.php:216
44
+ msgid "by"
45
+ msgstr "por"
46
+
47
+ #: feedzy-rss-feeds-shortcode.php:222
48
+ msgid "on"
49
+ msgstr "el día"
50
+
51
+ #: feedzy-rss-feeds-shortcode.php:224
52
+ msgid "at"
53
+ msgstr "a las"
54
+
55
+ #: feedzy-rss-feeds-ui-lang.php:19
56
+ msgid "Insert FEEDZY RSS Feeds Shortcode"
57
+ msgstr "Insertar shortcode feeds FEEDZY RSS"
58
+
59
+ #: feedzy-rss-feeds-ui-lang.php:20 feedzy-rss-feeds-widget.php:65
60
+ msgid "The feed(s) URL (comma-separated list)."
61
+ msgstr "Las Url's de los feed(s) (lista separada por comas)."
62
+
63
+ #: feedzy-rss-feeds-ui-lang.php:21 feedzy-rss-feeds-widget.php:69
64
+ msgid "Number of items to display."
65
+ msgstr "Número de artículos a mostrar."
66
+
67
+ #: feedzy-rss-feeds-ui-lang.php:22
68
+ msgid "Should we display the RSS title?"
69
+ msgstr "¿Mostrar el título del RSS?"
70
+
71
+ #: feedzy-rss-feeds-ui-lang.php:23 feedzy-rss-feeds-widget.php:73
72
+ msgid "Links may be opened in the same window or a new tab."
73
+ msgstr "Seleccionar como se mostrarán los enlaces al hacer click."
74
+
75
+ #: feedzy-rss-feeds-ui-lang.php:24 feedzy-rss-feeds-widget.php:84
76
+ msgid "Trim the title of the item after X characters."
77
+ msgstr "Recortar el título del artículo después de X caracteres."
78
+
79
+ #: feedzy-rss-feeds-ui-lang.php:25 feedzy-rss-feeds-widget.php:89
80
+ msgid "Should we display the date of publication and the author name?"
81
+ msgstr "¿Mostrar el día de publicación y el nombre del autor?"
82
+
83
+ #: feedzy-rss-feeds-ui-lang.php:26 feedzy-rss-feeds-widget.php:93
84
+ msgid "Should we display a description (abstract) of the retrieved item?"
85
+ msgstr "¿Mostrar una descripción (extracto) del artículo?"
86
+
87
+ #: feedzy-rss-feeds-ui-lang.php:27 feedzy-rss-feeds-widget.php:96
88
+ msgid "Crop description (summary) of the element after X characters."
89
+ msgstr "Cortar la descripción (sumario) del elemento después de X caracteres."
90
+
91
+ #: feedzy-rss-feeds-ui-lang.php:28 feedzy-rss-feeds-widget.php:100
92
+ msgid "Should we display the first image of the content if it is available?"
93
+ msgstr "¿Mostrar la primera imagen del contenido si está disponible?"
94
+
95
+ #: feedzy-rss-feeds-ui-lang.php:29 feedzy-rss-feeds-widget.php:123
96
+ msgid "Default thumbnail URL if no image is found."
97
+ msgstr "Enlace de la imagen por defecto si no la hay disponible."
98
+
99
+ #: feedzy-rss-feeds-ui-lang.php:30 feedzy-rss-feeds-widget.php:127
100
+ msgid "Thumblails dimension. Do not include \"px\". Eg: 150"
101
+ msgstr "Dimensiones de las imágenes. No incluir \"px\". Ejemplo: 150"
102
+
103
+ #: feedzy-rss-feeds-ui-lang.php:31 feedzy-rss-feeds-widget.php:131
104
+ msgid ""
105
+ "Only display item if title contains specific keyword(s) (comma-separated "
106
+ "list/case sensitive)."
107
+ msgstr ""
108
+ "Sólo mostrar el artículo si el título contiene las palabra(s) "
109
+ "especificada(s) (lista separada por comas/distingue mayúsculas de "
110
+ "minúsculas)."
111
+
112
+ #: feedzy-rss-feeds-ui-lang.php:32
113
+ msgid "Do not specify"
114
+ msgstr "no especificado"
115
+
116
+ #: feedzy-rss-feeds-ui-lang.php:33 feedzy-rss-feeds-widget.php:111
117
+ msgid "No"
118
+ msgstr "No"
119
+
120
+ #: feedzy-rss-feeds-ui-lang.php:34 feedzy-rss-feeds-widget.php:112
121
+ msgid "Yes"
122
+ msgstr "Si"
123
+
124
+ #: feedzy-rss-feeds-ui-lang.php:35 feedzy-rss-feeds-widget.php:113
125
+ msgid "Auto"
126
+ msgstr "Auto"
127
+
128
+ #: feedzy-rss-feeds-widget.php:18
129
+ msgid "Feedzy RSS Feeds"
130
+ msgstr "Feedzy RSS Feeds"
131
+
132
+ #: feedzy-rss-feeds-widget.php:57
133
+ msgid "Widget Title"
134
+ msgstr "Título del Widget"
135
+
136
+ #: feedzy-rss-feeds-widget.php:61
137
+ msgid "Intro text"
138
+ msgstr "Texto introductorio"
139
+
140
+ #. Plugin Name of the plugin/theme
141
+ msgid "FEEDZY RSS Feeds by b*web"
142
+ msgstr "FEEDZY RSS Feeds por b*web"
143
+
144
+ #. Plugin URI of the plugin/theme
145
+ msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
146
+ msgstr "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
147
+
148
+ #. Description of the plugin/theme
149
+ msgid ""
150
+ "FEEDZY RSS Feeds is a small and lightweight plugin. Fast and easy to use, it "
151
+ "aggregates RSS feeds into your WordPress site through simple shortcodes."
152
+ msgstr ""
153
+ "FEEDZY RSS Feeds es un pequeño y ligero plugin. Rápido y fácil de usar, "
154
+ "agrupa los canales RSS en su sitio de WordPress a través de simples "
155
+ "shortcodes."
156
+
157
+ #. Author of the plugin/theme
158
+ msgid "Brice CAPOBIANCO"
159
+ msgstr "Brice CAPOBIANCO"
160
+
161
+ #. Author URI of the plugin/theme
162
+ msgid "http://b-website.com/"
163
+ msgstr "http://b-website.com/"
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.3.1
7
- Stable tag: 2.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -72,6 +72,7 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
72
  * feedzy_global_output
73
  * feedzy_thumb_sizes
74
  * feedzy_feed_blacklist_images
 
75
 
76
 
77
  [FULL DOCUMENTATION AND EXAMPLES](http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie "Documentation & examples")
@@ -83,6 +84,7 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
83
  * Serbian [Borisa Djuraskovic](http://www.webhostinghub.com/ "Borisa Djuraskovic")
84
  * Japanese [sama55](http://askive.cmsbox.jp/ "sama55")
85
  * German [ralfsteck](https://profiles.wordpress.org/ralfsteck/ "ralfsteck")
 
86
 
87
  Become a translator and send me your translation! [Contact-me](http://b-website.com/contact "Contact")
88
 
@@ -107,6 +109,13 @@ Yes it is.
107
 
108
 
109
  == Changelog ==
 
 
 
 
 
 
 
110
  = 2.6.1 =
111
  * Replace jQuery live() function by on() function to prevent JS error (fix the issue with Visual composer)
112
  * Improve image's fetching on itunes feeds
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.3.1
7
+ Stable tag: 2.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
72
  * feedzy_global_output
73
  * feedzy_thumb_sizes
74
  * feedzy_feed_blacklist_images
75
+ * feedzy_default_image
76
 
77
 
78
  [FULL DOCUMENTATION AND EXAMPLES](http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie "Documentation & examples")
84
  * Serbian [Borisa Djuraskovic](http://www.webhostinghub.com/ "Borisa Djuraskovic")
85
  * Japanese [sama55](http://askive.cmsbox.jp/ "sama55")
86
  * German [ralfsteck](https://profiles.wordpress.org/ralfsteck/ "ralfsteck")
87
+ * Spanish [Angel Calzado](http://sintaxisweb.es "Angel Calzado")
88
 
89
  Become a translator and send me your translation! [Contact-me](http://b-website.com/contact "Contact")
90
 
109
 
110
 
111
  == Changelog ==
112
+ = 2.6.2 =
113
+ * Spanish translation thanks to [Angel Calzado](http://sintaxisweb.es "Angel Calzado")
114
+ * PHP issue fix in feedzy_returnImage() "strpos() expects parameter 1 to be string"
115
+ * Remove SSL from feeds URL to prevent fetching errors
116
+ * New hook: feedzy_default_image
117
+ * readme.txt and hooks documentation update
118
+
119
  = 2.6.1 =
120
  * Replace jQuery live() function by on() function to prevent JS error (fix the issue with Visual composer)
121
  * Improve image's fetching on itunes feeds