Commit Graph
9 Commits
Author SHA1 Message Date
Bharat Medirattaand 3b684655e2 Refactor feed code to use stdClass everywhere. Fix bugs in the
max-pages calculation code.  Move feed related data into the $feed
variable and only pass that to the view.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 17:31:17 +08:00
Tim Almdaland 6007843c4a Remove the sidebar flag from the feed definition returned by available_feeds and
replace with a type field with one of two values (head and block).  We need to
do this to determine what fields go in the rss block so we can ignore the
definitions that are related to the page head when creating the rss block that
goes into the sidebar.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:03 +08:00
Tim Almdaland fdbffc870d Remove rss:item_feed, rss::tag_fead and rss_theme::head and move that
functionality in the <module_name>_theme::head function. Created rss::feed_link
to wrap the module supplied uri in the html link element.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:01 +08:00
Tim Almdaland 879e81f0a1 Rename:
rss::get_feeds() -> rss::available_feeds()
 rss::process_feed() -> rss::feed_data()

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:00 +08:00
Tim Almdaland 10d9c6a92a Rename Rss_Controller::__call to Rss_Controller::feed, which changes the feed
url to rss/feed/<feed name>/[<id>]
Where feed name is the name of the feed (i.e. albums, updates, comments, tags
etc.) and id is the optional element id that the feed applies to.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:25:58 +08:00
Tim Almdaland fd3a81f1ee Move the processing of rss feeds from the rss controller to callbacks in the
modules that are supplying the feed. The rss controller becomes a router.
In this change the comment and updates fields are distributed.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:26 +08:00
Tim Almdaland 94dc6baa49 Change from an event driven model to a call driven model similiar to the task
api.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:25 +08:00
Bharat Mediratta 5495037a3d Gee it's May already. Update copyright to 2009. 2009-05-13 20:04:58 +00:00
Tim Almdal 8b2c05afc0 1) Rename the module media_rss to rss
2) Protect the fullsize image with a permission check
3) Added a content:encoded element to each item which allows the image to show up in the body of the feed.
2009-02-19 15:24:17 +00:00