From 7881b58d92bc5cecc8bd26bdf1d72c8ee29c5382 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 30 Aug 2008 20:59:11 +0000 Subject: sync to trunk --- config/ampache.cfg.php.dist | 4 +-- docs/CHANGELOG | 1 + images/icon_feed.png | Bin 0 -> 691 bytes lib/class/rss.class.php | 65 +++++++++++++++++++++++++++++++++++++ templates/show_index.inc.php | 3 +- templates/show_now_playing.inc.php | 5 +-- 6 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 images/icon_feed.png create mode 100644 lib/class/rss.class.php diff --git a/config/ampache.cfg.php.dist b/config/ampache.cfg.php.dist index 06fa6815..056a2d93 100644 --- a/config/ampache.cfg.php.dist +++ b/config/ampache.cfg.php.dist @@ -525,8 +525,8 @@ transcode_cmd_ogg = "oggsplt -qn %FILE% %OFFSET% %EOF% -o - | oggdec -Q -o - - ; ; use_rss = false (values true | false) ; -;DEFAULT: use_rss = false -;use_rss = false +;DEFAULT: use_rss = true +use_rss = true ; ; ; rss_main_title = the title for your feed. diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 1717e4dd..1891e690 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.5-Alpha1 + - Add links to RSS feeds and set default to TRUE in config.dist - Fixed Dynamic Random/Related URLs with players that always send a byte offset (MPD) - Added Checkbox to use existing Database diff --git a/images/icon_feed.png b/images/icon_feed.png new file mode 100644 index 00000000..315c4f4f Binary files /dev/null and b/images/icon_feed.png differ diff --git a/lib/class/rss.class.php b/lib/class/rss.class.php new file mode 100644 index 00000000..17d3b154 --- /dev/null +++ b/lib/class/rss.class.php @@ -0,0 +1,65 @@ +' . get_user_icon('feed',_('RSS Feed')) . ''; + + return $string; + + } // get_display + +} // end RSS class diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php index 497b1b3b..81ffd05e 100644 --- a/templates/show_index.inc.php +++ b/templates/show_index.inc.php @@ -42,7 +42,8 @@ diff --git a/templates/show_now_playing.inc.php b/templates/show_now_playing.inc.php index 267bb9c4..d489c274 100644 --- a/templates/show_now_playing.inc.php +++ b/templates/show_now_playing.inc.php @@ -1,7 +1,7 @@ - +