FEEDZY RSS Feeds Lite - Version 2.7

Version Description

  • Better displaying of fetching feeds errors (see error message div error-attr).
  • Write errors in the WP log file
  • New hook: feedzy_default_error to filter error message
  • New hook: shortcode_atts_feedzy_default to filter default shortcode attibutes
  • Add a link to validate feed in the TinyMCE popup modal
  • French translation update
  • Remove unnecessary functions
  • New constant FEEDZY_VERSION
  • readme.txt and hooks documentation update
Download this release

Release Info

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

Code changes from version 2.6.2 to 2.7

feedzy-rss-feed.php CHANGED
@@ -5,9 +5,9 @@
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
  */
12
 
13
  /* Copyright 2015 Brice CAPOBIANCO (contact : http://b-website.com/contact)
@@ -34,12 +34,20 @@ if ( !defined( 'ABSPATH' ) ) {
34
  }
35
 
36
 
 
 
 
 
 
 
 
 
37
  /***************************************************************
38
  * Load plugin textdomain
39
  ***************************************************************/
40
  function feedzy_rss_load_textdomain() {
41
  $path = dirname(plugin_basename( __FILE__ )) . '/langs/';
42
- load_plugin_textdomain( 'feedzy_rss_translate', false, $path);
43
  }
44
  add_action( 'init', 'feedzy_rss_load_textdomain' );
45
 
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.7
9
  * Text Domain: feedzy_rss_translate
10
+ * Text Domain Path: /langs
11
  */
12
 
13
  /* Copyright 2015 Brice CAPOBIANCO (contact : http://b-website.com/contact)
34
  }
35
 
36
 
37
+ /***************************************************************
38
+ * Define constant
39
+ ***************************************************************/
40
+ if ( !defined( 'FEEDZY_VERSION' ) ) {
41
+ define( 'FEEDZY_VERSION', '2.7' );
42
+ }
43
+
44
+
45
  /***************************************************************
46
  * Load plugin textdomain
47
  ***************************************************************/
48
  function feedzy_rss_load_textdomain() {
49
  $path = dirname(plugin_basename( __FILE__ )) . '/langs/';
50
+ load_plugin_textdomain( 'feedzy_rss_translate', false, $path );
51
  }
52
  add_action( 'init', 'feedzy_rss_load_textdomain' );
53
 
