Commit Graph

33 Commits

Author SHA1 Message Date
Chad Kieffer
bb8fa3c417 Dynamically reset the dimensions of resized photos to fit if they're too wide. 2008-11-28 22:02:46 +00:00
Tim Almdal
27e64f1dc6 Move javascript from default theme to appropriate modules 2008-11-27 06:14:32 +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
Bharat Mediratta
b22494a4ea Move the in-place-edit JS into the page_footer callback and out of
Theme.php.
2008-11-25 04:37:21 +00:00
Tim Almdal
8b52d9cde4 Revert the site_title change 2008-11-24 05:58:38 +00:00
Tim Almdal
7491e3c44a Add a site-config parameter to the config.php file. Created a core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value. 2008-11-23 16:51:06 +00:00
Bharat Mediratta
c6f0cc036d Move all block callbacks from View::block_type() to
$theme->block_type() so that the themer has a consistent interface.
Also added a bunch more callbacks and normalized the names so that the
module author has plenty of options for where stuff gets put on the
page.  Especially renamed album/photo/sidebar to be album_blocks()
photo_blocks() and sidebar_blocks() to make it clear that those are
going to be larger content sections and not just basic insertion
points.

Used __call() to collapse all functions in the theme, which
incidentally makes it trivially easy to add a new insertion point.
2008-11-22 21:46:34 +00:00
Tim Almdal
4f5e3ad6d5 Use the new block mechanism to insert user related content into the html pages 2008-11-21 20:46:25 +00:00
Tim Almdal
6ec266faa6 2nd attempt at inserting html by modules. 2008-11-21 20:13:28 +00:00
Chad Kieffer
1b834319f4 Restored most heading styles, still need to restore table and list styles. Removed unused CSS. CSS format updates. Applied jQuery tab styles to gSiteMenu. Removed gBlockHeader, all we need is a good old h3 element for a heading. 2008-11-21 08:35:53 +00:00
Tim Almdal
992cf22c79 Revert module block approach 2008-11-21 07:06:11 +00:00
Chad Kieffer
e60ddd0bd8 Add jQuery UI, tabs, and accordion JS and CSS to build Adam Torres' hi-fi prototype. Dropped YUI Base CSS in favor of defining our own base styles in screen.css, headings will and other items may not look right until I do. Need to figure out how jQuery ThemeRoller CSS should be integrated, if at all. 2008-11-21 01:56:33 +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
Chad Kieffer
b18a1f4778 Content type and character encoding should be defined before <title> 2008-11-20 05:07:35 +00:00
Bharat Mediratta
689f7e70d5 The feed url can be relative. 2008-11-19 22:53:02 +00:00
Tim Almdal
32b4a35568 Integrate Piclens lite as the slideshow 2008-11-19 18:45:12 +00:00
Tim Almdal
763f0808e9 Add the media rss feed link to the page header in the default theme 2008-11-19 05:00:52 +00:00
Tim Almdal
4bf486955c The start of the slideshow module. Mostly framework stuff, no real implementation yet 2008-11-18 19:09:24 +00:00
Bharat Mediratta
140736a1e4 Several large changes:
1) Changed the way that we get forms.  Now, if you want to get a form
   for a REST resource you prefix /form to the resource id.  So:
    /form/photo/1    : returns a form for editing photo id 1
    /form/comments/1 : returns a form for adding a comment to photo id 1
    /form/comment/1  : returns a form for editing comment id 1

2) Changed the comment module to have two controllers:
    comment:  deals with a single comment resource
    comments: deal with collections of comments attached to an item

Related stuff:
- Moved the comments js into the theme
- Reworked Comment_Helper for clarity
- Moved form generation code down into Comment_Helper
- Cleaned up routes (eliminating new comment ones added in recent rev)
- Added form() function to all REST controllers
- Changed comment module to use a block instead of an arbitrary helper call from the theme
- Comment controller only returns HTML currently, but returns a 201 Created status
  code when a new comment is added, which the Ajax code can catch and act upon.
- Got rid of a lot of extra views in comment module
2008-11-16 07:14:12 +00:00
Bharat Mediratta
dc1090d005 Now, only logged in users can edit stuff in-place. 2008-11-15 08:16:58 +00:00
Bharat Mediratta
ae7839ffaa Revise the user login code.
* Remove user registration link and popup from the theme; this
  shouldn't be done in a popup. Use ajaxform to simplify the way
  that we load the login popup.

* Create form.html.php, this is a template for Forge based forms.

* Move user validation rules into User_Model and let forms
  populate the rules into their forms as useful.

* Undo r18688's changes regarding the REST code.  We should never
  accept a null resource, this breaks the REST abstraction.

* Change login and user controllers to use Forge which lets us delete
  login.html.php and user.html.php since those now are generated by
  the theme-owned form template
2008-11-15 06:23:09 +00:00
Tim Almdal
61d957e372 Rename login.js to user.js 2008-11-14 16:58:59 +00:00
Tim Almdal
1da2428183 More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup 2008-11-12 03:40:49 +00:00
Chad Kieffer
46a67a4b6d IE fixes, sidebar is now fixed in IE (we were missing a yui-g class). Removed .first class, it's not needed, at least not now. Moved all top-level layout containers to page.html.php so that if themers want to replace YUI grids with something else, like Blueprint, they only really need to edit page.html.php. 2008-11-09 23:03:50 +00:00
Bharat Mediratta
4cc70a1851 change url::base() to url::file() 2008-11-09 18:54:17 +00:00
Bharat Mediratta
950c58e6d3 Add support for in-place editing of data fields. 2008-11-08 09:28:11 +00:00
Bharat Mediratta
6a1ef44c88 convert tabs -> spaces 2008-11-07 06:44:36 +00:00
Chad Kieffer
7329cb0dde Added YUI 2.6.0 CSS collection to lib (reset-gonts-grids and base) and call these rather than CDN versions, for now. Renamed default theme's style sheet to screen.css, recommend that CSS files be named for the primary media they support. Removed unused YUI JS component calls from the default theme. 2008-11-07 05:03:00 +00:00
Bharat Mediratta
93fd448e7e Break header/sidebar/footer out into separate templates. 2008-11-06 07:24:58 +00:00
Bharat Mediratta
278191dd6d Change the theming module again, per a discussion with Chad and Jakob.
Now we have an overall page layout (page.html.php) which has a $content
variable, and that $content will be one of several possible secondary
views.  Currently, it is either photo.html.php or album.html.php.

header, footer, breadcrumb, sidebar, anything common to all pages is
in page.html.php.
2008-11-06 07:20:06 +00:00
Bharat Mediratta
ade1650846 Add a test to detect tabs in our code, and convert all tabs to spaces
so that the test passes.
2008-11-04 05:22:06 +00:00
Bharat Mediratta
57dd27fe57 Oops, left out the footer by accident. 2008-11-03 06:50:23 +00:00
Bharat Mediratta
a089399e73 Default theme, built with YUI. A mock right now, not functional at
all (except in some very minor ways).  It's unclear if this is the
best final structure.  Right now the album controller knows a
considerable amount about the layout of the page, which may not be the
best way to do things.
2008-11-03 05:53:20 +00:00