Commit Graph
145 Commits
Author SHA1 Message Date
Chad Kieffer 98ea31a86d Grouped Ajax/Dom scripting related styles (gInPlaceEdit, gClose, etc.). Began gInPlaceEdit styles. 2008-12-03 03:24:45 +00:00
Chad Kieffer ab0fcb7453 In place editing in breadcrumbs is a bit much, plus, it breaks the layout. Removing, at least for now. 2008-12-01 06:57:37 +00:00
Chad Kieffer 26a512c352 Grouped inline form styles. No longer using gInline class in favor of specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup. 2008-12-01 01:55:50 +00:00
Chad Kieffer 6c2869f822 Changed CSS organization, removed form section. Moved generic form CSS up to top of sheet and specific form styles to be adjacent to related content. This should ensure inheritance works generic down to specific. Removed #gAddTags in favor of #gTags form. 2008-11-29 21:30:30 +00:00
Chad Kieffer d01010cd1d Use .width() instead of .innerWidth(). Now photo resize works in IE 7. 2008-11-28 23:24:13 +00:00
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
Bharat Mediratta 4d71975f37 Add credits theme callback, point the powered-by link at GMC 2008-11-28 09:46:29 +00:00
Bharat Mediratta 1239e38e45 Move the form drawing code back into form.html.php -- I'm going to
take a shot at fixing it up in the view file so that it's mostly HTML,
not mostly PHP.  If that fails, I'll move it back into a helper.
2008-11-28 03:09:18 +00:00
Bharat Mediratta 26c9ec6d4b Make header buttons, line them up nicely and float them to the right
so that they don't push the album grid down.
2008-11-27 22:08:56 +00:00
Tim Almdal 6bc9c5868b Create a form_helper class containing the function Draw_Form so we don't have to always check to see if the DrawForm method is already defined in pages that could have multiple forms. 2008-11-27 16:33:41 +00:00
Tim Almdal bac4ff2046 1) Create a Theme_View class that combines the functionality of the Theme class with the View class.
2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)
2008-11-27 16:19:07 +00:00
Bharat Mediratta 723eb2f611 Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user 2008-11-27 11:43:48 +00:00
Bharat Mediratta 34a286ae90 Add navigation_top() and navigation_bottom() insertion points
Move "My Gallery" navigation tab into the user module and only show it
if you're logged in
2008-11-27 11:33:45 +00:00
Bharat Mediratta 0b86568586 Use the dimensions of the real image 2008-11-27 11:13:24 +00:00
Bharat Mediratta d909fc1070 Make tags look a little better. 2008-11-27 10:25:50 +00:00
Bharat Mediratta 92ca1ba9ab Style form#gAddTag nicely 2008-11-27 06:34:45 +00:00
Bharat Mediratta 850c3b90a3 Don't wrap hidden elements in list items 2008-11-27 06:34:20 +00:00
Tim Almdal 27e64f1dc6 Move javascript from default theme to appropriate modules 2008-11-27 06:14:32 +00:00
Tim Almdal 326fa1dd27 Remove slideshow.js as it is not required 2008-11-27 05:59:25 +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 4e8937ccef Indentation fix. 2008-11-26 21:24:46 +00:00
Bharat Mediratta 59d71baa08 Style the tag cloud add form. 2008-11-26 10:48:22 +00:00
Bharat Mediratta 98ee16ca49 Simplify tags code some more:
1) change buckets to be 1-7 not 0-6.. zero-based indicies don't make sense in the
   real world and are liable to confuse themers.

2) Change tag API to popular_tags($count) which just returns the popular tags.  Let
   the block code massage it into the right format for the view.

3) Move alphasort into the block code, simplify it and rename it to sort_by_name so
   that it's more descriptive

4) Do the bucketing in the view; this allows the themer to override it and create their
   own bucketing algorithm to go with the theme's CSS.

5) Don't create any temporary objects.
2008-11-26 10:27:13 +00:00
Tim Almdal 03bf3a6af2 Remove the more or less links 2008-11-26 05:08:43 +00:00
Tim Almdal 1ea0382f53 Moving right along on tags. Now the threshold for which tags can be changed. The default is to show all the tags (i.e. count >= the minimum frequency) by clicking on the "See Less" link, the tag cloud will not show the minimum frequency, so the number of tags shown is smaller.
The "See More" link works the opposite way.
2008-11-25 22:38:11 +00:00
Tim Almdal e9e589e5eb Display tag block using data from the database 2008-11-25 18:54:04 +00:00
Bharat Mediratta 7eded67708 Make the album_top and header_bottom annotated theme blocks look a little bit nicer (but not perfect) 2008-11-25 05:24:54 +00:00
Bharat Mediratta 458d588dd6 Move album_top back inside gAlbumHeader so that the slideshow link appears on the same line as the title/description. 2008-11-25 05:15:07 +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
Bharat Mediratta 389cf77e5a Make the annotated block titles 10% larger. 2008-11-25 04:35:50 +00:00
Bharat Mediratta 7be23c269c Remove a stray comma that was making IE sad. 2008-11-25 03:24:31 +00:00
Bharat Mediratta aedcba0ed2 Round the corners on the annotated titles, gently. 2008-11-25 02:24:59 +00:00
Bharat Mediratta dcf3693b3e Add theme debugging. Activate it in the [info] tab in the
scaffolding, then browse around your Gallery3 to see where you can add
visible elements via modules.
2008-11-25 02:17:53 +00:00
Bharat Mediratta 26f5baba94 Reposition album_top and album_bottom slightly 2008-11-25 02:14:36 +00:00
Bharat Mediratta c725a0f16e Move comment listing into the comment module 2008-11-25 02:14:04 +00:00
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