summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-06-23Remove stray ? that was breaking ccw rotation.Bharat Mediratta
2009-06-23Add gDialogLink to the delete button, since its got a jQueryBharat Mediratta
confirmation dialog now. This was a regression in fa4bb5b7ac89bbbd0325e5c336c2e9b31f59d12b. Fixes ticket #459.
2009-06-23Add a new "show credits" check box in the theme options so that youBharat Mediratta
can disable any module credits if you want. Update the theme to obey it.
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-23Order log entries by id as well so that multiple events in the sameBharat Mediratta
second are still shown in descending order.
2009-06-22Remove debugging output that was overlookedTim Almdal
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-22Change the quick pan from static to dynamic. This allows modules to add ↵Tim Almdal
buttons to the quick pane. The quick pane is now divided into 4 sections: left, center, right and additional. Additional items appear in the drop down box. Buttons are not sorted within the groupings. In addition, the quick pane will overflow onto the "additional" dropdown if there is not enough room to display all the buttons. The use case is the digibug printing module needed to add a button to the quick pane, and I don't like putting code into core that says if module is active... That's another one of those code smells :-) Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-20Fix a bug in gallery_installer where on an initial install we wereBharat Mediratta
only implementing schema version 1. This caused install.sql to be populated from version 1 which meant that after install you'd have to run the upgrader. No harm done, and the pattern is fixed for the future. Alphabetize the tables so it's easier to find stuff.
2009-06-18Fix plural messages in l10n scanner - Bad typo lead to basically breaking ↵Andy Staudacher
all plural ("other") forms.
2009-06-18Fix/remove unnecessary escaping of double quotes in l10n scanner.Andy Staudacher
2009-06-17Fix for ticket #366Tim Almdal
Move the creation of the setting menu back to gallery_menu::admin, now that there is a mechanism to remove empty menu items
2009-06-16Fix a bug that was overwriting the quick-pane HTML causing the quickBharat Mediratta
panes not to appear. Oops. Bug was introduced in the rss refactor: 1b656be7135efe51ba0eb34d6ac76c2632ec193a
2009-06-16Use a placeholder image if ffmpeg is missing instead of throwing anBharat Mediratta
exception which would get silently swallowed by swfUpload.
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-14Create a sidebar for tag pagesBharat Mediratta
Move the <link> for the container feed (either gallery/album/<id> or tag/tag/<id>) back into gallery_theme
2009-06-14Refactor the way that the rss module works so that we're not allowingBharat Mediratta
the url to dictate arbitrary static method calls. * Each xxx_rss helper has a single feed() call which takes an id as the argument * xxx_rss::available_feedS() only returns feeds when they're applicable (ie if you're viewing a tag, it won't show you an item feed). * Feed urls are now in the module/feed_id form so that we can bind a feed id to a given module * Tightened up the Rss_Controller by using url::merge and some other tricks. * Made the slideshow module express its own feed.
2009-06-14Refactor feed code to use stdClass everywhere. Fix bugs in theBharat Mediratta
max-pages calculation code. Move feed related data into the $feed variable and only pass that to the view.
2009-06-14Don't use stdClass to return the feed data. Just use an array.Tim Almdal
2009-06-14Remove the sidebar flag from the feed definition returned by available_feeds andTim Almdal
replace with a type field with one of two values (head and block). We need to do this to determine what fields go in the rss block so we can ignore the definitions that are related to the page head when creating the rss block that goes into the sidebar.
2009-06-14Remove rss:item_feed, rss::tag_fead and rss_theme::head and move thatTim Almdal
functionality in the <module_name>_theme::head function. Created rss::feed_link to wrap the module supplied uri in the html link element.
2009-06-14Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355.Chad Kieffer
2009-06-12Move date/time format strings into a setting and bump the galleryBharat Mediratta
module to version 2. First test of our upgrade code!
2009-06-12Create gallery::date_time(), gallery::date() and gallery::time()Bharat Mediratta
functions that format a unix timestamp into a date+time/date/time string. Partial fix for ticket #347.
2009-06-12Don't count the root as an album in the stats block. It'll just confuse our ↵Bharat Mediratta
users. Fixes ticket #369
2009-06-12Continue refactoring the rss module and distribute the creation of album andTim Almdal
tag feeds to the gallery and tag modules respectively. This chould close ticket #388
2009-06-12Move the processing of rss feeds from the rss controller to callbacks in theTim Almdal
modules that are supplying the feed. The rss controller becomes a router. In this change the comment and updates fields are distributed.
2009-06-12Change from an event driven model to a call driven model similiar to the taskTim Almdal
api.
2009-06-12Change the "request_feed_links" eventing handling so that individual modulesTim Almdal
provide the part of the url (the suffix) that they are interested in and the rss module will format the rest of the url.
2009-06-12Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2009-06-12Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
2009-06-12Add /usr/local/bin to PATH before trying to detect binaries.Bharat Mediratta
2009-06-12adding string to localizerunostar
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-11Merge branch 'master' of git@github.com:talmdal/gallery3Tim Almdal
2009-06-11Rename theme_details to theme_options. These changes got left out ofBharat Mediratta
68fd196d66e2d21f571ff3b5a673f18cd129abf9 leaving us in a temporarily broken state.
2009-06-11Changed rss_theme::sidebar_blocks to fire the event "request_feed_links" toTim Almdal
allow modules to contribute rss feed links to the rss sidebar block. Ticket #388.
2009-06-09Fix a bug in set_version() where we were always forcing the value to 1. Oops!Bharat Mediratta
2009-06-09Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
2009-06-09Cache the available module list in module::$available.Bharat Mediratta
2009-06-09Use a reference in available() to avoid crappy looking dereferencing.Bharat Mediratta
2009-06-09Merge branch 'master' of git@github.com:gallery/gallery3Andy Staudacher
2009-06-09Fix for fetching l10n plural messages. Need to cast from stdclass to ↵Andy Staudacher
array(), as I18n expects all messages to be either string or array.
2009-06-09Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
2009-06-09Check in /usr/local/bin for ffmpeg, and create the setting even if itsBharat Mediratta
empty (to make it easier for folks to change it in Admin > Settings > Advanced)
2009-06-09Removed extra whitespaceTim Almdal
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-09Create a new method in MY_url.php "get_item_from_uri" which loads the itemTim Almdal
based on the uri. Then use this helper method in logout.php to insure that the guest user has access to the "continue" uri. If they don't redirect to the root album and let it deal with access issues. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-08Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
2009-06-07Improve error handling support for corrupt images and report themBharat Mediratta
appropriately in g2_import.
2009-06-06Merge branch 'master' of git@github.com:gallery/gallery3Andy Staudacher
2009-06-06Preliminary BiDi support (needs *a lot* of tweaking)Andy Staudacher