Commit Graph

31 Commits

Author SHA1 Message Date
Bharat Mediratta
052bb79d68 Add <fh:complete/> 2008-12-18 18:50:27 +00:00
Bharat Mediratta
c92fbfd3c3 Add <generator> element to try to make Polar Rose happy (it doesn't work, though) 2008-12-18 00:29:22 +00:00
Bharat Mediratta
db110df5ba Absoluteify some urls to make feedvalidator.org happy 2008-12-18 00:28:30 +00:00
Bharat Mediratta
55f63f6c9f Add item view permission checks.
Switch from absolute urls to relative ones.

Relative urls break the flash based slideshow, but the Cooliris
extension works.  I'll file a bug.
2008-12-18 00:02:59 +00:00
Bharat Mediratta
fc7b78492b Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
file_proxy.  It also means we can stop munging file names in the var/resizes hierarchy.

In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Bharat Mediratta
6fbd79928c Move the <media:thumbnail> outside of the <media:group> to work around a bug in Cooliris. 2008-11-28 07:13:21 +00:00
Bharat Mediratta
29966cc4fc Set the page size to 30 images. No need to limit ourselves to 10 in a feed. 2008-11-28 05:18:17 +00:00
Bharat Mediratta
dec97b42fe Create media_rss helper and move feed generation in there, so that we
can get to the feed from other parts of the code.
2008-11-28 04:51:17 +00:00
Bharat Mediratta
0a6be1bf55 Fix some minor issues with the feed format 2008-11-28 02:44:02 +00:00
Bharat Mediratta
b69104b695 Fix a bug where we were loading the wrong item/tag 2008-11-28 01:41:26 +00:00
Bharat Mediratta
fd519082e1 Add a media_rss feed for tag views.
When visiting a photo, show the feed for the parent album.
2008-11-28 01:20:17 +00:00
Bharat Mediratta
c95c17b133 Centralize logging around installing/uninstalling modules. 2008-11-27 09:45:26 +00:00
Bharat Mediratta
974f9f7788 Add a new "tag" page type.
Create the concept of "page types" which let us specify the kind of
page that we're rendering in high level terms.  Currently there are
three page types: album, photo and tag.

The tag page type uses slightly different variables.  It has a $tag
but no $item.  Adjust all sidebar_block() functions to avoid printing
stuff that's dependent on the item if there is no item.

Simplify the tag code to stop trying to fake an item.

Update the theme slightly to use $item and $tag where appropriate
(notably, for making the <title> element).
2008-11-26 21:50:45 +00:00
Tim Almdal
6ec266faa6 2nd attempt at inserting html by modules. 2008-11-21 20:13:28 +00:00
Tim Almdal
992cf22c79 Revert module block approach 2008-11-21 07:06:11 +00:00
Tim Almdal
8c06908f7f Use rest::http_content_type() instead of the header() method to set response content 2008-11-20 17:51:12 +00:00
Tim Almdal
b78cee6395 A look at away to allow modules to define html head contents (links and js) and also allow modules to contribute blocks to the layout. 2008-11-20 17:32:58 +00:00
Bharat Mediratta
611627231b Clean up the MediaRSS module a little bit:
* Media_RSS_Controller::$LIMIT is now self::$page_size
* We use ORM_MPTT descendant_counts()
* If the page is out of bounds, put it on a boundary
* Move pub_date into the controller to simplify the mrss file
* Put all the view assignment in one block for easier reading
* Removed stray ; from the end of lines in the mrss file

Clean up ORM_MPTT a bit:
* fix spelling: decendent -> descendant
* Remove unnecessary order_by() clauses
* Set the default for $type to null (not "all").
2008-11-20 02:59:43 +00:00
Tim Almdal
bd76b2e89f changed descendents_by_type to descendents and added descendent_count 2008-11-20 00:45:40 +00:00
Bharat Mediratta
4a4eac31ad Create url::abs_site() and url::abs_file() to allow us to generate
full URLs with a clean API, and isolate the cruddy party where we have
to hardcode the server protocol into a single file.
2008-11-19 23:33:50 +00:00
Tim Almdal
7e5516302c clean up feed template 2008-11-19 18:54:49 +00:00
Tim Almdal
32b4a35568 Integrate Piclens lite as the slideshow 2008-11-19 18:45:12 +00:00
Tim Almdal
b3314fc1dc Update the media rss template to include the resize and the fullsize
added descendants by type method to the item model to allow for the selection of children by type
2008-11-19 18:23:30 +00:00
Tim Almdal
e14d5574b6 Cleanup media rss feed
added parameters to thumbnail_url and resizes_url to be passed to the url::base call to generate ful urls
2008-11-19 06:05:38 +00:00
Bharat Mediratta
20a0700fcb Set the content type to application/rss+xml 2008-11-19 03:29:57 +00:00
Bharat Mediratta
a197c057c8 rename views/feed.media_rss.php to views/feed.mrss.php because
mrss is a more standard abbreviation for MediaRSS.  Sigh.
2008-11-19 03:23:40 +00:00
Bharat Mediratta
c67f9069d0 Rename views/media_rss.html.php -> views/feed.media_rss.php because as
Tim points out, "it's not html".  My bad!
2008-11-19 03:21:43 +00:00
Bharat Mediratta
9311c12f1f rename views/media.rss.php to views/media_rss.html.php for consistency. 2008-11-19 03:18:59 +00:00
Bharat Mediratta
df4832bf6f Change Media_RSS_Controller so that it does not extend REST_Controller, since it
doesn't refer to a fixed resource or collection of resources.

Fix some minor bugs in the code so that we can actually generate a
feed.  It looks pretty cool!  Improved pagination links, but didn't actually test them.
2008-11-19 03:17:56 +00:00
Tim Almdal
693080669a fix a few minor issues 2008-11-19 02:50:11 +00:00
Tim Almdal
ad7ace9b72 The continuing evolution of the slideshow...
1) added a mime_type property to the item module(no database change)
2) created a media_rss module
3) moved most of the functionality for the downloading the images to the media_rss module
2008-11-19 02:31:20 +00:00