Commit Graph
73 Commits
Author SHA1 Message Date
Bharat Mediratta 1b656be713 Create a sidebar for tag pages
Move the <link> for the container feed (either gallery/album/<id> or
tag/tag/<id>) back into gallery_theme
2009-06-14 22:27:26 -07:00
Bharat Mediratta 32ea4406c8 Refactor the way that the rss module works so that we're not allowing
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-14 21:51:54 -07:00
Bharat Mediratta 00fad54c0b Refactor feed code to use stdClass everywhere. Fix bugs in the
max-pages calculation code.  Move feed related data into the $feed
variable and only pass that to the view.
2009-06-14 16:40:57 -07:00
Tim Almdal 8b7f7a2fbe Don't use stdClass to return the feed data. Just use an array. 2009-06-14 12:38:57 -07:00
Tim Almdal 76b89556fc Remove the sidebar flag from the feed definition returned by available_feeds and
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-14 12:09:47 -07:00
Tim Almdal 484796e7cc Remove rss:item_feed, rss::tag_fead and rss_theme::head and move that
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-14 11:39:53 -07:00
Chad Kieffer 390bc7c1f6 Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355. 2009-06-14 10:42:14 -06:00
Bharat Mediratta 5f878e169f Move date/time format strings into a setting and bump the gallery
module to version 2.  First test of our upgrade code!
2009-06-12 23:05:13 -07:00
Bharat Mediratta 26314d0ef8 Create gallery::date_time(), gallery::date() and gallery::time()
functions that format a unix timestamp into a date+time/date/time
string.

Partial fix for ticket #347.
2009-06-12 22:44:51 -07:00
Bharat Mediratta 4166fbcd67 Don't count the root as an album in the stats block. It'll just confuse our users.
Fixes ticket #369
2009-06-12 21:42:01 -07:00
Tim Almdal 30bdaa8123 Continue refactoring the rss module and distribute the creation of album and
tag feeds to the gallery and tag modules respectively.  This chould close
ticket #388
2009-06-12 11:48:13 -07:00
Tim Almdal dc6c75cd05 Move the processing of rss feeds from the rss controller to callbacks in the
modules that are supplying the feed. The rss controller becomes a router.
In this change the comment and updates fields are distributed.
2009-06-12 08:52:03 -07:00
Tim Almdal d4d145a443 Change from an event driven model to a call driven model similiar to the task
api.
2009-06-12 07:46:42 -07:00
Tim Almdal e5793b5b26 Change the "request_feed_links" eventing handling so that individual modules
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-12 06:58:53 -07:00
Tim Almdal fcddeefa59 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-12 06:08:14 -07:00
Bharat Mediratta e6ce12e1d3 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-12 01:00:44 -07:00
Bharat Mediratta b70623118a Add /usr/local/bin to PATH before trying to detect binaries. 2009-06-12 00:58:34 -07:00
unostarandBharat Mediratta 5dcbc3898d adding string to localizer
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-12 15:39:16 +08:00
Tim Almdal f369b8fabf Merge branch 'master' of git@github.com:talmdal/gallery3 2009-06-11 21:19:13 -07:00
Bharat Mediratta 0b23433d94 Rename theme_details to theme_options. These changes got left out of
68fd196d66 leaving us in a temporarily
broken state.
2009-06-11 12:50:50 -07:00
Tim Almdal 1272d0837e Changed rss_theme::sidebar_blocks to fire the event "request_feed_links" to
allow modules to contribute rss feed links to the rss sidebar block.
Ticket #388.
2009-06-11 00:44:34 -07:00
Bharat Mediratta accce788d9 Fix a bug in set_version() where we were always forcing the value to 1. Oops! 2009-06-09 21:26:28 -07:00
Bharat Mediratta f55686c7ef Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-09 20:33:31 -07:00
Bharat Mediratta 00b528afac Cache the available module list in module::$available. 2009-06-09 20:32:37 -07:00
Bharat Mediratta 5e6c8894e2 Use a reference in available() to avoid crappy looking dereferencing. 2009-06-09 20:08:48 -07:00
Andy Staudacher 86a32d412f Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-09 19:49:58 -07:00
Andy Staudacher 7ccb65ea9e Fix for fetching l10n plural messages. Need to cast from stdclass to array(), as I18n expects all messages to be either string or array. 2009-06-09 19:49:06 -07:00
Bharat Mediratta e5d273e929 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-09 19:00:22 -07:00
Bharat Mediratta d0b2544511 Check in /usr/local/bin for ffmpeg, and create the setting even if its
empty (to make it easier for folks to change it in Admin > Settings >
Advanced)
2009-06-09 18:59:53 -07:00
Tim Almdal 8189c1fc6b Removed extra whitespace
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-09 21:45:57 +08:00
Tim Almdal f0ea6d532c Create a new method in MY_url.php "get_item_from_uri" which loads the item
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-09 21:45:43 +08:00
Bharat Mediratta 1ecdb5ef0c Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-08 21:32:03 -07:00
Bharat Mediratta c7aafef852 Improve error handling support for corrupt images and report them
appropriately in g2_import.
2009-06-07 17:48:42 -07:00
Andy Staudacher b9ee6f7d18 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-06 15:24:49 -07:00
Andy Staudacher 0e415dae9b Preliminary BiDi support (needs *a lot* of tweaking) 2009-06-06 15:24:14 -07:00
Chad Kieffer 7cdcb5179f Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-06 00:35:39 -06:00
Chad Kieffer c5425f42a4 Remove album view icon link, added album link to info module. This and breadcrumb should suffice. 2009-06-06 00:35:30 -06:00
Bharat Mediratta 3275401f69 change the version to beta 1 2009-06-05 17:44:36 -07:00
Bharat Mediratta 275c25eb56 Add the exception message to the trace string when there's a graphics
failure.

Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06 08:39:07 +08:00
unostarandBharat Mediratta 710d13aece Correct locale and local translation
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06 01:26:41 +08:00
Bharat Mediratta 62a63676d4 Add Belarusian to the language list.
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06 01:26:24 +08:00
Bharat Mediratta 7612c8d404 Localize the 'Advanced' menu item
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06 01:26:22 +08:00
Bharat Mediratta c7f49fd1ec Skip over busted images when rebuilding. Change graphics::generate()
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-04 23:20:54 -07:00
Bharat Mediratta 12ef4272ae Work around a problem with the CGI sapi on urls that don't contain
index.php (ie, /gallery3 instead of /gallery3/index.php) that causes
is to mis-route.
2009-06-04 18:40:38 -07:00
Bharat Mediratta e5a0104769 Make sure the item is loaded in parse_url() before we use it. 2009-06-04 18:19:49 -07:00
Bharat Mediratta 5158a6f433 Add MY_num containing num::convert_to_bytes() which supports PHP's
size shorthand, and convert the simple_uploader code to use it.
2009-06-04 17:53:40 -07:00
Bharat Mediratta 8d9010cfe3 Let the Akismet module create the statistics menu, since it's the only
one that uses it.  Perhaps this is not the best solution, but it's the
pragmatic one.
2009-06-04 17:36:37 -07:00
Bharat Mediratta dd854379c2 Sanitize all data we return via json_encode() to guard against XSS and
other data leaks.
2009-06-03 17:08:23 -07:00
jhilden dde5fb96ee made "Add photos" its own site menu item
* open for suggestions on the submenu item labels
* @bharat: not sure about the add photos menu item id in the dropdown case
2009-06-02 19:31:11 -04:00
Tim Almdal d8eca7682d make cleanm static 2009-06-02 12:41:59 -07:00