Recent Facebook Posts - Version 2.0.1

Version Description

Fixed issue with Emojis in Facebook statuses, updated translations and various other improvements.

Download this release

Release Info

Developer DvanKooten
Plugin Icon wp plugin Recent Facebook Posts
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0 to 2.0.1

includes/class-admin.php CHANGED
@@ -99,7 +99,7 @@ class RFBP_Admin {
99
  $opts['fb_id'] = sanitize_text_field( $opts['fb_id'] );
100
 
101
  // If FB configuration changed, delete transients with posts cache so they'll be renewed
102
- if(($old_opts['fb_id'] !== $opts['fb_id']) || ($old_opts['app_id'] !== $opts['app_id']) || ($old_opts['app_secret'] !== $opts['app_secret'])) {
103
 
104
  // delete cache transients
105
  delete_transient('rfbp_posts');
@@ -185,9 +185,9 @@ class RFBP_Admin {
185
  $ping = $api->ping();
186
 
187
  if( $ping ) {
188
- add_settings_error('rfbp', 'rfbp-api-success', __( 'Your configuration seems to be okay and working! Nice work.', 'recent-facebook-posts' ), "updated");
189
  } else {
190
- add_settings_error('rfbp', 'rfbp-api-error', __(' Facebook returned the following error when testing your configuration.', 'recent-facebook-posts' ) . '<pre>' . $api->get_error_message() . '</pre>');
191
  }
192
  }
193
  }
99
  $opts['fb_id'] = sanitize_text_field( $opts['fb_id'] );
100
 
101
  // If FB configuration changed, delete transients with posts cache so they'll be renewed
102
+ if( ( $old_opts['fb_id'] !== $opts['fb_id'] ) || ( $old_opts['app_id'] !== $opts['app_id']) || ( $old_opts['app_secret'] !== $opts['app_secret'] ) ) {
103
 
104
  // delete cache transients
105
  delete_transient('rfbp_posts');
185
  $ping = $api->ping();
186
 
187
  if( $ping ) {
188
+ add_settings_error('rfbp', 'rfbp-api-success', __( 'Your configuration seems to be okay and working. Nice work!.', 'recent-facebook-posts' ), "updated");
189
  } else {
190
+ add_settings_error('rfbp', 'rfbp-api-error', __('The following error was encountered when testing your configuration.', 'recent-facebook-posts' ) . '<br /><br />' . $api->get_error_message() );
191
  }
192
  }
193
  }
