summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-06-17Use a placeholder image if ffmpeg is missing instead of throwing anBharat Mediratta
exception which would get silently swallowed by swfUpload. Signed-off-by: <unostar@danalan.info>
2009-06-17Add 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. Signed-off-by: <unostar@danalan.info>
2009-06-17Move all the fullsize code into the theme to make it less confusing.Bharat Mediratta
Partial fix for ticket #427. Signed-off-by: <unostar@danalan.info>
2009-06-15Create 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 Signed-off-by: <unostar@danalan.info>
2009-06-15Refactor 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. Signed-off-by: <unostar@danalan.info>
2009-06-15Refactor 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. Signed-off-by: <unostar@danalan.info>
2009-06-15Don't use stdClass to return the feed data. Just use an array.Tim Almdal
Signed-off-by: <unostar@danalan.info>
2009-06-15Remove 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. Signed-off-by: <unostar@danalan.info>
2009-06-15Remove 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. Signed-off-by: <unostar@danalan.info>
2009-06-15Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355.Chad Kieffer
Signed-off-by: <unostar@danalan.info>
2009-06-13Move date/time format strings into a setting and bump the galleryBharat Mediratta
module to version 2. First test of our upgrade code! Signed-off-by: <unostar@danalan.info>
2009-06-13Create 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. Signed-off-by: <unostar@danalan.info>
2009-06-13Don't count the root as an album in the stats block. It'll just confuse our ↵Bharat Mediratta
users. Fixes ticket #369 Signed-off-by: <unostar@danalan.info>
2009-06-13Continue 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 Signed-off-by: <unostar@danalan.info>
2009-06-13Move 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. Signed-off-by: <unostar@danalan.info>
2009-06-13Change from an event driven model to a call driven model similiar to the taskTim Almdal
api. Signed-off-by: <unostar@danalan.info>
2009-06-13Change 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. Signed-off-by: <unostar@danalan.info>
2009-06-12Changed 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. Signed-off-by: <unostar@danalan.info>
2009-06-12Add /usr/local/bin to PATH before trying to detect binaries.Bharat Mediratta
Signed-off-by: <unostar@danalan.info>
2009-06-12Rename theme_details to theme_options. These changes got left out ofBharat Mediratta
68fd196d66e2d21f571ff3b5a673f18cd129abf9 leaving us in a temporarily broken state. Signed-off-by: <unostar@danalan.info>
2009-06-10adding string to localizerunostar
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
2009-06-06Merge branch 'master' of git@github.com:gallery/gallery3Chad Kieffer
2009-06-06Remove album view icon link, added album link to info module. This and ↵Chad Kieffer
breadcrumb should suffice.
2009-06-05change the version to beta 1Bharat Mediratta
2009-06-06Add the exception message to the trace string when there's a graphicsBharat Mediratta
failure. Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Correct locale and local translationunostar
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Add Belarusian to the language list.Bharat Mediratta
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Localize the 'Advanced' menu itemBharat Mediratta
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-04Skip over busted images when rebuilding. Change graphics::generate()Bharat Mediratta
to return true/false on whether or not it could rebuild the image properly, then track the broke images in the task and ignore them. Fixes ticket #344.
2009-06-04Work around a problem with the CGI sapi on urls that don't containBharat Mediratta
index.php (ie, /gallery3 instead of /gallery3/index.php) that causes is to mis-route.
2009-06-04Make sure the item is loaded in parse_url() before we use it.Bharat Mediratta
2009-06-04Add MY_num containing num::convert_to_bytes() which supports PHP'sBharat Mediratta
size shorthand, and convert the simple_uploader code to use it.
2009-06-04Let the Akismet module create the statistics menu, since it's the onlyBharat Mediratta
one that uses it. Perhaps this is not the best solution, but it's the pragmatic one.
2009-06-03Sanitize all data we return via json_encode() to guard against XSS andBharat Mediratta
other data leaks.
2009-06-02made "Add photos" its own site menu itemjhilden
* open for suggestions on the submenu item labels * @bharat: not sure about the add photos menu item id in the dropdown case
2009-06-02make cleanm staticTim Almdal