RSSImport - Version 4.4.12

Version Description

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin RSSImport
Version 4.4.12
Comparing to
See all releases

Code changes from version 4.4.11 to 4.4.12

js/quicktag.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript">
2
+ //<![CDATA[
3
+ var length = edButtons.length;
4
+ edButtons[length] = new edButton('RSSImport', '$context', '[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" paging="FALSE" prev_paging_link="&laquo; Previous" next_paging_link="Next &raquo;" prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]', '', '');
5
+ function RSSImport_tag(id) {
6
+ id = id.replace(/RSSImport_/, '');
7
+ edInsertTag(edCanvas, id);
8
+ }
9
+ jQuery(document).ready(function() {
10
+ content = '<input id="RSSImport_'+length+'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) . '" title="' . __( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ) . '" onclick="RSSImport_tag(this.id);" />';
11
+ jQuery("#ed_toolbar").append(content);
12
+ });
13
+ //]]>
14
+ </script>
languages/rssimport-lt_LT.mo ADDED
Binary file
languages/rssimport-lt_LT.po ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP-RSSImport v4.2.4\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-06-04 13:29+0100\n"
6
+ "PO-Revision-Date: 2012-03-10 18:12+0200\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: German\n"
14
+ "X-Poedit-Country: GERMANY\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ rssimport
22
+ #: rssimport.php:465
23
+ msgid "No items, feed is empty."
24
+ msgstr "Elementų nerasta, padavimas tuščias."
25
+
26
+ #@ rssimport
27
+ #: rssimport.php:468
28
+ msgid "Error: Feed has a error or is not valid"
29
+ msgstr "Klaida: Padavime yra klaidų arba jis nėra teisingas"
30
+
31
+ #@ rssimport
32
+ #: rssimport.php:471
33
+ msgid "&laquo; Previous"
34
+ msgstr "&laquo; Ankstesnis"
35
+
36
+ #@ rssimport
37
+ #: rssimport.php:472
38
+ msgid "Next &raquo;"
39
+ msgstr "Kitas &raquo;"
40
+
41
+ #@ rssimport
42
+ #: rssimport.php:473
43
+ #: rssimport.php:474
44
+ msgid "more items"
45
+ msgstr "daugiau elementų"
46
+
47
+ #@ rssimport
48
+ #@ default
49
+ #: rssimport.php:568
50
+ #: rssimport.php:880
51
+ msgid "RSSImport"
52
+ msgstr "RSSImport"
53
+
54
+ #@ rssimport
55
+ #: rssimport.php:568
56
+ msgid "Import a feed with RSSImport"
57
+ msgstr "Importuoti padavimą su RSSImport"
58
+
59
+ #@ rssimport
60
+ #: rssimport.php:879
61
+ msgid "Entries from any RSS or Atom feed"
62
+ msgstr "Įrašai iš bet kurio RSS arba Atom padavimo"
63
+
64
+ #@ rssimport
65
+ #: rssimport.php:1089
66
+ msgid "Title:"
67
+ msgstr "Antraštė:"
68
+
69
+ #@ rssimport
70
+ #: rssimport.php:1092
71
+ msgid "URL for Title (incl. http://):"
72
+ msgstr "Universalioji nuoroda Antraštei (įtraukti http://):"
73
+
74
+ #@ rssimport
75
+ #: rssimport.php:1095
76
+ msgid "Display:"
77
+ msgstr "Vaizduoti:"
78
+
79
+ #@ rssimport
80
+ #: rssimport.php:1098
81
+ msgid "FeedURL:"
82
+ msgstr "Padavimo universalioji nuoroda:"
83
+
84
+ #@ rssimport
85
+ #: rssimport.php:1101
86
+ msgid "Before Description:"
87
+ msgstr "Prieš Aprašą:"
88
+
89
+ #@ rssimport
90
+ #: rssimport.php:1104
91
+ msgid "Display Description:"
92
+ msgstr "Vaizduoti Aprašą:"
93
+
94
+ #@ rssimport
95
+ #: rssimport.php:1106
96
+ #: rssimport.php:1119
97
+ #: rssimport.php:1142
98
+ #: rssimport.php:1160
99
+ #: rssimport.php:1189
100
+ #: rssimport.php:1199
101
+ #: rssimport.php:1207
102
+ #: rssimport.php:1233
103
+ #: rssimport.php:1253
104
+ #: rssimport.php:1261
105
+ msgid "False"
106
+ msgstr "Netiesa"
107
+
108
+ #@ rssimport
109
+ #: rssimport.php:1107
110
+ #: rssimport.php:1120
111
+ #: rssimport.php:1143
112
+ #: rssimport.php:1161
113
+ #: rssimport.php:1190
114
+ #: rssimport.php:1200
115
+ #: rssimport.php:1208
116
+ #: rssimport.php:1234
117
+ #: rssimport.php:1254
118
+ #: rssimport.php:1262
119
+ msgid "True"
120
+ msgstr "Tiesa"
121
+
122
+ #@ rssimport
123
+ #: rssimport.php:1112
124
+ msgid "After Description:"
125
+ msgstr "Po Aprašymo:"
126
+
127
+ #@ rssimport
128
+ #: rssimport.php:1113
129
+ msgid "You can use the follow strings for create custom links:"
130
+ msgstr "Jūs galite naudoti šiuos saitus, individualių nuorodų kūrimui:"
131
+
132
+ #@ rssimport
133
+ #: rssimport.php:1114
134
+ msgid "Example:"
135
+ msgstr "Pavyzdys:"
136
+
137
+ #@ rssimport
138
+ #: rssimport.php:1117
139
+ msgid "HTML:"
140
+ msgstr "HTML:"
141
+
142
+ #@ rssimport
143
+ #: rssimport.php:1125
144
+ msgid "Truncate Description Char:"
145
+ msgstr "Trumpinti Aprašymo Ženklus:"
146
+
147
+ #@ rssimport
148
+ #: rssimport.php:1128
149
+ msgid "Truncate Description String (HTML):"
150
+ msgstr "Trumpinti Aprašymo Eilutę (HTML):"
151
+
152
+ #@ rssimport
153
+ #: rssimport.php:1131
154
+ msgid "Truncate Title Char:"
155
+ msgstr "Trumpinti Antraštės Ženklus:"
156
+
157
+ #@ rssimport
158
+ #: rssimport.php:1134
159
+ msgid "Truncate Title String (HTML):"
160
+ msgstr "Trumpinti Antraštės Eilutę (HTML):"
161
+
162
+ #@ rssimport
163
+ #: rssimport.php:1137
164
+ msgid "Before Date (HTML):"
165
+ msgstr "Prieš Datą (HTML):"
166
+
167
+ #@ rssimport
168
+ #: rssimport.php:1140
169
+ msgid "Date:"
170
+ msgstr "Data:"
171
+
172
+ #@ rssimport
173
+ #: rssimport.php:1148
174
+ msgid "After Date (HTML):"
175
+ msgstr "Po Datos(HTML):"
176
+
177
+ #@ rssimport
178
+ #: rssimport.php:1151
179
+ msgid "Date Formatting:"
180
+ msgstr "Datos Ženklinimas:"
181
+
182
+ #@ rssimport
183
+ #: rssimport.php:1152
184
+ msgid "Leave empty for use the date format of your WordPress settings."
185
+ msgstr "Palikite šį laukelį tuščią ir naudokite datos ženklinimą, kaip nustatyta Jūsų WordPress nuostatose."
186
+
187
+ #@ rssimport
188
+ #: rssimport.php:1152
189
+ msgid "Documentation on date formatting"
190
+ msgstr "Datos ženklinimo dokumentacija"
191
+
192
+ #@ rssimport
193
+ #: rssimport.php:1155
194
+ msgid "Before Creator (HTML):"
195
+ msgstr "Prieš Autorių (HTML):"
196
+
197
+ #@ rssimport
198
+ #: rssimport.php:1158
199
+ msgid "Creator:"
200
+ msgstr "Autorius:"
201
+
202
+ #@ rssimport
203
+ #: rssimport.php:1166
204
+ msgid "After Creator (HTML):"
205
+ msgstr "Po Autoriaus (HTML):"
206
+
207
+ #@ rssimport
208
+ #: rssimport.php:1169
209
+ msgid "Before Items (HTML):"
210
+ msgstr "Prieš Elementus (HTML):"
211
+
212
+ #@ rssimport
213
+ #: rssimport.php:1172
214
+ msgid "After Items (HTML):"
215
+ msgstr "Po Elementų (HTML):"
216
+
217
+ #@ rssimport
218
+ #: rssimport.php:1175
219
+ msgid "Before Item (HTML):"
220
+ msgstr "Prieš Elementą (HTML):"
221
+
222
+ #@ rssimport
223
+ #: rssimport.php:1178
224
+ msgid "After Item (HTML):"
225
+ msgstr "Po Elemento (HTML):"
226
+
227
+ #@ rssimport
228
+ #: rssimport.php:1181
229
+ msgid "Target Attribut:"
230
+ msgstr "Paskirtasis Požymis:"
231
+
232
+ #@ rssimport
233
+ #: rssimport.php:1184
234
+ msgid "Rel Attribut:"
235
+ msgstr "Ryšio Požymis:"
236
+
237
+ #@ rssimport
238
+ #: rssimport.php:1197
239
+ msgid "Charsetscan:"
240
+ msgstr "Ženklų bloko tinkrinimas:"
241
+
242
+ #@ rssimport
243
+ #: rssimport.php:1205
244
+ msgid "Debug mode:"
245
+ msgstr "Derinimo būsena:"
246
+
247
+ #@ rssimport
248
+ #: rssimport.php:1213
249
+ msgid "Before <em>No</em> Items Message (HTML):"
250
+ msgstr "Prieš <em>Ne</em> Elementų Pranešimą (HTML):"
251
+
252
+ #@ rssimport
253
+ #: rssimport.php:1216
254
+ msgid "<em>No</em> Items Message:"
255
+ msgstr "<em>Ne</em> Elementų Pranešimą:"
256
+
257
+ #@ rssimport
258
+ #: rssimport.php:1219
259
+ msgid "After <em>No</em> Items Message (HTML):"
260
+ msgstr "Po <em>Keine</em> Elementų Pranešimą (HTML):"
261
+
262
+ #@ rssimport
263
+ #: rssimport.php:1222
264
+ msgid "Before Error Message (HTML):"
265
+ msgstr "Prieš Klaidos Pranešimo (HTML):"
266
+
267
+ #@ rssimport
268
+ #: rssimport.php:1225
269
+ msgid "Error Message:"
270
+ msgstr "Klaidos Pranešimas:"
271
+
272
+ #@ rssimport
273
+ #: rssimport.php:1228
274
+ msgid "After Error Message (HTML):"
275
+ msgstr "Po Klidos Pranešimo (HTML):"
276
+
277
+ #@ rssimport
278
+ #: rssimport.php:1231
279
+ msgid "Pagination:"
280
+ msgstr "Puslapių numeravimas:"
281
+
282
+ #@ rssimport
283
+ #: rssimport.php:1239
284
+ msgid "Previous Pagination Link String:"
285
+ msgstr "Buvęs Puslapių numeravimo nuorodos Saitas:"
286
+
287
+ #@ rssimport
288
+ #: rssimport.php:1242
289
+ msgid "Next Pagination Link String:"
290
+ msgstr "Sekantis Puslapių numeravimo nuorodos Saitas:"
291
+
292
+ #@ rssimport
293
+ #: rssimport.php:1245
294
+ msgid "Previous Pagination Title String:"
295
+ msgstr "Buvęsi Puslapių numeravimo Antraštės Saitas:"
296
+
297
+ #@ rssimport
298
+ #: rssimport.php:1248
299
+ msgid "Next Pagination Title String:"
300
+ msgstr "Sekantis Puslapių numeravimo Antraštės Saitas:"
301
+
302
+ #@ rssimport
303
+ #: rssimport.php:1251
304
+ msgid "Use SimplePie class:"
305
+ msgstr "Naudoti SimplePie klasę:"
306
+
307
+ #@ rssimport
308
+ #: rssimport.php:1259
309
+ msgid "Echo/Return:"
310
+ msgstr "Aidas/Grįžtis:"
311
+
312
+ #@ rssimport
313
+ #. translators: plugin header field 'Description'
314
+ #: rssimport.php:0
315
+ msgid "Import and display Feeds in your blog, use the function RSSImport(), a Widget or Shortcode [RSSImport]. Please see the new <a href=\"http://wordpress.org/extend/plugins/rss-import/\">possibilities</a>."
316
+ msgstr "Norėdami importuoti ir parodyti Padavimus Jūsų tinklaraštyje, naudokite funkciją RSSImport(), Valdikį arba Trumpajį kodą [RSSImport]. Peržvelgite naujausias <a href=\"http://wordpress.org/extend/plugins/rss-import/\">galimybes</a>."
317
+
318
+ #@ rssimport
319
+ #. translators: plugin header field 'Name'
320
+ #: rssimport.php:0
321
+ msgid "WP-RSSImport"
322
+ msgstr "WP-RSSImport"
323
+
324
+ #@ rssimport
325
+ #. translators: plugin header field 'PluginURI'
326
+ #: rssimport.php:0
327
+ msgid "http://bueltge.de/wp-rss-import-plugin/55/"
328
+ msgstr "http://bueltge.de/wp-rss-import-plugin/55/"
329
+
330
+ #@ rssimport
331
+ #. translators: plugin header field 'Author'
332
+ #: rssimport.php:0
333
+ msgid "Frank B&uuml;ltge"
334
+ msgstr "Frank B&uuml;ltge"
335
+
336
+ #@ rssimport
337
+ #. translators: plugin header field 'AuthorURI'
338
+ #: rssimport.php:0
339
+ msgid "http://bueltge.de/"
340
+ msgstr "http://bueltge.de/"
341
+
342
+ #@ rssimport
343
+ #. translators: plugin header field 'Version'
344
+ #: rssimport.php:0
345
+ msgid "4.4.9"
346
+ msgstr "4.4.9"
347
+
348
+ #@ default
349
+ #: rssimport.php:130
350
+ msgid "Error in file: on line: .<br />The WordPress file \"class-simplepie.php\" with class SimplePie could not be included."
351
+ msgstr "Klaida rinkmejone: eilutėje: .<br />Wordpress rinkmena \"class-simplepie.php\" su klasės SimplePie negali būti įtraukta."
352
+
353
+ #@ default
354
+ #: rssimport.php:142
355
+ msgid "Error in file: on line: .<br />The Wordpress file \"rss-functions.php\" or \"rss.php\" could not be included."
356
+ msgstr "Klaida rinkmejone: eilutėje: .<br />Wordpress rinkmenos \"rss-functions.php\" arba \"rss.php\" negali būti įtrauktos."
357
+
358
+ #@ rssimport
359
+ #: rssimport.php:1187
360
+ msgid "Desc4Title:"
361
+ msgstr "Aprašymas Antraštei:"
362
+
363
+ #@ rssimport
364
+ #: rssimport.php:1194
365
+ msgid "Description for title-Attribut on Title-Link"
366
+ msgstr "Antraštės gairės aprašymas Antraštės Nuorodoje"
367
+
languages/rssimport-pt_PT.mo ADDED
Binary file
languages/rssimport-pt_PT.po ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP-RSSImport\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-06-08 13:26+0100\n"
6
+ "PO-Revision-Date: 2012-07-12 20:05-0000\n"
7
+ "Last-Translator: Tsunamy <xr600patr@gmail.com>\n"
8
+ "Language-Team: wpp.pp.ua <wordpress.ua@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Ukraine\n"
14
+ "X-Poedit-Country: UKRAINE\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ rssimport
22
+ #: rssimport.php:529
23
+ #: rssimport.php:841
24
+ msgid "RSSImport"
25
+ msgstr "RSSImport"
26
+
27
+ #@ rssimport
28
+ #: rssimport.php:529
29
+ msgid "Import a feed with RSSImport"
30
+ msgstr "Importar um feed com RSSImport"
31
+
32
+ #: rssimport.php:132
33
+ msgid "Error in file: on line: .<br />The Wordpress file \"rss-functions.php\" or \"rss.php\" could not be included."
34
+ msgstr "Помилка у файлі: у лінії: .<br />The Wordpress файл \"rss-functions.php\" або \"rss.php\" не міг включатися."
35
+
36
+ #@ rssimport
37
+ #: rssimport.php:440
38
+ msgid "No items, feed is empty."
39
+ msgstr "Nenhum item, o feed está vazio."
40
+
41
+ #@ rssimport
42
+ #: rssimport.php:443
43
+ msgid "Error: Feed has a error or is not valid"
44
+ msgstr "Erro: Feed tem um erro ou não é válido"
45
+
46
+ #@ rssimport
47
+ #: rssimport.php:446
48
+ msgid "&laquo; Previous"
49
+ msgstr "&laquo; Anterior"
50
+
51
+ #@ rssimport
52
+ #: rssimport.php:447
53
+ msgid "Next &raquo;"
54
+ msgstr "Próximo &raquo;"
55
+
56
+ #@ rssimport
57
+ #: rssimport.php:448
58
+ #: rssimport.php:449
59
+ msgid "more items"
60
+ msgstr "mais itens"
61
+
62
+ #@ rssimport
63
+ #: rssimport.php:840
64
+ msgid "Entries from any RSS or Atom feed"
65
+ msgstr "Entradas de qualquer feed RSS ou Atom"
66
+
67
+ #@ rssimport
68
+ #: rssimport.php:1045
69
+ msgid "Title:"
70
+ msgstr "Título:"
71
+
72
+ #@ rssimport
73
+ #: rssimport.php:1048
74
+ msgid "URL for Title (incl. http://):"
75
+ msgstr "URL para o título (incluindo http://):"
76
+
77
+ #@ rssimport
78
+ #: rssimport.php:1051
79
+ msgid "Display:"
80
+ msgstr "Display:"
81
+
82
+ #@ rssimport
83
+ #: rssimport.php:1054
84
+ msgid "FeedURL:"
85
+ msgstr "FeedURL:"
86
+
87
+ #@ rssimport
88
+ #: rssimport.php:1057
89
+ msgid "Before Description:"
90
+ msgstr "Descrição Antes:"
91
+
92
+ #@ rssimport
93
+ #: rssimport.php:1060
94
+ msgid "Display Description:"
95
+ msgstr "Mostrar Descrição:"
96
+
97
+ #@ rssimport
98
+ #: rssimport.php:1062
99
+ #: rssimport.php:1075
100
+ #: rssimport.php:1098
101
+ #: rssimport.php:1116
102
+ #: rssimport.php:1145
103
+ #: rssimport.php:1153
104
+ #: rssimport.php:1179
105
+ #: rssimport.php:1199
106
+ #: rssimport.php:1207
107
+ msgid "False"
108
+ msgstr "Falso"
109
+
110
+ #@ rssimport
111
+ #: rssimport.php:1063
112
+ #: rssimport.php:1076
113
+ #: rssimport.php:1099
114
+ #: rssimport.php:1117
115
+ #: rssimport.php:1146
116
+ #: rssimport.php:1154
117
+ #: rssimport.php:1180
118
+ #: rssimport.php:1200
119
+ #: rssimport.php:1208
120
+ msgid "True"
121
+ msgstr "Verdadeiro"
122
+
123
+ #@ rssimport
124
+ #: rssimport.php:1068
125
+ msgid "After Description:"
126
+ msgstr "Após Descrição:"
127
+
128
+ #@ rssimport
129
+ #: rssimport.php:1069
130
+ msgid "You can use the follow strings for create custom links:"
131
+ msgstr "Você pode usar as sequências de seguir para criar links personalizados:"
132
+
133
+ #@ rssimport
134
+ #: rssimport.php:1070
135
+ msgid "Example:"
136
+ msgstr "Exemplo:"
137
+
138
+ #@ rssimport
139
+ #: rssimport.php:1073
140
+ msgid "HTML:"
141
+ msgstr "HTML:"
142
+
143
+ #@ rssimport
144
+ #: rssimport.php:1081
145
+ msgid "Truncate Description Char:"
146
+ msgstr "Truncar Descrição Char:"
147
+
148
+ #@ rssimport
149
+ #: rssimport.php:1084
150
+ msgid "Truncate Description String (HTML):"
151
+ msgstr "Truncar Descrição String (HTML):"
152
+
153
+ #@ rssimport
154
+ #: rssimport.php:1087
155
+ msgid "Truncate Title Char:"
156
+ msgstr "Truncar Título Char:"
157
+
158
+ #@ rssimport
159
+ #: rssimport.php:1090
160
+ msgid "Truncate Title String (HTML):"
161
+ msgstr "Título Truncate String (HTML):"
162
+
163
+ #@ rssimport
164
+ #: rssimport.php:1093
165
+ msgid "Before Date (HTML):"
166
+ msgstr "Antes da Data (HTML):"
167
+
168
+ #@ rssimport
169
+ #: rssimport.php:1096
170
+ msgid "Date:"
171
+ msgstr "Data:"
172
+
173
+ #@ rssimport
174
+ #: rssimport.php:1104
175
+ msgid "After Date (HTML):"
176
+ msgstr "Após a Data (HTML):"
177
+
178
+ #@ rssimport
179
+ #: rssimport.php:1111
180
+ msgid "Before Creator (HTML):"
181
+ msgstr "Antes Criador (HTML):"
182
+
183
+ #@ rssimport
184
+ #: rssimport.php:1114
185
+ msgid "Creator:"
186
+ msgstr "Criador:"
187
+
188
+ #@ rssimport
189
+ #: rssimport.php:1122
190
+ msgid "After Creator (HTML):"
191
+ msgstr "Depois Criador (HTML):"
192
+
193
+ #@ rssimport
194
+ #: rssimport.php:1125
195
+ msgid "Before Items (HTML):"
196
+ msgstr "Antes de Itens (HTML):"
197
+
198
+ #@ rssimport
199
+ #: rssimport.php:1128
200
+ msgid "After Items (HTML):"
201
+ msgstr "Depois de Itens (HTML):"
202
+
203
+ #@ rssimport
204
+ #: rssimport.php:1131
205
+ msgid "Before Item (HTML):"
206
+ msgstr "Antes Item (HTML):"
207
+
208
+ #@ rssimport
209
+ #: rssimport.php:1134
210
+ msgid "After Item (HTML):"
211
+ msgstr "Após o ponto (HTML):"
212
+
213
+ #@ rssimport
214
+ #: rssimport.php:1137
215
+ msgid "Target Attribut:"
216
+ msgstr "Alvo Atribuíveis:"
217
+
218
+ #@ rssimport
219
+ #: rssimport.php:1140
220
+ msgid "Rel Attribut:"
221
+ msgstr "Rel atribuíveis:"
222
+
223
+ #@ rssimport
224
+ #: rssimport.php:1143
225
+ msgid "Charsetscan:"
226
+ msgstr "Charsetscan:"
227
+
228
+ #@ rssimport
229
+ #: rssimport.php:1151
230
+ msgid "Debug mode:"
231
+ msgstr "Modo de depuração:"
232
+
233
+ #@ rssimport
234
+ #: rssimport.php:1205
235
+ msgid "Echo/Return:"
236
+ msgstr "Eco/Return:"
237
+
238
+ #@ rssimport
239
+ #: rssimport.php:1159
240
+ msgid "Before <em>No</em> Items Message (HTML):"
241
+ msgstr "Antes <em>No</em> Itens de mensagem (HTML):"
242
+
243
+ #@ rssimport
244
+ #: rssimport.php:1162
245
+ msgid "<em>No</em> Items Message:"
246
+ msgstr "<em>No</em> Mensagem itens:"
247
+
248
+ #@ rssimport
249
+ #: rssimport.php:1165
250
+ msgid "After <em>No</em> Items Message (HTML):"
251
+ msgstr "Depois <em>No</em> Itens de mensagem (HTML):"
252
+
253
+ #@ rssimport
254
+ #: rssimport.php:1168
255
+ msgid "Before Error Message (HTML):"
256
+ msgstr "Antes de mensagem de erro (HTML):"
257
+
258
+ #@ rssimport
259
+ #: rssimport.php:1171
260
+ msgid "Error Message:"
261
+ msgstr "Mensagem de erro:"
262
+
263
+ #@ rssimport
264
+ #: rssimport.php:1174
265
+ msgid "After Error Message (HTML):"
266
+ msgstr "Após mensagem de erro (HTML):"
267
+
268
+ #@ rssimport
269
+ #: rssimport.php:1177
270
+ msgid "Pagination:"
271
+ msgstr "Paginação:"
272
+
273
+ #@ rssimport
274
+ #: rssimport.php:1185
275
+ msgid "Previous Pagination Link String:"
276
+ msgstr "Cordas de link e anterior Paginação:"
277
+
278
+ #@ rssimport
279
+ #: rssimport.php:1188
280
+ msgid "Next Pagination Link String:"
281
+ msgstr "Cordas link seguinte paginação:"
282
+
283
+ #@ rssimport
284
+ #: rssimport.php:1191
285
+ msgid "Previous Pagination Title String:"
286
+ msgstr "Cordas Precedente Paginação:"
287
+
288
+ #@ rssimport
289
+ #: rssimport.php:1194
290
+ msgid "Next Pagination Title String:"
291
+ msgstr "Cordas próximo título Paginação:"
292
+
293
+ #: rssimport.php:120
294
+ msgid "Error in file: on line: .<br />The WordPress file \"class-simplepie.php\" with class SimplePie could not be included."
295
+ msgstr "Erro no arquivo: on-line:.<br />O arquivo WordPress \"class-simplepie.php\" com classe SimplePie não poderiam ser incluídos."
296
+
297
+ #@ rssimport
298
+ #: rssimport.php:1197
299
+ msgid "Use SimplePie class:"
300
+ msgstr "Use a classe SimplePie:"
301
+
302
+ #@ rssimport
303
+ #: rssimport.php:1107
304
+ msgid "Date Formatting:"
305
+ msgstr "Formato da Data:"
306
+
307
+ #@ rssimport
308
+ #: rssimport.php:1108
309
+ msgid "Leave empty for use the date format of your WordPress settings."
310
+ msgstr "Deixe em branco para usar o formato da data das suas configurações de WordPress."
311
+
312
+ #@ rssimport
313
+ #: rssimport.php:1108
314
+ msgid "Documentation on date formatting"
315
+ msgstr "Documentação sobre formatação de data"
316
+
readme.txt CHANGED
@@ -7,12 +7,11 @@ Donate link: http://bueltge.de/wunschliste/
7
  Tags: rss, post, content, post, feed