feedzy-rss-feeds-functions.php CHANGED
@@ -6,19 +6,46 @@ if ( !defined( 'ABSPATH' ) ) {
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
19
  ***************************************************************/
20
  function feedzy_register_custom_style() {
21
- wp_register_style( 'feedzy-style', plugins_url( 'css/feedzy-rss-feeds.css', __FILE__ ), array(), '2.6.1' );
22
  }
23
  function feedzy_print_custom_style() {
24
  global $feedzyStyle;
@@ -35,8 +62,8 @@ add_action( 'wp_footer', 'feedzy_print_custom_style' );
35
  * Padding ratio based on image size
36
  ***************************************************************/
37
  function feedzy_add_item_padding( $itemAttr, $sizes ){
38
- $paddinTop = number_format( (15 / 150) * $sizes['height'], 0 );
39
- $paddinBottom = number_format( (25 / 150) * $sizes['height'], 0 );
40
  $stylePadding = ' style="padding: ' . $paddinTop . 'px 0 ' . $paddinBottom . 'px"';
41
  return $itemAttr . $stylePadding;
42
  }
@@ -60,7 +87,6 @@ add_filter( 'feedzy_item_attributes', 'feedzy_classes_item' );
60
  ***************************************************************/
61
  function feedzy_retrieve_image( $item ) {
62
  $thethumbnail = "";
63
- //var_dump($item);
64
  if ( $enclosures = $item->get_enclosures() ) {
65
 
66
  foreach( (array) $enclosures as $enclosure ){
@@ -142,11 +168,7 @@ function feedzy_retrieve_image( $item ) {
142
  return $thethumbnail;
143
  }
144
 
145
- function get_app_image()
146
- {
147
- $data = $this->get_item_tags(SIMPLE_NAMESPACE_IM, 'image');
148
- return $data['0']['data'];
149
- }
150
  /***************************************************************
151
  * Get an image from a string
152
  ***************************************************************/
@@ -181,7 +203,9 @@ function feedzy_scrapeImage( $string, $link = '' ) {
181
  return $link;
182
  }
183
 
184
-
 
 
185
  function feedzy_blacklist_images( $blacklist ) {
186
  $blacklist = array(
187
  'frownie.png',
@@ -218,8 +242,7 @@ function feedzy_blacklist_images( $blacklist ) {
218
  /***************************************************************
219
  * Image name encode + get image url if in url param
220
  ***************************************************************/
221
- function feedzy_image_encode( $string ) {
222
-
223
  //Check if img url is set as an URL parameter
224
  $url_tab = parse_url( $string );
225
  if( isset( $url_tab['query'] ) ){
@@ -273,7 +296,7 @@ function feedzy_feed_item_keywords_title( $continue, $keywords_title, $item, $fe
273
  }
274
  return $continue;
275
  }
276
- add_filter('feedzy_item_keyword', 'feedzy_feed_item_keywords_title', 9, 4);
277
 
278
 
279
  /***************************************************************
6
  die( 'Direct access not allowed!' );
7
  }
8
 
9
+
10
  /***************************************************************
11
+ * Define the default image thumbnail
12
  ***************************************************************/
13
  function feedzy_define_default_image( $imageSrc ){
14
  return plugins_url( 'img/feedzy-default.jpg', __FILE__ );
15
  }
16
  add_filter( 'feedzy_default_image', 'feedzy_define_default_image' );
17
 
18
+
19
+ /***************************************************************
20
+ * Default error message + log errors
21
+ ***************************************************************/
22
+ function feedzy_default_error_notice( $error, $feedURL ){
23
+ //Write in the log file
24
+ feedzy_write_log( 'Feedzy RSS Feeds - related feed: ' .$feedURL . ' - Error message: ' . $error );
25
+ //Display the error message
26
+ return '<div id="message" class="error" data-error"' . esc_attr( $error ) . '"><p>' . __('Sorry, this feed is currently unavailable or does not exists anymore.', 'feedzy_rss_translate') . '</p></div>';
27
+ }
28
+ add_filter( 'feedzy_default_error', 'feedzy_default_error_notice', 9, 2 );
29
+
30
+
31
+ /***************************************************************
32
+ * Write errors in the error log file
33
+ * Src: https://www.elegantthemes.com/blog/tips-tricks/using-the-wordpress-debug-log
34
+ ***************************************************************/
35
+ function feedzy_write_log ( $error ){
36
+ if ( is_array( $error ) || is_object( $error ) ) {
37
+ error_log( print_r( $error, true ) );
38
+ } else {
39
+ error_log( $error );
40
+ }
41
+ }
42
+
43
+
44
  /***************************************************************
45
  * Enqueue feedzy CSS
46
  ***************************************************************/
47
  function feedzy_register_custom_style() {
48
+ wp_register_style( 'feedzy-style', plugins_url( 'css/feedzy-rss-feeds.css', __FILE__ ), array(), FEEDZY_VERSION );
49
  }
50
  function feedzy_print_custom_style() {
51
  global $feedzyStyle;
62
  * Padding ratio based on image size
63
  ***************************************************************/
64
  function feedzy_add_item_padding( $itemAttr, $sizes ){
65
+ $paddinTop = number_format( ( 15 / 150 ) * $sizes[ 'height' ], 0 );
66
+ $paddinBottom = number_format( ( 25 / 150 ) * $sizes[ 'height' ], 0 );
67
  $stylePadding = ' style="padding: ' . $paddinTop . 'px 0 ' . $paddinBottom . 'px"';
68
  return $itemAttr . $stylePadding;
69
  }
87
  ***************************************************************/
88
  function feedzy_retrieve_image( $item ) {
89
  $thethumbnail = "";
 
90
  if ( $enclosures = $item->get_enclosures() ) {
91
 
92
  foreach( (array) $enclosures as $enclosure ){
168
  return $thethumbnail;
169
  }
170
 
171
+
 
 
 
 
172
  /***************************************************************
173
  * Get an image from a string
174
  ***************************************************************/
203
  return $link;
204
  }
205
 
206
+ /***************************************************************
207
+ * List blacklisted images to prevent fetching emoticons
208
+ ***************************************************************/
209
  function feedzy_blacklist_images( $blacklist ) {
210
  $blacklist = array(
211
  'frownie.png',
242
  /***************************************************************
243
  * Image name encode + get image url if in url param
244
  ***************************************************************/
245
+ function feedzy_image_encode( $string ) {
 
246
  //Check if img url is set as an URL parameter
247
  $url_tab = parse_url( $string );
248
  if( isset( $url_tab['query'] ) ){
296
  }
297
  return $continue;
298
  }
299
+ add_filter( 'feedzy_item_keyword', 'feedzy_feed_item_keywords_title', 9, 4 );
300
 
301
 
302
  /***************************************************************
feedzy-rss-feeds-shortcode.php CHANGED
@@ -6,7 +6,7 @@ if ( !defined( 'ABSPATH' ) ) {
6
  die( 'Direct access not allowed!' );
7
  }
8
 
9
-
10
  /***************************************************************
11
  * Main shortcode function
12
  ***************************************************************/
@@ -35,7 +35,9 @@ function feedzy_rss( $atts, $content = '' ) {
35
  "default" => '', //default thumb URL if no image found (only if thumb is set to yes or auto)
36
  "size" => '', //thumbs pixel size
37
  "keywords_title" => '' //only display item if title contains specific keywords (comma-separated list/case sensitive)
38
- ), $atts ) );
 
 
39
 
40
  if ( !empty( $feeds ) ) {
41
  $feeds = rtrim( $feeds, ',' );
@@ -81,7 +83,7 @@ function feedzy_rss( $atts, $content = '' ) {
81
  $default = $default;
82
 
83
  } else {
84
- $default = apply_filters( 'feedzy_default_image', $default );
85
  }
86
 
87
  //Load SimplePie Instance
@@ -98,15 +100,14 @@ function feedzy_rss( $atts, $content = '' ) {
98
  $feed -> init();
99
  $feed -> handle_content_type();
100
 
101
- if ($feed->error()) {
102
-
103
- $content .= '<div id="message" class="error"><p>' . __('Sorry, this feed is currently unavailable or does not exists anymore.', 'feedzy_rss_translate') . '</p></div>';
104
-
105
  }
106
 
107
  $content .= '<div class="feedzy-rss">';
108
 
109
- if ($feed_title == 'yes') {
110
 
111
  $content .= '<div class="rss_header">';
112
  $content .= '<h2><a href="' . $feed->get_permalink() . '" class="rss_title">' . html_entity_decode( $feed->get_title() ) . '</a> <span class="rss_description"> ' . $feed->get_description() . '</span></h2>';
6
  die( 'Direct access not allowed!' );
7
  }
8
 
9
+
10
  /***************************************************************
11
  * Main shortcode function
12
  ***************************************************************/
35
  "default" => '', //default thumb URL if no image found (only if thumb is set to yes or auto)
36
  "size" => '', //thumbs pixel size
37
  "keywords_title" => '' //only display item if title contains specific keywords (comma-separated list/case sensitive)
38
+ ), $atts, 'feedzy_default' ) );
39
+
40
+ //Use "shortcode_atts_feedzy_default" filter to edit shortcode parameters default values or add your owns.
41
 
42
  if ( !empty( $feeds ) ) {
43
  $feeds = rtrim( $feeds, ',' );
83
  $default = $default;
84
 
85
  } else {
86
+ $default = apply_filters( 'feedzy_default_image', $default, $feedURL );
87
  }
88
 
89
  //Load SimplePie Instance
100
  $feed -> init();
101
  $feed -> handle_content_type();
102
 
103
+ // Display the error message
104
+ if ( $feed -> error() ) {
105
+ $content .= apply_filters( 'feedzy_default_error', $feed -> error(), $feedURL );
 
106
  }
107
 
108
  $content .= '<div class="feedzy-rss">';
109
 
110
+ if ( $feed_title == 'yes' ) {
111
 
112
  $content .= '<div class="rss_header">';
113
  $content .= '<h2><a href="' . $feed->get_permalink() . '" class="rss_title">' . html_entity_decode( $feed->get_title() ) . '</a> <span class="rss_description"> ' . $feed->get_description() . '</span></h2>';
feedzy-rss-feeds-ui-lang.php CHANGED
@@ -17,7 +17,7 @@ if ( ! class_exists( '_WP_Editors' ) )
17
  function feedzy_tinymce_translation() {
18
  $strings = array(
19
  'plugin_title' => __('Insert FEEDZY RSS Feeds Shortcode', 'feedzy_rss_translate'),
20
- 'feeds' => __('The feed(s) URL (comma-separated list).', 'feedzy_rss_translate'),
21
  'maximum' => __('Number of items to display.', 'feedzy_rss_translate'),
22
  'feed_title' => __('Should we display the RSS title?', 'feedzy_rss_translate'),
23
  'target' => __('Links may be opened in the same window or a new tab.', 'feedzy_rss_translate'),
@@ -33,7 +33,7 @@ function feedzy_tinymce_translation() {
33
  'text_no' => __('No', 'feedzy_rss_translate'),
34
  'text_yes' => __('Yes', 'feedzy_rss_translate'),
35
  'text_auto' => __('Auto', 'feedzy_rss_translate')
36
- );
37
  $locale = _WP_Editors::$mce_locale;
38
  $translated = 'tinyMCE.addI18n("' . $locale . '.feedzy_tinymce_plugin", ' . json_encode( $strings ) . ");\n";
39
 
17
  function feedzy_tinymce_translation() {
18
  $strings = array(
19
  'plugin_title' => __('Insert FEEDZY RSS Feeds Shortcode', 'feedzy_rss_translate'),
20
+ 'feeds' => __('The feed(s) URL (comma-separated list).', 'feedzy_rss_translate') . ' ' . __('If your feed is not valid, it won\'t work.', 'feedzy_rss_translate'),
21
  'maximum' => __('Number of items to display.', 'feedzy_rss_translate'),
22
  'feed_title' => __('Should we display the RSS title?', 'feedzy_rss_translate'),
23
  'target' => __('Links may be opened in the same window or a new tab.', 'feedzy_rss_translate'),
33
  'text_no' => __('No', 'feedzy_rss_translate'),
34
  'text_yes' => __('Yes', 'feedzy_rss_translate'),
35
  'text_auto' => __('Auto', 'feedzy_rss_translate')
36
+ );
37
  $locale = _WP_Editors::$mce_locale;
38
  $translated = 'tinyMCE.addI18n("' . $locale . '.feedzy_tinymce_plugin", ' . json_encode( $strings ) . ");\n";
39
 
feedzy-rss-feeds-ui.php CHANGED
@@ -21,8 +21,8 @@ function feedzy_add_mce_button() {
21
  add_filter( 'mce_buttons', 'feedzy_register_mce_button' );
22
 
23
  // Load stylesheet for tinyMCE button only
24
- wp_enqueue_style( 'feedzy-rss-feeds', plugin_dir_url( __FILE__ ) . 'css/feedzy-rss-feeds.css', array(), '2.6.1' );
25
- wp_enqueue_script( 'feedzy-rss-feeds-ui-scripts', plugin_dir_url( __FILE__ ) . 'js/feedzy-rss-feeds-ui-scripts.js', array( 'jquery' ), '2.6.1' );
26
  }
27
 
28
  }
21
  add_filter( 'mce_buttons', 'feedzy_register_mce_button' );
22
 
23
  // Load stylesheet for tinyMCE button only
24
+ wp_enqueue_style( 'feedzy-rss-feeds', plugin_dir_url( __FILE__ ) . 'css/feedzy-rss-feeds.css', array(), FEEDZY_VERSION );
25
+ wp_enqueue_script( 'feedzy-rss-feeds-ui-scripts', plugin_dir_url( __FILE__ ) . 'js/feedzy-rss-feeds-ui-scripts.js', array( 'jquery' ), FEEDZY_VERSION );
26
  }
27
 
28
  }
js/feedzy-rss-feeds-ui-mce.js CHANGED
@@ -14,6 +14,7 @@
14
  {
15
  type: 'textbox',
16
  name: 'feeds',
 
17
  label: editor.getLang('feedzy_tinymce_plugin.feeds'),
18
  value: ''
19
  },
14
  {
15
  type: 'textbox',
16
  name: 'feeds',
17
+ classes : 'feedzy-validator', //necessary to insert the validator link
18
  label: editor.getLang('feedzy_tinymce_plugin.feeds'),
19
  value: ''
20
  },
js/feedzy-rss-feeds-ui-scripts.js CHANGED
@@ -8,11 +8,14 @@ jQuery(document).ready(function($) {
8
  function feedzyMediaLibrary(){
9
  $(document).on('click', 'i.mce-i-feedzy-icon', function(){
10
  setTimeout(function() {
 
 
 
11
  $('.mce-feedzy-media').after(
12
- "<span class='mce-feedzy-media-button'>+</span>" +
13
- "<style>.mce-feedzy-media { padding-right: 25px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 30px !important; }" +
14
- ".mce-feedzy-media-button { cursor: pointer; width: 28px; height: 28px; display: block; -webkit-font-smoothing: antialiased; float: right; background-color: #F7F7F7; border: 1px solid #DDD; font-size: 30px; color: #777; position: relative; line-height: 28px; text-align: center;" +
15
- " }</style>"
16
  );
17
  }, 100);
18
  });
8
  function feedzyMediaLibrary(){
9
  $(document).on('click', 'i.mce-i-feedzy-icon', function(){
10
  setTimeout(function() {
11
+ $('.mce-feedzy-validator').parent('div').find('label').append(
12
+ ' <a href="https://validator.w3.org/feed/" target="_blank" style="font-weight: 800;" title="Validate my feed!">Validate my feed!</a>'
13
+ );
14
  $('.mce-feedzy-media').after(
15
+ '<span class="mce-feedzy-media-button">+</span>' +
16
+ '<style>.mce-feedzy-media { padding-right: 25px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 30px !important; }' +
17
+ '.mce-feedzy-media-button { cursor: pointer; width: 28px; height: 28px; display: block; -webkit-font-smoothing: antialiased; float: right; background-color: #F7F7F7; border: 1px solid #DDD; font-size: 30px; color: #777; position: relative; line-height: 28px; text-align: center;' +
18
+ ' }</style>'
19
  );
20
  }, 100);
21
  });
langs/feedzy_rss_translate-fr_FR.mo CHANGED
Binary file
langs/feedzy_rss_translate-fr_FR.po CHANGED
@@ -1,204 +1,217 @@
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-01-13 19:51:14+0000\n"
7
- "Last-Translator: superadminopl <brice.capobianco@openlog.fr>\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: CSL v1.x\n"
14
- "X-Poedit-Language: French\n"
15
- "X-Poedit-Country: FRANCE\n"
16
- "X-Poedit-SourceCharset: utf-8\n"
17
- "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"
18
- "X-Poedit-Basepath: \n"
19
- "X-Poedit-Bookmarks: \n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Textdomain-Support: yes"
22
-
23
- #: feedzy-rss-feeds-shortcode.php:120
24
- #@ feedzy_rss_translate
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:298
29
- #@ feedzy_rss_translate
30
- msgid "on"
31
- msgstr "le"
32
-
33
- #: feedzy-rss-feeds-shortcode.php:298
34
- #@ feedzy_rss_translate
35
- msgid "at"
36
- msgstr "à"
37
-
38
- #: feedzy-rss-feed.php:37
39
- #@ feedzy_rss_translate
40
- msgid "Documentation and examples"
41
- msgstr "Documentation et exemples"
42
-
43
- #: feedzy-rss-feed.php:38
44
- #@ feedzy_rss_translate
45
- msgid "More b*web Plugins"
46
- msgstr "Plus de plugins b*web"
47
-
48
- #: feedzy-rss-feeds-ui-lang.php:19
49
- #@ feedzy_rss_translate
50
- msgid "Insert FEEDZY RSS Feeds Shortcode"
51
- msgstr "Insérer un shortcode FEEDZY RSS Feeds"
52
-
53
- #: feedzy-rss-feeds-ui-lang.php:21
54
- #: feedzy-rss-feeds-widget.php:69
55
- #@ feedzy_rss_translate
56
- msgid "Number of items to display."
57
- msgstr "Nombre d’éléments à remonter."
58
-
59
- #: feedzy-rss-feeds-ui-lang.php:23
60
- #: feedzy-rss-feeds-widget.php:73
61
- #@ feedzy_rss_translate
62
- msgid "Links may be opened in the same window or a new tab."
63
- msgstr "Les liens peuvent être ouverts dans la même fenêtre ou dans un nouvel onglet."
64
-
65
- #: feedzy-rss-feeds-ui-lang.php:24
66
- #: feedzy-rss-feeds-widget.php:84
67
- #@ feedzy_rss_translate
68
- msgid "Trim the title of the item after X characters."
69
- msgstr "Rogner le titre de l’élément après X caractères."
70
-
71
- #: feedzy-rss-feeds-ui-lang.php:25
72
- #: feedzy-rss-feeds-widget.php:89
73
- #@ feedzy_rss_translate
74
- msgid "Should we display the date of publication and the author name?"
75
- msgstr "Doit-on afficher la date de publication ainsi que le nom de l’auteur de l’élément ?"
76
-
77
- #: feedzy-rss-feeds-ui-lang.php:26
78
- #: feedzy-rss-feeds-widget.php:93
79
- #@ feedzy_rss_translate
80
- msgid "Should we display a description (abstract) of the retrieved item?"
81
- msgstr "Doit-on afficher la description (le résumé) de l’élément ?"
82
-
83
- #: feedzy-rss-feeds-ui-lang.php:27
84
- #: feedzy-rss-feeds-widget.php:96
85
- #@ feedzy_rss_translate
86
- msgid "Crop description (summary) of the element after X characters."
87
- msgstr "Rogner la description (le résumé) de l’élément après X caractères."
88
-
89
- #: feedzy-rss-feeds-ui-lang.php:28
90
- #: feedzy-rss-feeds-widget.php:101
91
- #@ feedzy_rss_translate
92
- msgid "Should we display the first image of the content if it is available?"
93
- msgstr "Doit-on afficher la première image du contenu si elle est disponible ?"
94
-
95
- #: feedzy-rss-feeds-ui-lang.php:29
96
- #: feedzy-rss-feeds-widget.php:104
97
- #@ feedzy_rss_translate
98
- msgid "Default thumbnail URL if no image is found."
99
- msgstr "URL de la miniature par défaut si aucune image n’est trouvée."
100
-
101
- #: feedzy-rss-feeds-ui-lang.php:30
102
- #: feedzy-rss-feeds-widget.php:108
103
- #@ feedzy_rss_translate
104
- msgid "Thumblails dimension. Do not include \"px\". Eg: 150"
105
- msgstr "Dimensions de la miniature. Ne pas inclure “px”. Ex : 150"
106
-
107
- #: feedzy-rss-feeds-ui-lang.php:31
108
- #: feedzy-rss-feeds-widget.php:112
109
- #@ feedzy_rss_translate
110
- msgid "Only display item if title contains specific keyword(s) (comma-separated list/case sensitive)."
111
- msgstr "Afficher un élément seulement si son titre contient l’un des mots clés spécifiés (liste séparée par des virgules/sensible à la case)"
112
-
113
- #: feedzy-rss-feeds-ui-lang.php:32
114
- #@ feedzy_rss_translate
115
- msgid "Do not specify"
116
- msgstr "Ne pas préciser"
117
-
118
- #: feedzy-rss-feeds-ui-lang.php:33
119
- #@ feedzy_rss_translate
120
- msgid "No"
121
- msgstr "Non"
122
-
123
- #: feedzy-rss-feeds-ui-lang.php:34
124
- #@ feedzy_rss_translate
125
- msgid "Yes"
126
- msgstr "Oui"
127
-
128
- #: feedzy-rss-feeds-ui-lang.php:20
129
- #: feedzy-rss-feeds-widget.php:65
130
- #@ feedzy_rss_translate
131
- msgid "The feed(s) URL (comma-separated list)."
132
- msgstr "URL(s) du(des) flux RSS (liste séparée par des virgules)."
133
-
134
- #: feedzy-rss-feeds-ui-lang.php:22
135
- #@ feedzy_rss_translate
136
- msgid "Should we display the RSS title?"
137
- msgstr "Doit-on afficher le titre du flux RSS ?"
138
-
139
- #. translators: plugin header field 'Name'
140
- #: feedzy-rss-feed.php:0
141
- #@ feedzy_rss_translate
142
- msgid "FEEDZY RSS Feeds by b*web"
143
- msgstr ""
144
-
145
- #. translators: plugin header field 'Description'
146
- #: feedzy-rss-feed.php:0
147
- #@ feedzy_rss_translate
148
- 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."
149
- msgstr "FEEDZY RSS Feeds est un petit plugin léger, rapide et très simple d'utilisation qui vous permet d'agréger des flux RSS dans votre site WordPress grâce à des shortcodes entièrement paramétrables."
150
-
151
- #. translators: plugin header field 'Author'
152
- #: feedzy-rss-feed.php:0
153
- #@ feedzy_rss_translate
154
- msgid "Brice CAPOBIANCO"
155
- msgstr ""
156
-
157
- #. translators: plugin header field 'AuthorURI'
158
- #: feedzy-rss-feed.php:0
159
- #@ feedzy_rss_translate
160
- msgid "http://b-website.com/"
161
- msgstr ""
162
-
163
- #. translators: plugin header field 'PluginURI'
164
- #: feedzy-rss-feed.php:0
165
- #@ feedzy_rss_translate
166
- msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
167
- msgstr "http://b-website.com/feedzy-rss-feeds-plugin-wordpress-gratuit-utilisant-simplepie"
168
-
169
- #: feedzy-rss-feeds-widget.php:18
170
- #@ feedzy_wp_widget
171
- msgid "Feedzy RSS Feeds"
172
- msgstr ""
173
-
174
- #: feedzy-rss-feeds-widget.php:57
175
- #@ feedzy_rss_translate
176
- msgid "Widget Title"
177
- msgstr "Titre du Widget"
178
-
179
- #: feedzy-rss-feeds-widget.php:61
180
- #@ feedzy_rss_translate
181
- msgid "Intro text"
182
- msgstr "Texte d'intro"
183
-
184
- #: feedzy-rss-feed.php:39
185
- #@ default
186
- msgid "Donate to this plugin &#187;"
187
- msgstr ""
188
-
189
- #. translators: plugin header field 'Version'
190
- #: feedzy-rss-feed.php:0
191
- #@ feedzy_rss_translate
192
- msgid "2.2"
193
- msgstr ""
194
-
195
- #: feedzy-rss-feeds-shortcode.php:289
196
- #@ feedzy_rss_translate
197
- msgid "Posted"
198
- msgstr "Posté"
199
-
200
- #: feedzy-rss-feeds-shortcode.php:294
201
- #@ feedzy_rss_translate
202
- msgid "by"
203
- msgstr "par"
204
-
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: FEEDZY RSS Feeds by b*web v2.7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2015-12-07 11:46:59+0000\n"
7
+ "Last-Translator: superadminopl <brice.capobianco@openlog.fr>\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: CSL v1.x\n"
14
+ "X-Poedit-Language: French\n"
15
+ "X-Poedit-Country: FRANCE\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "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"
18
+ "X-Poedit-Basepath: \n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: feedzy-rss-feeds-functions.php:26
24
+ #@ feedzy_rss_translate
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:228
29
+ #@ feedzy_rss_translate
30
+ msgid "on"
31
+ msgstr "le"
32
+
33
+ #: feedzy-rss-feeds-shortcode.php:230
34
+ #@ feedzy_rss_translate
35
+ msgid "at"
36
+ msgstr "à"
37
+
38
+ #: feedzy-rss-feed.php:52
39
+ #@ feedzy_rss_translate
40
+ msgid "Documentation and examples"
41
+ msgstr "Documentation et exemples"
42
+
43
+ #: feedzy-rss-feed.php:53
44
+ #@ feedzy_rss_translate
45
+ msgid "More b*web Plugins"
46
+ msgstr "Plus de plugins b*web"
47
+
48
+ #: feedzy-rss-feeds-ui-lang.php:19
49
+ #@ feedzy_rss_translate
50
+ msgid "Insert FEEDZY RSS Feeds Shortcode"
51
+ msgstr "Insérer un shortcode FEEDZY RSS Feeds"
52
+
53
+ #: feedzy-rss-feeds-ui-lang.php:21
54
+ #: feedzy-rss-feeds-widget.php:69
55
+ #@ feedzy_rss_translate
56
+ msgid "Number of items to display."
57
+ msgstr "Nombre d’éléments à remonter."
58
+
59
+ #: feedzy-rss-feeds-ui-lang.php:23
60
+ #: feedzy-rss-feeds-widget.php:73
61
+ #@ feedzy_rss_translate
62
+ msgid "Links may be opened in the same window or a new tab."
63
+ msgstr "Les liens peuvent être ouverts dans la même fenêtre ou dans un nouvel onglet."
64
+
65
+ #: feedzy-rss-feeds-ui-lang.php:24
66
+ #: feedzy-rss-feeds-widget.php:84
67
+ #@ feedzy_rss_translate
68
+ msgid "Trim the title of the item after X characters."
69
+ msgstr "Rogner le titre de l’élément après X caractères."
70
+
71
+ #: feedzy-rss-feeds-ui-lang.php:25
72
+ #: feedzy-rss-feeds-widget.php:89
73
+ #@ feedzy_rss_translate
74
+ msgid "Should we display the date of publication and the author name?"
75
+ msgstr "Doit-on afficher la date de publication ainsi que le nom de l’auteur de l’élément ?"
76
+
77
+ #: feedzy-rss-feeds-ui-lang.php:26
78
+ #: feedzy-rss-feeds-widget.php:93
79
+ #@ feedzy_rss_translate
80
+ msgid "Should we display a description (abstract) of the retrieved item?"
81
+ msgstr "Doit-on afficher la description (le résumé) de l’élément ?"
82
+
83
+ #: feedzy-rss-feeds-ui-lang.php:27
84
+ #: feedzy-rss-feeds-widget.php:96
85
+ #@ feedzy_rss_translate
86
+ msgid "Crop description (summary) of the element after X characters."
87
+ msgstr "Rogner la description (le résumé) de l’élément après X caractères."
88
+
89
+ #: feedzy-rss-feeds-ui-lang.php:28
90
+ #: feedzy-rss-feeds-widget.php:100
91
+ #@ feedzy_rss_translate
92
+ msgid "Should we display the first image of the content if it is available?"
93
+ msgstr "Doit-on afficher la première image du contenu si elle est disponible ?"
94
+
95
+ #: feedzy-rss-feeds-ui-lang.php:29
96
+ #: feedzy-rss-feeds-widget.php:123
97
+ #@ feedzy_rss_translate
98
+ msgid "Default thumbnail URL if no image is found."
99
+ msgstr "URL de la miniature par défaut si aucune image n’est trouvée."
100
+
101
+ #: feedzy-rss-feeds-ui-lang.php:30
102
+ #: feedzy-rss-feeds-widget.php:127
103
+ #@ feedzy_rss_translate
104
+ msgid "Thumblails dimension. Do not include \"px\". Eg: 150"
105
+ msgstr "Dimensions de la miniature. Ne pas inclure “px”. Ex : 150"
106
+
107
+ #: feedzy-rss-feeds-ui-lang.php:31
108
+ #: feedzy-rss-feeds-widget.php:131
109
+ #@ feedzy_rss_translate
110
+ msgid "Only display item if title contains specific keyword(s) (comma-separated list/case sensitive)."
111
+ msgstr "Afficher un élément seulement si son titre contient l’un des mots clés spécifiés (liste séparée par des virgules/sensible à la case)"
112
+
113
+ #: feedzy-rss-feeds-ui-lang.php:32
114
+ #@ feedzy_rss_translate
115
+ msgid "Do not specify"
116
+ msgstr "Ne pas préciser"
117
+
118
+ #: feedzy-rss-feeds-ui-lang.php:33
119
+ #: feedzy-rss-feeds-widget.php:111
120
+ #@ feedzy_rss_translate
121
+ msgid "No"
122
+ msgstr "Non"
123
+
124
+ #: feedzy-rss-feeds-ui-lang.php:34
125
+ #: feedzy-rss-feeds-widget.php:112
126
+ #@ feedzy_rss_translate
127
+ msgid "Yes"
128
+ msgstr "Oui"
129
+
130
+ #: feedzy-rss-feeds-ui-lang.php:20
131
+ #: feedzy-rss-feeds-widget.php:65
132
+ #@ feedzy_rss_translate
133
+ msgid "The feed(s) URL (comma-separated list)."
134
+ msgstr "URL(s) du(des) flux RSS (liste séparée par des virgules)."
135
+
136
+ #: feedzy-rss-feeds-ui-lang.php:22
137
+ #@ feedzy_rss_translate
138
+ msgid "Should we display the RSS title?"
139
+ msgstr "Doit-on afficher le titre du flux RSS ?"
140
+
141
+ #. translators: plugin header field 'Name'
142
+ #: feedzy-rss-feed.php:0
143
+ #@ feedzy_rss_translate
144
+ msgid "FEEDZY RSS Feeds by b*web"
145
+ msgstr ""
146
+
147
+ #. translators: plugin header field 'Description'
148
+ #: feedzy-rss-feed.php:0
149
+ #@ feedzy_rss_translate
150
+ 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."
151
+ msgstr "FEEDZY RSS Feeds est un petit plugin léger, rapide et très simple d'utilisation qui vous permet d'agréger des flux RSS dans votre site WordPress grâce à des shortcodes entièrement paramétrables."
152
+
153
+ #. translators: plugin header field 'Author'
154
+ #: feedzy-rss-feed.php:0
155
+ #@ feedzy_rss_translate
156
+ msgid "Brice CAPOBIANCO"
157
+ msgstr ""
158
+
159
+ #. translators: plugin header field 'AuthorURI'
160
+ #: feedzy-rss-feed.php:0
161
+ #@ feedzy_rss_translate
162
+ msgid "http://b-website.com/"
163
+ msgstr ""
164
+
165
+ #. translators: plugin header field 'PluginURI'
166
+ #: feedzy-rss-feed.php:0
167
+ #@ feedzy_rss_translate
168
+ msgid "http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie"
169
+ msgstr "http://b-website.com/feedzy-rss-feeds-plugin-wordpress-gratuit-utilisant-simplepie"
170
+
171
+ #: feedzy-rss-feeds-widget.php:18
172
+ #@ feedzy_wp_widget
173
+ msgid "Feedzy RSS Feeds"
174
+ msgstr ""
175
+
176
+ #: feedzy-rss-feeds-widget.php:57
177
+ #@ feedzy_rss_translate
178
+ msgid "Widget Title"
179
+ msgstr "Titre du Widget"
180
+
181
+ #: feedzy-rss-feeds-widget.php:61
182
+ #@ feedzy_rss_translate
183
+ msgid "Intro text"
184
+ msgstr "Texte d'intro"
185
+
186
+ #: feedzy-rss-feed.php:54
187
+ #@ default
188
+ msgid "Donate to this plugin &#187;"
189
+ msgstr ""
190
+
191
+ #: feedzy-rss-feeds-shortcode.php:211
192
+ #@ feedzy_rss_translate
193
+ msgid "Posted"
194
+ msgstr "Posté"
195
+
196
+ #: feedzy-rss-feeds-shortcode.php:222
197
+ #@ feedzy_rss_translate
198
+ msgid "by"
199
+ msgstr "par"
200
+
201
+ #. translators: plugin header field 'Version'
202
+ #: feedzy-rss-feed.php:0
203
+ #@ feedzy_rss_translate
204
+ msgid "2.7"
205
+ msgstr ""
206
+
207
+ #: feedzy-rss-feeds-ui-lang.php:20
208
+ #@ feedzy_rss_translate
209
+ msgid "If your feed is not valid, it won't work."
210
+ msgstr "Si votre flux n'est pas valide, cela ne fonctionnera pas."
211
+
212
+ #: feedzy-rss-feeds-ui-lang.php:35
213
+ #: feedzy-rss-feeds-widget.php:113
214
+ #@ feedzy_rss_translate
215
+ msgid "Auto"
216
+ msgstr ""
217
+
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.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,8 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
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")
@@ -99,6 +101,10 @@ Become a translator and send me your translation! [Contact-me](http://b-website.
99
 
100
  Yes it is.
101
 
 
 
 
 
102
 
103
  == Screenshots ==
104
 
@@ -109,6 +115,18 @@ Yes it is.
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"
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
  * feedzy_thumb_sizes
74
  * feedzy_feed_blacklist_images
75
  * feedzy_default_image
76
+ * feedzy_default_error
77
+ * shortcode_atts_feedzy_default
78
 
79
 
80
  [FULL DOCUMENTATION AND EXAMPLES](http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie "Documentation & examples")
101
 
102
  Yes it is.
103
 
104
+ = My feed is not displayed and the following message appears "Sorry, this feed is currently unavailable or does not exists anymore." =
105
+
106
+ You have to check first if your feed is valid. Please test it here: https://validator.w3.org/feed/
107
+
108
 
109
  == Screenshots ==
110
 
115
 
116
 
117
  == Changelog ==
118
+
119
+ = 2.7 =
120
+ * Better displaying of fetching feeds errors (see error message div error-attr).
121
+ * Write errors in the WP log file
122
+ * New hook: feedzy_default_error to filter error message
123
+ * New hook: shortcode_atts_feedzy_default to filter default shortcode attibutes
124
+ * Add a link to validate feed in the TinyMCE popup modal
125
+ * French translation update
126
+ * Remove unnecessary functions
127
+ * New constant FEEDZY_VERSION
128
+ * readme.txt and hooks documentation update
129
+
130
  = 2.6.2 =
131
  * Spanish translation thanks to [Angel Calzado](http://sintaxisweb.es "Angel Calzado")
132
  * PHP issue fix in feedzy_returnImage() "strpos() expects parameter 1 to be string"