Version Description
Download this release
Release Info
Developer | took77 |
Plugin | RSSImport |
Version | 4.4.14 |
Comparing to | |
See all releases |
Code changes from version 4.4.13 to 4.4.14
- languages/rssimport-de_DE.po +1 -1
- readme.txt +76 -67
- rssimport.php +85 -13
languages/rssimport-de_DE.po
CHANGED
@@ -314,7 +314,7 @@ msgstr "Ausgabe/Rückgabe:"
|
|
314 |
#: rssimport.php:0
|
315 |
#@ rssimport
|
316 |
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>."
|
317 |
-
msgstr "Importiert und stellt eine Feed in deinem Blog dar,
|
318 |
|
319 |
#. translators: plugin header field 'Name'
|
320 |
#: rssimport.php:0
|
314 |
#: rssimport.php:0
|
315 |
#@ rssimport
|
316 |
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>."
|
317 |
+
msgstr "Importiert und stellt eine Feed in deinem Blog dar, nutze die Funktion RSSImport(), ein Widget oder den Shortcode [RSSImport]. Bitte schaue dir die <a href=\"http://wordpress.org/extend/plugins/rss-import/\">Möglichkeiten</a> an."
|
318 |
|
319 |
#. translators: plugin header field 'Name'
|
320 |
#: rssimport.php:0
|
readme.txt
CHANGED
@@ -1,77 +1,79 @@
|
|
1 |
=== RSSImport ===
|
2 |
-
Contributors: Bueltge, inpsyde, novaclic
|
3 |
-
Plugin URI: http://bueltge.de/wp-
|
4 |
Author: Frank Bültge
|
5 |
Author URI: http://bueltge.de/
|
6 |
Donate link: http://bueltge.de/wunschliste/
|
7 |
Tags: rss, post, content, post, feed
|
8 |
Requires at least: 1.5
|
9 |
-
Tested up to: 3.
|
10 |
-
Stable tag: 4.4.
|
11 |
|
12 |
-
Import and display
|
13 |
|
14 |
== Description ==
|
15 |
-
Import and display
|
|
|
|
|
16 |
|
17 |
-
Use following code with a PHP-Plugin or in a template, example `sidebar.php` or `single.php`, for WordPress:
|
18 |
|
19 |
_Example:_
|
20 |
`<?php RSSImport(10, 'http://bueltge.de/feed/'); ?>`
|
21 |
|
22 |
-
This is
|
23 |
-
|
24 |
-
_Example
|
25 |
-
[RSSImport display="5" feedurl="http://bueltge.de/feed/"]
|
26 |
-
|
27 |
-
For all
|
28 |
-
|
29 |
-
|
30 |
-
1. `
|
31 |
-
1. `
|
32 |
-
1. `
|
33 |
-
1. `
|
34 |
-
1. `
|
35 |
-
1. `
|
36 |
-
1. `
|
37 |
-
1. `
|
38 |
-
1. `
|
39 |
-
1. `
|
40 |
-
1. `
|
41 |
-
1. `
|
42 |
-
1. `
|
43 |
-
1. `
|
44 |
-
1. `
|
45 |
-
1. `
|
46 |
-
1. `
|
47 |
-
1. `
|
48 |
-
1. `
|
49 |
-
1. `
|
50 |
-
1. `
|
51 |
-
1. `
|
52 |
-
1. `
|
53 |
-
1. `
|
54 |
-
1. `
|
55 |
-
1. `
|
56 |
-
1. `
|
57 |
-
1. `
|
58 |
-
1. `
|
59 |
-
1. `
|
60 |
-
1. `
|
61 |
-
1. `
|
62 |
-
1. `
|
63 |
-
1. `
|
64 |
-
1. `
|
65 |
-
1. `
|
66 |
-
1. `
|
67 |
-
1. `
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
72 |
|
73 |
= Examples: =
|
74 |
-
|
75 |
|
76 |
RSSImport(
|
77 |
$display = 5, $feedurl = 'http://bueltge.de/feed/',
|
@@ -83,25 +85,32 @@ _The function with many parameters:_
|
|
83 |
$start_item = '<li>', $end_item = '</li>'
|
84 |
)
|
85 |
|
86 |
-
|
|
|
|
|
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 |
|
93 |
== Installation ==
|
94 |
-
1. Unpack the download
|
95 |
-
1. Upload all files to the `/wp-content/plugins/` directory
|
96 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
97 |
-
1. Create a new site in WordPress or edit your template
|
98 |
-
1. Copy the code
|
99 |
|
100 |
|
101 |
== Screenshots ==
|
102 |
1. Widget support
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
105 |
= v4.4.13 (08/22/2013) =
|
106 |
* Set simplepie to default settings; is the default way of WP since lot of versions
|
107 |
* Fix for Quicktag on Post/Page Editor; use now the core functions, there we have since WP 3.3
|
@@ -183,8 +192,8 @@ Thanks to [Dave Wolf](http://www.davewolf.net, "Dave Wolf") for the idea, to [Th
|
|
183 |
* Lithuanian translation files by [Vincent G](http://www.host1plus.com)
|
184 |
* Portuguese translation files by [Miguel Patricio Angelo](http://www.miguelpatricio.com/)
|
185 |
|
186 |
-
=
|
187 |
-
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
|
188 |
|
189 |
= Translations =
|
190 |
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).
|
1 |
=== RSSImport ===
|
2 |
+
Contributors: Bueltge, inpsyde, novaclic, took77
|
3 |
+
Plugin URI: http://bueltge.de/wp-rss-import-plugin/55/
|
4 |
Author: Frank Bültge
|
5 |
Author URI: http://bueltge.de/
|
6 |
Donate link: http://bueltge.de/wunschliste/
|
7 |
Tags: rss, post, content, post, feed
|
8 |
Requires at least: 1.5
|
9 |
+
Tested up to: 3.9.2
|
10 |
+
Stable tag: 4.4.14
|
11 |
|
12 |
+
Import and display feeds on your blog, using PHP in your templates or Shortcode in your posts and pages.
|
13 |
|
14 |
== Description ==
|
15 |
+
Import and display feeds in your blog, using PHP, a Widget or Shortcode. The plugin uses only standard WordPress functionality, so no external libraries are required. For older versions of Wordpress, the built-in [MagpieRSS library](http://magpierss.sourceforge.net/) is used. For WordPress 2.8 and newer, there is a setting available to enable the built-in [SimplePie library](http://simplepie.org/) for parsing feeds.
|
16 |
+
|
17 |
+
You can insert the following code into a PHP plugin or in a template, for example `sidebar.php` or `single.php`:
|
18 |
|
|
|
19 |
|
20 |
_Example:_
|
21 |
`<?php RSSImport(10, 'http://bueltge.de/feed/'); ?>`
|
22 |
|
23 |
+
This is the minimal code needed for using the plugin. The plugin accepts a number of parameters for customizing the feed content import. See below for the full list of available parameters. You can also use any of the parameters with Shortcode in posts and pages.
|
24 |
+
|
25 |
+
_Example Shortcode:_
|
26 |
+
`[RSSImport display="5" feedurl="http://bueltge.de/feed/"]`
|
27 |
+
|
28 |
+
For all (bool) parameters you can either use the strings `true` and `false` or the integer values `1` and `0`.
|
29 |
+
|
30 |
+
|
31 |
+
1. `display` - The number of items to display. Default is `5`.
|
32 |
+
1. `feedurl` - The feed address. Default is `http://bueltge.de/feed/`.
|
33 |
+
1. `before_desc` - The HTML or string to insert before the description. Default is `empty`.
|
34 |
+
1. `displaydescriptions` - (bool) When set to true, the description for each entry will be displayed. Default is `false`.
|
35 |
+
1. `after_desc` - The HTML or string to insert after the description. Default is `empty`. You can use the following variables which will be replaced: `%title%` for the title of the entry and `%href%` for the entry's URL.
|
36 |
+
1. `html` - (bool) When set to true, the description can include HTML tags. Default is `false`.
|
37 |
+
1. `truncatedescchar` - The maximum number of characters allowed in descriptions. If the description is longer than this length, it will be truncated to the given length. Default is `200`, set the value to empty quotes `''` to never truncate descriptions.
|
38 |
+
1. `truncatedescstring` - The HTML or string to insert at the end of a description after it has been truncated. Default is ` ... `
|
39 |
+
1. `truncatetitlechar` - The maximum number of characters allowed in titles. If the title is longer than this value, it will be truncated to the given length. Default is `''`, which means never truncate titles.
|
40 |
+
1. `truncatetitlestring` - The HTML or string to insert at the end of a title after it has been truncated. Default is `' ... '`.
|
41 |
+
1. `before_date` - The HTML or string to insert before the date. Default is ` <small>`.
|
42 |
+
1. `date` - (bool) If true, display the date of the item. Default is `false`.
|
43 |
+
1. `after_date` - The HTML or string to insert after the date. Default is `</small>`.
|
44 |
+
1. `date_format`- The date format string. Leave empty to use the format of your WordPress installation. If a different date format is desired, specify a PHP date string, for example: `F j, Y`. See also [the date and time formatting page in the WordPress Codex](http://codex.wordpress.org/Formatting_Date_and_Time).
|
45 |
+
1. `before_creator` - The HTML or string to insert before the creator of the item. Default is ` <small>`.
|
46 |
+
1. `creator` - (bool) If true, display the creator of the item. Default is `false`.
|
47 |
+
1. `after_creator` - The HTML or string to insert after creator of the item. Default is `</small>`.
|
48 |
+
1. `start_items` - The HTML or string to insert before the list of items. Default is `<ul>`.
|
49 |
+
1. `end_items` - The HTML or string to insert after the list of items. Default is `</ul>`.
|
50 |
+
1. `start_item` - The HTML or string to insert before each item. Default is `<li>`.
|
51 |
+
1. `end_item` - The HTML or string to insert after each item. Default is `</li>`.
|
52 |
+
1. `target` - The string to use for the `target` attribute on links. Default is `empty`. Valid options are `blank`, `self`, `parent`, `top`.
|
53 |
+
1. `rel` - The string to use for the `rel` attribute on links. Default is `empty`. Valid options are `nofollow` and `follow`.
|
54 |
+
1. `desc4title` - The description to use in the `title` attribute on item title links. Default is `false`.
|
55 |
+
1. `charsetscan` - (bool) If true, scan the feed content for the correct character set. This may cause the content to load more slowly. Use this option if you're having problems with feed content being displayed with stranged characters. Default is `false`.
|
56 |
+
1. `debug` - (bool) If true, activate debug-mode, which will echo the Magpie object as an array. Default is `false`. Only use this option for debugging.
|
57 |
+
1. `before_noitems` - The HTML or string to insert before the no items message. Default is `<p>`.
|
58 |
+
1. `noitems`- The message to display when the feed is empty. Default is `No items, feed is empty.`.
|
59 |
+
1. `after_noitems` - The HTML or string to insert before the no items message. Default is `</p>`.
|
60 |
+
1. `before_error` - The HTML or string to insert before the error message. Default is `<p>`.
|
61 |
+
1. `error` - Error message displayed when there is an error loading or displaying the feed. Default is `Error: Feed has a error or is not valid`.
|
62 |
+
1. `after_error` - The HTML or string to insert before the error message. Default is `</p>`.
|
63 |
+
1. `paging` - (bool) If true, enable pagination. Default is `false`.
|
64 |
+
1. `prev_paging_link` - The name of the previous page link. Default is `« Previous`.
|
65 |
+
1. `next_paging_link` - The name next page link. Default is `Next »`.
|
66 |
+
1. `prev_paging_title` - The title attribute of the previous page link. Default is `more items`.
|
67 |
+
1. `next_paging_title` - The title attribute of the next page link. Default is `more items`.
|
68 |
+
1. `use_simplepie`- (bool) If true, use SimplePie to parse the feed. SimplePie is included in WordPress 2.8 and newer and can parse both RSS and ATOM feeds. Default is `false`.
|
69 |
+
1. `view` - (bool) If true, calling the `RSSImport()` function will print the rendered HTML directly to the output. If false, the rendered HTML will be returned by the function as a string value and nothing will be output. Default when using PHP code is `true`. Default when using Shortcode is `false`.
|
70 |
+
|
71 |
+
If pagination is enabled, it adds a `div` with the class `rsspaging` to enable easier styling with CSS. You can also style the previous and next links, which have the classes: `rsspaging_prev` and `rsspaging_next`.
|
72 |
+
|
73 |
+
You can use any of the parameters in the php function `RSSImport()` in your templates or with the Shortcode `[RSSImport]` in posts and pages.
|
74 |
|
75 |
= Examples: =
|
76 |
+
_Using the PHP function with many parameters:_
|
77 |
|
78 |
RSSImport(
|
79 |
$display = 5, $feedurl = 'http://bueltge.de/feed/',
|
85 |
$start_item = '<li>', $end_item = '</li>'
|
86 |
)
|
87 |
|
88 |
+
Please note that the parameters are expected in the order in which they are defined in the above list. Thus if you skip one parameter, you will also have to skip all of the subsequent parameters.
|
89 |
+
|
90 |
+
_Using Shortcode with several parameters:_
|
91 |
|
92 |
[RSSImport display="10" feedurl="http://your_feed_url/"
|
93 |
displaydescriptions="true" html="true"
|
94 |
+
start_items="<ol>" end_items="</ol>" paging="true"]
|
95 |
|
96 |
|
97 |
== Installation ==
|
98 |
+
1. Unpack the download package.
|
99 |
+
1. Upload all files to the `/wp-content/plugins/` directory.
|
100 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
101 |
+
1. Create a new site in WordPress or edit your template.
|
102 |
+
1. Copy the code into the site content or add it to your templates.
|
103 |
|
104 |
|
105 |
== Screenshots ==
|
106 |
1. Widget support
|
107 |
|
108 |
== Changelog ==
|
109 |
+
= v4.4.14 (07/08/2014) =
|
110 |
+
* Fix typo in readme
|
111 |
+
* Fix a bug with `%href%` and `%title%` in after_desc
|
112 |
+
* Shortened some over-long lines in the code
|
113 |
+
|
114 |
= v4.4.13 (08/22/2013) =
|
115 |
* Set simplepie to default settings; is the default way of WP since lot of versions
|
116 |
* Fix for Quicktag on Post/Page Editor; use now the core functions, there we have since WP 3.3
|
192 |
* Lithuanian translation files by [Vincent G](http://www.host1plus.com)
|
193 |
* Portuguese translation files by [Miguel Patricio Angelo](http://www.miguelpatricio.com/)
|
194 |
|
195 |
+
= License =
|
196 |
+
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 by leaving a [small donation](http://bueltge.de/wunschliste/ "Wish lists and donations") 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 ;)
|
197 |
|
198 |
= Translations =
|
199 |
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
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package WP-RSSImport
|
4 |
* @author Frank Bültge & Novaclic
|
5 |
-
* @version 4.4.
|
6 |
*/
|
7 |
|
8 |
/**
|
@@ -11,10 +11,10 @@
|
|
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ültge, novaclic
|
15 |
-
* Version: 4.4.
|
16 |
* License: GPLv3
|
17 |
-
* Last change:
|
18 |
*/
|
19 |
|
20 |
/*
|
@@ -317,10 +317,10 @@ function RSSImport(
|
|
317 |
if ( isset($creator) && $creator && $creator != '' )
|
318 |
$echo .= $before_creator . $creator . $after_creator;
|
319 |
if ( isset($desc) && $displaydescriptions && $desc != '' ) {
|
320 |
-
$
|
321 |
-
$
|
322 |
-
$
|
323 |
-
$echo .= $before_desc . $desc . $
|
324 |
}
|
325 |
$echo .= $end_item;
|
326 |
} else {
|
@@ -376,8 +376,65 @@ function isodec($s_String) {
|
|
376 |
function all_convert($s_String) {
|
377 |
|
378 |
// Array for entities
|
379 |
-
$umlaute = array('„','“','–',' \"','–','—','‘','’','“','”','„','•','…' ,
|
380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
//$s_String = str_replace($umlaute, $htmlcode, $s_String);
|
382 |
if ( version_compare(phpversion(), '5.0.0', '>=') )
|
383 |
$s_String = utf8_encode( html_entity_decode( str_replace($umlaute, $htmlcode, $s_String) ) );
|
@@ -589,7 +646,14 @@ function RSSImport_insert_button() {
|
|
589 |
*/
|
590 |
var id = 'rssimport',
|
591 |
text = '<?php _e( 'RSSImport', FB_RSSI_TEXTDOMAIN ); ?>',
|
592 |
-
start = '[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
end = '',
|
594 |
access = 'r',
|
595 |
title = '<?php _e( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ); ?>';
|
@@ -611,13 +675,21 @@ function RSSImport_insert_button_old() {
|
|
611 |
//<![CDATA[
|
612 |
if ( typeof edButtons != \'undefined\' ) {
|
613 |
var length = edButtons.length;
|
614 |
-
edButtons[length] = new edButton(\'RSSImport\', \'$context\', \'[RSSImport display="5" feedurl="http://feedurl.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
615 |
function RSSImport_tag(id) {
|
616 |
id = id.replace(/RSSImport_/, \'\');
|
617 |
edInsertTag(edCanvas, id);
|
618 |
}
|
619 |
jQuery(document).ready(function() {
|
620 |
-
content = \'<input id="RSSImport_\'+length+\'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) .
|
|
|
621 |
jQuery("#ed_toolbar").append(content);
|
622 |
});
|
623 |
}
|
2 |
/**
|
3 |
* @package WP-RSSImport
|
4 |
* @author Frank Bültge & Novaclic
|
5 |
+
* @version 4.4.14
|
6 |
*/
|
7 |
|
8 |
/**
|
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ültge, novaclic, took77
|
15 |
+
* Version: 4.4.14
|
16 |
* License: GPLv3
|
17 |
+
* Last change: 08/07/2014
|
18 |
*/
|
19 |
|
20 |
/*
|
317 |
if ( isset($creator) && $creator && $creator != '' )
|
318 |
$echo .= $before_creator . $creator . $after_creator;
|
319 |
if ( isset($desc) && $displaydescriptions && $desc != '' ) {
|
320 |
+
$after_desc_temp = stripslashes_deep( $after_desc );
|
321 |
+
$after_desc_temp = str_replace('%title%', $title, $after_desc_temp);
|
322 |
+
$after_desc_temp = str_replace('%href%', $href, $after_desc_temp);
|
323 |
+
$echo .= $before_desc . $desc . $after_desc_temp;
|
324 |
}
|
325 |
$echo .= $end_item;
|
326 |
} else {
|
376 |
function all_convert($s_String) {
|
377 |
|
378 |
// Array for entities
|
379 |
+
$umlaute = array('„','“','–',' \"','–','—','‘','’','“','”','„','•','…' ,
|
380 |
+
'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,
|
381 |
+
'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�' ,'�','�','�','�','�','�','�','�','�',
|
382 |
+
'�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�',
|
383 |
+
'�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�',
|
384 |
+
'�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�','�',utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
385 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
386 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
387 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
388 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
389 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
390 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
391 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
392 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
393 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
394 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
395 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
396 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
397 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
398 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),
|
399 |
+
utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),utf8_encode('�'),chr(128),chr(129),chr(130),
|
400 |
+
chr(131),chr(132),chr(133),chr(134),chr(135),chr(136),chr(137),chr(138),chr(139),chr(140),chr(141),chr(142),chr(143),chr(144),chr(145),
|
401 |
+
chr(146),chr(147),chr(148),chr(149),chr(150),chr(151),chr(152),chr(153),chr(154),chr(155),chr(156),chr(157),chr(158),chr(159),chr(160),
|
402 |
+
chr(161),chr(162),chr(163),chr(164),chr(165),chr(166),chr(167),chr(168),chr(169),chr(170),chr(171),chr(172),chr(173),chr(174),chr(175),
|
403 |
+
chr(176),chr(177),chr(178),chr(179),chr(180),chr(181),chr(182),chr(183),chr(184),chr(185),chr(186),chr(187),chr(188),chr(189),chr(190),
|
404 |
+
chr(191),chr(192),chr(193),chr(194),chr(195),chr(196),chr(197),chr(198),chr(199),chr(200),chr(201),chr(202),chr(203),chr(204),chr(205),
|
405 |
+
chr(206),chr(207),chr(208),chr(209),chr(210),chr(211),chr(212),chr(213),chr(214),chr(215),chr(216),chr(217),chr(218),chr(219),chr(220),
|
406 |
+
chr(221),chr(222),chr(223),chr(224),chr(225),chr(226),chr(227),chr(228),chr(229),chr(230),chr(231),chr(232),chr(233),chr(234),chr(235),
|
407 |
+
chr(236),chr(237),chr(238),chr(239),chr(240),chr(241),chr(242),chr(243),chr(244),chr(245),chr(246),chr(247),chr(248),chr(249),chr(250),
|
408 |
+
chr(251),chr(252),chr(253),chr(254),chr(255),chr(256));
|
409 |
+
$htmlcode = array('„','“','–',' "','–','—','‘','’','“','”','„','•' ,
|
410 |
+
'…','€','‚','ƒ','„','…','†','‡','ˆ','‰','Š','‹','Œ',
|
411 |
+
'Ž','‘','’','“','”','•','–','—','˜','™','š','›','œ',
|
412 |
+
'ž','Ÿ','¡','¢','£','¤','¥','¦','§','¨','©','ª','«','¬',
|
413 |
+
'®','¯','°','±','²','³','´','µ','¶','·','¸','&supl;','º','»',
|
414 |
+
'¼','½','¾','¿','À','Á','Â','Ã','Ä','Å','Æ','Ç','È',
|
415 |
+
'É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ',
|
416 |
+
'Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','à','á','â',
|
417 |
+
'ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï',
|
418 |
+
'ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü',
|
419 |
+
'ý','þ','ÿ','€','‚','ƒ','„','…','†','‡','ˆ','‰','Š',
|
420 |
+
'‹','Œ','Ž','‘','’','“','”','•','–','—','˜','™','š',
|
421 |
+
'›','œ','ž','Ÿ','¡','¢','£','¤','¥','¦','§','¨','©','ª',
|
422 |
+
'«','¬','®','¯','°','±','²','³','´','µ','¶','·','¸','&supl;',
|
423 |
+
'º','»','¼','½','¾','¿','À','Á','Â','Ã','Ä','Å','Æ',
|
424 |
+
'Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó',
|
425 |
+
'Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','à',
|
426 |
+
'á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í',
|
427 |
+
'î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú',
|
428 |
+
'û','ü','ý','þ','ÿ','€','','‚','ƒ','„','…','†','‡','ˆ',
|
429 |
+
'‰','Š','‹','Œ','','Ž','','','‘','’','“','”','•','–','—',
|
430 |
+
'˜','™','š','›','œ','','ž','Ÿ',' ','¡','¡','¡','¡','¥',
|
431 |
+
'¦','§','¨','©','ª','«','¬','�­','®','¯','°','±','²','³',
|
432 |
+
'´','µ','¶','·','¸','&supl;','º','»','¼','½','¾','¿','À',
|
433 |
+
'Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í',
|
434 |
+
'Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú',
|
435 |
+
'Û','Ü','Ý','Þ','ß','à','á','â','ã','ä','å','æ','ç',
|
436 |
+
'è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô',
|
437 |
+
'õ','ö','÷','ø','ù','ú','û','ü','ý','þ','ÿ');
|
438 |
//$s_String = str_replace($umlaute, $htmlcode, $s_String);
|
439 |
if ( version_compare(phpversion(), '5.0.0', '>=') )
|
440 |
$s_String = utf8_encode( html_entity_decode( str_replace($umlaute, $htmlcode, $s_String) ) );
|
646 |
*/
|
647 |
var id = 'rssimport',
|
648 |
text = '<?php _e( 'RSSImport', FB_RSSI_TEXTDOMAIN ); ?>',
|
649 |
+
start = '[RSSImport display="5" feedurl="http://feedurl.com/" before_desc="<br />" displaydescriptions="TRUE" after_desc=" " ' +
|
650 |
+
'html="FALSE" truncatedescchar="200" truncatedescstring=" ... " truncatetitlechar=" " truncatetitlestring=" ... " ' +
|
651 |
+
'before_date=" <small>" date="FALSE" after_date="</small>" date_format="" before_creator=" <small>" creator="FALSE" ' +
|
652 |
+
'after_creator="</small>" start_items="<ul>" end_items="</ul>" start_item="<li>" end_item="</li>" target="" rel="" ' +
|
653 |
+
'desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>" noitems="No items, feed is empty." ' +
|
654 |
+
'after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid" after_error="</p>" ' +
|
655 |
+
'paging="FALSE" prev_paging_link="« Previous" next_paging_link="Next »" prev_paging_title="more items" ' +
|
656 |
+
'next_paging_title="more items" use_simplepie="FALSE"]',
|
657 |
end = '',
|
658 |
access = 'r',
|
659 |
title = '<?php _e( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ); ?>';
|
675 |
//<![CDATA[
|
676 |
if ( typeof edButtons != \'undefined\' ) {
|
677 |
var length = edButtons.length;
|
678 |
+
edButtons[length] = new edButton(\'RSSImport\', \'$context\', \'[RSSImport display="5" feedurl="http://feedurl.com/"'.
|
679 |
+
' before_desc="<br />" displaydescriptions="TRUE" after_desc=" " html="FALSE" truncatedescchar="200" truncatedescstring=" ... "'.
|
680 |
+
' truncatetitlechar=" " truncatetitlestring=" ... " before_date=" <small>" date="FALSE" after_date="</small>"'.
|
681 |
+
' date_format="" before_creator=" <small>" creator="FALSE" after_creator="</small>" start_items="<ul>" end_items="</ul>"'.
|
682 |
+
' start_item="<li>" end_item="</li>" target="" rel="" desc4title="" charsetscan="FALSE" debug="FALSE" before_noitems="<p>"'.
|
683 |
+
' noitems="No items, feed is empty." after_noitems="</p>" before_error="<p>" error="Error: Feed has a error or is not valid"'.
|
684 |
+
' after_error="</p>" paging="FALSE" prev_paging_link="« Previous" next_paging_link="Next »"'.
|
685 |
+
' prev_paging_title="more items" next_paging_title="more items" use_simplepie="FALSE"]\', \'\', \'\');
|
686 |
function RSSImport_tag(id) {
|
687 |
id = id.replace(/RSSImport_/, \'\');
|
688 |
edInsertTag(edCanvas, id);
|
689 |
}
|
690 |
jQuery(document).ready(function() {
|
691 |
+
content = \'<input id="RSSImport_\'+length+\'" class="ed_button" type="button" value="' . __( 'RSSImport', FB_RSSI_TEXTDOMAIN ) .
|
692 |
+
'" title="' . __( 'Import a feed with RSSImport', FB_RSSI_TEXTDOMAIN ) . '" onclick="RSSImport_tag(this.id);" />\';
|
693 |
jQuery("#ed_toolbar").append(content);
|
694 |
});
|
695 |
}
|