8
  Requires at least: 1.5
9
  Tested up to: 3.4
10
- Stable tag: 4.4.11
11
 
12
  Import and display Feeds in your blog, use PHP or the Shortcode.
13
 
14
  == Description ==
15
-
16
  Import and display Feeds in your blog, use PHP, a Widget or the Shortcode. The plugin use the standards of WordPress, non extra library; use [MagpieRSS](http://magpierss.sourceforge.net/) or [SimplePie](http://simplepie.org/) for parse feeds.
17
 
18
  Use following code with a PHP-Plugin or in a template, example `sidebar.php` or `single.php`, for WordPress:
@@ -59,7 +58,7 @@ For all boolean parameter it is possible to use the string `true` or `false` or
59
  1. `before_error` - HTML or string before message, when the feed have an error, Default is `<p>`
60
  1. `error` - Errormessage, Default is `Error: Feed has a error or is not valid`
61
  1. `after_error` - HTML or string before message, when the feed have an error, Default is `</p>`
62
- 1. `paging` - Pagination on, set `true`, Default is `false`
63
  1. `prev_paging_link` - Linkname for previous page, Default is `&laquo; Previous`
64
  1. `next_paging_link` - Linkname for next page, Default is `Next &raquo;`
65
  1. `prev_paging_title` - Title for the link of previous page, Default is `more items`
@@ -74,21 +73,21 @@ All parameters it is possible to use in the function, only in templates with PHP
74
  = Examples: =
75
  _The function with many parameters:_
76
 
77
- `RSSImport(
78
- ` $display = 5, $feedurl = 'http://bueltge.de/feed/',`
79
- ` $before_desc = '', $displaydescriptions = false, $after_desc = '', $html = false, $truncatedescchar = 200, $truncatedescstring = ' ... ',`
80
- ` $truncatetitlechar = '', $truncatetitlestring = ' ... ',`
81
- ` $before_date = ' <small>', $date = false, $after_date = '</small>',`
82
- ` $before_creator = ' <small>', $creator = false, $after_creator = '</small>',`
83
- ` $start_items = '<ul>', $end_items = '</ul>',`
84
- ` $start_item = '<li>', $end_item = '</li>'`
85
- ` )`
86
 
87
  _The shortcode with a lot of parameters:_
88
 
89
- `[RSSImport display="10" feedurl="http://your_feed_url/" `
90
- `displaydescriptions="true" html="true"`
91
- `start_items="<ol>" end_items="</ol>" paging="true" ]`
92
 
93
  = Interested in WordPress tips and tricks =
94
  You may also be interested in WordPress tips and tricks at [WP Engineer](http://wpengineer.com/) or for german people [bueltge.de](http://bueltge.de/)
@@ -105,8 +104,14 @@ You may also be interested in WordPress tips and tricks at [WP Engineer](http://
105
  == Screenshots ==
106
  1. Widget support
107
 
108
-
109
  == Changelog ==
 
 
 
 
 
 
 
110
  = v4.4.11 (13/12/2011) =
111
  * Bugfix: noitems string display is back
112
  * Improvement: html_entity_decode feedurl when using shortcodes
@@ -174,23 +179,11 @@ Thanks to [Dave Wolf](http://www.davewolf.net, "Dave Wolf") for the idea, to [Th
174
  * Hindi translation by [Ashish Jha](http://outshinesolutions.com)
175
  * Italian translation by [Gianni Diurno](http://gidibao.net/)
176
  * Romanian language files, thanks to [Alexander Ovsov](http://webhostinggeeks.com/)
 
 
177
 
178
  = Licence =
179
  Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
180
 
181
  = Translations =
182
  The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all defintions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows).
183
-
184
-
185
- == Frequently Asked Questions ==
186
- = Where can I get more information? =
187
- Please visit [the official website](http://bueltge.de/wp-rss-import-plugin/55/ "RSSImport") for the latest information on this plugin.
188
-
189
- = Changelog? =
190
- Please visit [the official website](http://bueltge.de/wp-rss-import-plugin/55/#historie "RSSImport Changelog") for the latest information on this plugin.
191
-
192
- = I love this plugin! How can I show the developer how much I appreciate his work? =
193
- Please visit [the official website](http://bueltge.de/wp-rss-import-plugin/55/ "RSSImport") and let him know your care or see the [wishlist](http://bueltge.de/wunschliste/ "Wishlist") of the author.
194
-
195
- == Make more with the plugin ==
196
- Please visit [RSSImportTwo](http://bueltge.de/wp-rssimporttwo-plugin/165/ "RSSImportTwo") for more features and tutorial to import with more HTML. It give it a tutorial and a plugin.
7
  Tags: rss, post, content, post, feed
8
  Requires at least: 1.5
9
  Tested up to: 3.4
10
+ Stable tag: 4.4.12
11
 
12
  Import and display Feeds in your blog, use PHP or the Shortcode.
13
 
14
  == Description ==
 
15
  Import and display Feeds in your blog, use PHP, a Widget or the Shortcode. The plugin use the standards of WordPress, non extra library; use [MagpieRSS](http://magpierss.sourceforge.net/) or [SimplePie](http://simplepie.org/) for parse feeds.
16
 
17
  Use following code with a PHP-Plugin or in a template, example `sidebar.php` or `single.php`, for WordPress:
58
  1. `before_error` - HTML or string before message, when the feed have an error, Default is `<p>`
59
  1. `error` - Errormessage, Default is `Error: Feed has a error or is not valid`
60
  1. `after_error` - HTML or string before message, when the feed have an error, Default is `</p>`
61
+ 1. `paging` - Pagination on, set `TRUE`, Default is `FALSE`
62
  1. `prev_paging_link` - Linkname for previous page, Default is `&laquo; Previous`
63
  1. `next_paging_link` - Linkname for next page, Default is `Next &raquo;`
64
  1. `prev_paging_title` - Title for the link of previous page, Default is `more items`
73
  = Examples: =
74
  _The function with many parameters:_
75
 
76
+ RSSImport(
77
+ $display = 5, $feedurl = 'http://bueltge.de/feed/',
78
+ $before_desc = '', $displaydescriptions = false, $after_desc = '', $html = false, $truncatedescchar = 200, $truncatedescstring = ' ... ',
79
+ $truncatetitlechar = '', $truncatetitlestring = ' ... ',
80
+ $before_date = ' <small>', $date = false, $after_date = '</small>',
81
+ $before_creator = ' <small>', $creator = false, $after_creator = '</small>',
82
+ $start_items = '<ul>', $end_items = '</ul>',
83
+ $start_item = '<li>', $end_item = '</li>'
84
+ )
85
 
86
  _The shortcode with a lot of parameters:_
87
 
88
+ [RSSImport display="10" feedurl="http://your_feed_url/"
89
+ displaydescriptions="true" html="true"
90
+ start_items="<ol>" end_items="</ol>" paging="true" ]
91
 
92
  = Interested in WordPress tips and tricks =
93
  You may also be interested in WordPress tips and tricks at [WP Engineer](http://wpengineer.com/) or for german people [bueltge.de](http://bueltge.de/)
104
  == Screenshots ==
105
  1. Widget support
106
 
 
107
  == Changelog ==
108
+ = v4.4.12 (04/02/2012) =
109
+ * Bugfix: restored RSSImport QuickTag for Wordpress 3.3 and later
110
+ * Improvement: avoid PHP-notice when description is missing for an item
111
+ * TODO: add parameter to allow prefix of url (see http://wordpress.org/support/topic/plugin-rssimport-fix-for-headline-links-without-full-paths)
112
+ * TODO: check documentation of call to function (PHP), see http://wordpress.org/support/topic/plugin-rssimport-change-feed-display
113
+ * Documentation: corrected 'after_desc' (thanks to elricky for reporting)
114
+
115
  = v4.4.11 (13/12/2011) =
116
  * Bugfix: noitems string display is back
117
  * Improvement: html_entity_decode feedurl when using shortcodes
179
  * Hindi translation by [Ashish Jha](http://outshinesolutions.com)
180
  * Italian translation by [Gianni Diurno](http://gidibao.net/)
181
  * Romanian language files, thanks to [Alexander Ovsov](http://webhostinggeeks.com/)
182
+ * Lithuanian translation files by [Vincent G](http://www.host1plus.com)
183
+ * Portuguese translation files by [Miguel Patricio Angelo](http://www.miguelpatricio.com/)
184
 
185
  = Licence =
186
  Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
187
 
188
  = Translations =
189
  The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all defintions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
rssimport.php CHANGED
@@ -1,22 +1,21 @@
1
  <?php
2
  /**
3
  * @package WP-RSSImport
4
- * @author Frank B&uuml;ltge
5
- * @version 4.4.11
6
  */
7
 
8
- /*
9
- Plugin Name: WP-RSSImport
10
- Plugin URI: http://bueltge.de/wp-rss-import-plugin/55/
11
- Text Domain: rssimport
12
- Domain Path: /languages
13
- Description: Import and display Feeds in your blog, use the function RSSImport(), a Widget or Shortcode [RSSImport]. Please see the new <a href="http://wordpress.org/extend/plugins/rss-import/">possibilities</a>.
14
- Author: Frank B&uuml;ltge
15
- Version: 4.4.11
16
- License: GPL
17
- Author URI: http://bueltge.de/
18
- Last change: 13.12.2011
19
- */
20
 
21
  /*
22
  ------------------------------------------------------------
@@ -35,7 +34,7 @@ Example: <?php RSSImport(10, "http://bueltge.de/feed/"); ?>
35
  */
36
 
37
  //avoid direct calls to this file, because now WP core and framework has been used
38
- if ( !function_exists('add_action') ) {
39
  header('Status: 403 Forbidden');
40
  header('HTTP/1.1 403 Forbidden');
41
  exit();
@@ -69,13 +68,13 @@ function RSSImport_textdomain() {
69
  load_plugin_textdomain( FB_RSSI_TEXTDOMAIN, FALSE, dirname( FB_RSSI_BASENAME ) . '/languages');
70
  }
71
 
72
- if ( !function_exists('esc_attr') ) {
73
  function esc_attr( $text ) {
74
  return attribute_escape( $text );
75
  }
76
  }
77
 
78
- if ( !function_exists('esc_url') ) {
79
  function esc_url($text ) {
80
  return clean_url($text);
81
  }
@@ -84,7 +83,7 @@ if ( !function_exists('esc_url') ) {
84
 
85
  // cache and error report
86
  //define('MAGPIE_CACHE_ON', FALSE); // Cache off
87
- if ( !defined('MAGPIE_CACHE_AGE') )
88
  define('MAGPIE_CACHE_AGE', '60*60'); // in sec, one hour
89
  // error reporting
90
  //error_reporting(E_ALL);
@@ -136,7 +135,7 @@ function RSSImport(
136
  $view = (int) $view;
137
 
138
  if ($use_simplepie) {
139
- if ( !class_exists('SimplePie') ) {
140
  if ( file_exists(ABSPATH . WPINC . '/class-simplepie.php') ) {
141
  @require_once (ABSPATH . WPINC . '/class-simplepie.php');
142
  } else {
@@ -180,7 +179,7 @@ function RSSImport(
180
  else
181
  $rss = fetch_rss($feedurl);
182
 
183
- if ( $rss && !is_wp_error($rss) ) {
184
 
185
  // the follow print_r list all items in array, for debug purpose
186
  if ( $debug ) {
@@ -188,7 +187,7 @@ function RSSImport(
188
  print('<pre>');
189
  print_r($rss);
190
  print('</pre>');
191
- if ( !defined('MAGPIE_CACHE_ON') )
192
  define('MAGPIE_CACHE_ON', FALSE);
193
  }
194
 
@@ -303,8 +302,10 @@ function RSSImport(
303
  if ( $desc4title ) {
304
  if ($use_simplepie)
305
  $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) ); // For import without HTML
306
- else
307
  $desc = wp_specialchars(strip_tags($item['description']));
 
 
308
  $atitle = wp_html_excerpt($desc, $truncatedescchar) . $truncatedescstring;
309
  } else {
310
  $atitle = $title;
@@ -567,6 +568,7 @@ function RSSImport_shortcode_quot($pee) {
567
  /**
568
  * add quicktag-button to editor
569
  */
 
570
  function RSSImport_insert_button() {
571
  global $pagenow;
572
 
@@ -577,27 +579,43 @@ function RSSImport_insert_button() {
577
  echo '
578
  <script type="text/javascript">
579
  //<![CDATA[
580
- var length = edButtons.length;
581
- edButtons[length] = new edButton(\'RSSImport\', \'$context\', \'[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" paging="FALSE" prev_paging_link="&laquo; Previous" next_paging_link="Next &raquo;" prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]\', \'\', \'\');
582
- function RSSImport_tag(id) {
583
- id = id.replace(/RSSImport_/, \'\');
584
- edInsertTag(edCanvas, id);
 
 
 
 
 
 
585
  }
586
- jQuery(document).ready(function() {
587
- content = \'<input id="RSSImport_\'+length+\'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) . '" title="' . __( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ) . '" onclick="RSSImport_tag(this.id);" />\';
588
- jQuery("#ed_toolbar").append(content);
589
- });
590
  //]]>
591
  </script>';
592
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
 
594
 
595
  if ( function_exists('add_shortcode') )
596
  add_shortcode('RSSImport', 'RSSImport_Shortcode');
597
 
598
  add_action( 'init', 'RSSImport_textdomain' );
599
- if ( is_admin() && FB_RSSI_QUICKTAG )
600
- add_filter( 'admin_footer', 'RSSImport_insert_button' );
601
 
602
 
603
  /**
1
  <?php
2
  /**
3
  * @package WP-RSSImport
4
+ * @author Frank B&uuml;ltge &amp; Novaclic
5
+ * @version 4.4.12
6
  */
7
 
8
+ /**
9
+ * Plugin Name: WP-RSSImport
10
+ * Plugin URI: http://bueltge.de/wp-rss-import-plugin/55/
11
+ * Text Domain: rssimport
12
+ * Domain Path: /languages
13
+ * Description: Import and display Feeds in your blog, use the function RSSImport(), a Widget or Shortcode [RSSImport]. Please see the new <a href="http://wordpress.org/extend/plugins/rss-import/">possibilities</a>.
14
+ * Author: Frank B&uuml;ltge, novaclic
15
+ * Version: 4.4.12
16
+ * License: GPLv3
17
+ * Last change: 04/04/2012
18
+ */
 
19
 
20
  /*
21
  ------------------------------------------------------------
34
  */
35
 
36
  //avoid direct calls to this file, because now WP core and framework has been used
37
+ if ( ! function_exists('add_action') ) {
38
  header('Status: 403 Forbidden');
39
  header('HTTP/1.1 403 Forbidden');
40
  exit();
68
  load_plugin_textdomain( FB_RSSI_TEXTDOMAIN, FALSE, dirname( FB_RSSI_BASENAME ) . '/languages');
69
  }
70
 
71
+ if ( ! function_exists('esc_attr') ) {
72
  function esc_attr( $text ) {
73
  return attribute_escape( $text );
74
  }
75
  }
76
 
77
+ if ( ! function_exists('esc_url') ) {
78
  function esc_url($text ) {
79
  return clean_url($text);
80
  }
83
 
84
  // cache and error report
85
  //define('MAGPIE_CACHE_ON', FALSE); // Cache off
86
+ if ( ! defined('MAGPIE_CACHE_AGE') )
87
  define('MAGPIE_CACHE_AGE', '60*60'); // in sec, one hour
88
  // error reporting
89
  //error_reporting(E_ALL);
135
  $view = (int) $view;
136
 
137
  if ($use_simplepie) {
138
+ if ( ! class_exists('SimplePie') ) {
139
  if ( file_exists(ABSPATH . WPINC . '/class-simplepie.php') ) {
140
  @require_once (ABSPATH . WPINC . '/class-simplepie.php');
141
  } else {
179
  else
180
  $rss = fetch_rss($feedurl);
181
 
182
+ if ( $rss && ! is_wp_error($rss) ) {
183
 
184
  // the follow print_r list all items in array, for debug purpose
185
  if ( $debug ) {
187
  print('<pre>');
188
  print_r($rss);
189
  print('</pre>');
190
+ if ( ! defined('MAGPIE_CACHE_ON') )
191
  define('MAGPIE_CACHE_ON', FALSE);
192
  }
193
 
302
  if ( $desc4title ) {
303
  if ($use_simplepie)
304
  $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) ); // For import without HTML
305
+ else if (isset($item['description']))
306
  $desc = wp_specialchars(strip_tags($item['description']));
307
+ else
308
+ $desc ='';
309
  $atitle = wp_html_excerpt($desc, $truncatedescchar) . $truncatedescstring;
310
  } else {
311
  $atitle = $title;
568
  /**
569
  * add quicktag-button to editor
570
  */
571
+
572
  function RSSImport_insert_button() {
573
  global $pagenow;
574
 
579
  echo '
580
  <script type="text/javascript">
581
  //<![CDATA[
582
+ if ( typeof edButtons != \'undefined\' ) {
583
+ var length = edButtons.length;
584
+ edButtons[length] = new edButton(\'RSSImport\', \'$context\', \'[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" paging="FALSE" prev_paging_link="&laquo; Previous" next_paging_link="Next &raquo;" prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]\', \'\', \'\');
585
+ function RSSImport_tag(id) {
586
+ id = id.replace(/RSSImport_/, \'\');
587
+ edInsertTag(edCanvas, id);
588
+ }
589
+ jQuery(document).ready(function() {
590
+ content = \'<input id="RSSImport_\'+length+\'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) . '" title="' . __( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ) . '" onclick="RSSImport_tag(this.id);" />\';
591
+ jQuery("#ed_toolbar").append(content);
592
+ });
593
  }
 
 
 
 
594
  //]]>
595
  </script>';
596
  }
597
+ if ( is_admin() && FB_RSSI_QUICKTAG ) {
598
+ if ( version_compare( $GLOBALS['wp_version'], '3.3alpha', '>=' ) ) {
599
+ $post_page_pages = array('post-new.php', 'post.php', 'page-new.php', 'page.php');
600
+ if ( in_array( $pagenow, $post_page_pages ) ) {
601
+ wp_enqueue_script(
602
+ 'rssimport_insert_button',
603
+ plugin_dir_url( __FILE__) . '/js/quicktag.js',
604
+ array( 'quicktags' )
605
+ );
606
+ add_action( 'admin_print_scripts', 'rssimport_insert_button' );
607
+ }
608
+ } else {
609
+ add_action( 'admin_footer', 'RSSImport_insert_button' );
610
+ }
611
+ }
612
 
613
 
614
  if ( function_exists('add_shortcode') )
615
  add_shortcode('RSSImport', 'RSSImport_Shortcode');
616
 
617
  add_action( 'init', 'RSSImport_textdomain' );
618
+
 
619
 
620
 
621
  /**