Recent Facebook Posts - Version 2.0.10

Version Description

Download this release

Release Info

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

Code changes from version 2.0.9 to 2.0.10

CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
  Changelog
2
  ============
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ### 2.0.9 - July 25, 2016
5
 
6
  **Improvements**
1
  Changelog
2
  ============
3
 
4
+ ### 2.0.10 - September 15, 2016
5
+
6
+ **Improvements**
7
+
8
+ - Added additional CSS class to post container when post has media elements. Thanks [Robbert van Mourik](https://github.com/rvmourik)!
9
+ - Accessibility improvements to output.
10
+
11
+ **Additions**
12
+
13
+ - Added Norwegian translations, thanks to Joakim O. Saunes.
14
+ - Added `rfbp_render_before` and `rfbp_render_after` filters. Thanks [Justin](https://github.com/dannyvankooten/recent-facebook-posts/pull/19)!
15
+
16
+
17
  ### 2.0.9 - July 25, 2016
18
 
19
  **Improvements**
includes/class-admin.php CHANGED
@@ -11,6 +11,20 @@ class RFBP_Admin {
11
  */
12
  private $cache_cleared = false;
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Add hooks
16
  */
@@ -65,15 +79,13 @@ class RFBP_Admin {
65
  // upgrade to 1.8.5
66
  if( version_compare( $db_version, '1.8.5', '<' ) ) {
67
 
68
- $settings = rfbp_get_settings();
69
-
70
  // rename `link_text` index to `page_link_text`
71
- if ( isset( $settings['link_text'] ) ) {
72
- $settings['page_link_text'] = $settings['link_text'];
73
- unset( $settings['link_text'] );
74
  }
75
 
76
- update_option( 'rfb_settings', $settings );
77
  }
78
 
79
  // Update version in database
@@ -95,7 +107,7 @@ class RFBP_Admin {
95
  * @return mixed
96
  */
97
  public function sanitize_settings( $opts ) {
98
- $old_opts = rfbp_get_settings();
99
 
100
  // fb config
101
  $opts['app_id'] = sanitize_text_field( $opts['app_id'] );
@@ -146,8 +158,7 @@ class RFBP_Admin {
146
  * Shows the RFBP settings page
147
  */
148
  public function settings_page() {
149
-
150
- $opts = rfbp_get_settings();
151
 
152
  // show user-friendly error message
153
  if( $this->cache_cleared ) {
@@ -177,9 +188,8 @@ class RFBP_Admin {
177
  * @param string $page_id
178
  * @return bool
179
  */
180
- public function test_facebook_api( $app_id = '', $app_secret = '', $page_id = '' )
181
- {
182
- $opts = rfbp_get_settings();
183
 
184
  if( '' === $app_id ) {
185
  $app_id = $opts['app_id'];
11
  */
12
  private $cache_cleared = false;
13
 
14
+ /**
15
+ * @var array
16
+ */
17
+ private $settings;
18
+
19
+ /**
20
+ * RFBP_Admin constructor.
21
+ *
22
+ * @param array $settings
23
+ */
24
+ public function __construct( $settings ) {
25
+ $this->settings = $settings;
26
+ }
27
+
28
  /**
29
  * Add hooks
30
  */
79
  // upgrade to 1.8.5
80
  if( version_compare( $db_version, '1.8.5', '<' ) ) {
81
 
 
 
82
  // rename `link_text` index to `page_link_text`
83
+ if ( isset( $this->settings['link_text'] ) ) {
84
+ $this->settings['page_link_text'] = $this->settings['link_text'];
85
+ unset( $this->settings['link_text'] );
86
  }
87
 
88
+ update_option( 'rfb_settings', $this->settings );
89
  }
90
 
91
  // Update version in database
107
  * @return mixed
108
  */
109
  public function sanitize_settings( $opts ) {
110
+ $old_opts = $this->settings;
111
 
112
  // fb config
113
  $opts['app_id'] = sanitize_text_field( $opts['app_id'] );
158
  * Shows the RFBP settings page
159
  */
160
  public function settings_page() {
161
+ $opts = $this->settings;
 
162
 
163
  // show user-friendly error message
164
  if( $this->cache_cleared ) {
188
  * @param string $page_id
189
  * @return bool
190
  */
191
+ public function test_facebook_api( $app_id = '', $app_secret = '', $page_id = '' ){
192
+ $opts = $this->settings;
 
193
 
194
  if( '' === $app_id ) {
195
  $app_id = $opts['app_id'];
includes/class-public.php CHANGED
@@ -9,29 +9,32 @@ class RFBP_Public {
9
  /**
10
  * @var array
11
  */
12
- protected $options;
13
 
14
  /**
15
- * @var
16
  */
17
- protected static $instance;
18
 
19
  /**
20
- * @return RFBP_Public
 
 
21
  */
22
- public static function instance() {
23
- if( ! self::$instance ) {
24
- self::$instance = new RFBP_Public();
25
  }
26
 
27
- return self::$instance;
28
  }
29
 
30
- /**
31
- * Constructor
32
- */
33
- private function __construct() {
34
- $this->options = rfbp_get_settings();
 
35
  }
36
 
37
  /**
@@ -41,7 +44,7 @@ class RFBP_Public {
41
  add_shortcode( 'recent_facebook_posts', array( $this, 'output' ) );
42
  add_shortcode( 'recent-facebook-posts', array( $this, 'output' ) );
43
 
44
- if ( $this->options['load_css'] ) {
45
  add_action( 'wp_enqueue_scripts', array( $this, 'load_css' ) );
46
  }
47
 
@@ -106,10 +109,12 @@ class RFBP_Public {
106
  * @param array $atts
107
  *
108
  * @return string
 
 
109
  */
110
  public function output( $atts = array() ) {
111
 
112
- $opts = $this->options;
113
  $posts = $this->get_posts();
114
 
115
  // upgrade from old `show_link` parameter.
@@ -128,14 +133,16 @@ class RFBP_Public {
128
  'show_link_previews' => $opts['load_css']
129
  );
130
 
131
- $atts = shortcode_atts( $defaults, $atts );
132
 
133
  ob_start();
134
  ?>
135
  <!-- Recent Facebook Posts v<?php echo RFBP_VERSION; ?> - https://wordpress.org/plugins/recent-facebook-posts/ -->
136
- <div class="recent-facebook-posts rfbp rfbp-container rfbp-<?php echo $atts['origin']; ?>">
137
  <?php
138
-
 
 
139
  if ( $posts && ! empty( $posts ) ) {
140
 
141
  if ( $atts['el'] == 'li' ) { echo '<ul class="rfbp-posts-wrap">'; }
@@ -144,9 +151,13 @@ class RFBP_Public {
144
  $link_target = ( $opts['link_new_window'] ) ? "_blank" : '';
145
 
146
  foreach ( $posts as $p ) {
147
-
148
  $shortened = false;
149
  $content = $p['content'];
 
 
 
 
150
 
151
  // shorten content if it exceed the set excerpt length
152
  if ( strlen( $content ) > $atts['excerpt_length'] ) {
@@ -157,11 +168,15 @@ class RFBP_Public {
157
  }
158
  }
159
  ?>
 
160
 
161
- <<?php echo $atts['el']; ?> class="rfbp-post">
162
- <h4 class="rfbp-heading"><a class="rfbp-link" href="<?php echo $p['post_link']; ?>" rel="external nofollow" target="<?php echo $link_target; ?>">
163
- <?php echo $p['name']; ?>
164
- </a></h4>
 
 
 
165
  <div class="rfbp-text">
166
 
167
  <?php
@@ -179,7 +194,7 @@ class RFBP_Public {
179
  <a class="rfbp-link" href="<?php echo $p['link_url']; ?>" rel="external nofollow" target="<?php echo $link_target; ?>">
180
  <?php if ( !empty( $p['link_image'] ) && ( apply_filters( 'rfbp_show_link_images', true ) !== false ) ) { ?>
181
  <span class="rfbp-link-image-wrap">
182
- <img class="rfbp-link-image" src="<?php echo esc_attr( $p['link_image'] ); ?>" width="114" />
183
  </span>
184
  <?php } ?>
185
 
@@ -193,24 +208,25 @@ class RFBP_Public {
193
 
194
  <?php } ?>
195
 
196
- <?php if ( $opts['img_size'] !== 'dont_show' && isset( $p['image'] ) && ! empty( $p['image'] ) ) {
197
-
198
- // grab bigger video thumbnail (hacky)
199
- if ( $p['type'] === 'video' && $opts['img_size'] == 'normal' ) {
200
- $p['image'] = str_ireplace( array( "_s.jpg", "_s.png" ), array( "_n.jpg", "_n.png" ), $p['image'] );
201
- }
 
 
 
 
 
 
 
 
 
 
 
 
202
 
203
- ?>
204
- <p class="rfbp-image-wrap">
205
- <a class="rfbp-image-link" target="<?php echo $link_target; ?>" href="<?php echo $p['url']; ?>" rel="external nofollow">
206
- <?php $max_img_width = ( ! empty( $opts['img_width'] ) ) ? $opts['img_width'].'px' : '100%'; $max_img_height = ( !empty( $opts['img_height'] ) ) ? $opts['img_height'].'px' : 'none'; ?>
207
- <img class="rfbp-image" src="<?php echo $p['image']; ?>" style="<?php echo esc_attr( "max-width: {$max_img_width}; max-height: {$max_img_height}" ); ?>" alt="" />
208
- </a>
209
- <?php if ( $p['type'] === 'video' ) { ?>
210
- <span class="rfbp-video-link"></span>
211
- <?php } ?>
212
- </p>
213
- <?php } ?>
214
  <p class="rfbp-post-link-wrap">
215
  <a target="<?php echo $link_target; ?>" class="rfbp-post-link" href="<?php echo esc_url( $p['url'] ); ?>" rel="external nofolloW">
216
  <?php if ( $atts['likes'] ) { ?><span class="rfbp-like-count"><?php echo absint( $p['like_count'] ); ?> <span><?php _e( "likes", 'recent-facebook-posts' ); ?><?php if ( $atts['comments'] ) { ?>, <?php } ?></span></span><?php } ?>
@@ -239,14 +255,15 @@ class RFBP_Public {
239
  <?php if ( $atts['show_page_link'] ) { ?>
240
  <p class="rfbp-page-link-wrap"><a class="rfbp-page-link" href="<?php echo esc_url( 'https://www.facebook.com/' . $opts['fb_id'] . '/' ); ?>" rel="external nofollow" target="<?php echo esc_attr( $link_target ); ?>"><?php echo esc_html( $opts['page_link_text'] ); ?></a></p>
241
  <?php } ?>
242
-
 
243
  </div>
244
  <!-- / Recent Facebook Posts -->
245
  <?php
246
  $output = ob_get_contents();
247
  ob_end_clean();
248
 
249
- return $output;
250
  }
251
 
252
  }
9
  /**
10
  * @var array
11
  */
12
+ protected $settings;
13
 
14
  /**
15
+ * @var RFBP_Public
16
  */
17
+ private static $instance;
18
 
19
  /**
20
+ * Constructor
21
+ *
22
+ * @param array $settings
23
  */
24
+ private function __construct( $settings = null ) {
25
+ if( empty( $settings ) ) {
26
+ $settings = rfbp_get_settings();
27
  }
28
 
29
+ $this->settings = $settings;
30
  }
31
 
32
+ public static function instance( $settings = null ) {
33
+ if( empty( self::$instance ) ) {
34
+ self::$instance = new RFBP_Public( $settings );
35
+ }
36
+
37
+ return self::$instance;
38
  }
39
 
40
  /**
44
  add_shortcode( 'recent_facebook_posts', array( $this, 'output' ) );
45
  add_shortcode( 'recent-facebook-posts', array( $this, 'output' ) );
46
 
47
+ if ( $this->settings['load_css'] ) {
48
  add_action( 'wp_enqueue_scripts', array( $this, 'load_css' ) );
49
  }
50
 
109
  * @param array $atts
110
  *
111
  * @return string
112
+ *
113
+ * TODO: Stop jumping in and out of PHP mode here.
114
  */
115
  public function output( $atts = array() ) {
116
 
117
+ $opts = $this->settings;
118
  $posts = $this->get_posts();
119
 
120
  // upgrade from old `show_link` parameter.
133
  'show_link_previews' => $opts['load_css']
134
  );
135
 
136
+ $atts = shortcode_atts( $defaults, $atts );
137
 
138
  ob_start();
139
  ?>
140
  <!-- Recent Facebook Posts v<?php echo RFBP_VERSION; ?> - https://wordpress.org/plugins/recent-facebook-posts/ -->
141
+ <div class="recent-facebook-posts rfbp rfbp-container rfbp-<?php echo esc_attr( $atts['origin'] ); ?>">
142
  <?php
143
+
144
+ do_action( 'rfbp_render_before' );
145
+
146
  if ( $posts && ! empty( $posts ) ) {
147
 
148
  if ( $atts['el'] == 'li' ) { echo '<ul class="rfbp-posts-wrap">'; }
151
  $link_target = ( $opts['link_new_window'] ) ? "_blank" : '';
152
 
153
  foreach ( $posts as $p ) {
154
+ $post_classes = array( 'rfbp-post' );
155
  $shortened = false;
156
  $content = $p['content'];
157
+
158
+ if ( $opts['img_size'] !== 'dont_show' && ! empty( $p['image'] ) ) {
159
+ $post_classes[] = 'rfbp-post-with-media';
160
+ }
161
 
162
  // shorten content if it exceed the set excerpt length
163
  if ( strlen( $content ) > $atts['excerpt_length'] ) {
168
  }
169
  }
170
  ?>
171
+ <<?php echo $atts['el']; ?> class="<?php echo implode(" ", $post_classes); ?>">
172
 
173
+ <?php if ( ! empty( $p['name'] ) ) { ?>
174
+ <h4 class="rfbp-heading">
175
+ <a class="rfbp-link" href="<?php echo esc_attr( $p['post_link'] ); ?>" rel="external nofollow" target="<?php echo esc_attr( $link_target ); ?>">
176
+ <?php echo $p['name']; ?>
177
+ </a>
178
+ </h4>
179
+ <?php } // end if name not empty ?>
180
  <div class="rfbp-text">
181
 
182
  <?php
194
  <a class="rfbp-link" href="<?php echo $p['link_url']; ?>" rel="external nofollow" target="<?php echo $link_target; ?>">
195
  <?php if ( !empty( $p['link_image'] ) && ( apply_filters( 'rfbp_show_link_images', true ) !== false ) ) { ?>
196
  <span class="rfbp-link-image-wrap">
197
+ <img class="rfbp-link-image" src="<?php echo esc_attr( $p['link_image'] ); ?>" width="114" alt="<?php echo esc_attr( $p['link_name'] ); ?>" />
198
  </span>
199
  <?php } ?>
200
 
208
 
209
  <?php } ?>
210
 
211
+ <?php if ( $opts['img_size'] !== 'dont_show' && ! empty( $p['image'] ) ) {
212
+
213
+ // grab bigger video thumbnail (hacky)
214
+ if ( $p['type'] === 'video' && $opts['img_size'] == 'normal' ) {
215
+ $p['image'] = str_ireplace( array( "_s.jpg", "_s.png" ), array( "_n.jpg", "_n.png" ), $p['image'] );
216
+ }
217
+
218
+ ?>
219
+ <p class="rfbp-image-wrap">
220
+ <a class="rfbp-image-link" target="<?php echo $link_target; ?>" href="<?php echo $p['url']; ?>" rel="external nofollow">
221
+ <?php $max_img_width = ( ! empty( $opts['img_width'] ) ) ? $opts['img_width'].'px' : '100%'; $max_img_height = ( !empty( $opts['img_height'] ) ) ? $opts['img_height'].'px' : 'none'; ?>
222
+ <img class="rfbp-image" src="<?php echo $p['image']; ?>" style="<?php echo esc_attr( "max-width: {$max_img_width}; max-height: {$max_img_height}" ); ?>" alt="" />
223
+ </a>
224
+ <?php if ( $p['type'] === 'video' ) { ?>
225
+ <span class="rfbp-video-link"></span>
226
+ <?php } ?>
227
+ </p>
228
+ <?php } // end if img showing & not empty ?>
229
 
 
 
 
 
 
 
 
 
 
 
 
230
  <p class="rfbp-post-link-wrap">
231
  <a target="<?php echo $link_target; ?>" class="rfbp-post-link" href="<?php echo esc_url( $p['url'] ); ?>" rel="external nofolloW">
232
  <?php if ( $atts['likes'] ) { ?><span class="rfbp-like-count"><?php echo absint( $p['like_count'] ); ?> <span><?php _e( "likes", 'recent-facebook-posts' ); ?><?php if ( $atts['comments'] ) { ?>, <?php } ?></span></span><?php } ?>
255
  <?php if ( $atts['show_page_link'] ) { ?>
256
  <p class="rfbp-page-link-wrap"><a class="rfbp-page-link" href="<?php echo esc_url( 'https://www.facebook.com/' . $opts['fb_id'] . '/' ); ?>" rel="external nofollow" target="<?php echo esc_attr( $link_target ); ?>"><?php echo esc_html( $opts['page_link_text'] ); ?></a></p>
257
  <?php } ?>
258
+
259
+ <?php do_action( 'rfbp_render_after' ); ?>
260
  </div>
261
  <!-- / Recent Facebook Posts -->
262
  <?php
263
  $output = ob_get_contents();
264
  ob_end_clean();
265
 
266
+ return apply_filters( 'rfbp_output', $output );
267
  }
268
 
269
  }
includes/class-widget.php CHANGED
@@ -32,7 +32,6 @@ class RFBP_Widget extends WP_Widget {
32
  public function form( $instance ) {
33
 
34
  $instance = array_merge( $this->defaults, $instance );
35
- $opts = rfbp_get_settings();
36
 
37
  if ( ! rfbp_valid_config() ) { ?>
38
  <p style="color:red;"><?php printf( __( 'You need to <a href="%s">configure Recent Facebook Posts</a> first.', 'recent-facebook-posts' ), admin_url( 'options-general.php?page=rfbp' ) ); ?></p>
32
  public function form( $instance ) {
33
 
34
  $instance = array_merge( $this->defaults, $instance );
 
35
 
36
  if ( ! rfbp_valid_config() ) { ?>
37
  <p style="color:red;"><?php printf( __( 'You need to <a href="%s">configure Recent Facebook Posts</a> first.', 'recent-facebook-posts' ), admin_url( 'options-general.php?page=rfbp' ) ); ?></p>
languages/recent-facebook-posts-nb_NO.mo ADDED
Binary file
languages/recent-facebook-posts-nb_NO.po ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Recent Facebook Posts 2.0.9\n"
4
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/recent-facebook-"
5
+ "posts\n"
6
+ "POT-Creation-Date: 2016-07-25 12:36:16+00:00\n"
7
+ "PO-Revision-Date: Wed Sep 14 2016 21:06:55 GMT+0200\n"
8
+ "Last-Translator: admin <joakim@realverdier.no>\n"
9
+ "Language-Team: LANGUAGE <LL@li.org>\n"
10
+ "Language: Norwegian (Bokmål)\n"
11
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=utf-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Generator: Loco - https://localise.biz/\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Language: English\n"
19
+ "X-Poedit-Country: UNITED STATES\n"
20
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
21
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
22
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
23
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
24
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
25
+ "X-Poedit-Bookmarks: \n"
26
+ "X-Poedit-SearchPath-0: .\n"
27
+ "X-Textdomain-Support: yes\n"
28
+ "X-Loco-Target-Locale: nb_NO"
29
+
30
+ #: includes/class-admin.php:154
31
+ msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
32
+ msgstr "<strong>Hurtigbuffer tømt!</strong> Sletting av hurtigbuffer var vellyket."
33
+
34
+ #: includes/class-admin.php:201
35
+ msgid "Your configuration seems to be okay and working. Nice work!."
36
+ msgstr "Innstillingene ser ut til å fungere - godt jobbet!"
37
+
38
+ #: includes/class-admin.php:203
39
+ msgid "The following error was encountered when testing your configuration."
40
+ msgstr "Følgende feil ble funnet under testing av dine innstillinger."
41
+
42
+ #: includes/class-public.php:235
43
+ msgid "Admins only notice"
44
+ msgstr "Melding til admin"
45
+
46
+ #: includes/class-public.php:235
47
+ #, c-format
48
+ msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
49
+ msgstr "Er alle innstillinger <a href=\"%s\">konfigurert</a> riktig?"
50
+
51
+ #: includes/class-widget.php:18
52
+ msgid "Lists a number of your most recent Facebook posts."
53
+ msgstr "Viser et antall av dine nyeste Facebook-innlegg."
54
+
55
+ #: includes/class-widget.php:38
56
+ #, c-format
57
+ msgid "You need to <a href=\"%s\">configure Recent Facebook Posts</a> first."
58
+ msgstr "Du må <a href=\"%s\">konfigurere Recent Facebook Posts</a> først."
59
+
60
+ #: includes/class-widget.php:52
61
+ msgid "Excerpt length:"
62
+ msgstr "Lengde på utdrag:"
63
+
64
+ #: includes/class-widget.php:58
65
+ msgid "Show like count?"
66
+ msgstr "Vi antall likerklikk?"
67
+
68
+ #: includes/class-widget.php:63
69
+ msgid "Show comment count?"
70
+ msgstr "Vis antall kommentarer?"
71
+
72
+ #: includes/class-widget.php:68
73
+ msgid "Show link to Facebook page?"
74
+ msgstr "Vis lenke til Facebook-side?"
75
+
76
+ #: includes/class-widget.php:73
77
+ msgid "Show link previews?"
78
+ msgstr "Aktivere forhåndsvisning av lenker?"
79
+
80
+ #: includes/views/settings_page.html.php:21
81
+ msgid "Facebook Settings"
82
+ msgstr "Facebook Innstillinger"
83
+
84
+ #: includes/views/settings_page.html.php:26
85
+ msgid "This plugin needs a Facebook application to work."
86
+ msgstr "Dette programtillegget er avhengig av en Facebook-applikasjon for å fungere."
87
+
88
+ #: includes/views/settings_page.html.php:27
89
+ msgid "Please fill in the Facebook Settings fields after creating your application."
90
+ msgstr ""
91
+ "Vennligst fyll ut Facebook Innstillinger-felter etter å ha opprettet din "
92
+ "applikasjon."
93
+
94
+ #: includes/views/settings_page.html.php:30
95
+ #, c-format
96
+ msgid ""
97
+ "Not sure how to proceed? Please take a close look at the <a "
98
+ "href=\"%s\">installation instructions</a>."
99
+ msgstr ""
100
+ "Usikker på hvordan du skal gå frem? Vennligst se nøye på <a "
101
+ "href=\"%s\">installasjonsveiledningen</a>."
102
+
103
+ #: includes/views/settings_page.html.php:38
104
+ msgid "Facebook App ID/API Key"
105
+ msgstr "Facebook App-ID/API-nøkkel"
106
+
107
+ #: includes/views/settings_page.html.php:42
108
+ #, c-format
109
+ msgid "Get your App ID from %s."
110
+ msgstr "Opprett App-ID fra %s."
111
+
112
+ #: includes/views/settings_page.html.php:47
113
+ msgid "Facebook App Secret"
114
+ msgstr "Facebook App Secret"
115
+
116
+ #: includes/views/settings_page.html.php:50
117
+ #, c-format
118
+ msgid "Get your App Secret from %s."
119
+ msgstr "Opprett Facebook App Secret fra %s."
120
+
121
+ #: includes/views/settings_page.html.php:55
122
+ msgid "Facebook Page ID or Slug"
123
+ msgstr "Facebook Page-ID eller Slug"
124
+
125
+ #: includes/views/settings_page.html.php:58
126
+ #, c-format
127
+ msgid "Use <a href=\"%s\">this tool</a> to find the numeric ID of your Facebook page."
128
+ msgstr ""
129
+ "Benytt <a href=\"%s\">dette verktøyet</a> for å finne numerisk ID til din "
130
+ "Facebook-side."
131
+
132
+ #: includes/views/settings_page.html.php:64
133
+ msgid "Appearance"
134
+ msgstr "Utseende"
135
+
136
+ #: includes/views/settings_page.html.php:68
137
+ msgid "Link text"
138
+ msgstr "Lenke-tekst"
139
+
140
+ #: includes/views/settings_page.html.php:78
141
+ msgid "Load some default styles?"
142
+ msgstr "Aktivere standard stiler?"
143
+
144
+ #: includes/views/settings_page.html.php:84
145
+ msgid "Image size"
146
+ msgstr "Bildestørrelse"
147
+
148
+ #: includes/views/settings_page.html.php:96
149
+ msgid "Image dimensions"
150
+ msgstr "Bilde-dimensjoner"
151
+
152
+ #: includes/views/settings_page.html.php:96
153
+ msgid "(in pixels, optional)"
154
+ msgstr "(i piksler, valgfritt)"
155
+
156
+ #: includes/views/settings_page.html.php:107
157
+ msgid "Leave empty for default sizing"
158
+ msgstr "La stå tom for standard størrelser"
159
+
160
+ #: includes/views/settings_page.html.php:119
161
+ msgid "Test your plugin configuration using the button below."
162
+ msgstr "Test innstillingene dine med knappen under."
163
+
164
+ #: includes/views/settings_page.html.php:125
165
+ msgid "Facebook Posts Cache"
166
+ msgstr "Hurtigbuffer for Facebook-innlegg"
167
+
168
+ #: includes/views/settings_page.html.php:126
169
+ msgid ""
170
+ "Because fetching posts from Facebook is relatively slow the posts are cached "
171
+ "for <strong>30 minutes</strong>. You can manually clear the cache using the "
172
+ "button below."
173
+ msgstr ""
174
+ "Fordi henting av innlegg fra Facebook er en relativt langsom prosess, blir "
175
+ "innleggene mellomlagret i <strong>30 minutter</strong>. Du kan manuelt tømme "
176
+ "hurtigbufferen ved å trykke på knappen under."
177
+
178
+ #: includes/views/settings_page.html.php:130
179
+ msgid "Clear Cache"
180
+ msgstr "Tøm hurtigbuffer"
181
+
182
+ #: includes/views/settings_page.html.php:139
183
+ msgid ""
184
+ "To show a list of your most recent facebook posts in your posts or pages, "
185
+ "use the following shortcode."
186
+ msgstr ""
187
+ "For å vise en liste av dine nyeste Facebook-innlegg på dine sider eller "
188
+ "blogg, benytt følgende minikode."
189
+
190
+ #: includes/views/settings_page.html.php:141
191
+ #, c-format
192
+ msgid ""
193
+ "The shortcode accepts various arguments, which are listed on the <a "
194
+ "href=\"%s\">plugin FAQ</a>."
195
+ msgstr ""
196
+ "Minikoden aksepterer flere argumenter som er listet i programtilleggets <a "
197
+ "href=\"%s\"> FAQ</a>."
198
+
199
+ #: includes/views/settings_page.html.php:146
200
+ msgid "Show your appreciation!"
201
+ msgstr "Vis din takknemlighet!"
202
+
203
+ #: includes/views/settings_page.html.php:147
204
+ msgid ""
205
+ "If you like this plugin, consider showing your consideration in one of the "
206
+ "following ways."
207
+ msgstr ""
208
+ "Dersom du liker dette programtillegget, vurder å dele din synspunkter på en "
209
+ "av følgende måter."
210
+
211
+ #: includes/views/settings_page.html.php:149
212
+ #, c-format
213
+ msgid "Leave a %s review on WordPress.org"
214
+ msgstr "Legg igjen en %s omtale på WordPress.org"
215
+
216
+ #: includes/views/settings_page.html.php:150
217
+ msgid "Tweet about Recent Facebook Posts"
218
+ msgstr "Tweet om Recent Facebook Posts"
219
+
220
+ #: includes/views/settings_page.html.php:151
221
+ msgid "Vote \"works\" on the WordPress.org plugin page"
222
+ msgstr "Stem \"fungerer\" på programtilleggets side hos WordPress.org."
223
+
224
+ #: includes/views/settings_page.html.php:156
225
+ msgid "Looking for support?"
226
+ msgstr "Trenger du hjelp?"
227
+
228
+ #: includes/views/settings_page.html.php:157
229
+ #, c-format
230
+ msgid "Please use the <a href=\"%s\">plugin support forums</a> on WordPress.org."
231
+ msgstr ""
232
+ "Vennligst benytt programtilleggets forum for <a href=\"%s\">kundestøtte</a> på "
233
+ "WordPress.org."
234
+
235
+ #: includes/views/settings_page.html.php:158
236
+ #, c-format
237
+ msgid ""
238
+ "Take a close look at the <a href=\"%s\">installation instructions</a> for help "
239
+ "configuring the plugin and registering your own Facebook application, which "
240
+ "is required to get this plugin to work."
241
+ msgstr ""
242
+ "Se <a href=\"%s\">installasjonsveiledningen</a> for hjelp til innstillinger og "
243
+ "registrering av din egen Facebook-applikasjon som trengs for at dette "
244
+ "programtillegget skal fungere."
245
+
246
+ #: includes/views/settings_page.html.php:162
247
+ msgid "Other plugins"
248
+ msgstr "Andre programtillegg"
249
+
250
+ #. Plugin URI of the plugin/theme
251
+ msgid "https://dannyvankooten.com/donate/"
252
+ msgstr "https://dannyvankooten.com/donate/"
253
+
254
+ #. Description of the plugin/theme
255
+ msgid "Lists most recent posts from a public Facebook page."
256
+ msgstr "Viser de nyeste innleggene fra en offentlig Facebook-side."
257
+
258
+ #. Author of the plugin/theme
259
+ msgid "Danny van Kooten"
260
+ msgstr "Danny van Kooten"
261
+
262
+ #. Author URI of the plugin/theme
263
+ msgid "https://dannyvankooten.com/"
264
+ msgstr "https://dannyvankooten.com/"
265
+
266
+ #: includes/class-admin.php:167
267
+ msgid "Settings"
268
+ msgstr "Innstillinger"
269
+
270
+ #: includes/class-api.php:51 includes/class-api.php:170
271
+ msgid "Facebook error:"
272
+ msgstr "Facebook feil:"
273
+
274
+ #: includes/class-api.php:212
275
+ msgid "Connection error:"
276
+ msgstr "Tilkoblingsfeil:"
277
+
278
+ #: includes/class-public.php:216
279
+ msgid "likes"
280
+ msgstr "liker"
281
+
282
+ #: includes/class-public.php:217
283
+ msgid "comments"
284
+ msgstr "kommentarer"
285
+
286
+ #: includes/class-public.php:219
287
+ #, c-format
288
+ msgid "%1$s at %2$s"
289
+ msgstr "%1$s - %2$s"
290
+
291
+ #: includes/class-public.php:233
292
+ msgid "No recent Facebook posts to show"
293
+ msgstr "Ingen nylige Facebook-innlegg"
294
+
295
+ #. Plugin Name of the plugin/theme
296
+ msgid "Recent Facebook Posts"
297
+ msgstr "Nylige Facebook-innlegg"
298
+
299
+ #: includes/class-widget.php:42
300
+ msgid "Title:"
301
+ msgstr "Tittel:"
302
+
303
+ #: includes/class-widget.php:47
304
+ msgid "Number of posts:"
305
+ msgstr "Antall innlegg:"
306
+
307
+ #: includes/functions/global.php:23 includes/views/settings_page.html.php:69
308
+ msgid "Find us on Facebook"
309
+ msgstr "Følg oss på Facebook"
310
+
311
+ #: includes/functions/helpers.php:32
312
+ msgid "just now"
313
+ msgstr "akkurat nå"
314
+
315
+ #: includes/functions/helpers.php:51
316
+ #, c-format
317
+ msgid "1 year ago"
318
+ msgid_plural "%d years ago"
319
+ msgstr[0] "1 år siden"
320
+ msgstr[1] "%d år siden"
321
+
322
+ #: includes/functions/helpers.php:55
323
+ #, c-format
324
+ msgid "1 month ago"
325
+ msgid_plural "%d months ago"
326
+ msgstr[0] "1 måned siden"
327
+ msgstr[1] "%d måneder siden"
328
+
329
+ #: includes/functions/helpers.php:59
330
+ #, c-format
331
+ msgid "1 week ago"
332
+ msgid_plural "%d weeks ago"
333
+ msgstr[0] "1 uke siden"
334
+ msgstr[1] "%d uker siden"
335
+
336
+ #: includes/functions/helpers.php:63
337
+ #, c-format
338
+ msgid "1 day ago"
339
+ msgid_plural "%d days ago"
340
+ msgstr[0] "1 dag siden"
341
+ msgstr[1] "%d dager siden"
342
+
343
+ #: includes/functions/helpers.php:67
344
+ #, c-format
345
+ msgid "1 hour ago"
346
+ msgid_plural "%d hours ago"
347
+ msgstr[0] "1 time siden"
348
+ msgstr[1] "%d timer siden"
349
+
350
+ #: includes/functions/helpers.php:71
351
+ #, c-format
352
+ msgid "1 minute ago"
353
+ msgid_plural "%d minutes ago"
354
+ msgstr[0] "1 minutt siden"
355
+ msgstr[1] "%d minutter siden"
356
+
357
+ #: includes/functions/helpers.php:75
358
+ #, c-format
359
+ msgid "1 second ago"
360
+ msgid_plural "%d seconds ago"
361
+ msgstr[0] "1 sekund siden"
362
+ msgstr[1] "%d sekunder siden"
363
+
364
+ #: includes/functions/helpers.php:79
365
+ msgid "Some time ago"
366
+ msgstr "For en stund siden"
367
+
368
+ #: includes/views/settings_page.html.php:73
369
+ msgid "Open links in new window?"
370
+ msgstr "Åpne lenker i nytt vindu?"
371
+
372
+ #: includes/views/settings_page.html.php:87
373
+ msgid "Don't show images"
374
+ msgstr "Ikke vis bilder"
375
+
376
+ #: includes/views/settings_page.html.php:88
377
+ msgid "Thumbnail"
378
+ msgstr "Miniatyrbilde"
379
+
380
+ #: includes/views/settings_page.html.php:89
381
+ msgid "Normal"
382
+ msgstr "Normal"
383
+
384
+ #: includes/views/settings_page.html.php:99
385
+ msgid "Max Width"
386
+ msgstr "Maks bredde"
387
+
388
+ #: includes/views/settings_page.html.php:103
389
+ msgid "Max Height"
390
+ msgstr "Maks høyde"
391
+
392
+ #: includes/views/settings_page.html.php:118
393
+ #: includes/views/settings_page.html.php:122
394
+ msgid "Test Configuration"
395
+ msgstr "Test innstillinger"
396
+
397
+ #: includes/views/settings_page.html.php:138
398
+ msgid "Usage"
399
+ msgstr "Bruk"
languages/recent-facebook-posts.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPL3 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Recent Facebook Posts 2.0.9\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/recent-facebook-posts\n"
8
- "POT-Creation-Date: 2016-07-25 12:36:16+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -25,19 +25,19 @@ msgstr ""
25
  "X-Poedit-SearchPath-0: .\n"
26
  "X-Textdomain-Support: yes\n"
27
 
28
- #: includes/class-admin.php:154
29
  msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
30
  msgstr ""
31
 
32
- #: includes/class-admin.php:167
33
  msgid "Settings"
34
  msgstr ""
35
 
36
- #: includes/class-admin.php:201
37
  msgid "Your configuration seems to be okay and working. Nice work!."
38
  msgstr ""
39
 
40
- #: includes/class-admin.php:203
41
  msgid "The following error was encountered when testing your configuration."
42
  msgstr ""
43
 
@@ -49,27 +49,27 @@ msgstr ""
49
  msgid "Connection error:"
50
  msgstr ""
51
 
52
- #: includes/class-public.php:216
53
  msgid "likes"
54
  msgstr ""
55
 
56
- #: includes/class-public.php:217
57
  msgid "comments"
58
  msgstr ""
59
 
60
- #: includes/class-public.php:219
61
  msgid "%1$s at %2$s"
62
  msgstr ""
63
 
64
- #: includes/class-public.php:233
65
  msgid "No recent Facebook posts to show"
66
  msgstr ""
67
 
68
- #: includes/class-public.php:235
69
  msgid "Admins only notice"
70
  msgstr ""
71
 
72
- #: includes/class-public.php:235
73
  msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
74
  msgstr ""
75
 
@@ -81,35 +81,35 @@ msgstr ""
81
  msgid "Recent Facebook Posts"
82
  msgstr ""
83
 
84
- #: includes/class-widget.php:38
85
  msgid "You need to <a href=\"%s\">configure Recent Facebook Posts</a> first."
86
  msgstr ""
87
 
88
- #: includes/class-widget.php:42
89
  msgid "Title:"
90
  msgstr ""
91
 
92
- #: includes/class-widget.php:47
93
  msgid "Number of posts:"
94
  msgstr ""
95
 
96
- #: includes/class-widget.php:52
97
  msgid "Excerpt length:"
98
  msgstr ""
99
 
100
- #: includes/class-widget.php:58
101
  msgid "Show like count?"
102
  msgstr ""
103
 
104
- #: includes/class-widget.php:63
105
  msgid "Show comment count?"
106
  msgstr ""
107
 
108
- #: includes/class-widget.php:68
109
  msgid "Show link to Facebook page?"
110
  msgstr ""
111
 
112
- #: includes/class-widget.php:73
113
  msgid "Show link previews?"
114
  msgstr ""
115
 
2
  # This file is distributed under the GPL3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Recent Facebook Posts 2.0.10\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/recent-facebook-posts\n"
8
+ "POT-Creation-Date: 2016-09-15 08:46:29+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
25
  "X-Poedit-SearchPath-0: .\n"
26
  "X-Textdomain-Support: yes\n"
27
 
28
+ #: includes/class-admin.php:165
29
  msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
30
  msgstr ""
31
 
32
+ #: includes/class-admin.php:178
33
  msgid "Settings"
34
  msgstr ""
35
 
36
+ #: includes/class-admin.php:211
37
  msgid "Your configuration seems to be okay and working. Nice work!."
38
  msgstr ""
39
 
40
+ #: includes/class-admin.php:213
41
  msgid "The following error was encountered when testing your configuration."
42
  msgstr ""
43
 
49
  msgid "Connection error:"
50
  msgstr ""
51
 
52
+ #: includes/class-public.php:232
53
  msgid "likes"
54
  msgstr ""
55
 
56
+ #: includes/class-public.php:233
57
  msgid "comments"
58
  msgstr ""
59
 
60
+ #: includes/class-public.php:235
61
  msgid "%1$s at %2$s"
62
  msgstr ""
63
 
64
+ #: includes/class-public.php:249
65
  msgid "No recent Facebook posts to show"
66
  msgstr ""
67
 
68
+ #: includes/class-public.php:251
69
  msgid "Admins only notice"
70
  msgstr ""
71
 
72
+ #: includes/class-public.php:251
73
  msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
74
  msgstr ""
75
 
81
  msgid "Recent Facebook Posts"
82
  msgstr ""
83
 
84
+ #: includes/class-widget.php:37
85
  msgid "You need to <a href=\"%s\">configure Recent Facebook Posts</a> first."
86
  msgstr ""
87
 
88
+ #: includes/class-widget.php:41
89
  msgid "Title:"
90
  msgstr ""
91
 
92
+ #: includes/class-widget.php:46
93
  msgid "Number of posts:"
94
  msgstr ""
95
 
96
+ #: includes/class-widget.php:51
97
  msgid "Excerpt length:"
98
  msgstr ""
99
 
100
+ #: includes/class-widget.php:57
101
  msgid "Show like count?"
102
  msgstr ""
103
 
104
+ #: includes/class-widget.php:62
105
  msgid "Show comment count?"
106
  msgstr ""
107
 
108
+ #: includes/class-widget.php:67
109
  msgid "Show link to Facebook page?"
110
  msgstr ""
111
 
112
+ #: includes/class-widget.php:72
113
  msgid "Show link previews?"
114
  msgstr ""
115
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DvanKooten
3
  Donate link: https://dannyvankooten.com/donate/
4
  Tags: facebook, posts, fb, widget, facebook widget, facebook posts
5
  Requires at least: 3.8
6
- Tested up to: 4.5.3
7
- Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -39,14 +39,13 @@ Italian (it_IT) - [Daniele Chianucci](http://frozen.me/)
39
  Turkish (tr_TR) - Halukcan Pehlivanoğlu
40
  Hungarian (hu_HU) - Daniel Kocsis
41
  Polish (pl_PL) - Sofiah Davenport
42
-
43
- _Looking for more translations.._
44
 
45
  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 POT file here](http://plugins.svn.wordpress.org/recent-facebook-posts/trunk/languages/recent-facebook-posts.pot).
46
 
47
  **Other Links**
48
 
49
- * [Contribute to the Recent Facebook Posts plugin on GitHub](https://github.com/dannyvankooten/wordpress-recent-facebook-posts)
50
  * Using MailChimp to send out email newsletters? You should [try MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/).
51
  * Want an unobtrusive conversion booster? Have a look at the [Boxzilla pop-up plugin](https://wordpress.org/plugins/boxzilla/).
52
  * Follow [@DannyvanKooten](https://twitter.com/DannyvanKooten) or [@ibericode](https://twitter.com/ibericode) on Twitter.
@@ -75,7 +74,7 @@ This plugin requires a Facebook application to fetch posts from Facebook.
75
  * Take a look at the [screenshots](https://wordpress.org/extend/plugins/recent-facebook-posts/screenshots/), they will tell you which values from Facebook you need.
76
  * The plugin works with personal profiles, but only to a certain extend. I am not actively supporting personal profiles because of many privacy settings related issues.
77
 
78
- Ran into an error? Have a look at the [FAQ](https://wordpress.org/plugins/recent-facebook-posts/faq/) for solutions to common problems or [open an issue on GitHub](https://github.com/dannyvankooten/wordpress-recent-facebook-posts/issues).
79
 
80
  == Frequently Asked Questions ==
81
 
@@ -159,6 +158,19 @@ add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
159
  == Changelog ==
160
 
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  ### 2.0.9 - July 25, 2016
163
 
164
  **Improvements**
3
  Donate link: https://dannyvankooten.com/donate/
4
  Tags: facebook, posts, fb, widget, facebook widget, facebook posts
5
  Requires at least: 3.8
6
+ Tested up to: 4.6.1
7
+ Stable tag: 2.0.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
39
  Turkish (tr_TR) - Halukcan Pehlivanoğlu
40
  Hungarian (hu_HU) - Daniel Kocsis
41
  Polish (pl_PL) - Sofiah Davenport
42
+ Norwegian (no_NO) - Joakim O. Saunes
 
43
 
44
  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 POT file here](http://plugins.svn.wordpress.org/recent-facebook-posts/trunk/languages/recent-facebook-posts.pot).
45
 
46
  **Other Links**
47
 
48
+ * [Contribute to the Recent Facebook Posts plugin on GitHub](https://github.com/dannyvankooten/recent-facebook-posts)
49
  * Using MailChimp to send out email newsletters? You should [try MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/).
50
  * Want an unobtrusive conversion booster? Have a look at the [Boxzilla pop-up plugin](https://wordpress.org/plugins/boxzilla/).
51
  * Follow [@DannyvanKooten](https://twitter.com/DannyvanKooten) or [@ibericode](https://twitter.com/ibericode) on Twitter.
74
  * Take a look at the [screenshots](https://wordpress.org/extend/plugins/recent-facebook-posts/screenshots/), they will tell you which values from Facebook you need.
75
  * The plugin works with personal profiles, but only to a certain extend. I am not actively supporting personal profiles because of many privacy settings related issues.
76
 
77
+ Ran into an error? Have a look at the [FAQ](https://wordpress.org/plugins/recent-facebook-posts/faq/) for solutions to common problems or [open an issue on GitHub](https://github.com/dannyvankooten/recent-facebook-posts/issues).
78
 
79
  == Frequently Asked Questions ==
80
 
158
  == Changelog ==
159
 
160
 
161
+ ### 2.0.10 - September 15, 2016
162
+
163
+ **Improvements**
164
+
165
+ - Added additional CSS class to post container when post has media elements. Thanks [Robbert van Mourik](https://github.com/rvmourik)!
166
+ - Accessibility improvements to output.
167
+
168
+ **Additions**
169
+
170
+ - Added Norwegian translations, thanks to Joakim O. Saunes.
171
+ - Added `rfbp_render_before` and `rfbp_render_after` filters. Thanks [Justin](https://github.com/dannyvankooten/recent-facebook-posts/pull/19)!
172
+
173
+
174
  ### 2.0.9 - July 25, 2016
175
 
176
  **Improvements**
recent-facebook-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: https://dannyvankooten.com/donate/
5
  Description: Lists most recent posts from a public Facebook page.
6
- Version: 2.0.9
7
  Author: Danny van Kooten
8
  Author URI: https://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
@@ -32,17 +32,21 @@ if( ! defined( 'ABSPATH' ) ) {
32
  }
33
 
34
  // Plugin Constants
35
- define( 'RFBP_VERSION', '2.0.9' );
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
  // frontend requests
@@ -50,19 +54,19 @@ function __rfbp_bootstrap() {
50
  include_once RFBP_PLUGIN_DIR . 'includes/functions/template.php';
51
  require RFBP_PLUGIN_DIR . 'includes/class-public.php';
52
 
53
- $rfbp_public = RFBP_Public::instance();
54
  $rfbp_public->add_hooks();
55
 
56
  } elseif( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
57
 
58
  // admin requests
59
  require RFBP_PLUGIN_DIR . 'includes/class-admin.php';
60
- $admin = new RFBP_Admin();
61
  $admin->add_hooks();
62
 
63
  }
64
 
65
  }
66
 
67
- add_action( 'plugins_loaded', '__rfbp_bootstrap' );
68
 
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: https://dannyvankooten.com/donate/
5
  Description: Lists most recent posts from a public Facebook page.
6
+ Version: 2.0.10
7
  Author: Danny van Kooten
8
  Author URI: https://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
32
  }
33
 
34
  // Plugin Constants
35
+ define( 'RFBP_VERSION', '2.0.10' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
  /**
39
  * Load the plugin files at `plugins_loaded:10`
40
+ *
41
+ * @ignore
42
  */
43
+ function _rfbp_bootstrap() {
44
 
45
  // Include Global code
46
  require RFBP_PLUGIN_DIR . 'includes/functions/global.php';
47
 
48
+ $settings = rfbp_get_settings();
49
+
50
  if( ! is_admin() ) {
51
 
52
  // frontend requests
54
  include_once RFBP_PLUGIN_DIR . 'includes/functions/template.php';
55
  require RFBP_PLUGIN_DIR . 'includes/class-public.php';
56
 
57
+ $rfbp_public = RFBP_Public::instance( $settings );
58
  $rfbp_public->add_hooks();
59
 
60
  } elseif( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
61
 
62
  // admin requests
63
  require RFBP_PLUGIN_DIR . 'includes/class-admin.php';
64
+ $admin = new RFBP_Admin( $settings );
65
  $admin->add_hooks();
66
 
67
  }
68
 
69
  }
70
 
71
+ add_action( 'plugins_loaded', '_rfbp_bootstrap' );
72