summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-10-04Create a gallery::plugin_path which returns the appropriate path to the ↵Tim Almdal
module or theme. This checks for the existence of an application/modules or application/themes first.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-01Change gallery::find_file to not assume that the absolute path is relative ↵Tim Almdal
to the document root. Instead ignore all th path parts until one of application, modules, themes, or libs is found. Fixes ticket #827
2009-09-30Merge branch 'master' of github.com:gallery/gallery3Chad Kieffer
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-30Fix a problem with trying to display item related menu items on a dynamic ↵Tim Almdal
page like tags
2009-09-30Added active_sidebar_blocks and deactive_sidebar_blocks to allow the ↵Tim Almdal
installer to activate and deactive the side bar blocks when a module is activated or deactivated.
2009-09-30Add functionality to activate sidebar blocks when the module is activated ↵Tim Almdal
and deactivate the sidebar blocks when the module is deactivated.
2009-09-30Set the gallery version to 15 and provide upgrade processing to set the ↵Tim Almdal
default sidebar.
2009-09-30Enable the administration screen for the sidebar. Fix for ticket #110.Tim Almdal
2009-09-30Make the parameter to block_manager::get_html() optional as its not ↵Tim Almdal
applicable to admin sidebar blocks.
2009-09-30Use the block_manager to manage site sidebar panels. Fixes ticket #110.Tim Almdal
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list. * Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks. * Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks * Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach * Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules. * Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules. * Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated * Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-29Remove a debugging log statementTim Almdal
2009-09-29Remove the @todo and optimize the gallery_event call for 3 and 4 ↵Tim Almdal
arguments... context menu events have 4 arguments.
2009-09-29* Remove the @todo in module event and always try to call ↵Tim Almdal
gallery_event::$function first * Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php * Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-28Create and throw the exception, instead of logging. The theory behindBharat Mediratta
exceptions is that they only need to be logged if they can't be caught and handled. If we don't throw it, then the error gets swallowed and the code that errored out just blithely continues.
2009-09-28Do a pass on the gallery::find_file and Gallery_View::{script,css} PHPdoc.Bharat Mediratta
2009-09-28Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2009-09-28Update the PHPDoc for gallery::find_file and convert ↵Tim Almdal
Gallery_View::script/css to use gallery::find_file
2009-09-28Clean up upgrader for version 14. Put {} around table name,Bharat Mediratta
capitalize reserved words, use single quotes in the query to avoid escaping the double quotes, remove table alias.
2009-09-27Clean up the task initialization for rebuild thumbs and resizes.Tim Almdal
2009-09-27Change gallery installer to do a direct update to the database, preppending ↵Tim Almdal
gallery_graphics:: to each of the defined rules operations
2009-09-27This path requires the upgrader to be run and applies the following changes:Tim Almdal
* moves the composite method back into core * requires that the operation be fully qualified i.e. gallery_graphics::resize * caches the graphics rules on each request
2009-09-27Fix one more place in the installer where we referring to the old defaultBharat Mediratta
theme names. Update installer.sql
2009-09-24Refactor the graphic rules processing to accomplish 2 goals: First separate ↵Tim Almdal
the grapics library from module supplied rules and secondly, allow for modules to provide new processing rules callbacks. graphics::generate will now look for <module_name>_graphics::<rule> methods.
2009-09-24Refactored the rebuild_dirty_images handler to simplify the counting and end ↵Tim Almdal
processing. It was getting all confused with trying to figure out the completed and remaining. Now on initiation it sets the total images that are dirty and then counts the completed until it equals the total, then exits. Fixes ticket #771
2009-09-24Fix unit tests by updating the xss golden file and declaring ↵Tim Almdal
gallery_error::error_handler as static
2009-09-24Forgot to change the defaults theme names on initial install... DuhTim Almdal
2009-09-24Oops, forgot to change the install version number to match the upgrade ↵Tim Almdal
version number
2009-09-23Add a new api method gallery::find_file. This wraps the Kohana::find_file ↵Tim Almdal
function, but allows the extension to supplied as part of the filename. Changed the Edit permission dialog to use the new api method to locate the icons from the active theme.
2009-09-23set the version number to 13, so we will update the default themes in the ↵Tim Almdal
gallery vars
2009-09-23Fix a typoTim Almdal
2009-09-23Clone the photo::get_edit_form to the movies helper and use it to generate ↵Tim Almdal
the movie edit form. Fixes ticket #726.
2009-09-22Create a gallery error handler that traps php errors and rethrows them as ↵Tim Almdal
Exceptions. This fixes ticket #763
2009-09-19On the edit album form, add dirname and slug asa hidden fields, so that when ↵Tim Almdal
the edits are being validated on input, the fields are found and can be referenced
2009-09-19Change the fix for ticket #775 to always add the Add menu, but not add any ↵Tim Almdal
items if the album directory is not writable.
2009-09-18Don't display the add menu if the underlying operating system directory is ↵Tim Almdal
not writable. THis should fix ticket #775
2009-09-17Mark permission's display name for translationAndy Staudacher
2009-09-15Improve language preference (Acccept-Language header matching): Boost ↵Andy Staudacher
same-language match over exact locale match for lower qvalue.
2009-09-13Set the version to "3.0 git (pre-RC1)"Bharat Mediratta
2009-09-12Update version to "3.0 beta 3"Bharat Mediratta
2009-09-10Put the buttons for album/photo dialogs in their own group in the formBharat Mediratta
so that they appear at the end, after any other groups that other modules add. Thanks Glooper!
2009-09-10Remove debug code.Bharat Mediratta
2009-09-10Rename "after_installer" to "welcome_message" in the code to make itBharat Mediratta
clearer what its purpose is. Add some spacing in the theme for it so that it's less cramped.
2009-09-08Fix line > 100 chars.Bharat Mediratta
2009-09-08Replace two preg_replace() calls with a single trim() call.Bharat Mediratta
2009-09-08Amend the v12 installer to empty out the relative_url_cache andBharat Mediratta
relative_path_cache columns.
2009-09-08Update item::convert_filename_to_slug() to eliminate leading andBharat Mediratta
trailing hyphens.
2009-09-08Remove unused $feed->link.Bharat Mediratta
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.