summaryrefslogtreecommitdiff
path: root/themes/default/views/page.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-09-12Only tack ?show=<current_id> on for the last parent, because that'sBharat Mediratta
the only parent for which the id is relevant. In a perfect world each parent's link would have a ?show=<id> for the next child's id. But that would require some confusing code and I don't want to put that into the default/example theme yet.
2009-09-08Move specialized (pretty) url generation back into Item_Model so thatBharat Mediratta
we're not relying on overriding url::site() to do tricks around item urls. This means that you won't get item urls by doing url::site("albums/37"), for example, but it also means that we won't get pretty urls where we don't expect them (like in the action of a <form> element). Incidentally, this will help us move over to using the slug format because if you've got a bad character in a url, the edit forms will now work on it since they'll be id based.
2009-09-01Merged admin_screen and screen style sheets in the admin theme. Removed some ↵Chad Kieffer
unsused admin styles in the process. Fixed problem in admin header that broke the theme's layout in IE7. Moved the Gallery logo and shortcut icon to lib/images for easier reuse.
2009-08-31Fix XSS vectors in HTML attributes (mostly t() calls)Andy Staudacher
2009-08-30Oops, fix up the show argument that I "fixed" in the last change.Bharat Mediratta
2009-08-30Use $theme->item() instead of $item.Bharat Mediratta
2009-08-30Move header and footer into page.html.php since they're not included in any ↵Chad Kieffer
other view template.
2009-08-30Updating uses of html::js_string and SafeString::for_js (value now contains ↵Andy Staudacher
string delimiters)
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-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-07-22Use the Kohana cascading filesystem to locate resources loaded by theBharat Mediratta
theme. Because the theme comes first, this means that themes can override any module resources, at the cost that we no longer have namespacing for JS and CSS files. The only file getting used outside of this model is themes/default/screen.css which is used in the admin theme. I fixed that by copying screen.css into admin_default and renaming its screen.css to admin_screen.css. I also copied over all the images that it was referencing. Fixes tickets #48 and #539. Theme API changes: - theme_script(), theme_url() and theme_css() are no longer needed - script(), url() and css() now refer to the first matching asset in the module load path, where gallery3/lib is at the end of the path
2009-07-01Fix a typo in the Doctype. Fixes ticket #497.Bharat Mediratta
2009-06-29Fix for ticket 86 - Make Cancel button in doalogs localizable.Andy Staudacher
2009-06-29Remove fix-ie.css scripts from the combined bundle, since we only wantBharat Mediratta
to load them conditionally.
2009-06-29*Note* work in progress.Tim Almdal
Implement the combined css functionality. Local url references and replace with absolute urls instead of relative.
2009-06-29Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
Conflicts: modules/gallery/libraries/Theme_View.php themes/admin_default/views/admin.html.php
2009-06-28Rename $theme->url() to $theme->theme_url() for consistency wihtBharat Mediratta
$theme->theme_script().
2009-06-28Clean up the combined javascript change and refactor out theBharat Mediratta
Gallery_View base class from Theme_View and Admin_View. 1) Move all the theme specific jquery stuff from gallery_theme::head() and admin_head() into the theme files. Use $theme->script() as appropriate. 2) Get rid of the extra boolean on $theme->url() that we were using so that we could call $theme->script($theme->url(...)) -- add $theme->theme_script() instead (poorly named, but still clearer than what we had before) 3) Fix the bug that combined scripts didn't work at all in the admin theme. 4) Get rid of $theme->display() in favor of new View(...)
2009-06-261) Move the generation of script tags to gallery_theme::head and ↵Tim Almdal
gallery_theme::admin_head. This allows us to potentially manage the scripts like we do in g2 (single file and compressed) 2) Change Theme_View::_call to always call the gallery_theme::$function first.
2009-06-16Change the page.html file so that if the type of page is login, the sidebar ↵Tim Almdal
contents are are not shown
2009-06-15Fix the bug introduced by r79582ee, where we try to set the title of the tag ↵Tim Almdal
album to tag->title. which doesn't exist.
2009-06-15Fix up the titles in the default theme. They've been broken for aBharat Mediratta
while. This fixes ticket #342. The bug is that we were using $item instead of $theme->item(). But we were also not special casing tags properly, and they are effectively first class citizens (at least for now) so treat them properly. Also, set page_title by default in the theme so that we don't have to do an empty() check on it (makes the theme easier to read) and move the title out of Tags_Controller so that the theme has more control over it.
2009-06-14Move jquery local scroll module from default theme to lib, only load it if ↵Chad Kieffer
viewing photo view. White space cleanup, removed debug print from template.
2009-06-08Rename main_element_attributes() callback to body_attributes() to beBharat Mediratta
more intuitive for themers.
2009-06-06Preliminary BiDi support (needs *a lot* of tweaking)Andy Staudacher
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-30Focus IE fixes on versions less than 8Chad Kieffer
2009-05-26Split out re-used JavaScript for common functions (messages, valign), panel ↵Chad Kieffer
toggle, and forms to external files.
2009-04-22Added method to determine proportion of current thumb_size to the default, ↵Chad Kieffer
150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem.
2009-03-20rollback of r20469... see trac #161Tim Almdal
2009-03-20Rather than moving the themeroller and all of its associated filesTim Almdal
into each theme. I chose to create methods Theme_View::file($path) and Admin_View::file($path). These methods check for a theme override file in the theme and return a link to it if it exists. So to override the themeroller files. just create a lib/themeroller in the theme and the files will be picked up.
2009-03-19Remove YUI grids hd and ft ids, we don't need and they're cluttering our HTML.Chad Kieffer
2009-03-12Move the setting of the page title into the controller that isTim Almdal
creating the page. Provide for a default page title if none is set. This allows less changes to page.html.php as different modules want to change the page title.
2009-03-11Bag the header("Location:", ...);exit() and replace withTim Almdal
url:site(url::abs_file(...)) Create a login_page.html to be used when there is no guest access to the root album. It doesn't have a sidebar nor breadcrumb.
2009-03-11Force a login if everybody does not have access to the rootTim Almdal
item. ticket #118.
2009-02-12Fixed gViewMenu button issues. Fixed major admin_default theme issues, ↵Chad Kieffer
content now clears the menu. Added IE-specific stylesheet to admin theme.
2009-02-08Superfish is now in gallery3/trunk/lib/superfishBharat Mediratta
2009-02-08Move jQuery UI ThemeRoller css and images to lib. Should simplify future ↵Chad Kieffer
updates, keep default theme directories clean.
2009-02-04Drop request for jquery.listen.js, we don't use itBharat Mediratta
2009-01-12Add all the files jquery ui needs, including css for each widget. ui.all.css ↵Chad Kieffer
includes calls to the widget css we're currently using. Add new widget css here.
2009-01-10Site message placement and style adjustments.Chad Kieffer
2009-01-10Updated to jquery ui 1.6rc4. Lots of changes, improved widget theme css and ↵Chad Kieffer
icons. No need to fix position dialogs anymore. Included the following in the combined file + i18n files. Requires push back up to vendor branch. UI Core Effects Core Draggable - Req'd by Sortable Resizeable - Image/watermark/avatar scaling Sortable - Rearrange Dialog - All over :) Datepicker - Edit albums/items Progressbar Highlight - Message display, comment addition Transfer - Adding tags from available list to field Not fully integrated into the default theme yet.
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-03Added a jump to comments button with a scroll to effect.Chad Kieffer
2009-01-02More admin menu cleanup to reduce it's height. Removed redundant admin theme ↵Chad Kieffer
images, these are included in the default theme. Added a favicon.
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)