summaryrefslogtreecommitdiff
path: root/themes/default/views/photo.html.php
AgeCommit message (Collapse)Author
2009-09-23Rename the default themes to wind and admin_wind. Change xss_data.txt file ↵Tim Almdal
to reflect this move. Not completely moved yet, but the git st is rather large so lets commit this now as a base for the cleanup.
2009-08-31Fix XSS vectors in HTML attributes (mostly t() calls)Andy Staudacher
2009-08-30Updating uses of html::js_string and SafeString::for_js (value now contains ↵Andy Staudacher
string delimiters)
2009-08-29Minor cleanupAndy Staudacher
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Merge commit 'upstream/master'Andy Staudacher
Conflicts: modules/akismet/views/admin_akismet.html.php modules/comment/helpers/comment_rss.php modules/gallery/helpers/gallery_rss.php modules/gallery/libraries/I18n.php modules/gallery/views/permissions_browse.html.php modules/gallery/views/simple_uploader.html.php modules/info/views/info_block.html.php modules/organize/controllers/organize.php modules/organize/views/organize.html.php modules/organize/views/organize_album.html.php themes/default/views/album.html.php themes/default/views/movie.html.php themes/default/views/photo.html.php
2009-08-29Fixing all detected XSS vectors in PHP->JS code.Andy Staudacher
Xss: Rename UNKNOWN back to DIRTY, JS_XSS to DIRTY_JS. (using a different flag value to highlight potential XSS vectors in JS)
2009-08-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-28Fix ticket #591: reCaptcha always on the page.Tim Almdal
1) move creating the "Add a comment" button into the comments.html.php 2) use $.get() to retrieve the comment add form
2009-08-10Create the concept of an "ajax link" and use it for thumbnail rotationBharat Mediratta
and album covers in the context menu. Notes: - This requires context_menu() to have a CSS selector that refers to the <img> that we're operating on, otherwise we don't know how to find the thumbnail, etc. - Create Menu_Element_Ajax_Link which has an ajax_handler attribute that contains a snippet of JS that we're going to run when the ajax call returns. - Add $.gallery_replace_image in gallery.common.js - Add lib/gallery.ajax.js which can be used to ajaxify any link, and have ui.init.js in the themes call that on all .gAjaxLink elements.
2009-08-07Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_branchBharat Mediratta
Conflicts: themes/default/js/ui.init.js
2009-08-07Rename gallery.common.js functions to conform to our naming standardsBharat Mediratta
and have some basic namespacing: showMessage --> gallery_show_message vAlign --> gallery_valign showLoading --> gallery_show_loading Convert gallery.show_full_size.js to be a jQuery function and give it a namespace: show_full_size --> gallery_show_full_size
2009-08-03Add the context menu to the photo/movie pages also.Bharat Mediratta
2009-07-04Fix for ticket #477. Use nl2br method when rendering comment::text andTim Almdal
item::description. In addition add p::clean or p::purify to places that xss cleaning had missed (i.e. rss feeds)
2009-07-03Split the clean method into two clean and purify. clean is a light weightTim Almdal
approach using html::specialchars and purify uses HTMLPurifier to intelligently cleanse the output fields. Use purifier for text and title fields where it is likely that a user would enter html to format their data.
2009-06-26Move the inclusion of photo and movie specific javascript into gallery_themeTim Almdal
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