includes/class-api.php CHANGED
@@ -47,8 +47,8 @@ class RFBP_API {
47
  if( is_object( $result ) ) {
48
  if( isset( $result->data ) ) {
49
  return $this->format_data( $result->data );
50
- } else {
51
- $this->error = $result->error;
52
  return false;
53
  }
54
  }
@@ -93,7 +93,7 @@ class RFBP_API {
93
  $post['type'] = sanitize_text_field( $p->type );
94
  $post['content'] = '';
95
  $post['image'] = null;
96
-
97
  if( isset( $p->message ) ) {
98
  // remove emoji's
99
  $post['content'] = preg_replace( '/[\x{1F600}-\x{1F64F}]|[\x{1F300}-\x{1F5FF}]|[\x{1F680}-\x{1F6FF}]|[\x{1F1E0}-\x{1F1FF}]/u', '', $p->message );
@@ -157,13 +157,16 @@ class RFBP_API {
157
  $result = $this->call("{$this->fb_id}/posts", array('fields' => 'name', 'limit' => 1) );
158
 
159
  if( is_object( $result ) ) {
160
- if(isset($result->data)) {
 
161
  return true;
162
- } else {
163
- $this->error = $result->error;
164
  return false;
165
  }
166
  }
 
 
167
  }
168
 
169
  /**
@@ -190,14 +193,14 @@ class RFBP_API {
190
 
191
  $response = wp_remote_get($url, array(
192
  'timeout' => 10,
193
- 'headers' => array('Accept-Encoding' => ''),
194
  'sslverify' => false
195
  )
196
  );
197
 
198
  // Did the request succeed?
199
  if( is_wp_error( $response ) ) {
200
- $this->error = $response->get_error_message();
201
  return false;
202
  } else {
203
  $body = wp_remote_retrieve_body($response);
47
  if( is_object( $result ) ) {
48
  if( isset( $result->data ) ) {
49
  return $this->format_data( $result->data );
50
+ } elseif( isset( $result->error->message ) ) {
51
+ $this->error = __( 'Facebook error:', 'recent-facebook-posts' ) . ' <code>' . $result->error->message . '</code>';
52
  return false;
53
  }
54
  }
93
  $post['type'] = sanitize_text_field( $p->type );
94
  $post['content'] = '';
95
  $post['image'] = null;
96
+
97
  if( isset( $p->message ) ) {
98
  // remove emoji's
99
  $post['content'] = preg_replace( '/[\x{1F600}-\x{1F64F}]|[\x{1F300}-\x{1F5FF}]|[\x{1F680}-\x{1F6FF}]|[\x{1F1E0}-\x{1F1FF}]/u', '', $p->message );
157
  $result = $this->call("{$this->fb_id}/posts", array('fields' => 'name', 'limit' => 1) );
158
 
159
  if( is_object( $result ) ) {
160
+
161
+ if( isset( $result->data ) ) {
162
  return true;
163
+ } elseif( isset( $result->error->message ) ) {
164
+ $this->error = __( 'Facebook error:', 'recent-facebook-posts' ) . ' <code>' . $result->error->message . '</code>';
165
  return false;
166
  }
167
  }
168
+
169
+ return false;
170
  }
171
 
172
  /**
193
 
194
  $response = wp_remote_get($url, array(
195
  'timeout' => 10,
196
+ 'headers' => array( 'Accept-Encoding' => '' ),
197
  'sslverify' => false
198
  )
199
  );
200
 
201
  // Did the request succeed?
202
  if( is_wp_error( $response ) ) {
203
+ $this->error = __( 'Connection error:', 'recent-facebook-posts' ) . ' <code>' . $response->get_error_message() . '</code>';
204
  return false;
205
  } else {
206
  $body = wp_remote_retrieve_body($response);
includes/class-public.php CHANGED
@@ -10,7 +10,7 @@ class RFBP_Public {
10
 
11
  public static function instance()
12
  {
13
- if(!self::$instance) {
14
  self::$instance = new RFBP_Public();
15
  }
16
 
10
 
11
  public static function instance()
12
  {
13
+ if( ! self::$instance ) {
14
  self::$instance = new RFBP_Public();
15
  }
16
 
includes/class-widget.php CHANGED
@@ -6,7 +6,10 @@ if( ! defined( 'RFBP_VERSION' ) ) {
6
 
7
  class RFBP_Widget extends WP_Widget {
8
 
9
- private $defaults;
 
 
 
10
 
11
  public function __construct() {
12
  parent::__construct(
@@ -29,8 +32,6 @@ class RFBP_Widget extends WP_Widget {
29
  public function form( $instance ) {
30
 
31
  $instance = array_merge( $this->defaults, $instance );
32
- extract( $instance );
33
-
34
  $opts = rfbp_get_settings();
35
 
36
  if ( empty( $opts['app_id'] ) ) { ?>
@@ -39,36 +40,36 @@ class RFBP_Widget extends WP_Widget {
39
 
40
  <p>
41
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'recent-facebook-posts' ); ?></label>
42
- <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
43
  </p>
44
 
45
  <p>
46
  <label for="<?php echo $this->get_field_id( 'number_of_posts' ); ?>"><?php _e( 'Number of posts:', 'recent-facebook-posts' ); ?></label>
47
- <input class="widefat" id="<?php echo $this->get_field_id( 'number_of_posts' ); ?>" name="<?php echo $this->get_field_name( 'number_of_posts' ); ?>" type="number" min="1" max="99" value="<?php echo esc_attr( $number_of_posts ); ?>" />
48
  </p>
49
 
50
  <p>
51
  <label for="<?php echo $this->get_field_id( 'excerpt_length' ); ?>"><?php _e( 'Excerpt length:', 'recent-facebook-posts' ); ?></label>
52
- <input class="widefat" id="<?php echo $this->get_field_id( 'excerpt_length' ); ?>" name="<?php echo $this->get_field_name( 'excerpt_length' ); ?>" type="number" min="1" max="9999"value="<?php echo esc_attr( $excerpt_length ); ?>" />
53
  </p>
54
 
55
  <p>
56
- <input type="checkbox" id="<?php echo $this->get_field_id( 'show_like_count' ); ?>" name="<?php echo $this->get_field_name( 'show_like_count' ); ?>" value="1" <?php checked( $show_like_count, 1 ); ?> />
57
  <label for="<?php echo $this->get_field_id( 'show_like_count' ); ?>"><?php _e( 'Show like count?', 'recent-facebook-posts' ); ?></label>
58
  </p>
59
 
60
  <p>
61
- <input type="checkbox" id="<?php echo $this->get_field_id( 'show_comment_count' ); ?>" name="<?php echo $this->get_field_name( 'show_comment_count' ); ?>" value="1" <?php checked( $show_comment_count, 1 ); ?> />
62
  <label for="<?php echo $this->get_field_id( 'show_comment_count' ); ?>"><?php _e( 'Show comment count?', 'recent-facebook-posts' ); ?></label>
63
  </p>
64
 
65
  <p>
66
- <input type="checkbox" id="<?php echo $this->get_field_id( 'show_page_link' ); ?>" name="<?php echo $this->get_field_name( 'show_page_link' ); ?>" value="1" <?php if ( $show_page_link ) { ?>checked="1"<?php } ?> />
67
  <label for="<?php echo $this->get_field_id( 'show_page_link' ); ?>"><?php _e( 'Show link to Facebook page?', 'recent-facebook-posts' ); ?></label>
68
  </p>
69
 
70
  <p>
71
- <input type="checkbox" id="<?php echo $this->get_field_id( 'show_link_previews' ); ?>" name="<?php echo $this->get_field_name( 'show_link_previews' ); ?>" value="1" <?php if ( $show_link_previews ) { ?>checked="1"<?php } ?> />
72
  <label for="<?php echo $this->get_field_id( 'show_link_previews' ); ?>"><?php _e( 'Show link previews?', 'recent-facebook-posts' ); ?></label>
73
  </p>
74
 
@@ -77,9 +78,9 @@ class RFBP_Widget extends WP_Widget {
77
 
78
  public function update( $new_instance, $old_instance ) {
79
  $instance = array();
80
- $instance['title'] = strip_tags( $new_instance['title'] );
81
- $instance['number_of_posts'] = (int) strip_tags( $new_instance['number_of_posts'] );
82
- $instance['excerpt_length'] = (int) strip_tags( $new_instance['excerpt_length'] );
83
  $instance['show_like_count'] = isset( $new_instance['show_like_count'] );
84
  $instance['show_comment_count'] = isset( $new_instance['show_comment_count'] );
85
  $instance['show_page_link'] = isset( $new_instance['show_page_link'] );
@@ -90,31 +91,27 @@ class RFBP_Widget extends WP_Widget {
90
  public function widget( $args, $instance = array() ) {
91
 
92
  $instance = array_merge( $this->defaults, $instance );
93
-
94
- extract( $instance );
95
- extract( $args );
96
-
97
  $title = apply_filters( 'widget_title', $instance['title'] );
98
 
99
- echo $before_widget;
100
 
101
  if ( ! empty( $title ) ) {
102
- echo $before_title . $title . $after_title;
103
  }
104
 
105
  recent_facebook_posts( array(
106
  'origin' => 'widget',
107
- 'number' => $number_of_posts,
108
- 'likes' => $show_like_count,
109
- 'comments' => $show_comment_count,
110
- 'excerpt_length' => $excerpt_length,
111
  'el' => apply_filters( 'rfbp_widget_element', 'div' ),
112
- 'show_page_link' => $show_page_link,
113
- 'show_link_previews' => $show_link_previews
114
  ) );
115
 
116
 
117
- echo $after_widget;
118
  }
119
 
120
 
6
 
7
  class RFBP_Widget extends WP_Widget {
8
 
9
+ /**
10
+ * @var array
11
+ */
12
+ private $defaults = array();
13
 
14
  public function __construct() {
15
  parent::__construct(
32
  public function form( $instance ) {
33
 
34
  $instance = array_merge( $this->defaults, $instance );
 
 
35
  $opts = rfbp_get_settings();
36
 
37
  if ( empty( $opts['app_id'] ) ) { ?>
40
 
41
  <p>
42
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'recent-facebook-posts' ); ?></label>
43
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
44
  </p>
45
 
46
  <p>
47
  <label for="<?php echo $this->get_field_id( 'number_of_posts' ); ?>"><?php _e( 'Number of posts:', 'recent-facebook-posts' ); ?></label>
48
+ <input class="widefat" id="<?php echo $this->get_field_id( 'number_of_posts' ); ?>" name="<?php echo $this->get_field_name( 'number_of_posts' ); ?>" type="number" min="1" max="99" value="<?php echo esc_attr( $instance['number_of_posts'] ); ?>" />
49
  </p>
50
 
51
  <p>
52
  <label for="<?php echo $this->get_field_id( 'excerpt_length' ); ?>"><?php _e( 'Excerpt length:', 'recent-facebook-posts' ); ?></label>
53
+ <input class="widefat" id="<?php echo $this->get_field_id( 'excerpt_length' ); ?>" name="<?php echo $this->get_field_name( 'excerpt_length' ); ?>" type="number" min="1" max="9999"value="<?php echo esc_attr( $instance['excerpt_length'] ); ?>" />
54
  </p>
55
 
56
  <p>
57
+ <input type="checkbox" id="<?php echo $this->get_field_id( 'show_like_count' ); ?>" name="<?php echo $this->get_field_name( 'show_like_count' ); ?>" value="1" <?php checked( $instance['show_like_count'], 1 ); ?> />
58
  <label for="<?php echo $this->get_field_id( 'show_like_count' ); ?>"><?php _e( 'Show like count?', 'recent-facebook-posts' ); ?></label>
59
  </p>
60
 
61
  <p>
62
+ <input type="checkbox" id="<?php echo $this->get_field_id( 'show_comment_count' ); ?>" name="<?php echo $this->get_field_name( 'show_comment_count' ); ?>" value="1" <?php checked( $instance['show_comment_count'], 1 ); ?> />
63
  <label for="<?php echo $this->get_field_id( 'show_comment_count' ); ?>"><?php _e( 'Show comment count?', 'recent-facebook-posts' ); ?></label>
64
  </p>
65
 
66
  <p>
67
+ <input type="checkbox" id="<?php echo $this->get_field_id( 'show_page_link' ); ?>" name="<?php echo $this->get_field_name( 'show_page_link' ); ?>" value="1" <?php if ( $instance['show_page_link'] ) { ?>checked="1"<?php } ?> />
68
  <label for="<?php echo $this->get_field_id( 'show_page_link' ); ?>"><?php _e( 'Show link to Facebook page?', 'recent-facebook-posts' ); ?></label>
69
  </p>
70
 
71
  <p>
72
+ <input type="checkbox" id="<?php echo $this->get_field_id( 'show_link_previews' ); ?>" name="<?php echo $this->get_field_name( 'show_link_previews' ); ?>" value="1" <?php if ( $instance['show_link_previews'] ) { ?>checked="1"<?php } ?> />
73
  <label for="<?php echo $this->get_field_id( 'show_link_previews' ); ?>"><?php _e( 'Show link previews?', 'recent-facebook-posts' ); ?></label>
74
  </p>
75
 
78
 
79
  public function update( $new_instance, $old_instance ) {
80
  $instance = array();
81
+ $instance['title'] = sanitize_text_field( $new_instance['title'] );
82
+ $instance['number_of_posts'] = absint( sanitize_text_field( $new_instance['number_of_posts'] ) );
83
+ $instance['excerpt_length'] = absint( sanitize_text_field( $new_instance['excerpt_length'] ) );
84
  $instance['show_like_count'] = isset( $new_instance['show_like_count'] );
85
  $instance['show_comment_count'] = isset( $new_instance['show_comment_count'] );
86
  $instance['show_page_link'] = isset( $new_instance['show_page_link'] );
91
  public function widget( $args, $instance = array() ) {
92
 
93
  $instance = array_merge( $this->defaults, $instance );
 
 
 
 
94
  $title = apply_filters( 'widget_title', $instance['title'] );
95
 
96
+ echo $args['before_widget'];
97
 
98
  if ( ! empty( $title ) ) {
99
+ echo $args['before_title'] . $title . $args['after_title'];
100
  }
101
 
102
  recent_facebook_posts( array(
103
  'origin' => 'widget',
104
+ 'number' => $instance['number_of_posts'],
105
+ 'likes' => $instance['show_like_count'],
106
+ 'comments' => $instance['show_comment_count'],
107
+ 'excerpt_length' => $instance['excerpt_length'],
108
  'el' => apply_filters( 'rfbp_widget_element', 'div' ),
109
+ 'show_page_link' => $instance['show_page_link'],
110
+ 'show_link_previews' => $instance['show_link_previews']
111
  ) );
112
 
113
 
114
+ echo $args['after_widget'];
115
  }
116
 
117
 
includes/functions/global.php CHANGED
@@ -4,17 +4,22 @@ if( ! defined( 'RFBP_VERSION' ) ) {
4
  exit;
5
  }
6
 
 
 
 
 
 
7
  function rfbp_get_settings() {
8
  static $settings;
9
 
10
- if ( !$settings ) {
11
 
12
  $defaults = array(
13
  'app_id' => '',
14
  'app_secret' => '',
15
  'fb_id' => '',
16
  'load_css' => 1,
17
- 'page_link_text' => 'Find us on Facebook',
18
  'link_new_window' => 0,
19
  'img_size' => 'normal',
20
  'img_width' => '',
@@ -22,17 +27,22 @@ function rfbp_get_settings() {
22
  );
23
 
24
  // get user options
25
- $options = get_option( 'rfb_settings' );
26
 
27
  // options did not exist yet, add option to database
28
- if ( !$options ) { add_option( 'rfb_settings', $defaults ); }
 
 
29
 
30
- $settings = array_merge( $defaults, (array) $options );
31
  }
32
 
33
  return $settings;
34
  }
35
 
 
 
 
36
  function rfbp_register_widget() {
37
  include_once RFBP_PLUGIN_DIR . 'includes/class-widget.php';
38
  register_widget( "RFBP_Widget" );
@@ -40,23 +50,18 @@ function rfbp_register_widget() {
40
 
41
  add_action('widgets_init', 'rfbp_register_widget');
42
 
 
 
 
43
  function rfbp_load_textdomain() {
44
- load_plugin_textdomain( 'recent-facebook-posts', false, 'recent-facebook-posts/languages/' );
45
  }
46
 
47
- add_action('plugins_loaded', 'rfbp_load_textdomain');
48
-
49
- function rfbp_get_class() {
50
- static $class;
51
-
52
- if(!$class) {
53
- require_once RFBP_PLUGIN_DIR . 'includes/class-public.php';
54
- $class = new RFBP_Public();
55
- }
56
-
57
- return $class;
58
- }
59
 
 
 
 
60
  function rfbp_get_api() {
61
  static $api;
62
 
@@ -71,6 +76,5 @@ function rfbp_get_api() {
71
 
72
  function rfbp_valid_config() {
73
  $opts = rfbp_get_settings();
74
-
75
- return (!empty($opts['fb_id']) && !empty($opts['app_id']) && !empty($opts['app_secret']) );
76
  }
4
  exit;
5
  }
6
 
7
+ /**
8
+ * Get the plugin settings (merged with defaults)
9
+ *
10
+ * @return array
11
+ */
12
  function rfbp_get_settings() {
13
  static $settings;
14
 
15
+ if ( ! $settings ) {
16
 
17
  $defaults = array(
18
  'app_id' => '',
19
  'app_secret' => '',
20
  'fb_id' => '',
21
  'load_css' => 1,
22
+ 'page_link_text' => __( 'Find us on Facebook', 'recent-facebook-posts' ),
23
  'link_new_window' => 0,
24
  'img_size' => 'normal',
25
  'img_width' => '',
27
  );
28
 
29
  // get user options
30
+ $options = get_option( 'rfb_settings', array() );
31
 
32
  // options did not exist yet, add option to database
33
+ if ( ! is_array( $options ) || count( $options ) === 0 ) {
34
+ add_option( 'rfb_settings', $defaults );
35
+ }
36
 
37
+ $settings = array_merge( $defaults, $options );
38
  }
39
 
40
  return $settings;
41
  }
42
 
43
+ /**
44
+ * Register the `Recent Facebook Posts` widget
45
+ */
46
  function rfbp_register_widget() {
47
  include_once RFBP_PLUGIN_DIR . 'includes/class-widget.php';
48
  register_widget( "RFBP_Widget" );
50
 
51
  add_action('widgets_init', 'rfbp_register_widget');
52
 
53
+ /**
54
+ * Load plugin translations
55
+ */
56
  function rfbp_load_textdomain() {
57
+ load_plugin_textdomain( 'recent-facebook-posts', false, basename( RFBP_PLUGIN_DIR ) . '/languages/' );
58
  }
59
 
60
+ add_action( 'init', 'rfbp_load_textdomain' );
 
 
 
 
 
 
 
 
 
 
 
61
 
62
+ /**
63
+ * @return RFBP_API
64
+ */
65
  function rfbp_get_api() {
66
  static $api;
67
 
76
 
77
  function rfbp_valid_config() {
78
  $opts = rfbp_get_settings();
79
+ return ( ! empty( $opts['fb_id'] ) && ! empty( $opts['app_id'] ) && ! empty( $opts['app_secret'] ) );
 
80
  }
includes/functions/template.php CHANGED
@@ -4,8 +4,24 @@ if( ! defined( 'RFBP_VERSION' ) ) {
4
  exit;
5
  }
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  function recent_facebook_posts( $args = array() )
8
  {
9
- $rfbp = rfbp_get_class();
10
- echo $rfbp->output($args);
11
  }
4
  exit;
5
  }
6
 
7
+ /**
8
+ * Prints a list of Recent Facebook Posts
9
+ *
10
+ * Accepted arguments are the same as the shortcode args
11
+ *
12
+ * - number: 5
13
+ * - likes: true
14
+ * - comments: true
15
+ * - excerpt_length: 140
16
+ * - el: div
17
+ * - origin: shortcode
18
+ * - show_page_link: false
19
+ * - show_link_preview: false
20
+ *
21
+ * @param array $args
22
+ * @return void
23
+ */
24
  function recent_facebook_posts( $args = array() )
25
  {
26
+ echo RFBP_Public::instance()->output( $args );
 
27
  }
includes/views/settings_page.html.php CHANGED
@@ -8,7 +8,7 @@
8
  <?php if( isset( $notice ) ) { ?>
9
  <div id="setting-error-settings_updated" class="updated settings-error">
10
  <p>
11
- <?php echo $notice; ?>
12
  </p>
13
  </div>
14
  <?php } ?>
@@ -63,17 +63,17 @@
63
  <table class="form-table">
64
  <tbody>
65
  <tr valign="top">
66
- <th scope="row"><label for="rfb_page_link_text"><?php _e('Link text', 'recent-facebook-posts'); ?></label></th>
67
- <td><input type="text" class="widefat" placeholder="Find us on Facebook" id="rfb_page_link_text" name="rfb_settings[page_link_text]" value="<?php echo esc_attr($opts['page_link_text']); ?>" /></td>
68
  </tr>
69
 
70
  <tr valign="top">
71
- <th scope="row"><label for="rfb_link_new_window"><?php _e('Open links in new window?', 'recent-facebook-posts'); ?></label></th>
72
  <td><input type="checkbox" id="rfb_link_new_window" name="rfb_settings[link_new_window]" value="1" <?php checked( $opts['link_new_window'], 1 ); ?> /></td>
73
  </tr>
74
 
75
  <tr valign="top">
76
- <th scope="row"><label for="rfb_load_css"><?php _e('Load some default styles?', 'recent-facebook-posts'); ?></label></th>
77
  <td><input type="checkbox" id="rfb_load_css" name="rfb_settings[load_css]" value="1" <?php checked( $opts['load_css'], 1 ); ?> /></td>
78
  </tr>
79
  </tbody>
@@ -82,9 +82,9 @@
82
  <th scope="row"><label for="rfb_img_size"><?php _e('Image size', 'recent-facebook-posts'); ?></label></th>
83
  <td>
84
  <select class="widefat" id="rfb_img_size" name="rfb_settings[img_size]">
85
- <option value="dont_show" <?php if($opts['img_size'] == 'dont_show') { echo 'selected'; } ?>><?php _e("Don't show images", 'recent-facebook-posts'); ?></option>
86
- <option value="thumbnail" <?php if($opts['img_size'] == 'thumbnail') { echo 'selected'; } ?>><?php _e('Thumbnail', 'recent-facebook-posts'); ?></option>
87
- <option value="normal" <?php if($opts['img_size'] == 'normal') { echo 'selected'; } ?>><?php _e('Normal', 'recent-facebook-posts'); ?></option>
88
  </select>
89
  </td>
90
  </tr>
@@ -124,7 +124,7 @@
124
 
125
  <h3 class="rfbp-title">Facebook Posts Cache</h3>
126
  <p><?php _e('Because fetching posts from Facebook is relatively slow the posts are cached for <strong>30 minutes</strong>. You can manually clear the cache using the button below.', 'recent-facebook-posts'); ?></p>
127
- <form action="<?php echo admin_url('options-general.php?page=rfbp'); ?>" method="post">
128
  <input type="hidden" name="rfbp-clear-cache" value="1" />
129
  <input type="submit" class="button-primary" value="<?php _e('Clear Cache', 'recent-facebook-posts'); ?>" />
130
  </form>
@@ -135,8 +135,8 @@
135
  <div class="rfbp-column rfbp-secondary">
136
 
137
  <div class="rfbp-box">
138
- <h3 class="rfbp-title">Donate $10, $20 or $50</h3>
139
- <p>I spent a lot of time developing this plugin and offering support for it. If you like it, consider supporting this plugin by donating a token of your appreciation.</p>
140
 
141
  <div class="rfbp-donate">
142
  <form class="donate" action="https://www.paypal.com/cgi-bin/webscr" method="post">
@@ -147,31 +147,32 @@
147
  <input type="hidden" name="item_number" value="Recent Facebook Posts">
148
  <input type="hidden" name="currency_code" value="USD">
149
  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
150
- <button name="submit" class="button-primary">Donate with PayPal</button>
151
  <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
152
  </form>
153
  </div>
154
 
155
- <p>Some other ways to support this plugin</p>
156
  <ul class="ul-square">
157
- <li><a href="http://wordpress.org/support/view/plugin-reviews/recent-facebook-posts?rate=5#postform" target="_blank">Leave a &#9733;&#9733;&#9733;&#9733;&#9733; review on WordPress.org</a></li>
158
- <li><a href="http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/" target="_blank">Link to the plugin page from your blog</a></li>
159
- <li><a href="http://twitter.com/?status=I%20show%20recent%20facebook%20posts%20on%20my%20%23WordPress%20site%20using%20Recent%20Facebook%20Posts%20by%20%40DannyvanKooten%20-%20love%20it!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Frecent-facebook-posts%2F" target="_blank">Tweet about Recent Facebook Posts</a></li>
160
- <li><a href="http://wordpress.org/plugins/recent-facebook-posts/#compatibility">Vote "works" on the WordPress.org plugin page</a></li>
161
  </ul>
162
  </div>
163
 
164
  <div class="rfbp-box">
165
- <h3 class="rfbp-title">Looking for support?</h3>
166
- <p>Please use the <a href="http://wordpress.org/support/plugin/recent-facebook-posts">plugin support forums</a> on WordPress.org.</p>
167
- <p>Take a close look at the <a href="http://wordpress.org/plugins/recent-facebook-posts/installation/">installation instructions</a> for help configuring the plugin and registering your own Facebook application, which is required to get this plugin to work.</p>
168
  </div>
169
 
170
  <div class="rfbp-box">
171
- <h3 class="rfbp-title">Other Useful plugins</h3>
172
  <ul class="ul-square">
173
  <li><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
174
  <li><a href="http://wordpress.org/plugins/scroll-triggered-boxes/">Scroll Triggered Boxes</a></li>
 
175
  <li><a href="http://wordpress.org/plugins/wysiwyg-widgets/">WYSIWYG Widgets</a></li>
176
  </ul>
177
  </div>
8
  <?php if( isset( $notice ) ) { ?>
9
  <div id="setting-error-settings_updated" class="updated settings-error">
10
  <p>
11
+ <?php echo esc_html( $notice ); ?>
12
  </p>
13
  </div>
14
  <?php } ?>
63
  <table class="form-table">
64
  <tbody>
65
  <tr valign="top">
66
+ <th scope="row"><label for="rfb_page_link_text"><?php _e( 'Link text', 'recent-facebook-posts' ); ?></label></th>
67
+ <td><input type="text" class="widefat" placeholder="<?php _e( 'Find us on Facebook', 'recent-facebook-posts' ); ?>" id="rfb_page_link_text" name="rfb_settings[page_link_text]" value="<?php echo esc_attr($opts['page_link_text']); ?>" /></td>
68
  </tr>
69
 
70
  <tr valign="top">
71
+ <th scope="row"><label for="rfb_link_new_window"><?php _e( 'Open links in new window?', 'recent-facebook-posts' ); ?></label></th>
72
  <td><input type="checkbox" id="rfb_link_new_window" name="rfb_settings[link_new_window]" value="1" <?php checked( $opts['link_new_window'], 1 ); ?> /></td>
73
  </tr>
74
 
75
  <tr valign="top">
76
+ <th scope="row"><label for="rfb_load_css"><?php _e( 'Load some default styles?', 'recent-facebook-posts' ); ?></label></th>
77
  <td><input type="checkbox" id="rfb_load_css" name="rfb_settings[load_css]" value="1" <?php checked( $opts['load_css'], 1 ); ?> /></td>
78
  </tr>
79
  </tbody>
82
  <th scope="row"><label for="rfb_img_size"><?php _e('Image size', 'recent-facebook-posts'); ?></label></th>
83
  <td>
84
  <select class="widefat" id="rfb_img_size" name="rfb_settings[img_size]">
85
+ <option value="dont_show" <?php selected( $opts['img_size'], 'dont_show' ); ?>><?php _e("Don't show images", 'recent-facebook-posts'); ?></option>
86
+ <option value="thumbnail" <?php selected( $opts['img_size'], 'thumbnail' ); ?>><?php _e('Thumbnail', 'recent-facebook-posts'); ?></option>
87
+ <option value="normal" <?php selected( $opts['img_size'], 'normal' ); ?>><?php _e('Normal', 'recent-facebook-posts'); ?></option>
88
  </select>
89
  </td>
90
  </tr>
124
 
125
  <h3 class="rfbp-title">Facebook Posts Cache</h3>
126
  <p><?php _e('Because fetching posts from Facebook is relatively slow the posts are cached for <strong>30 minutes</strong>. You can manually clear the cache using the button below.', 'recent-facebook-posts'); ?></p>
127
+ <form action="<?php echo admin_url( 'options-general.php?page=rfbp' ); ?>" method="post">
128
  <input type="hidden" name="rfbp-clear-cache" value="1" />
129
  <input type="submit" class="button-primary" value="<?php _e('Clear Cache', 'recent-facebook-posts'); ?>" />
130
  </form>
135
  <div class="rfbp-column rfbp-secondary">
136
 
137
  <div class="rfbp-box">
138
+ <h3 class="rfbp-title"><?php _e( 'Donate $10, $20 or $50', 'recent-facebook-posts' ); ?></h3>
139
+ <p><?php _e( 'I spent a lot of time developing this plugin and offering support for it. If you like it, consider supporting this plugin by donating a token of your appreciation.', 'recent-facebook-posts' ); ?></p>
140
 
141
  <div class="rfbp-donate">
142
  <form class="donate" action="https://www.paypal.com/cgi-bin/webscr" method="post">
147
  <input type="hidden" name="item_number" value="Recent Facebook Posts">
148
  <input type="hidden" name="currency_code" value="USD">
149
  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
150
+ <button name="submit" class="button-primary"><?php esc_html_e( 'Donate with PayPal', 'recent-facebook-posts' ); ?></button>
151
  <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
152
  </form>
153
  </div>
154
 
155
+ <p><?php _e( 'Some other ways to support this plugin', 'recent-facebook-posts' ); ?></p>
156
  <ul class="ul-square">
157
+ <li><a href="http://wordpress.org/support/view/plugin-reviews/recent-facebook-posts?rate=5#postform" target="_blank"><?php printf( __( 'Leave a %s review on WordPress.org', 'recent-facebook-posts' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ); ?></a></li>
158
+ <li><a href="http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/" target="_blank"><?php _e( 'Write about the plugin from your blog.', 'recent-facebook-posts' ); ?></a></li>
159
+ <li><a href="http://twitter.com/?status=I%20show%20recent%20facebook%20posts%20on%20my%20%23WordPress%20site%20using%20Recent%20Facebook%20Posts%20by%20%40DannyvanKooten%20-%20love%20it!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Frecent-facebook-posts%2F" target="_blank"><?php _e( 'Tweet about Recent Facebook Posts', 'recent-facebook-posts' ); ?></a></li>
160
+ <li><a href="http://wordpress.org/plugins/recent-facebook-posts/#compatibility"><?php _e( 'Vote "works" on the WordPress.org plugin page', 'recent-facebook-posts' ); ?></a></li>
161
  </ul>
162
  </div>
163
 
164
  <div class="rfbp-box">
165
+ <h3 class="rfbp-title"><?php _e( 'Looking for support?', 'recent-facebook-posts' ); ?></h3>
166
+ <p><?php printf( __( 'Please use the <a href="%s">plugin support forums</a> on WordPress.org.', 'recent-facebook-posts' ), 'http://wordpress.org/support/plugin/recent-facebook-posts' ); ?></p>
167
+ <p><?php printf( __( 'Take a close look at the <a href="%s">installation instructions</a> for help configuring the plugin and registering your own Facebook application, which is required to get this plugin to work.', 'recent-facebook-posts' ), 'http://wordpress.org/plugins/recent-facebook-posts/installation/' ); ?></p>
168
  </div>
169
 
170
  <div class="rfbp-box">
171
+ <h3 class="rfbp-title"><?php _e( 'Other Useful plugins', 'recent-facebook-posts' ); ?></h3>
172
  <ul class="ul-square">
173
  <li><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
174
  <li><a href="http://wordpress.org/plugins/scroll-triggered-boxes/">Scroll Triggered Boxes</a></li>
175
+ <li><a href="https://wordpress.org/plugins/dvk-social-sharing/">Social Sharing by Danny</a></li>
176
  <li><a href="http://wordpress.org/plugins/wysiwyg-widgets/">WYSIWYG Widgets</a></li>
177
  </ul>
178
  </div>
languages/recent-facebook-posts-nl_NL.mo CHANGED
Binary file
languages/recent-facebook-posts-nl_NL.po CHANGED
@@ -2,252 +2,379 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Recent Facebook Posts\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/recent-facebook-posts\n"
5
- "POT-Creation-Date: 2013-11-17 19:04+0100\n"
6
- "PO-Revision-Date: 2013-11-17 19:05+0100\n"
7
- "Last-Translator: Danny van Kooten <hi@dannyvankooten.com>\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
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-KeywordsList: _e;__;_n:1,2\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
  "X-Poedit-SearchPath-0: ../.\n"
18
 
19
- #: .././includes/class-admin.php:68
20
- msgid "Some settings have changed which invalidated the cached Facebook posts."
21
- msgstr ""
22
- "Bepaalde instellingen zijn gewijzigd waardoor de gecachte Facebook berichten "
23
- "niet meer kloppen."
24
-
25
- #: .././includes/class-admin.php:68
26
- msgid "Renew Cache"
27
- msgstr "Vernieuw Cache"
28
-
29
- #: .././includes/class-admin.php:99
30
- #, fuzzy
31
  msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
32
  msgstr "<strong>Cache geleegd!</strong> De cache is succesvol geleegd."
33
 
34
- #: .././includes/class-admin.php:112
35
  msgid "Settings"
36
  msgstr "Instellingen"
37
 
38
- #: .././includes/class-public.php:233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  msgid "likes"
40
  msgstr "vind ik leuks"
41
 
42
- #: .././includes/class-public.php:234
43
  msgid "comments"
44
  msgstr "reacties"
45
 
46
- #: .././includes/class-public.php:236
47
  #, php-format
48
  msgid "%1$s at %2$s"
49
  msgstr "%1$s om %2$s"
50
 
51
- #: .././includes/class-public.php:247
52
  msgid "No recent Facebook posts to show"
53
  msgstr "Er zijn geen recente Facebook berichten om te tonen."
54
 
55
- #: .././includes/class-public.php:249
56
  msgid "Admins only notice"
57
  msgstr "Bericht voor Administrators"
58
 
59
- #: .././includes/class-widget.php:11
 
 
 
 
 
60
  msgid "Lists a number of your most recent Facebook posts."
61
  msgstr "Toont de meest recente Facebook updates van een Facebook pagina."
62
 
63
- #: .././includes/class-widget.php:15
64
  msgid "Recent Facebook Posts"
65
  msgstr "Recente Facebook Berichten"
66
 
67
- #: .././includes/class-widget.php:37
68
  msgid "Title:"
69
  msgstr "Titel:"
70
 
71
- #: .././includes/class-widget.php:42
72
  msgid "Number of posts:"
73
  msgstr "Aantal berichten"
74
 
75
- #: .././includes/class-widget.php:47
76
  msgid "Excerpt length:"
77
  msgstr "Lengte van uitreksel"
78
 
79
- #: .././includes/class-widget.php:53
80
  msgid "Show like count?"
81
  msgstr "Toon aantal vind-ik-leuks?"
82
 
83
- #: .././includes/class-widget.php:58
84
  msgid "Show comment count?"
85
  msgstr "Toon aantal reacties?"
86
 
87
- #: .././includes/class-widget.php:63
88
- #, fuzzy
89
  msgid "Show link to Facebook page?"
90
  msgstr "Toon link naar Facebook pagina?"
91
 
92
- #: .././includes/class-widget.php:68
93
  msgid "Show link previews?"
94
  msgstr "Toon link voorbeelden?"
95
 
96
- #: .././includes/helper-functions.php:19
 
 
 
 
 
97
  msgid "just now"
98
  msgstr "Zojuist"
99
 
100
- #: .././includes/helper-functions.php:38
101
  #, php-format
102
  msgid "1 year ago"
103
  msgid_plural "%d years ago"
104
  msgstr[0] "1 jaar geleden"
105
  msgstr[1] "%d jaren geleden"
106
 
107
- #: .././includes/helper-functions.php:42
108
  #, php-format
109
  msgid "1 month ago"
110
  msgid_plural "%d months ago"
111
  msgstr[0] "1 maand geleden"
112
  msgstr[1] "%d maanden geleden"
113
 
114
- #: .././includes/helper-functions.php:46
115
  #, php-format
116
  msgid "1 week ago"
117
  msgid_plural "%d weeks ago"
118
  msgstr[0] "1 week geleden"
119
  msgstr[1] "%d weken geleden"
120
 
121
- #: .././includes/helper-functions.php:50
122
  #, php-format
123
  msgid "1 day ago"
124
  msgid_plural "%d days ago"
125
  msgstr[0] "1 dag geleden"
126
  msgstr[1] "%d dagen geleden"
127
 
128
- #: .././includes/helper-functions.php:54
129
  #, php-format
130
  msgid "1 hour ago"
131
  msgid_plural "%d hours ago"
132
  msgstr[0] "1 uur geleden"
133
  msgstr[1] "%d uren geleden"
134
 
135
- #: .././includes/helper-functions.php:58
136
  #, php-format
137
  msgid "1 minute ago"
138
  msgid_plural "%d minutes ago"
139
  msgstr[0] "1 minuut geleden"
140
  msgstr[1] "%d minuten geleden"
141
 
142
- #: .././includes/helper-functions.php:62
143
  #, php-format
144
  msgid "1 second ago"
145
  msgid_plural "%d seconds ago"
146
  msgstr[0] "1 seconde geleden"
147
  msgstr[1] "%d seconden geleden"
148
 
149
- #: .././includes/helper-functions.php:66
150
  msgid "Some time ago"
151
  msgstr "Een tijdje geleden"
152
 
153
- #: .././includes/views/settings_page.html.php:29
154
  msgid "Facebook Settings"
155
  msgstr "Facebook Instellingen"
156
 
157
- #: .././includes/views/settings_page.html.php:32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  msgid "Facebook App ID/API Key"
159
  msgstr "ID van Facebook app/API-sleutel"
160
 
161
  #: .././includes/views/settings_page.html.php:40
 
 
 
 
 
162
  msgid "Facebook App Secret"
163
  msgstr "Geheime sleutel van de Facebook app"
164
 
165
  #: .././includes/views/settings_page.html.php:48
 
 
 
 
 
166
  msgid "Facebook Page ID or Slug"
167
  msgstr "Facebook Pagina ID of slug"
168
 
169
- #: .././includes/views/settings_page.html.php:51
 
170
  msgid ""
171
- "Use this tool to find the numeric ID of the Facebook page you want to fetch "
172
- "posts from"
173
  msgstr ""
174
- "Gebruik deze website om het numerieke ID van je Facebook pagina te vinden."
 
175
 
176
- #: .././includes/views/settings_page.html.php:56
177
  msgid "Appearance"
178
  msgstr "Weergave"
179
 
180
- #: .././includes/views/settings_page.html.php:60
181
  msgid "Link text"
182
  msgstr "Link tekst"
183
 
184
- #: .././includes/views/settings_page.html.php:65
185
  msgid "Open links in new window?"
186
  msgstr "Open links in een nieuw venster?"
187
 
188
- #: .././includes/views/settings_page.html.php:70
189
- msgid "Load some default CSS?"
190
- msgstr "Laad standaard CSS (stijlregels) bestand?"
191
-
192
  #: .././includes/views/settings_page.html.php:76
 
 
 
 
193
  msgid "Image size"
194
  msgstr "Afbeeldingsgrootte"
195
 
196
- #: .././includes/views/settings_page.html.php:79
197
  msgid "Don't show images"
198
  msgstr "Toon geen afbeeldingen"
199
 
200
- #: .././includes/views/settings_page.html.php:80
201
  msgid "Thumbnail"
202
  msgstr "Thumbnail"
203
 
204
- #: .././includes/views/settings_page.html.php:81
205
  msgid "Normal"
206
  msgstr "Normaal"
207
 
208
- #: .././includes/views/settings_page.html.php:88
209
  msgid "Image dimensions"
210
  msgstr "Afbeelding afmetingen"
211
 
212
- #: .././includes/views/settings_page.html.php:91
 
 
 
 
213
  msgid "Max Width"
214
  msgstr "Maximale breedte"
215
 
216
- #: .././includes/views/settings_page.html.php:95
217
  msgid "Max Height"
218
  msgstr "Maximale hoogte"
219
 
220
- #: .././includes/views/settings_page.html.php:99
221
  msgid "Leave empty for default sizing"
222
  msgstr "Laat leeg voor standaard afmetingen."
223
 
224
- #: .././includes/views/settings_page.html.php:106
225
  msgid "Save Changes"
226
  msgstr "Wijzigen Opslaan"
227
 
228
- #: .././includes/views/settings_page.html.php:113
 
 
 
 
 
 
 
 
229
  msgid ""
230
- "Because fetching posts from Facebook is slow the posts are cached for "
231
- "<strong>30 minutes</strong>. You can manually clear the cache using the "
232
  "button below."
233
  msgstr ""
234
- "Omdat berichten van Facebook afhalen langzaam is worden berichten gecached "
235
- "voor <strong>30 minuten</strong>. Je kunt de cache manueel legen met behulp "
236
- "van onderstaande button."
237
 
238
- #: .././includes/views/settings_page.html.php:117
239
  msgid "Clear Cache"
240
  msgstr "Leeg Cache"
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  #~ msgid "Renew Facebook Posts"
243
  #~ msgstr "Vernieuw Facebook berichten"
244
 
245
  #~ msgid "Show attached links?"
246
  #~ msgstr "Toon bijgevoegde links?"
247
 
248
- #~ msgid "Configuration"
249
- #~ msgstr "Instellingen"
250
-
251
  #~ msgid "Cache expiry time"
252
  #~ msgstr "Cache tijd"
253
 
2
  msgstr ""
3
  "Project-Id-Version: Recent Facebook Posts\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/recent-facebook-posts\n"
5
+ "POT-Creation-Date: 2014-09-15 16:29+0100\n"
6
+ "PO-Revision-Date: 2014-09-15 16:35+0100\n"
7
+ "Last-Translator: Danny <hi@dannyvankooten.com>\n"
8
  "Language-Team: \n"
9
+ "Language: nl_NL\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.6.7\n"
14
  "X-Poedit-KeywordsList: _e;__;_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
  "X-Poedit-SearchPath-0: ../.\n"
19
 
20
+ #: .././includes/class-admin.php:146
 
 
 
 
 
 
 
 
 
 
 
21
  msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
22
  msgstr "<strong>Cache geleegd!</strong> De cache is succesvol geleegd."
23
 
24
+ #: .././includes/class-admin.php:159
25
  msgid "Settings"
26
  msgstr "Instellingen"
27
 
28
+ #: .././includes/class-admin.php:188
29
+ msgid "Your configuration seems to be okay and working. Nice work!."
30
+ msgstr "Je configuratie lijkt in orde en te werken. Mooi!"
31
+
32
+ #: .././includes/class-admin.php:190
33
+ msgid "The following error was encountered when testing your configuration."
34
+ msgstr "De volgende error trad op tijdens het testen van je configuratie."
35
+
36
+ #: .././includes/class-api.php:51 .././includes/class-api.php:164
37
+ msgid "Facebook error:"
38
+ msgstr "Facebook fout:"
39
+
40
+ #: .././includes/class-api.php:203
41
+ msgid "Connection error:"
42
+ msgstr "Connectiefout:"
43
+
44
+ #: .././includes/class-public.php:187
45
  msgid "likes"
46
  msgstr "vind ik leuks"
47
 
48
+ #: .././includes/class-public.php:188
49
  msgid "comments"
50
  msgstr "reacties"
51
 
52
+ #: .././includes/class-public.php:190
53
  #, php-format
54
  msgid "%1$s at %2$s"
55
  msgstr "%1$s om %2$s"
56
 
57
+ #: .././includes/class-public.php:204
58
  msgid "No recent Facebook posts to show"
59
  msgstr "Er zijn geen recente Facebook berichten om te tonen."
60
 
61
+ #: .././includes/class-public.php:206
62
  msgid "Admins only notice"
63
  msgstr "Bericht voor Administrators"
64
 
65
+ #: .././includes/class-public.php:206
66
+ #, php-format
67
+ msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
68
+ msgstr "Heb je de <a href=\"%s\">plugin geconfigureerd</a>?"
69
+
70
+ #: .././includes/class-widget.php:18
71
  msgid "Lists a number of your most recent Facebook posts."
72
  msgstr "Toont de meest recente Facebook updates van een Facebook pagina."
73
 
74
+ #: .././includes/class-widget.php:22
75
  msgid "Recent Facebook Posts"
76
  msgstr "Recente Facebook Berichten"
77
 
78
+ #: .././includes/class-widget.php:42
79
  msgid "Title:"
80
  msgstr "Titel:"
81
 
82
+ #: .././includes/class-widget.php:47
83
  msgid "Number of posts:"
84
  msgstr "Aantal berichten"
85
 
86
+ #: .././includes/class-widget.php:52
87
  msgid "Excerpt length:"
88
  msgstr "Lengte van uitreksel"
89
 
90
+ #: .././includes/class-widget.php:58
91
  msgid "Show like count?"
92
  msgstr "Toon aantal vind-ik-leuks?"
93
 
94
+ #: .././includes/class-widget.php:63
95
  msgid "Show comment count?"
96
  msgstr "Toon aantal reacties?"
97
 
98
+ #: .././includes/class-widget.php:68
 
99
  msgid "Show link to Facebook page?"
100
  msgstr "Toon link naar Facebook pagina?"
101
 
102
+ #: .././includes/class-widget.php:73
103
  msgid "Show link previews?"
104
  msgstr "Toon link voorbeelden?"
105
 
106
+ #: .././includes/functions/global.php:22
107
+ #: .././includes/views/settings_page.html.php:67
108
+ msgid "Find us on Facebook"
109
+ msgstr "Vind ons op Facebook"
110
+
111
+ #: .././includes/functions/helpers.php:23
112
  msgid "just now"
113
  msgstr "Zojuist"
114
 
115
+ #: .././includes/functions/helpers.php:42
116
  #, php-format
117
  msgid "1 year ago"
118
  msgid_plural "%d years ago"
119
  msgstr[0] "1 jaar geleden"
120
  msgstr[1] "%d jaren geleden"
121
 
122
+ #: .././includes/functions/helpers.php:46
123
  #, php-format
124
  msgid "1 month ago"
125
  msgid_plural "%d months ago"
126
  msgstr[0] "1 maand geleden"
127
  msgstr[1] "%d maanden geleden"
128
 
129
+ #: .././includes/functions/helpers.php:50
130
  #, php-format
131
  msgid "1 week ago"
132
  msgid_plural "%d weeks ago"
133
  msgstr[0] "1 week geleden"
134
  msgstr[1] "%d weken geleden"
135
 
136
+ #: .././includes/functions/helpers.php:54
137
  #, php-format
138
  msgid "1 day ago"
139
  msgid_plural "%d days ago"
140
  msgstr[0] "1 dag geleden"
141
  msgstr[1] "%d dagen geleden"
142
 
143
+ #: .././includes/functions/helpers.php:58
144
  #, php-format
145
  msgid "1 hour ago"
146
  msgid_plural "%d hours ago"
147
  msgstr[0] "1 uur geleden"
148
  msgstr[1] "%d uren geleden"
149
 
150
+ #: .././includes/functions/helpers.php:62
151
  #, php-format
152
  msgid "1 minute ago"
153
  msgid_plural "%d minutes ago"
154
  msgstr[0] "1 minuut geleden"
155
  msgstr[1] "%d minuten geleden"
156
 
157
+ #: .././includes/functions/helpers.php:66
158
  #, php-format
159
  msgid "1 second ago"
160
  msgid_plural "%d seconds ago"
161
  msgstr[0] "1 seconde geleden"
162
  msgstr[1] "%d seconden geleden"
163
 
164
+ #: .././includes/functions/helpers.php:70
165
  msgid "Some time ago"
166
  msgstr "Een tijdje geleden"
167
 
168
+ #: .././includes/views/settings_page.html.php:21
169
  msgid "Facebook Settings"
170
  msgstr "Facebook Instellingen"
171
 
172
+ #: .././includes/views/settings_page.html.php:26
173
+ msgid "This plugin needs a Facebook application to work."
174
+ msgstr ""
175
+ "Deze plugin heeft 'n Facebook applicatie nodig om zijn werk te kunnen doen."
176
+
177
+ #: .././includes/views/settings_page.html.php:27
178
+ msgid ""
179
+ "Please fill in the Facebook Settings fields after creating your application."
180
+ msgstr ""
181
+ "Vul aub de Facebook instellingen velden in na het maken van je Facebook "
182
+ "applicatie."
183
+
184
+ #: .././includes/views/settings_page.html.php:30
185
+ #, php-format
186
+ msgid ""
187
+ "Not sure how to proceed? Please take a close look at the <a href=\"%s"
188
+ "\">installation instructions</a>."
189
+ msgstr ""
190
+ "Geen idee hoe je verder moet? Bekijk aub de <a href=\"%s\">installatie "
191
+ "instructies</a>."
192
+
193
+ #: .././includes/views/settings_page.html.php:37
194
  msgid "Facebook App ID/API Key"
195
  msgstr "ID van Facebook app/API-sleutel"
196
 
197
  #: .././includes/views/settings_page.html.php:40
198
+ #, php-format
199
+ msgid "Get your App ID from %s."
200
+ msgstr "Verkrijg je App ID van %s."
201
+
202
+ #: .././includes/views/settings_page.html.php:45
203
  msgid "Facebook App Secret"
204
  msgstr "Geheime sleutel van de Facebook app"
205
 
206
  #: .././includes/views/settings_page.html.php:48
207
+ #, php-format
208
+ msgid "Get your App Secret from %s."
209
+ msgstr "Verkrijg je App Secret van %s."
210
+
211
+ #: .././includes/views/settings_page.html.php:53
212
  msgid "Facebook Page ID or Slug"
213
  msgstr "Facebook Pagina ID of slug"
214
 
215
+ #: .././includes/views/settings_page.html.php:56
216
+ #, php-format
217
  msgid ""
218
+ "Use <a href=\"%s\">this tool</a> to find the numeric ID of your Facebook "
219
+ "page."
220
  msgstr ""
221
+ "Gebruik <a href=\"%s\">deze website</a> om het numerieke ID van je Facebook "
222
+ "pagina te vinden."
223
 
224
+ #: .././includes/views/settings_page.html.php:62
225
  msgid "Appearance"
226
  msgstr "Weergave"
227
 
228
+ #: .././includes/views/settings_page.html.php:66
229
  msgid "Link text"
230
  msgstr "Link tekst"
231
 
232
+ #: .././includes/views/settings_page.html.php:71
233
  msgid "Open links in new window?"
234
  msgstr "Open links in een nieuw venster?"
235
 
 
 
 
 
236
  #: .././includes/views/settings_page.html.php:76
237
+ msgid "Load some default styles?"
238
+ msgstr "Laad wat standaard CSS stijlregels?"
239
+
240
+ #: .././includes/views/settings_page.html.php:82
241
  msgid "Image size"
242
  msgstr "Afbeeldingsgrootte"
243
 
244
+ #: .././includes/views/settings_page.html.php:85
245
  msgid "Don't show images"
246
  msgstr "Toon geen afbeeldingen"
247
 
248
+ #: .././includes/views/settings_page.html.php:86
249
  msgid "Thumbnail"
250
  msgstr "Thumbnail"
251
 
252
+ #: .././includes/views/settings_page.html.php:87
253
  msgid "Normal"
254
  msgstr "Normaal"
255
 
256
+ #: .././includes/views/settings_page.html.php:94
257
  msgid "Image dimensions"
258
  msgstr "Afbeelding afmetingen"
259
 
260
+ #: .././includes/views/settings_page.html.php:94
261
+ msgid "(in pixels, optional)"
262
+ msgstr "(in pixels, optioneel)"
263
+
264
+ #: .././includes/views/settings_page.html.php:97
265
  msgid "Max Width"
266
  msgstr "Maximale breedte"
267
 
268
+ #: .././includes/views/settings_page.html.php:101
269
  msgid "Max Height"
270
  msgstr "Maximale hoogte"
271
 
272
+ #: .././includes/views/settings_page.html.php:105
273
  msgid "Leave empty for default sizing"
274
  msgstr "Laat leeg voor standaard afmetingen."
275
 
276
+ #: .././includes/views/settings_page.html.php:112
277
  msgid "Save Changes"
278
  msgstr "Wijzigen Opslaan"
279
 
280
+ #: .././includes/views/settings_page.html.php:119
281
+ msgid "Test your plugin configuration using the button below."
282
+ msgstr "Test je plugin configuratie door middel van onderstaande button."
283
+
284
+ #: .././includes/views/settings_page.html.php:122
285
+ msgid "Test Configuration"
286
+ msgstr "Test Configuratie"
287
+
288
+ #: .././includes/views/settings_page.html.php:126
289
  msgid ""
290
+ "Because fetching posts from Facebook is relatively slow the posts are cached "
291
+ "for <strong>30 minutes</strong>. You can manually clear the cache using the "
292
  "button below."
293
  msgstr ""
294
+ "Omdat berichten van Facebook afhalen langzaam is worden berichten lokaal "
295
+ "gecached voor <strong>30 minuten</strong>. Je kunt de cache manueel legen "
296
+ "met behulp van onderstaande button."
297
 
298
+ #: .././includes/views/settings_page.html.php:129
299
  msgid "Clear Cache"
300
  msgstr "Leeg Cache"
301
 
302
+ #: .././includes/views/settings_page.html.php:138
303
+ msgid "Donate $10, $20 or $50"
304
+ msgstr "Doneer €10, €20 of €50"
305
+
306
+ #: .././includes/views/settings_page.html.php:139
307
+ msgid ""
308
+ "I spent a lot of time developing this plugin and offering support for it. If "
309
+ "you like it, consider supporting this plugin by donating a token of your "
310
+ "appreciation."
311
+ msgstr ""
312
+ "Ik heb flink wat tijd besteedt aan het ontwikkelen en ondersteunen van deze "
313
+ "plugin. Als je blij bent met mijn werk, overweeg dan een token van je "
314
+ "waardering te doneren."
315
+
316
+ #: .././includes/views/settings_page.html.php:155
317
+ msgid "Some other ways to support this plugin"
318
+ msgstr "Andere manieren om deze plugin te steunen"
319
+
320
+ #: .././includes/views/settings_page.html.php:157
321
+ #, php-format
322
+ msgid "Leave a %s review on WordPress.org"
323
+ msgstr "Laat een %s review achter op WordPress.org"
324
+
325
+ #: .././includes/views/settings_page.html.php:158
326
+ msgid "Write about the plugin from your blog."
327
+ msgstr "Schrijf over de plugin op je blog."
328
+
329
+ #: .././includes/views/settings_page.html.php:159
330
+ msgid "Tweet about Recent Facebook Posts"
331
+ msgstr "Tweet over de Recent Facebook Posts plugin"
332
+
333
+ #: .././includes/views/settings_page.html.php:160
334
+ msgid "Vote \"works\" on the WordPress.org plugin page"
335
+ msgstr "Geef aan dat de plugin \"works\" op de WordPress.org plugin pagina."
336
+
337
+ #: .././includes/views/settings_page.html.php:165
338
+ msgid "Looking for support?"
339
+ msgstr "Ondersteuning nodig?"
340
+
341
+ #: .././includes/views/settings_page.html.php:166
342
+ #, php-format
343
+ msgid ""
344
+ "Please use the <a href=\"%s\">plugin support forums</a> on WordPress.org."
345
+ msgstr ""
346
+ "Gebruik aub de <a href=\"%s\">plugin support forums</a> op WordPress.org."
347
+
348
+ #: .././includes/views/settings_page.html.php:167
349
+ #, php-format
350
+ msgid ""
351
+ "Take a close look at the <a href=\"%s\">installation instructions</a> for "
352
+ "help configuring the plugin and registering your own Facebook application, "
353
+ "which is required to get this plugin to work."
354
+ msgstr ""
355
+ "Lees de <a href=\"%s\">installatie instructies</a> nauwkeurig voor help met "
356
+ "het configureren van de plugin en het registreren van je eigen Facebook "
357
+ "applicatie. Dit is vereist om de plugin aan de praat te krijgen."
358
+
359
+ #: .././includes/views/settings_page.html.php:171
360
+ msgid "Other Useful plugins"
361
+ msgstr "Andere handige plugins"
362
+
363
+ #~ msgid ""
364
+ #~ "Some settings have changed which invalidated the cached Facebook posts."
365
+ #~ msgstr ""
366
+ #~ "Bepaalde instellingen zijn gewijzigd waardoor de gecachte Facebook "
367
+ #~ "berichten niet meer kloppen."
368
+
369
+ #~ msgid "Renew Cache"
370
+ #~ msgstr "Vernieuw Cache"
371
+
372
  #~ msgid "Renew Facebook Posts"
373
  #~ msgstr "Vernieuw Facebook berichten"
374
 
375
  #~ msgid "Show attached links?"
376
  #~ msgstr "Toon bijgevoegde links?"
377
 
 
 
 
378
  #~ msgid "Cache expiry time"
379
  #~ msgstr "Cache tijd"
380
 
languages/recent-facebook-posts.mo CHANGED
Binary file
languages/recent-facebook-posts.po CHANGED
@@ -2,238 +2,350 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Recent Facebook Posts\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/recent-facebook-posts\n"
5
- "POT-Creation-Date: 2013-11-17 19:06+0100\n"
6
- "PO-Revision-Date: 2013-11-17 19:06+0100\n"
7
- "Last-Translator: Danny van Kooten <hi@dannyvankooten.com>\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
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-KeywordsList: _e;__;_n:1,2\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
  "X-Poedit-SearchPath-0: ../.\n"
18
 
19
- #: .././includes/class-admin.php:68
20
- msgid "Some settings have changed which invalidated the cached Facebook posts."
21
  msgstr ""
22
 
23
- #: .././includes/class-admin.php:68
24
- #: .././includes/views/settings_page.html.php:117
25
- msgid "Clear Cache"
26
  msgstr ""
27
 
28
- #: .././includes/class-admin.php:99
29
- msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
30
  msgstr ""
31
 
32
- #: .././includes/class-admin.php:112
33
- msgid "Settings"
34
  msgstr ""
35
 
36
- #: .././includes/class-public.php:233
 
 
 
 
 
 
 
 
37
  msgid "likes"
38
  msgstr ""
39
 
40
- #: .././includes/class-public.php:234
41
  msgid "comments"
42
  msgstr ""
43
 
44
- #: .././includes/class-public.php:236
45
  #, php-format
46
  msgid "%1$s at %2$s"
47
  msgstr ""
48
 
49
- #: .././includes/class-public.php:247
50
  msgid "No recent Facebook posts to show"
51
  msgstr ""
52
 
53
- #: .././includes/class-public.php:249
54
  msgid "Admins only notice"
55
  msgstr ""
56
 
57
- #: .././includes/class-widget.php:11
 
 
 
 
 
58
  msgid "Lists a number of your most recent Facebook posts."
59
  msgstr ""
60
 
61
- #: .././includes/class-widget.php:15
62
  msgid "Recent Facebook Posts"
63
  msgstr ""
64
 
65
- #: .././includes/class-widget.php:37
66
  msgid "Title:"
67
  msgstr ""
68
 
69
- #: .././includes/class-widget.php:42
70
  msgid "Number of posts:"
71
  msgstr ""
72
 
73
- #: .././includes/class-widget.php:47
74
  msgid "Excerpt length:"
75
  msgstr ""
76
 
77
- #: .././includes/class-widget.php:53
78
  msgid "Show like count?"
79
  msgstr ""
80
 
81
- #: .././includes/class-widget.php:58
82
  msgid "Show comment count?"
83
  msgstr ""
84
 
85
- #: .././includes/class-widget.php:63
86
  msgid "Show link to Facebook page?"
87
  msgstr ""
88
 
89
- #: .././includes/class-widget.php:68
90
  msgid "Show link previews?"
91
  msgstr ""
92
 
93
- #: .././includes/helper-functions.php:19
 
 
 
 
 
94
  msgid "just now"
95
  msgstr ""
96
 
97
- #: .././includes/helper-functions.php:38
98
  #, php-format
99
  msgid "1 year ago"
100
  msgid_plural "%d years ago"
101
  msgstr[0] ""
102
  msgstr[1] ""
103
 
104
- #: .././includes/helper-functions.php:42
105
  #, php-format
106
  msgid "1 month ago"
107
  msgid_plural "%d months ago"
108
  msgstr[0] ""
109
  msgstr[1] ""
110
 
111
- #: .././includes/helper-functions.php:46
112
  #, php-format
113
  msgid "1 week ago"
114
  msgid_plural "%d weeks ago"
115
  msgstr[0] ""
116
  msgstr[1] ""
117
 
118
- #: .././includes/helper-functions.php:50
119
  #, php-format
120
  msgid "1 day ago"
121
  msgid_plural "%d days ago"
122
  msgstr[0] ""
123
  msgstr[1] ""
124
 
125
- #: .././includes/helper-functions.php:54
126
  #, php-format
127
  msgid "1 hour ago"
128
  msgid_plural "%d hours ago"
129
  msgstr[0] ""
130
  msgstr[1] ""
131
 
132
- #: .././includes/helper-functions.php:58
133
  #, php-format
134
  msgid "1 minute ago"
135
  msgid_plural "%d minutes ago"
136
  msgstr[0] ""
137
  msgstr[1] ""
138
 
139
- #: .././includes/helper-functions.php:62
140
  #, php-format
141
  msgid "1 second ago"
142
  msgid_plural "%d seconds ago"
143
  msgstr[0] ""
144
  msgstr[1] ""
145
 
146
- #: .././includes/helper-functions.php:66
147
  msgid "Some time ago"
148
  msgstr ""
149
 
150
- #: .././includes/views/settings_page.html.php:29
151
  msgid "Facebook Settings"
152
  msgstr ""
153
 
154
- #: .././includes/views/settings_page.html.php:32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  msgid "Facebook App ID/API Key"
156
  msgstr ""
157
 
158
  #: .././includes/views/settings_page.html.php:40
 
 
 
 
 
159
  msgid "Facebook App Secret"
160
  msgstr ""
161
 
162
  #: .././includes/views/settings_page.html.php:48
 
 
 
 
 
163
  msgid "Facebook Page ID or Slug"
164
  msgstr ""
165
 
166
- #: .././includes/views/settings_page.html.php:51
 
167
  msgid ""
168
- "Use this tool to find the numeric ID of the Facebook page you want to fetch "
169
- "posts from"
170
  msgstr ""
171
 
172
- #: .././includes/views/settings_page.html.php:56
173
  msgid "Appearance"
174
  msgstr ""
175
 
176
- #: .././includes/views/settings_page.html.php:60
177
  msgid "Link text"
178
  msgstr ""
179
 
180
- #: .././includes/views/settings_page.html.php:65
181
  msgid "Open links in new window?"
182
  msgstr ""
183
 
184
- #: .././includes/views/settings_page.html.php:70
185
- msgid "Load some default CSS?"
186
  msgstr ""
187
 
188
- #: .././includes/views/settings_page.html.php:76
189
  msgid "Image size"
190
  msgstr ""
191
 
192
- #: .././includes/views/settings_page.html.php:79
193
  msgid "Don't show images"
194
  msgstr ""
195
 
196
- #: .././includes/views/settings_page.html.php:80
197
  msgid "Thumbnail"
198
  msgstr ""
199
 
200
- #: .././includes/views/settings_page.html.php:81
201
  msgid "Normal"
202
  msgstr ""
203
 
204
- #: .././includes/views/settings_page.html.php:88
205
  msgid "Image dimensions"
206
  msgstr ""
207
 
208
- #: .././includes/views/settings_page.html.php:91
 
 
 
 
209
  msgid "Max Width"
210
  msgstr ""
211
 
212
- #: .././includes/views/settings_page.html.php:95
213
  msgid "Max Height"
214
  msgstr ""
215
 
216
- #: .././includes/views/settings_page.html.php:99
217
  msgid "Leave empty for default sizing"
218
  msgstr ""
219
 
220
- #: .././includes/views/settings_page.html.php:106
221
  msgid "Save Changes"
222
  msgstr ""
223
 
224
- #: .././includes/views/settings_page.html.php:113
 
 
 
 
 
 
 
 
225
  msgid ""
226
- "Because fetching posts from Facebook is slow the posts are cached for "
227
- "<strong>30 minutes</strong>. You can manually clear the cache using the "
228
  "button below."
229
  msgstr ""
230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  #~ msgid "Show attached links?"
232
  #~ msgstr "Toon bijgevoegde links?"
233
 
234
- #~ msgid "Configuration"
235
- #~ msgstr "Instellingen"
236
-
237
  #~ msgid "Cache expiry time"
238
  #~ msgstr "Cache tijd"
239
 
2
  msgstr ""
3
  "Project-Id-Version: Recent Facebook Posts\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/recent-facebook-posts\n"
5
+ "POT-Creation-Date: 2014-09-15 16:28+0100\n"
6
+ "PO-Revision-Date: 2014-09-15 16:28+0100\n"
7
+ "Last-Translator: Danny <hi@dannyvankooten.com>\n"
8
  "Language-Team: \n"
9
+ "Language: en_US\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.6.7\n"
14
  "X-Poedit-KeywordsList: _e;__;_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
  "X-Poedit-SearchPath-0: ../.\n"
19
 
20
+ #: .././includes/class-admin.php:146
21
+ msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
22
  msgstr ""
23
 
24
+ #: .././includes/class-admin.php:159
25
+ msgid "Settings"
 
26
  msgstr ""
27
 
28
+ #: .././includes/class-admin.php:188
29
+ msgid "Your configuration seems to be okay and working. Nice work!."
30
  msgstr ""
31
 
32
+ #: .././includes/class-admin.php:190
33
+ msgid "The following error was encountered when testing your configuration."
34
  msgstr ""
35
 
36
+ #: .././includes/class-api.php:51 .././includes/class-api.php:164
37
+ msgid "Facebook error:"
38
+ msgstr ""
39
+
40
+ #: .././includes/class-api.php:203
41
+ msgid "Connection error:"
42
+ msgstr ""
43
+
44
+ #: .././includes/class-public.php:187
45
  msgid "likes"
46
  msgstr ""
47
 
48
+ #: .././includes/class-public.php:188
49
  msgid "comments"
50
  msgstr ""
51
 
52
+ #: .././includes/class-public.php:190
53
  #, php-format
54
  msgid "%1$s at %2$s"
55
  msgstr ""
56
 
57
+ #: .././includes/class-public.php:204
58
  msgid "No recent Facebook posts to show"
59
  msgstr ""
60
 
61
+ #: .././includes/class-public.php:206
62
  msgid "Admins only notice"
63
  msgstr ""
64
 
65
+ #: .././includes/class-public.php:206
66
+ #, php-format
67
+ msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
68
+ msgstr ""
69
+
70
+ #: .././includes/class-widget.php:18
71
  msgid "Lists a number of your most recent Facebook posts."
72
  msgstr ""
73
 
74
+ #: .././includes/class-widget.php:22
75
  msgid "Recent Facebook Posts"
76
  msgstr ""
77
 
78
+ #: .././includes/class-widget.php:42
79
  msgid "Title:"
80
  msgstr ""
81
 
82
+ #: .././includes/class-widget.php:47
83
  msgid "Number of posts:"
84
  msgstr ""
85
 
86
+ #: .././includes/class-widget.php:52
87
  msgid "Excerpt length:"
88
  msgstr ""
89
 
90
+ #: .././includes/class-widget.php:58
91
  msgid "Show like count?"
92
  msgstr ""
93
 
94
+ #: .././includes/class-widget.php:63
95
  msgid "Show comment count?"
96
  msgstr ""
97
 
98
+ #: .././includes/class-widget.php:68
99
  msgid "Show link to Facebook page?"
100
  msgstr ""
101
 
102
+ #: .././includes/class-widget.php:73
103
  msgid "Show link previews?"
104
  msgstr ""
105
 
106
+ #: .././includes/functions/global.php:22
107
+ #: .././includes/views/settings_page.html.php:67
108
+ msgid "Find us on Facebook"
109
+ msgstr ""
110
+
111
+ #: .././includes/functions/helpers.php:23
112
  msgid "just now"
113
  msgstr ""
114
 
115
+ #: .././includes/functions/helpers.php:42
116
  #, php-format
117
  msgid "1 year ago"
118
  msgid_plural "%d years ago"
119
  msgstr[0] ""
120
  msgstr[1] ""
121
 
122
+ #: .././includes/functions/helpers.php:46
123
  #, php-format
124
  msgid "1 month ago"
125
  msgid_plural "%d months ago"
126
  msgstr[0] ""
127
  msgstr[1] ""
128
 
129
+ #: .././includes/functions/helpers.php:50
130
  #, php-format
131
  msgid "1 week ago"
132
  msgid_plural "%d weeks ago"
133
  msgstr[0] ""
134
  msgstr[1] ""
135
 
136
+ #: .././includes/functions/helpers.php:54
137
  #, php-format
138
  msgid "1 day ago"
139
  msgid_plural "%d days ago"
140
  msgstr[0] ""
141
  msgstr[1] ""
142
 
143
+ #: .././includes/functions/helpers.php:58
144
  #, php-format
145
  msgid "1 hour ago"
146
  msgid_plural "%d hours ago"
147
  msgstr[0] ""
148
  msgstr[1] ""
149
 
150
+ #: .././includes/functions/helpers.php:62
151
  #, php-format
152
  msgid "1 minute ago"
153
  msgid_plural "%d minutes ago"
154
  msgstr[0] ""
155
  msgstr[1] ""
156
 
157
+ #: .././includes/functions/helpers.php:66
158
  #, php-format
159
  msgid "1 second ago"
160
  msgid_plural "%d seconds ago"
161
  msgstr[0] ""
162
  msgstr[1] ""
163
 
164
+ #: .././includes/functions/helpers.php:70
165
  msgid "Some time ago"
166
  msgstr ""
167
 
168
+ #: .././includes/views/settings_page.html.php:21
169
  msgid "Facebook Settings"
170
  msgstr ""
171
 
172
+ #: .././includes/views/settings_page.html.php:26
173
+ msgid "This plugin needs a Facebook application to work."
174
+ msgstr ""
175
+
176
+ #: .././includes/views/settings_page.html.php:27
177
+ msgid ""
178
+ "Please fill in the Facebook Settings fields after creating your application."
179
+ msgstr ""
180
+
181
+ #: .././includes/views/settings_page.html.php:30
182
+ #, php-format
183
+ msgid ""
184
+ "Not sure how to proceed? Please take a close look at the <a href=\"%s"
185
+ "\">installation instructions</a>."
186
+ msgstr ""
187
+
188
+ #: .././includes/views/settings_page.html.php:37
189
  msgid "Facebook App ID/API Key"
190
  msgstr ""
191
 
192
  #: .././includes/views/settings_page.html.php:40
193
+ #, php-format
194
+ msgid "Get your App ID from %s."
195
+ msgstr ""
196
+
197
+ #: .././includes/views/settings_page.html.php:45
198
  msgid "Facebook App Secret"
199
  msgstr ""
200
 
201
  #: .././includes/views/settings_page.html.php:48
202
+ #, php-format
203
+ msgid "Get your App Secret from %s."
204
+ msgstr ""
205
+
206
+ #: .././includes/views/settings_page.html.php:53
207
  msgid "Facebook Page ID or Slug"
208
  msgstr ""
209
 
210
+ #: .././includes/views/settings_page.html.php:56
211
+ #, php-format
212
  msgid ""
213
+ "Use <a href=\"%s\">this tool</a> to find the numeric ID of your Facebook "
214
+ "page."
215
  msgstr ""
216
 
217
+ #: .././includes/views/settings_page.html.php:62
218
  msgid "Appearance"
219
  msgstr ""
220
 
221
+ #: .././includes/views/settings_page.html.php:66
222
  msgid "Link text"
223
  msgstr ""
224
 
225
+ #: .././includes/views/settings_page.html.php:71
226
  msgid "Open links in new window?"
227
  msgstr ""
228
 
229
+ #: .././includes/views/settings_page.html.php:76
230
+ msgid "Load some default styles?"
231
  msgstr ""
232
 
233
+ #: .././includes/views/settings_page.html.php:82
234
  msgid "Image size"
235
  msgstr ""
236
 
237
+ #: .././includes/views/settings_page.html.php:85
238
  msgid "Don't show images"
239
  msgstr ""
240
 
241
+ #: .././includes/views/settings_page.html.php:86
242
  msgid "Thumbnail"
243
  msgstr ""
244
 
245
+ #: .././includes/views/settings_page.html.php:87
246
  msgid "Normal"
247
  msgstr ""
248
 
249
+ #: .././includes/views/settings_page.html.php:94
250
  msgid "Image dimensions"
251
  msgstr ""
252
 
253
+ #: .././includes/views/settings_page.html.php:94
254
+ msgid "(in pixels, optional)"
255
+ msgstr ""
256
+
257
+ #: .././includes/views/settings_page.html.php:97
258
  msgid "Max Width"
259
  msgstr ""
260
 
261
+ #: .././includes/views/settings_page.html.php:101
262
  msgid "Max Height"
263
  msgstr ""
264
 
265
+ #: .././includes/views/settings_page.html.php:105
266
  msgid "Leave empty for default sizing"
267
  msgstr ""
268
 
269
+ #: .././includes/views/settings_page.html.php:112
270
  msgid "Save Changes"
271
  msgstr ""
272
 
273
+ #: .././includes/views/settings_page.html.php:119
274
+ msgid "Test your plugin configuration using the button below."
275
+ msgstr ""
276
+
277
+ #: .././includes/views/settings_page.html.php:122
278
+ msgid "Test Configuration"
279
+ msgstr ""
280
+
281
+ #: .././includes/views/settings_page.html.php:126
282
  msgid ""
283
+ "Because fetching posts from Facebook is relatively slow the posts are cached "
284
+ "for <strong>30 minutes</strong>. You can manually clear the cache using the "
285
  "button below."
286
  msgstr ""
287
 
288
+ #: .././includes/views/settings_page.html.php:129
289
+ msgid "Clear Cache"
290
+ msgstr ""
291
+
292
+ #: .././includes/views/settings_page.html.php:138
293
+ msgid "Donate $10, $20 or $50"
294
+ msgstr ""
295
+
296
+ #: .././includes/views/settings_page.html.php:139
297
+ msgid ""
298
+ "I spent a lot of time developing this plugin and offering support for it. If "
299
+ "you like it, consider supporting this plugin by donating a token of your "
300
+ "appreciation."
301
+ msgstr ""
302
+
303
+ #: .././includes/views/settings_page.html.php:155
304
+ msgid "Some other ways to support this plugin"
305
+ msgstr ""
306
+
307
+ #: .././includes/views/settings_page.html.php:157
308
+ #, php-format
309
+ msgid "Leave a %s review on WordPress.org"
310
+ msgstr ""
311
+
312
+ #: .././includes/views/settings_page.html.php:158
313
+ msgid "Write about the plugin from your blog."
314
+ msgstr ""
315
+
316
+ #: .././includes/views/settings_page.html.php:159
317
+ msgid "Tweet about Recent Facebook Posts"
318
+ msgstr ""
319
+
320
+ #: .././includes/views/settings_page.html.php:160
321
+ msgid "Vote \"works\" on the WordPress.org plugin page"
322
+ msgstr ""
323
+
324
+ #: .././includes/views/settings_page.html.php:165
325
+ msgid "Looking for support?"
326
+ msgstr ""
327
+
328
+ #: .././includes/views/settings_page.html.php:166
329
+ #, php-format
330
+ msgid ""
331
+ "Please use the <a href=\"%s\">plugin support forums</a> on WordPress.org."
332
+ msgstr ""
333
+
334
+ #: .././includes/views/settings_page.html.php:167
335
+ #, php-format
336
+ msgid ""
337
+ "Take a close look at the <a href=\"%s\">installation instructions</a> for "
338
+ "help configuring the plugin and registering your own Facebook application, "
339
+ "which is required to get this plugin to work."
340
+ msgstr ""
341
+
342
+ #: .././includes/views/settings_page.html.php:171
343
+ msgid "Other Useful plugins"
344
+ msgstr ""
345
+
346
  #~ msgid "Show attached links?"
347
  #~ msgstr "Toon bijgevoegde links?"
348
 
 
 
 
349
  #~ msgid "Cache expiry time"
350
  #~ msgstr "Cache tijd"
351
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://dannyvankooten.com/donate/
4
  Tags: facebook,posts,fanpage,recent posts,fb,like box alternative,widget,facebook widget,widgets,facebook updates,like button,fb posts
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
- Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -28,16 +28,18 @@ Display a list of your most recent Facebook posts in your posts or pages using t
28
  * Easy Configuration, the plugin comes with a comprehensive [installation guide](http://wordpress.org/plugins/recent-facebook-posts/installation/) and [screenshots](http://wordpress.org/plugins/recent-facebook-posts/screenshots/).
29
  * Translation ready!
30
 
31
- **Demo**
 
 
 
32
 
33
- There is a demo on [my own website](http://dannyvankooten.com/), I use the plugin to show my most recent Facebook post in the footer.
34
 
35
  **Other Links**
36
 
37
- * [Recent Facebook Posts for WordPress](http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/)
38
- * Using MailChimp to send out email newsletters and looking to grow your lists? Try [MailChimp for WordPress](http://wordpress.org/plugins/mailchimp-for-wp/).
39
- * Check out more [WordPress plugins](http://dannyvankooten.com/wordpress-plugins/) by Danny van Kooten
40
- * You should follow [@DannyvanKooten](http://twitter.com/DannyvanKooten) on Twitter.
41
 
42
  == Installation ==
43
 
@@ -146,6 +148,13 @@ add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
146
 
147
  == Changelog ==
148
 
 
 
 
 
 
 
 
149
  = 2.0 - September 15, 2014 =
150
 
151
  **Fixes**
@@ -337,5 +346,8 @@ add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
337
 
338
  == Upgrade Notice ==
339
 
 
 
 
340
  = 2.0 =
341
  Fixed issue with Emojis breaking all posts. Various other code improvements.
4
  Tags: facebook,posts,fanpage,recent posts,fb,like box alternative,widget,facebook widget,widgets,facebook updates,like button,fb posts
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
+ Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
28
  * Easy Configuration, the plugin comes with a comprehensive [installation guide](http://wordpress.org/plugins/recent-facebook-posts/installation/) and [screenshots](http://wordpress.org/plugins/recent-facebook-posts/screenshots/).
29
  * Translation ready!
30
 
31
+ **Translations**
32
+ English (en_US) - [Danny van Kooten](http://dannyvankooten.com/)
33
+ Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com/)
34
+ Looking for more translations..
35
 
36
+ If you have [created your own language pack](http://codex.wordpress.org/Translating_WordPress), you can send me the language files so that I can bundle it into the Recent Facebook Posts plugin. [You can download the latest PO file here](http://plugins.svn.wordpress.org/recent-facebook-posts/trunk/languages/recent-facebook-posts.po).
37
 
38
  **Other Links**
39
 
40
+ * Using MailChimp to send out email newsletters? You should [try MailChimp for WordPress](http://wordpress.org/plugins/mailchimp-for-wp/).
41
+ * Check out more [WordPress plugins](http://dannyvankooten.com/wordpress-plugins/) by the same author
42
+ * Follow [@DannyvanKooten](http://twitter.com/DannyvanKooten) on Twitter.
 
43
 
44
  == Installation ==
45
 
148
 
149
  == Changelog ==
150
 
151
+ = 2.0.1 - September 15, 2014 =
152
+
153
+ **Improvements**
154
+
155
+ - The plugin will now show a detailed error message if anything related to the connection to Facebook failed.
156
+ - Updated Dutch translation
157
+
158
  = 2.0 - September 15, 2014 =
159
 
160
  **Fixes**
346
 
347
  == Upgrade Notice ==
348
 
349
+ = 2.0.1 =
350
+ Fixed issue with Emojis in Facebook statuses, updated translations and various other improvements.
351
+
352
  = 2.0 =
353
  Fixed issue with Emojis breaking all posts. Various other code improvements.
recent-facebook-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/
5
  Description: Lists most recent posts from a public Facebook page.
6
- Version: 2.0
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
@@ -11,7 +11,7 @@ Domain Path: /languages/
11
  License: GPL3 or later
12
 
13
  Recent Facebook Posts Plugin
14
- Copyright (C) 2012-2013, Danny van Kooten, hi@dannyvankooten.com
15
 
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
@@ -32,20 +32,30 @@ if( ! defined( 'ABSPATH' ) ) {
32
  }
33
 
34
  // Plugin Constants
35
- define( 'RFBP_VERSION', '2.0' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
- // Include Global code
39
- require RFBP_PLUGIN_DIR . 'includes/functions/global.php';
 
 
40
 
41
- if( ! is_admin() ) {
 
42
 
43
- rfbp_get_class();
44
 
45
- } elseif( ! defined("DOING_AJAX") || ! DOING_AJAX ) {
 
46
 
47
- require RFBP_PLUGIN_DIR . 'includes/class-admin.php';
48
- new RFBP_Admin();
 
 
 
 
49
 
50
  }
51
 
 
 
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/
5
  Description: Lists most recent posts from a public Facebook page.
6
+ Version: 2.0.1
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
11
  License: GPL3 or later
12
 
13
  Recent Facebook Posts Plugin
14
+ Copyright (C) 2012-2014, Danny van Kooten, hi@dannyvankooten.com
15
 
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
32
  }
33
 
34
  // Plugin Constants
35
+ define( 'RFBP_VERSION', '2.0.1' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
+ /**
39
+ * Load the plugin files at `plugins_loaded:10`
40
+ */
41
+ function __rfbp_bootstrap() {
42
 
43
+ // Include Global code
44
+ require RFBP_PLUGIN_DIR . 'includes/functions/global.php';
45
 
46
+ if( ! is_admin() ) {
47
 
48
+ require RFBP_PLUGIN_DIR . 'includes/class-public.php';
49
+ new RFBP_Public();
50
 
51
+ } elseif( ! defined("DOING_AJAX") || ! DOING_AJAX ) {
52
+
53
+ require RFBP_PLUGIN_DIR . 'includes/class-admin.php';
54
+ new RFBP_Admin();
55
+
56
+ }
57
 
58
  }
59
 
60
+ add_action( 'plugins_loaded', '__rfbp_bootstrap' );
61
+