diff --git a/fp-content/images/.thumbs/atom-white.png b/fp-content/images/.thumbs/atom-white.png new file mode 100644 index 0000000..6f62f8b Binary files /dev/null and b/fp-content/images/.thumbs/atom-white.png differ diff --git a/fp-content/images/.thumbs/atom.png b/fp-content/images/.thumbs/atom.png new file mode 100644 index 0000000..c3ae8d4 Binary files /dev/null and b/fp-content/images/.thumbs/atom.png differ diff --git a/fp-content/images/.thumbs/rss-white.png b/fp-content/images/.thumbs/rss-white.png new file mode 100644 index 0000000..7e80d0e Binary files /dev/null and b/fp-content/images/.thumbs/rss-white.png differ diff --git a/fp-content/images/.thumbs/rss.png b/fp-content/images/.thumbs/rss.png new file mode 100644 index 0000000..1094716 Binary files /dev/null and b/fp-content/images/.thumbs/rss.png differ diff --git a/fp-content/images/atom-white.png b/fp-content/images/atom-white.png new file mode 100644 index 0000000..2f3cc93 Binary files /dev/null and b/fp-content/images/atom-white.png differ diff --git a/fp-content/images/atom.png b/fp-content/images/atom.png new file mode 100644 index 0000000..b435333 Binary files /dev/null and b/fp-content/images/atom.png differ diff --git a/fp-content/images/rss-white.png b/fp-content/images/rss-white.png new file mode 100644 index 0000000..9197c23 Binary files /dev/null and b/fp-content/images/rss-white.png differ diff --git a/fp-content/images/rss.png b/fp-content/images/rss.png new file mode 100644 index 0000000..e20ff71 Binary files /dev/null and b/fp-content/images/rss.png differ diff --git a/fp-defaults/plugins.conf.php b/fp-defaults/plugins.conf.php index 9eb8a16..33c9125 100755 --- a/fp-defaults/plugins.conf.php +++ b/fp-defaults/plugins.conf.php @@ -26,8 +26,9 @@ $fp_plugins = array( 'favicon', 'commentcenter', 'mediamanager', - // 'datechanger' // Lets you change the publish date for (new) entries. + 'datechanger', // Lets you change the publish date for (new) entries. 'gallerycaptions', - 'photoswipe' + 'photoswipe', + 'feed' // Shows the RSS and Atom feed in the header and activates the widget ); ?> diff --git a/fp-interface/lang/cs-cz/lang.default.php b/fp-interface/lang/cs-cz/lang.default.php index 15cbf29..a1ef1bd 100644 --- a/fp-interface/lang/cs-cz/lang.default.php +++ b/fp-interface/lang/cs-cz/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Přidej komentář', 'comment' => '1 komentář', - 'comments' => 'komentáře' + 'comments' => 'komentáře', + + 'rss' => 'Přihlásit se k odběru RSS feed', + 'atom' => 'Přihlásit se k odběru Atom feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/da-dk/lang.default.php b/fp-interface/lang/da-dk/lang.default.php index c5b914e..9987eae 100644 --- a/fp-interface/lang/da-dk/lang.default.php +++ b/fp-interface/lang/da-dk/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Tilføj kommentar', 'comment' => '1 Kommentar', - 'comments' => 'Kommentarer' + 'comments' => 'Kommentarer', + + 'rss' => 'Abonner på RSS-feed', + 'atom' => 'Abonner på Atom-feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/de-de/lang.default.php b/fp-interface/lang/de-de/lang.default.php index dcfd9ae..3e0bc18 100644 --- a/fp-interface/lang/de-de/lang.default.php +++ b/fp-interface/lang/de-de/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Kommentar hinzufügen', 'comment' => '1 Kommentar', - 'comments' => 'Kommentare' + 'comments' => 'Kommentare', + + 'rss' => 'RSS-Feed abonnieren', + 'atom' => 'Atom-Feed abonnieren' ); $lang ['search'] = array( diff --git a/fp-interface/lang/el-gr/lang.default.php b/fp-interface/lang/el-gr/lang.default.php index a7b10f3..a0b3972 100644 --- a/fp-interface/lang/el-gr/lang.default.php +++ b/fp-interface/lang/el-gr/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Προσθήκη σχολίου', 'comment' => '1 σχόλιο', - 'comments' => 'σχόλια' + 'comments' => 'σχόλια', + + 'rss' => 'Εγγραφείτε στο RSS Feed', + 'atom' => 'Εγγραφείτε στο Atom Feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/en-us/lang.default.php b/fp-interface/lang/en-us/lang.default.php index 6112c45..72a0552 100755 --- a/fp-interface/lang/en-us/lang.default.php +++ b/fp-interface/lang/en-us/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Add a comment', 'comment' => '1 comment', - 'comments' => 'comments' + 'comments' => 'comments', + + 'rss' => 'Subscribe RSS feed', + 'atom' => 'Subscribe Atom feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/es-es/lang.default.php b/fp-interface/lang/es-es/lang.default.php index 578d71a..22ce70b 100644 --- a/fp-interface/lang/es-es/lang.default.php +++ b/fp-interface/lang/es-es/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Agregar un Comentario', 'comment' => '1 comentario', - 'comments' => 'comentarios' + 'comments' => 'comentarios', + + 'rss' => 'Suscribirse a RSS Feed', + 'atom' => 'Suscribirse a Atom Feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/fr-fr/lang.default.php b/fp-interface/lang/fr-fr/lang.default.php index a21e4f4..fa2ca87 100644 --- a/fp-interface/lang/fr-fr/lang.default.php +++ b/fp-interface/lang/fr-fr/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Ajouter un commentaire', 'comment' => '1 commentaire', - 'comments' => 'commentaires' + 'comments' => 'commentaires', + + 'rss' => 'S\'abonner au flux RSS', + 'atom' => 'S\'abonner au flux Atom' ); $lang ['search'] = array( diff --git a/fp-interface/lang/it-it/lang.default.php b/fp-interface/lang/it-it/lang.default.php index 39339bc..65a6f24 100644 --- a/fp-interface/lang/it-it/lang.default.php +++ b/fp-interface/lang/it-it/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Aggiungi un commento', 'comment' => '1 commento', - 'comments' => 'commenti' + 'comments' => 'commenti', + + 'rss' => 'Iscriviti al feed RSS', + 'atom' => 'Iscriviti al feed Atom' ); $lang ['search'] = array( diff --git a/fp-interface/lang/ja-jp/lang.default.php b/fp-interface/lang/ja-jp/lang.default.php index 486d653..33322ce 100644 --- a/fp-interface/lang/ja-jp/lang.default.php +++ b/fp-interface/lang/ja-jp/lang.default.php @@ -20,7 +20,10 @@ $lang['main'] = array( 'nocomments' => 'コメントを追加する', 'comment' => '1コメントあります', - 'comments' => 'コメントあります' + 'comments' => 'コメントあります', + + 'rss' => 'RSSフィードを購読する', + 'atom' => 'Atomフィードを購読する' ); $lang['search'] = array( diff --git a/fp-interface/lang/nl-nl/lang.default.php b/fp-interface/lang/nl-nl/lang.default.php index 7b1e28e..92ef690 100644 --- a/fp-interface/lang/nl-nl/lang.default.php +++ b/fp-interface/lang/nl-nl/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Voeg een commentaar toe', 'comment' => '1 commentaar', - 'comments' => 'commentaren' + 'comments' => 'commentaren', + + 'rss' => 'Abonneren op RSS-feed', + 'atom' => 'Abonneren op Atom-feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/pt-br/lang.default.php b/fp-interface/lang/pt-br/lang.default.php index e96a132..de687ac 100644 --- a/fp-interface/lang/pt-br/lang.default.php +++ b/fp-interface/lang/pt-br/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Adicione comentário', 'comment' => '1 comentário', - 'comments' => 'comentários' + 'comments' => 'comentários', + + 'rss' => 'Assine o RSS Feed', + 'atom' => 'Assine o Atom Feed' ); $lang ['search'] = array( diff --git a/fp-interface/lang/ru-ru/lang.default.php b/fp-interface/lang/ru-ru/lang.default.php index 748d72d..f3e1640 100644 --- a/fp-interface/lang/ru-ru/lang.default.php +++ b/fp-interface/lang/ru-ru/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Добавить комментарий', 'comment' => '1 комментарий', - 'comments' => 'комментарии' + 'comments' => 'комментарии', + + 'rss' => 'Подписаться на RSS-канал', + 'atom' => 'Подписаться на Atom-канал' ); $lang ['search'] = array( diff --git a/fp-interface/lang/sl-si/lang.default.php b/fp-interface/lang/sl-si/lang.default.php index f025d23..9f4ade8 100644 --- a/fp-interface/lang/sl-si/lang.default.php +++ b/fp-interface/lang/sl-si/lang.default.php @@ -20,7 +20,10 @@ $lang ['main'] = array( 'nocomments' => 'Dodajte komentar', 'comment' => '1 komentar', - 'comments' => 'komentarji' + 'comments' => 'komentarji', + + 'rss' => 'Naročite se na vir RSS', + 'atom' => 'Naročite se na vir Atom' ); $lang ['search'] = array( diff --git a/fp-interface/themes/leggero/flatmaas-rev/res/common.css b/fp-interface/themes/leggero/flatmaas-rev/res/common.css index 8abf621..c74bea2 100755 --- a/fp-interface/themes/leggero/flatmaas-rev/res/common.css +++ b/fp-interface/themes/leggero/flatmaas-rev/res/common.css @@ -129,6 +129,12 @@ h1 { /* Title of the blog */ text-decoration: none } +#head a img.feed { + float: right; + margin: 0px !IMPORTANT; + height: 12px +} + h2 { /* Titles of the entry */ font-size: 1.4em; color: #333333; diff --git a/fp-interface/themes/leggero/header.tpl b/fp-interface/themes/leggero/header.tpl index 569875d..dac2175 100755 --- a/fp-interface/themes/leggero/header.tpl +++ b/fp-interface/themes/leggero/header.tpl @@ -11,6 +11,10 @@
diff --git a/fp-interface/themes/leggero/leggero-v2/res/common.css b/fp-interface/themes/leggero/leggero-v2/res/common.css index 5c5bffa..bea3345 100644 --- a/fp-interface/themes/leggero/leggero-v2/res/common.css +++ b/fp-interface/themes/leggero/leggero-v2/res/common.css @@ -180,6 +180,12 @@ h4 { font-size: 1.2em } margin: .5em 0 0 0 } +#head a img.feed { + float: right; + margin: 0px !IMPORTANT; + height: 16px +} + /* ===== DIV CONTAINER "MAIN" ===== */ #outer-container { position: relative; diff --git a/fp-interface/themes/leggero/leggero/res/common.css b/fp-interface/themes/leggero/leggero/res/common.css index 37cb221..387c50f 100644 --- a/fp-interface/themes/leggero/leggero/res/common.css +++ b/fp-interface/themes/leggero/leggero/res/common.css @@ -202,6 +202,12 @@ h4 { font-size: 1.2em } margin: .5em 0 1em 1.2em } +#head a img.feed { + float: right; + margin: 0px !IMPORTANT; + height: 16px +} + /* ===== DIV CONTAINER "MAIN" ===== */ #outer-container { diff --git a/fp-plugins/feed/img/atom-white.png b/fp-plugins/feed/img/atom-white.png new file mode 100644 index 0000000..2f3cc93 Binary files /dev/null and b/fp-plugins/feed/img/atom-white.png differ diff --git a/fp-plugins/feed/img/atom.png b/fp-plugins/feed/img/atom.png new file mode 100644 index 0000000..b435333 Binary files /dev/null and b/fp-plugins/feed/img/atom.png differ diff --git a/fp-plugins/feed/img/rss-white.png b/fp-plugins/feed/img/rss-white.png new file mode 100644 index 0000000..9197c23 Binary files /dev/null and b/fp-plugins/feed/img/rss-white.png differ diff --git a/fp-plugins/feed/img/rss.png b/fp-plugins/feed/img/rss.png new file mode 100644 index 0000000..e20ff71 Binary files /dev/null and b/fp-plugins/feed/img/rss.png differ diff --git a/fp-plugins/feed/lang/lang.cs-cz.php b/fp-plugins/feed/lang/lang.cs-cz.php new file mode 100644 index 0000000..6886f97 --- /dev/null +++ b/fp-plugins/feed/lang/lang.cs-cz.php @@ -0,0 +1,7 @@ + 'Přihlaste se k odběru na', + 'rss' => 'Přihlásit se k odběru RSS feed', + 'atom' => 'Přihlásit se k odběru Atom feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.da-dk.php b/fp-plugins/feed/lang/lang.da-dk.php new file mode 100644 index 0000000..fc7e8fe --- /dev/null +++ b/fp-plugins/feed/lang/lang.da-dk.php @@ -0,0 +1,7 @@ + 'Abonnieren', + 'rss' => 'Abonner på RSS-feed', + 'atom' => 'Abonner på Atom-feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.de-de.php b/fp-plugins/feed/lang/lang.de-de.php new file mode 100644 index 0000000..3da0c87 --- /dev/null +++ b/fp-plugins/feed/lang/lang.de-de.php @@ -0,0 +1,7 @@ + 'Abonnieren', + 'rss' => 'RSS-Feed abonnieren', + 'atom' => 'Atom-Feed abonnieren' +); +?> diff --git a/fp-plugins/feed/lang/lang.el-gr.php b/fp-plugins/feed/lang/lang.el-gr.php new file mode 100644 index 0000000..23c4b80 --- /dev/null +++ b/fp-plugins/feed/lang/lang.el-gr.php @@ -0,0 +1,7 @@ + 'Εγγραφείτε στην τροφοδοσία', + 'rss' => 'Εγγραφείτε στο RSS Feed', + 'atom' => 'Εγγραφείτε στο Atom Feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.en-us.php b/fp-plugins/feed/lang/lang.en-us.php new file mode 100644 index 0000000..5e0e8b5 --- /dev/null +++ b/fp-plugins/feed/lang/lang.en-us.php @@ -0,0 +1,7 @@ + 'Subscribe', + 'rss' => 'Subscribe RSS feed', + 'atom' => 'Subscribe Atom feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.es-es.php b/fp-plugins/feed/lang/lang.es-es.php new file mode 100644 index 0000000..2e2da56 --- /dev/null +++ b/fp-plugins/feed/lang/lang.es-es.php @@ -0,0 +1,7 @@ + 'Suscribirse al feed', + 'rss' => 'Suscribirse a RSS Feed', + 'atom' => 'Suscribirse a Atom Feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.fr-fr.php b/fp-plugins/feed/lang/lang.fr-fr.php new file mode 100644 index 0000000..d76e202 --- /dev/null +++ b/fp-plugins/feed/lang/lang.fr-fr.php @@ -0,0 +1,7 @@ + 'S\'abonner à', + 'rss' => 'S\'abonner au flux RSS', + 'atom' => 'S\'abonner au flux Atom' +); +?> diff --git a/fp-plugins/feed/lang/lang.it-it.php b/fp-plugins/feed/lang/lang.it-it.php new file mode 100644 index 0000000..e3695ce --- /dev/null +++ b/fp-plugins/feed/lang/lang.it-it.php @@ -0,0 +1,7 @@ + 'Iscriviti al feed', + 'rss' => 'Iscriviti al feed RSS', + 'atom' => 'Iscriviti al feed Atom' +); +?> diff --git a/fp-plugins/feed/lang/lang.ja-jp.php b/fp-plugins/feed/lang/lang.ja-jp.php new file mode 100644 index 0000000..619680b --- /dev/null +++ b/fp-plugins/feed/lang/lang.ja-jp.php @@ -0,0 +1,7 @@ + 'フィードを購読する', + 'rss' => 'RSSフィードを購読する', + 'atom' => 'Atomフィードを購読する' +); +?> diff --git a/fp-plugins/feed/lang/lang.nl-nl.php b/fp-plugins/feed/lang/lang.nl-nl.php new file mode 100644 index 0000000..8e2bc21 --- /dev/null +++ b/fp-plugins/feed/lang/lang.nl-nl.php @@ -0,0 +1,7 @@ + 'Abonneren op feed', + 'rss' => 'Abonneren op RSS-feed', + 'atom' => 'Abonneren op Atom-feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.pt-br.php b/fp-plugins/feed/lang/lang.pt-br.php new file mode 100644 index 0000000..449547a --- /dev/null +++ b/fp-plugins/feed/lang/lang.pt-br.php @@ -0,0 +1,7 @@ + 'Assinar o feed', + 'rss' => 'Assine o RSS Feed', + 'atom' => 'Assine o Atom Feed' +); +?> diff --git a/fp-plugins/feed/lang/lang.ru-ru.php b/fp-plugins/feed/lang/lang.ru-ru.php new file mode 100644 index 0000000..30ca0a4 --- /dev/null +++ b/fp-plugins/feed/lang/lang.ru-ru.php @@ -0,0 +1,7 @@ + 'Подписаться на фид', + 'rss' => 'Подписаться на RSS-канал', + 'atom' => 'Подписаться на Atom-канал' +); +?> diff --git a/fp-plugins/feed/lang/lang.sl-si.php b/fp-plugins/feed/lang/lang.sl-si.php new file mode 100644 index 0000000..9ee2452 --- /dev/null +++ b/fp-plugins/feed/lang/lang.sl-si.php @@ -0,0 +1,7 @@ + 'Naročite se na vir', + 'rss' => 'Naročite se na vir RSS', + 'atom' => 'Naročite se na vir Atom' +); +?> diff --git a/fp-plugins/feed/plugin.feed.php b/fp-plugins/feed/plugin.feed.php new file mode 100644 index 0000000..c246463 --- /dev/null +++ b/fp-plugins/feed/plugin.feed.php @@ -0,0 +1,50 @@ +widget menu. Part of the standard distribution. + */ + + +function plugin_feed_head() { // stytesheet-file + $pdir = plugin_geturl('feed'); + + echo ' + + + + '; +} + +function plugin_feed_widget() { + + $lang = lang_load('plugin:feed'); + $baseurl = BLOG_BASEURL; + $imgdir = IMAGES_DIR; + + $widget ['subject'] = $lang ['plugin'] ['feed'] ['subject']; + + $rss = $lang ['plugin'] ['feed'] ['rss']; + $atom = $lang ['plugin'] ['feed'] ['atom']; + + $widget ['content'] = ' + + + + '; + + return $widget; +} + +register_widget('feed', 'RSS and Atom Feed', 'plugin_feed_widget'); // feed-widget +add_action('wp_head', 'plugin_feed_head'); // stytesheet-file +?> diff --git a/fp-plugins/feed/res/feed.css b/fp-plugins/feed/res/feed.css new file mode 100644 index 0000000..1aef077 --- /dev/null +++ b/fp-plugins/feed/res/feed.css @@ -0,0 +1,4 @@ +.feed-widget { + margin: 0px !IMPORTANT; + height: 16px; +}