Recent Facebook Posts - Version 2.0.5

Version Description

  • March 23, 2015 =

Additions

  • Added Swedish translations, thanks to Robin Wellstrm.
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

includes/functions/global.php CHANGED
@@ -43,7 +43,7 @@ function rfbp_register_widget() {
43
  register_widget( "RFBP_Widget" );
44
  }
45
 
46
- add_action('widgets_init', 'rfbp_register_widget');
47
 
48
  /**
49
  * Load plugin translations
@@ -58,9 +58,10 @@ add_action( 'init', 'rfbp_load_textdomain' );
58
  * @return RFBP_API
59
  */
60
  function rfbp_get_api() {
61
- static $api;
62
 
63
- if( ! $api ) {
 
 
64
  $opts = rfbp_get_settings();
65
  require_once RFBP_PLUGIN_DIR . 'includes/class-api.php';
66
  $api = new RFBP_API( $opts['app_id'], $opts['app_secret'], $opts['fb_id'] );
@@ -69,6 +70,9 @@ function rfbp_get_api() {
69
  return $api;
70
  }
71
 
 
 
 
72
  function rfbp_valid_config() {
73
  $opts = rfbp_get_settings();
74
  return ( ! empty( $opts['fb_id'] ) && ! empty( $opts['app_id'] ) && ! empty( $opts['app_secret'] ) );
43
  register_widget( "RFBP_Widget" );
44
  }
45
 
46
+ add_action( 'widgets_init', 'rfbp_register_widget' );
47
 
48
  /**
49
  * Load plugin translations
58
  * @return RFBP_API
59
  */
60
  function rfbp_get_api() {
 
61
 
62
+ static $api = null;
63
+
64
+ if( is_null( $api ) ) {
65
  $opts = rfbp_get_settings();
66
  require_once RFBP_PLUGIN_DIR . 'includes/class-api.php';
67
  $api = new RFBP_API( $opts['app_id'], $opts['app_secret'], $opts['fb_id'] );
70
  return $api;
71
  }
72
 
73
+ /**
74
+ * @return bool
75
+ */
76
  function rfbp_valid_config() {
77
  $opts = rfbp_get_settings();
78
  return ( ! empty( $opts['fb_id'] ) && ! empty( $opts['app_id'] ) && ! empty( $opts['app_secret'] ) );
includes/functions/helpers.php CHANGED
@@ -4,9 +4,14 @@ if( ! defined( 'RFBP_VERSION' ) ) {
4
  exit;
5
  }
6
 
7
- function rfbp_make_clickable($text, $target)
8
- {
9
- $clickable_text = make_clickable($text);
 
 
 
 
 
10
 
11
  if(!empty($target)) {
12
  return str_replace('<a href="', '<a target="'.$target.'" href="', $clickable_text);
@@ -15,59 +20,63 @@ function rfbp_make_clickable($text, $target)
15
  return $clickable_text;
16
  }
17
 
18
- function rfbp_time_ago($timestamp)
19
- {
 
 
 
 
20
  $diff = time() - (int) $timestamp;
21
 
22
  if ($diff == 0)
23
- return __('just now', "recent-facebook-posts");
24
 
25
  $intervals = array
26
  (
27
- 1 => array('year', 31556926),
28
- $diff < 31556926 => array('month', 2628000),
29
- $diff < 2629744 => array('week', 604800),
30
- $diff < 604800 => array('day', 86400),
31
- $diff < 86400 => array('hour', 3600),
32
- $diff < 3600 => array('minute', 60),
33
- $diff < 60 => array('second', 1)
34
  );
35
 
36
- $value = floor($diff / $intervals[1][1]);
37
 
38
  $time_unit = $intervals[1][0];
39
 
40
  switch($time_unit) {
41
  case 'year':
42
- return sprintf(_n('1 year ago', '%d years ago', $value, "recent-facebook-posts"), $value);
43
  break;
44
 
45
  case 'month':
46
- return sprintf(_n('1 month ago', '%d months ago', $value, "recent-facebook-posts"), $value);
47
  break;
48
 
49
  case 'week':
50
- return sprintf(_n('1 week ago', '%d weeks ago', $value, "recent-facebook-posts"), $value);
51
  break;
52
 
53
  case 'day':
54
- return sprintf(_n('1 day ago', '%d days ago', $value, "recent-facebook-posts"), $value);
55
  break;
56
 
57
  case 'hour':
58
- return sprintf(_n('1 hour ago', '%d hours ago', $value, "recent-facebook-posts"), $value);
59
  break;
60
 
61
  case 'minute':
62
- return sprintf(_n('1 minute ago', '%d minutes ago', $value, "recent-facebook-posts"), $value);
63
  break;
64
 
65
  case 'second':
66
- return sprintf(_n('1 second ago', '%d seconds ago', $value, "recent-facebook-posts"), $value);
67
  break;
68
 
69
  default:
70
- return sprintf(__('Some time ago', "recent-facebook-posts"));
71
  break;
72
  }
73
 
4
  exit;
5
  }
6
 
7
+ /**
8
+ * @param $text
9
+ * @param $target
10
+ *
11
+ * @return mixed|string
12
+ */
13
+ function rfbp_make_clickable( $text, $target ) {
14
+ $clickable_text = make_clickable( $text );
15
 
16
  if(!empty($target)) {
17
  return str_replace('<a href="', '<a target="'.$target.'" href="', $clickable_text);
20
  return $clickable_text;
21
  }
22
 
23
+ /**
24
+ * @param $timestamp
25
+ *
26
+ * @return string|void
27
+ */
28
+ function rfbp_time_ago( $timestamp ) {
29
  $diff = time() - (int) $timestamp;
30
 
31
  if ($diff == 0)
32
+ return __( 'just now', "recent-facebook-posts" );
33
 
34
  $intervals = array
35
  (
36
+ 1 => array( 'year', 31556926 ),
37
+ $diff < 31556926 => array( 'month', 2628000 ),
38
+ $diff < 2629744 => array( 'week', 604800 ),
39
+ $diff < 604800 => array( 'day', 86400 ),
40
+ $diff < 86400 => array( 'hour', 3600 ),
41
+ $diff < 3600 => array( 'minute', 60 ),
42
+ $diff < 60 => array( 'second', 1 )
43
  );
44
 
45
+ $value = floor( $diff / $intervals[1][1] );
46
 
47
  $time_unit = $intervals[1][0];
48
 
49
  switch($time_unit) {
50
  case 'year':
51
+ return sprintf( _n( '1 year ago', '%d years ago', $value, "recent-facebook-posts" ), $value );
52
  break;
53
 
54
  case 'month':
55
+ return sprintf( _n( '1 month ago', '%d months ago', $value, "recent-facebook-posts" ), $value );
56
  break;
57
 
58
  case 'week':
59
+ return sprintf( _n( '1 week ago', '%d weeks ago', $value, "recent-facebook-posts" ), $value );
60
  break;
61
 
62
  case 'day':
63
+ return sprintf( _n( '1 day ago', '%d days ago', $value, "recent-facebook-posts" ), $value );
64
  break;
65
 
66
  case 'hour':
67
+ return sprintf( _n( '1 hour ago', '%d hours ago', $value, "recent-facebook-posts" ), $value );
68
  break;
69
 
70
  case 'minute':
71
+ return sprintf( _n( '1 minute ago', '%d minutes ago', $value, "recent-facebook-posts" ), $value );
72
  break;
73
 
74
  case 'second':
75
+ return sprintf( _n( '1 second ago', '%d seconds ago', $value, "recent-facebook-posts" ), $value );
76
  break;
77
 
78
  default:
79
+ return sprintf( __( 'Some time ago', "recent-facebook-posts" ) );
80
  break;
81
  }
82
 
includes/functions/template.php CHANGED
@@ -21,7 +21,6 @@ if( ! defined( 'RFBP_VERSION' ) ) {
21
  * @param array $args
22
  * @return void
23
  */
24
- function recent_facebook_posts( $args = array() )
25
- {
26
  echo RFBP_Public::instance()->output( $args );
27
  }
21
  * @param array $args
22
  * @return void
23
  */
24
+ function recent_facebook_posts( $args = array() ) {
 
25
  echo RFBP_Public::instance()->output( $args );
26
  }
languages/recent-facebook-posts-sv_SE.mo ADDED
Binary file
languages/recent-facebook-posts-sv_SE.po ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 Danny van Kooten
2
+ # This file is distributed under the GPL3 or later.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Recent Facebook Posts 2.0.4\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/recent-facebook-"
7
+ "posts\n"
8
+ "POT-Creation-Date: 2015-02-19 05:46:22+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2015-02-24 20:21+0100\n"
13
+ "Last-Translator: Danny van Kooten <hi@dannyvankooten.com>\n"
14
+ "X-Generator: Poedit 1.7.4\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-SourceCharset: utf-8\n"
18
+ "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2; _nx:1,2,4c;_n_noop:1,2;"
19
+ "_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; esc_html_e;"
20
+ "esc_attr_x:1,2c; esc_html_x:1,2c\n"
21
+ "X-Textdomain-Support: yes\n"
22
+ "Language-Team: \n"
23
+ "Language: sv\n"
24
+ "X-Poedit-SearchPath-0: .\n"
25
+
26
+ #: includes/class-admin.php:156
27
+ msgid "<strong>Cache cleared!</strong> You succesfully cleared the cache."
28
+ msgstr "<strong>Cachen rensad!</strong>"
29
+
30
+ #: includes/class-admin.php:169
31
+ msgid "Settings"
32
+ msgstr "Inställningar"
33
+
34
+ #: includes/class-admin.php:203
35
+ msgid "Your configuration seems to be okay and working. Nice work!."
36
+ msgstr "Din konfiguration verkar fungera. Bra jobbat!"
37
+
38
+ #: includes/class-admin.php:205
39
+ msgid "The following error was encountered when testing your configuration."
40
+ msgstr "Följande error upptäcktes vid testet av din konfiguration"
41
+
42
+ #: includes/class-api.php:51 includes/class-api.php:164
43
+ msgid "Facebook error:"
44
+ msgstr "Facebook error:"
45
+
46
+ #: includes/class-api.php:203
47
+ msgid "Connection error:"
48
+ msgstr "Connection error:"
49
+
50
+ #: includes/class-public.php:188
51
+ msgid "likes"
52
+ msgstr "likes"
53
+
54
+ #: includes/class-public.php:189
55
+ msgid "comments"
56
+ msgstr "kommentarer"
57
+
58
+ #: includes/class-public.php:191
59
+ msgid "%1$s at %2$s"
60
+ msgstr "vid"
61
+
62
+ #: includes/class-public.php:205
63
+ msgid "No recent Facebook posts to show"
64
+ msgstr "Inga nya inlägg från Facebook att visa"
65
+
66
+ #: includes/class-public.php:207
67
+ msgid "Admins only notice"
68
+ msgstr "Enbart admins"
69
+
70
+ #: includes/class-public.php:207
71
+ msgid "Did you <a href=\"%s\">configure the plugin</a> properly?"
72
+ msgstr "Har du <a href=\"%s\">konfigurerat pluginet</a> korrekt?"
73
+
74
+ #: includes/class-widget.php:18
75
+ msgid "Lists a number of your most recent Facebook posts."
76
+ msgstr "Lista ett antal av dina senaste inlägg från Facebook"
77
+
78
+ #. Plugin Name of the plugin/theme
79
+ msgid "Recent Facebook Posts"
80
+ msgstr "Senaste inläggen från Facebook"
81
+
82
+ #: includes/class-widget.php:38
83
+ msgid "You need to <a href=\"%s\">configure Recent Facebook Posts</a> first."
84
+ msgstr "Du behöver <a href=\"%s\">konfigurera pluginet</a> först."
85
+
86
+ #: includes/class-widget.php:42
87
+ msgid "Title:"
88
+ msgstr "Titel:"
89
+
90
+ #: includes/class-widget.php:47
91
+ msgid "Number of posts:"
92
+ msgstr "Antal inlägg:"
93
+
94
+ #: includes/class-widget.php:52
95
+ msgid "Excerpt length:"
96
+ msgstr "Utdrag längd:"
97
+
98
+ #: includes/class-widget.php:58
99
+ msgid "Show like count?"
100
+ msgstr "Visa antal likes?"
101
+
102
+ #: includes/class-widget.php:63
103
+ msgid "Show comment count?"
104
+ msgstr "Visa antal kommentarer?"
105
+
106
+ #: includes/class-widget.php:68
107
+ msgid "Show link to Facebook page?"
108
+ msgstr "Visa länk till Facebooksidan?"
109
+
110
+ #: includes/class-widget.php:73
111
+ msgid "Show link previews?"
112
+ msgstr "Visa länks förhandsvisning?"
113
+
114
+ #: includes/functions/global.php:23 includes/views/settings_page.html.php:69
115
+ msgid "Find us on Facebook"
116
+ msgstr "Hitta oss på Facebook"
117
+
118
+ #: includes/functions/helpers.php:23
119
+ msgid "just now"
120
+ msgstr "precis nu"
121
+
122
+ #: includes/functions/helpers.php:42
123
+ msgid "1 year ago"
124
+ msgid_plural "%d years ago"
125
+ msgstr[0] "1 år sedan"
126
+ msgstr[1] "%d år sedan"
127
+
128
+ #: includes/functions/helpers.php:46
129
+ msgid "1 month ago"
130
+ msgid_plural "%d months ago"
131
+ msgstr[0] "1 månad sedan"
132
+ msgstr[1] "%d månader sedan"
133
+
134
+ #: includes/functions/helpers.php:50
135
+ msgid "1 week ago"
136
+ msgid_plural "%d weeks ago"
137
+ msgstr[0] "1 vecka sedan"
138
+ msgstr[1] "%d veckor sedan"
139
+
140
+ #: includes/functions/helpers.php:54
141
+ msgid "1 day ago"
142
+ msgid_plural "%d days ago"
143
+ msgstr[0] "1 dag sedan"
144
+ msgstr[1] "%d dagar sedan"
145
+
146
+ #: includes/functions/helpers.php:58
147
+ msgid "1 hour ago"
148
+ msgid_plural "%d hours ago"
149
+ msgstr[0] "1 timme sedan"
150
+ msgstr[1] "%d timmar sedan"
151
+
152
+ #: includes/functions/helpers.php:62
153
+ msgid "1 minute ago"
154
+ msgid_plural "%d minutes ago"
155
+ msgstr[0] "1 minut sedan"
156
+ msgstr[1] "%d minuter sedan"
157
+
158
+ #: includes/functions/helpers.php:66
159
+ msgid "1 second ago"
160
+ msgid_plural "%d seconds ago"
161
+ msgstr[0] "1 sekund sedan"
162
+ msgstr[1] "%d sekunder sedan"
163
+
164
+ #: includes/functions/helpers.php:70
165
+ msgid "Some time ago"
166
+ msgstr "Ett tag sedan"
167
+
168
+ #: includes/views/settings_page.html.php:21
169
+ msgid "Facebook Settings"
170
+ msgstr "Facebook Inställningar"
171
+
172
+ #: includes/views/settings_page.html.php:26
173
+ msgid "This plugin needs a Facebook application to work."
174
+ msgstr "Pluginet behöver en Facebook applikation för att fungera"
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
+ "Var god fyll i \"Facebook Inställningar\" fältet efter att du skapat din "
181
+ "applikation"
182
+
183
+ #: includes/views/settings_page.html.php:30
184
+ msgid ""
185
+ "Not sure how to proceed? Please take a close look at the <a href=\"%s"
186
+ "\">installation instructions</a>."
187
+ msgstr ""
188
+ "Inte säker på hur du ska fortsätta? Vad god läs <a href=\"%s"
189
+ "\">instruktionerna</a> noggrant."
190
+
191
+ #: includes/views/settings_page.html.php:38
192
+ msgid "Facebook App ID/API Key"
193
+ msgstr "Facebook App ID/API Nyckel"
194
+
195
+ #: includes/views/settings_page.html.php:42
196
+ msgid "Get your App ID from %s."
197
+ msgstr "Hämta ditt APP ID från %s."
198
+
199
+ #: includes/views/settings_page.html.php:47
200
+ msgid "Facebook App Secret"
201
+ msgstr "Facebook App Secret"
202
+
203
+ #: includes/views/settings_page.html.php:50
204
+ msgid "Get your App Secret from %s."
205
+ msgstr "Hämta din App Secret från %s."
206
+
207
+ #: includes/views/settings_page.html.php:55
208
+ msgid "Facebook Page ID or Slug"
209
+ msgstr "Facebook Page ID eller Slug"
210
+
211
+ #: includes/views/settings_page.html.php:58
212
+ msgid ""
213
+ "Use <a href=\"%s\">this tool</a> to find the numeric ID of your Facebook "
214
+ "page."
215
+ msgstr ""
216
+ "Använd <a href=\"%s\">detta verktyg</a> för att hitta ett numeriskt ID för "
217
+ "din Facebooksida."
218
+
219
+ #: includes/views/settings_page.html.php:64
220
+ msgid "Appearance"
221
+ msgstr "Utseende"
222
+
223
+ #: includes/views/settings_page.html.php:68
224
+ msgid "Link text"
225
+ msgstr "Länktext"
226
+
227
+ #: includes/views/settings_page.html.php:73
228
+ msgid "Open links in new window?"
229
+ msgstr "Öppna länkar i nytt fönster?"
230
+
231
+ #: includes/views/settings_page.html.php:78
232
+ msgid "Load some default styles?"
233
+ msgstr "Ladda standard stilmall?"
234
+
235
+ #: includes/views/settings_page.html.php:84
236
+ msgid "Image size"
237
+ msgstr "Bildstorlek"
238
+
239
+ #: includes/views/settings_page.html.php:87
240
+ msgid "Don't show images"
241
+ msgstr "Visa inte bilder"
242
+
243
+ #: includes/views/settings_page.html.php:88
244
+ msgid "Thumbnail"
245
+ msgstr "Thumbnail"
246
+
247
+ #: includes/views/settings_page.html.php:89
248
+ msgid "Normal"
249
+ msgstr "Normal"
250
+
251
+ #: includes/views/settings_page.html.php:96
252
+ msgid "Image dimensions"
253
+ msgstr "Bilddimensioner"
254
+
255
+ #: includes/views/settings_page.html.php:96
256
+ msgid "(in pixels, optional)"
257
+ msgstr "(i pixlar, frivilligt)"
258
+
259
+ #: includes/views/settings_page.html.php:99
260
+ msgid "Max Width"
261
+ msgstr "Max bredd"
262
+
263
+ #: includes/views/settings_page.html.php:103
264
+ msgid "Max Height"
265
+ msgstr "Max höjd"
266
+
267
+ #: includes/views/settings_page.html.php:107
268
+ msgid "Leave empty for default sizing"
269
+ msgstr "Lämna tom för standard storlek"
270
+
271
+ #: includes/views/settings_page.html.php:118
272
+ #: includes/views/settings_page.html.php:122
273
+ msgid "Test Configuration"
274
+ msgstr "Testa konfiguration"
275
+
276
+ #: includes/views/settings_page.html.php:119
277
+ msgid "Test your plugin configuration using the button below."
278
+ msgstr "Llicka på knappen nedan för att testa pluginets konfiguration."
279
+
280
+ #: includes/views/settings_page.html.php:125
281
+ msgid "Facebook Posts Cache"
282
+ msgstr "Facebook Posts Cache"
283
+
284
+ #: includes/views/settings_page.html.php:126
285
+ msgid ""
286
+ "Because fetching posts from Facebook is relatively slow the posts are cached "
287
+ "for <strong>30 minutes</strong>. You can manually clear the cache using the "
288
+ "button below."
289
+ msgstr ""
290
+ "Eftersom det är relativt långsamt att hämta inlägg från Facebook så är "
291
+ "inläggen cachade i <strong>30 minuter</strong>. Du kan välja att rensa "
292
+ "cachen manuellt genom att klicka på knappen nedan."
293
+
294
+ #: includes/views/settings_page.html.php:130
295
+ msgid "Clear Cache"
296
+ msgstr "Rensa Cache"
297
+
298
+ #: includes/views/settings_page.html.php:139
299
+ msgid "Donate $10, $20 or $50"
300
+ msgstr "Donera $10, $20 or $50"
301
+
302
+ #: includes/views/settings_page.html.php:140
303
+ msgid ""
304
+ "I spent a lot of time developing this plugin and offering support for it. If "
305
+ "you like it, consider supporting this plugin by donating a token of your "
306
+ "appreciation."
307
+ msgstr ""
308
+ "Jag spenderade mycket tid för att utveckla detta plugin och även erbjuda "
309
+ "support för det. Om du gillar det, var god stöd genom att donera genom "
310
+ "knappen nedan."
311
+
312
+ #: includes/views/settings_page.html.php:151
313
+ msgid "Donate with PayPal"
314
+ msgstr "Donera via PayPal"
315
+
316
+ #: includes/views/settings_page.html.php:156
317
+ msgid "Some other ways to support this plugin"
318
+ msgstr "Andra sätt att visa uppskattning för detta plugin"
319
+
320
+ #: includes/views/settings_page.html.php:158
321
+ msgid "Leave a %s review on WordPress.org"
322
+ msgstr "Lämna en %s recension på Wordpress.org"
323
+
324
+ #: includes/views/settings_page.html.php:159
325
+ msgid "Write about the plugin from your blog."
326
+ msgstr "Skriv om pluginet på din blogg."
327
+
328
+ #: includes/views/settings_page.html.php:160
329
+ msgid "Tweet about Recent Facebook Posts"
330
+ msgstr "Tweeta om pluginet"
331
+
332
+ #: includes/views/settings_page.html.php:161
333
+ msgid "Vote \"works\" on the WordPress.org plugin page"
334
+ msgstr "Rösta \"works\" på Wordpress.org's pluginsida"
335
+
336
+ #: includes/views/settings_page.html.php:166
337
+ msgid "Looking for support?"
338
+ msgstr "Söker du hjälp?"
339
+
340
+ #: includes/views/settings_page.html.php:167
341
+ msgid ""
342
+ "Please use the <a href=\"%s\">plugin support forums</a> on WordPress.org."
343
+ msgstr ""
344
+ "Var god använd <a href=\"%s\">pluginets support-forum</a> på WordPress.org."
345
+
346
+ #: includes/views/settings_page.html.php:168
347
+ msgid ""
348
+ "Take a close look at the <a href=\"%s\">installation instructions</a> for "
349
+ "help configuring the plugin and registering your own Facebook application, "
350
+ "which is required to get this plugin to work."
351
+ msgstr ""
352
+ "Läs noggrant igenom <a href=\"%s\">installation instructions</a> för support "
353
+ "om hur du konfigurerar pluginet och registrerar din egen Faceboook "
354
+ "applikation. Detta måste göras för att pluginet ska fungera."
355
+
356
+ #: includes/views/settings_page.html.php:172
357
+ msgid "Other Useful plugins"
358
+ msgstr "Andra användbara plugins"
359
+
360
+ #. Plugin URI of the plugin/theme
361
+ msgid "https://dannyvankooten.com/donate/"
362
+ msgstr ""
363
+
364
+ #. Description of the plugin/theme
365
+ msgid "Lists most recent posts from a public Facebook page."
366
+ msgstr "Lista senaste inlägg från en publik Facebook-sida"
367
+
368
+ #. Author of the plugin/theme
369
+ msgid "Danny van Kooten"
370
+ msgstr ""
371
+
372
+ #. Author URI of the plugin/theme
373
+ msgid "https://dannyvankooten.com/"
374
+ msgstr ""
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.4\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/recent-facebook-posts\n"
8
- "POT-Creation-Date: 2015-02-19 05:46:22+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -117,53 +117,53 @@ msgstr ""
117
  msgid "Find us on Facebook"
118
  msgstr ""
119
 
120
- #: includes/functions/helpers.php:23
121
  msgid "just now"
122
  msgstr ""
123
 
124
- #: includes/functions/helpers.php:42
125
  msgid "1 year ago"
126
  msgid_plural "%d years ago"
127
  msgstr[0] ""
128
  msgstr[1] ""
129
 
130
- #: includes/functions/helpers.php:46
131
  msgid "1 month ago"
132
  msgid_plural "%d months ago"
133
  msgstr[0] ""
134
  msgstr[1] ""
135
 
136
- #: includes/functions/helpers.php:50
137
  msgid "1 week ago"
138
  msgid_plural "%d weeks ago"
139
  msgstr[0] ""
140
  msgstr[1] ""
141
 
142
- #: includes/functions/helpers.php:54
143
  msgid "1 day ago"
144
  msgid_plural "%d days ago"
145
  msgstr[0] ""
146
  msgstr[1] ""
147
 
148
- #: includes/functions/helpers.php:58
149
  msgid "1 hour ago"
150
  msgid_plural "%d hours ago"
151
  msgstr[0] ""
152
  msgstr[1] ""
153
 
154
- #: includes/functions/helpers.php:62
155
  msgid "1 minute ago"
156
  msgid_plural "%d minutes ago"
157
  msgstr[0] ""
158
  msgstr[1] ""
159
 
160
- #: includes/functions/helpers.php:66
161
  msgid "1 second ago"
162
  msgid_plural "%d seconds ago"
163
  msgstr[0] ""
164
  msgstr[1] ""
165
 
166
- #: includes/functions/helpers.php:70
167
  msgid "Some time ago"
168
  msgstr ""
169
 
2
  # This file is distributed under the GPL3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Recent Facebook Posts 2.0.5\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/recent-facebook-posts\n"
8
+ "POT-Creation-Date: 2015-03-23 13:12:15+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
117
  msgid "Find us on Facebook"
118
  msgstr ""
119
 
120
+ #: includes/functions/helpers.php:32
121
  msgid "just now"
122
  msgstr ""
123
 
124
+ #: includes/functions/helpers.php:51
125
  msgid "1 year ago"
126
  msgid_plural "%d years ago"
127
  msgstr[0] ""
128
  msgstr[1] ""
129
 
130
+ #: includes/functions/helpers.php:55
131
  msgid "1 month ago"
132
  msgid_plural "%d months ago"
133
  msgstr[0] ""
134
  msgstr[1] ""
135
 
136
+ #: includes/functions/helpers.php:59
137
  msgid "1 week ago"
138
  msgid_plural "%d weeks ago"
139
  msgstr[0] ""
140
  msgstr[1] ""
141
 
142
+ #: includes/functions/helpers.php:63
143
  msgid "1 day ago"
144
  msgid_plural "%d days ago"
145
  msgstr[0] ""
146
  msgstr[1] ""
147
 
148
+ #: includes/functions/helpers.php:67
149
  msgid "1 hour ago"
150
  msgid_plural "%d hours ago"
151
  msgstr[0] ""
152
  msgstr[1] ""
153
 
154
+ #: includes/functions/helpers.php:71
155
  msgid "1 minute ago"
156
  msgid_plural "%d minutes ago"
157
  msgstr[0] ""
158
  msgstr[1] ""
159
 
160
+ #: includes/functions/helpers.php:75
161
  msgid "1 second ago"
162
  msgid_plural "%d seconds ago"
163
  msgstr[0] ""
164
  msgstr[1] ""
165
 
166
+ #: includes/functions/helpers.php:79
167
  msgid "Some time ago"
168
  msgstr ""
169
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: DvanKooten
3
  Donate link: https://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.1.1
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -152,6 +152,12 @@ add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
152
 
153
  == Changelog ==
154
 
 
 
 
 
 
 
155
  = 2.0.4 - February 19, 2015 =
156
 
157
  **Fixes**
2
  Contributors: DvanKooten
3
  Donate link: https://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.7
6
+ Tested up to: 4.2
7
+ Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
152
 
153
  == Changelog ==
154
 
155
+ = 2.0.5 - March 23, 2015 =
156
+
157
+ **Additions**
158
+
159
+ - Added Swedish translations, thanks to [Robin Wellström](http://robinwellstrom.se/).
160
+
161
  = 2.0.4 - February 19, 2015 =
162
 
163
  **Fixes**
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.4
7
  Author: Danny van Kooten
8
  Author URI: https://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
@@ -32,7 +32,7 @@ if( ! defined( 'ABSPATH' ) ) {
32
  }
33
 
34
  // Plugin Constants
35
- define( 'RFBP_VERSION', '2.0.4' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
  /**
@@ -48,7 +48,7 @@ function __rfbp_bootstrap() {
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();
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.5
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.5' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
  /**
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();
uninstall.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
5
  exit();
6
  }
7
 
8
- delete_transient('rfbp_posts');
9
- delete_transient('rfbp_posts_fallback');
10
 
11
- delete_option('rfb_settings');
5
  exit();
6
  }
7
 
8
+ delete_transient( 'rfbp_posts' );
9
+ delete_transient( 'rfbp_posts_fallback' );
10
 
11
+ delete_option( 'rfb_settings' );