summaryrefslogtreecommitdiff
path: root/themes/default/views/photo.html.php
AgeCommit message (Collapse)Author
2009-06-16Move the show_full_size code into gallery/lib so that it's generallyBharat Mediratta
available to themes that want to use it. It should probably eventually be generalized away from just being for full sized images, but it's a step in the right direction. Fixes ticket #427.
2009-06-16Add the real image url to the anchor elements for our full size linksBharat Mediratta
so that right clicking works. Turn the full size rendering code into a function and call it with arguments, instead of creating a hacky named data structure to hold the info. Further partial fixes for ticket #427.
2009-06-16Move all the fullsize code into the theme to make it less confusing.Bharat Mediratta
Partial fix for ticket #427.
2009-06-05Localize the 'Add a comment' messageBharat Mediratta
2009-06-02Fix for ticket #320Tim Almdal
2009-05-31Merge branch 'master' of git://github.com/gallery/gallery3Bharat Mediratta
2009-05-31Run all variables containing user-entered text through p::clean()Bharat Mediratta
2009-05-30Fix IE issues with gPager, switch gPager from id to class, it's possible ↵Chad Kieffer
that we might want it to appear more than once in views.
2009-05-10Don't provide full-size link if the user can't see the full sizeBharat Mediratta
image. There's no security hole here, it's just a bad user experience.
2009-04-06Mark resized images with the 'gResize' class to match the 'gThumbnail' class ↵Bharat Mediratta
we use in albums
2009-03-31Add quick edit pane to resize images, ticket #189Chad Kieffer
2009-02-23Restored txtright class that I'd deleted and forgotten to restore during ↵Chad Kieffer
debugging
2009-02-23Partial next/last pager fix for IE 6 and 7. Button's width is still foced to ↵Chad Kieffer
100%. Think this is a jQuery UI CSS issue and I haven't figured out an override for it yet.
2009-02-22Need to have next/previous in place in a disabled state to maintain pager ↵Chad Kieffer
layout.
2009-02-22Apply button styles to pager buttons and position in consistent locations.Chad Kieffer
2009-02-06Apply default link styles to links in dialogs, including the Forgot Password ↵Chad Kieffer
link.
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Create Item_Model::thumb_tag() and Item_Model::resize_tag() to provideBharat Mediratta
an abstraction for when we add movie support.
2009-01-10Switch the pager to use themeroller's icon sprites. I applied jquery ui css ↵Chad Kieffer
classes to newly added span classes in the pager templates directly, will likely move these out and apply through ui.init.js later.
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-01Applied #gPager to next/last nav, moved up above photo and moved photo title ↵Chad Kieffer
back to below the photo.
2009-01-01Change the preamble for views in two ways:Bharat Mediratta
1) drop unnecessary semicolon 2) start with <?php for extra security in the case that the server itself doesn't have short_tags enabled (the app won't work, but we need to make sure that we're still secure)
2008-12-31Simplify the next/previous logic in the theme by passing in a nullBharat Mediratta
next/prev sib if one didn't exist. (that's what we were supposed to be doing in the first place, anyway)
2008-12-31PhotoID -> PhotoId for consistencyBharat Mediratta
2008-12-31Add Item_Model::url() and use it where appropriate. Cleans up someBharat Mediratta
grotty looking stuff in themes.
2008-12-31Add sibling information on photo pages and a very simple next/previous ↵Bharat Mediratta
interface.
2008-12-24Lots of deltas rolled up into a bigger change. Sorry for the mess.Bharat Mediratta
1) Deleted in-place-editing. We'll be replacing this with a real edit system that groups settings together and is more coherent. 2) Tweaked the way that dialog boxes work to get the ajax stuff working again. It's imperfect and does not work properly for uploading images. This is going to get redone also, but this is a good resting point. 3) Created edit forms for albums and photos. Moved _update and _create out of Items_Controller and into the individual subclasses. 4) Created access::required which is a shorthand for: if (!access::can(...)) { access::forbidden(); } 5) Added validation rules to Items_Model 6) Converted login to use the regular modal dialog approach in the theme.
2008-12-15Argh, fix a bad rename.Bharat Mediratta
2008-12-15Rename default_admin to admin_default.Bharat Mediratta
2008-12-13Layout cleanup and simplification. Move view-mode buttons into sidebar, ↵Chad Kieffer
search to header_top. Reduced borders. Started album grid improvements. Minor white space improvements. Still need to handle text/photo alignment in album grid, improve placement of search.
2008-12-11Remove the options menus from the albums and photo pages and move to the ↵Tim Almdal
site menu
2008-12-09Checked in jQuery superfish menu plugin, applied to item options menu. ↵Chad Kieffer
Updated album/item view icons.
2008-12-07Style cleanups to make File_Structure_Test pass.Bharat Mediratta
2008-12-07Yay! Working item upload dialog from the album page! Chad Kieffer
2008-12-06Switch the slideshow link from text to icon. Chad Kieffer
2008-12-05Added album and item view icons (album, hybrid, slideshow, full size). Added ↵Chad Kieffer
"Options" menu placeholder to display item options (add, edit, subscribe, permissions, etc.). Renamed gAlbumHeaderMenu to gItemMenu which can be used on both album and item views.
2008-11-27Make header buttons, line them up nicely and float them to the rightBharat Mediratta
so that they don't push the album grid down.
2008-11-27Use the dimensions of the real imageBharat Mediratta
2008-11-25Move comment listing into the comment moduleBharat Mediratta
2008-11-22Move all block callbacks from View::block_type() toBharat Mediratta
$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-212nd attempt at inserting html by modules.Tim Almdal
2008-11-21Restored most heading styles, still need to restore table and list styles. ↵Chad Kieffer
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-21Revert module block approachTim Almdal
2008-11-20A look at away to allow modules to define html head contents (links and js) ↵Tim Almdal
and also allow modules to contribute blocks to the layout.
2008-11-19slideshow::link() returns the entire anchor elementTim Almdal
2008-11-19Change the album and photo templates to call the slideshow helper to get the ↵Tim Almdal
slideshow link and button text. The slideshow link will only show up if the slideshow module is installed.
2008-11-19Integrate Piclens lite as the slideshowTim Almdal
2008-11-18The start of the slideshow module. Mostly framework stuff, no real ↵Tim Almdal
implementation yet
2008-11-18Added the is_installed to the module helper and change to photo.html to not ↵Tim Almdal
try to display a comment if it is not installed
2008-11-16Several large changes:Bharat Mediratta
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