Commit Graph
110 Commits
Author SHA1 Message Date
Chad Kieffer c812d2a931 Changed comment sort order asc. Changed ajax comment add to append comment li to comment thread ul. Added fadeIn for user login. 2008-11-24 07:12:45 +00:00
Tim Almdal 8b52d9cde4 Revert the site_title change 2008-11-24 05:58:38 +00:00
Chad Kieffer e85282b709 Make login form JS unobtrusive. Needs work. 2008-11-24 00:27:45 +00:00
Chad Kieffer 9139872c8d When removing #gCommentForm I forgot to update the jQuery selectors used here. In place commenting works again. 2008-11-23 20:17:02 +00:00
Chad Kieffer a43b8d03a1 This should have been checked in with r18815. 2008-11-23 18:15:54 +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 51ada4c2e2 Move search out into its own module and have it display its link at
the header_bottom() insertion point.
2008-11-23 08:08:12 +00:00
Chad Kieffer 0ef6f4995c Fixed up the pager a bit, added missing images. Let's float items instead of using absolute positioning (slideshow link). CSS comment org and comment updates. 2008-11-23 04:34:19 +00:00
Bharat Mediratta 1b76def26f Create thumbnail insertion points (top/bottom/info) and move
the generic item info into the info module.
2008-11-22 21:59:41 +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
Chad Kieffer ac9df35d8a Cleanup of header to normalize margins and white space. Improved display of user login form. Added gHide, gShowBlock, gShowInline, gClose classes to handle show and hide functions. Half-baked idea which will need refinement. 2008-11-22 20:36:46 +00:00
Chad Kieffer bb6eeb63bb Added a label for the search form. Even if we place labels in text input fields as we currently do w/ the search form, a label should be included to maintain accessibility. Set label display to none if it shouldn't be displayed. 2008-11-22 18:39:47 +00:00
Tim Almdal 8eadddfa87 Convert gmaps, info, and tag modules to the new block module 2008-11-22 05:51:15 +00:00
Tim Almdal 01c8cdc8dd Convert the carousel module to provide its block through the new api 2008-11-21 23:55:29 +00:00
Tim Almdal 60191f1d2c Be consistent in naming the album_top block 2008-11-21 23:36:41 +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
Tim Almdal 223449fcbd slideshow::link() returns the entire anchor element 2008-11-19 23:46:40 +00:00
Tim Almdal c25f21accb Change the album and photo templates to call the slideshow helper to get the slideshow link and button text. The slideshow link will only show up if the slideshow module is installed. 2008-11-19 23:18:41 +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
Jozef Selesi b2772f5a05 * Renamed the album, item and photo controllers to albums, items and photos in order to follow the convention that controllers that refer to a collection of resources have plural names.
* Added a bug workaround to routes.php
2008-11-19 00:12:25 +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
Tim Almdal 4dfa22606f Correct the placement of the slideshow button on the photo.html page 2008-11-18 16:39:35 +00:00
Tim Almdal 6f4fae0786 Added the is_installed to the module helper and change to photo.html to not try to display a comment if it is not installed 2008-11-18 16:26:36 +00:00
Jozef Selesi 3ebb751cda First iteration of REST controller refactoring. RESTful controllers that refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this:
GET    /controller    -> controller::_index()
POST   /controller    -> controller::_create()
GET    /controller/id -> controller::_show()
PUT    /controller/id -> controller::_update()
DELETE /controller/id -> controller::_delete()
GET    /form/edit/controller/resource_id -> controller::_form()
GET    /form/add/controller/data         -> controller::_form()
2008-11-18 08:28:32 +00:00
Bharat Mediratta ce7fbf979d Stop using the target param; replace the form by hand so that we can run ajaxify_comment_form() as needed. Otherwise the 2nd post attempt won't be ajax 2008-11-16 07:27:36 +00:00
Bharat Mediratta e3be3cecf5 Second half of renaming the tags module. Change all occurrences of
gTags to gTag in the CSS.
2008-11-16 07:20:58 +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 b8b60df391 Rename gLogin -> gLoginForm
This disambiguates forms from blocks (for example in the comment
module we were calling both the form and block gComments).
2008-11-16 07:07:16 +00:00
Felix Rabinovich 1a79a10893 prevent direct access. take 2 2008-11-16 06:09:11 +00:00
Felix Rabinovich d4c95a089e prevent direct access 2008-11-16 06:06:13 +00:00
Jozef Selesi f9eaa8c220 Initial add comment implementation. 2008-11-15 16:52:23 +00:00
Bharat Mediratta 66bd9d85b3 Show per-field error messages inline again 2008-11-15 10:15:12 +00:00
Bharat Mediratta ca05d94b70 Add gInline to the form's unordered list to clean it up. 2008-11-15 09:27:04 +00:00
Bharat Mediratta 89c6f8f914 Don't show gLoginMenu if there's no user module 2008-11-15 09:09:29 +00:00
Bharat Mediratta db6061096e Item / Owner changes.
* Hardcode the item has_one owner relationship again
* Overload User_Model::__get to handle missing owners gracefully
* Fix Item_Controller to take the owner_id from the session or
  from the parent album when adding new albums and photos.
2008-11-15 08:44:01 +00:00
Felix Rabinovich 6dbf5ae172 Clean user / item relationship. Upload files gets the ownership of current user; and the views don't break if user module is not installed 2008-11-15 08:19:14 +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 9d1a598ec0 Add support for modifying user data. It still needs work.
Make the continue= param a GET only parameter so that it's not part of
the form.
2008-11-15 08:15:00 +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 bd1ec2df1f The state of of the user registration functionality 2008-11-14 18:16:13 +00:00
Tim Almdal d7745f2ad8 Add the name attr to the input fields and use the form.serialize() method to generate the post data 2008-11-14 17:23:10 +00:00
Tim Almdal 61d957e372 Rename login.js to user.js 2008-11-14 16:58:59 +00:00