From 67f3c1a8d40d6e05ea2fa72af917b26fb9503e06 Mon Sep 17 00:00:00 2001 From: csarven Date: Fri, 14 Nov 2008 16:05:06 -0500 Subject: trac626 Put a list of feed links darcs-hash:20081114210506-eefa4-ba7e9bdd794ddfcacc397d732073abf99e97f3a5.gz --- actions/all.php | 5 +++++ actions/replies.php | 5 +++++ actions/showfavorites.php | 4 ++++ actions/showstream.php | 17 +++++++++++++++++ 4 files changed, 31 insertions(+) (limited to 'actions') diff --git a/actions/all.php b/actions/all.php index bd5b9f01e..729b8dd16 100644 --- a/actions/all.php +++ b/actions/all.php @@ -69,6 +69,11 @@ class AllAction extends StreamAction { } $this->views_menu(); + + $this->show_feeds_list(array(0=>array('href'=>common_local_url('allrss', array('nickname' => $user->nickname)), + 'type' => 'rss', + 'version' => 'RSS 1.0', + 'item' => 'allrss'))); } function show_notices($user) { diff --git a/actions/replies.php b/actions/replies.php index f5bc2ce1a..529ce7e98 100644 --- a/actions/replies.php +++ b/actions/replies.php @@ -73,6 +73,11 @@ class RepliesAction extends StreamAction { } $this->views_menu(); + + $this->show_feeds_list(array(0=>array('href'=>common_local_url('repliesrss', array('nickname' => $user->nickname)), + 'type' => 'rss', + 'version' => 'RSS 1.0', + 'item' => 'repliesrss'))); } function show_replies($user) { diff --git a/actions/showfavorites.php b/actions/showfavorites.php index f7061dc08..c18c73a7a 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -68,6 +68,10 @@ class ShowfavoritesAction extends StreamAction { common_notice_form('all'); } + $this->show_feeds_list(array(0=>array('href'=>common_local_url('favoritesrss', array('nickname' => $user->nickname)), + 'type' => 'rss', + 'version' => 'RSS 1.0', + 'item' => 'Favorites'))); $this->views_menu(); } diff --git a/actions/showstream.php b/actions/showstream.php index 16bffa4ea..9db31c108 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -72,8 +72,25 @@ class ShowstreamAction extends StreamAction { } $this->views_menu(); + + $this->show_feeds_list(array(0=>array('href'=>common_local_url('userrss', array('nickname' => $user->nickname)), + 'type' => 'rss', + 'version' => 'RSS 1.0', + 'item' => 'notices'), + 1=>array('href'=>common_local_url('usertimeline', array('nickname' => $user->nickname)), + 'type' => 'atom', + 'version' => 'Atom 1.0', + 'item' => 'usertimeline'), + + 2=>array('href'=>common_local_url('foaf',array('nickname' => $user->nickname)), + 'type' => 'rdf', + 'version' => 'FOAF', + 'item' => 'foaf'))); } + + + function show_header($user) { # Feeds common_element('link', array('rel' => 'alternate', -- cgit v1.2.3-54-g00ecf