Commit Graph
96 Commits
Author SHA1 Message Date
Tim Almdal 4707a97b82 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-27 16:57:38 -07:00
Bharat Mediratta aad0dd357f Create a new thumb_menu() and convert Digibug over to use it.
1) Eliminate digibug_album.html

2) Get rid of the $(document).ready() in digibug.js and rename popUp() to
   digibug_popup() then just make direct calls to digibug_popup() in the
   menu urls.
2009-06-27 16:29:09 -07:00
Tim Almdal 4cec020163 Create a theme_view function script which allows modules in the head or admin_head functions to specify javascript files that are required for this page.
In this commit, these script files are expressed at the end of the head or admin_head calls and appended to the beginning of the block stack.  In a future commit these will be combined and gzipped for download.
2009-06-26 14:37:15 -07:00
Tim Almdal 84e98e830c Move the inclusion of photo and movie specific javascript into gallery_theme 2009-06-26 08:25:24 -07:00
Tim Almdal 42a5bd20a5 1) Move the generation of script tags to gallery_theme::head and 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-26 07:51:29 -07:00
Bharat Mediratta 7347d1e50d Use ENT_QUOTEs when decoding the $current_uri otherwise apostrophes
are treated as ' which doesn't match in our relative_path_cache.
2009-06-24 21:34:07 -07:00
Bharat Mediratta abbecb9e7e Look in /opt/local/bin for binaries, too.
Fixes ticket #423.
2009-06-24 21:19:05 -07:00
Bharat Mediratta f9dbd4eb2f Fix broken rotate urls. 2009-06-23 21:31:58 -07:00
Bharat Mediratta d01c3d2373 Remove stray ? that was breaking ccw rotation. 2009-06-23 21:27:17 -07:00
Bharat Mediratta 9a0448e5d6 Add gDialogLink to the delete button, since its got a jQuery
confirmation dialog now.  This was a regression in
fa4bb5b7ac.

Fixes ticket #459.
2009-06-23 17:25:59 -07:00
Bharat Mediratta b9b68e0952 Add a new "show credits" check box in the theme options so that you
can disable any module credits if you want.  Update the theme to obey
it.
2009-06-23 16:05:32 -07:00
Bharat Mediratta bfca0c7903 Refactor the install/upgrade code to be more flexible.
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-23 12:00:49 -07:00
Bharat Mediratta 342d5e1186 Order log entries by id as well so that multiple events in the same
second are still shown in descending order.
2009-06-23 11:53:38 -07:00
Tim Almdal e3457f8dba Remove debugging output that was overlooked
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-22 21:27:47 +08:00
Tim Almdal fa4bb5b7ac Change the quick pan from static to dynamic. This allows modules to add 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-22 21:08:35 +08:00
Bharat Mediratta acd54fefda Fix a bug in gallery_installer where on an initial install we were
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-20 01:24:21 -07:00
Andy Staudacher 926eab7168 Fix plural messages in l10n scanner - Bad typo lead to basically breaking all plural ("other") forms. 2009-06-18 12:35:07 -07:00
Andy Staudacher 06f37b5a53 Fix/remove unnecessary escaping of double quotes in l10n scanner. 2009-06-18 01:42:59 -07:00
Tim Almdal 5b767b6443 Fix for ticket #366
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-17 06:42:31 -07:00
Bharat Mediratta 5eeb6296a1 Fix a bug that was overwriting the quick-pane HTML causing the quick
panes not to appear.  Oops.  Bug was introduced in the rss refactor:
1b656be713
2009-06-16 23:51:18 -07:00
Bharat Mediratta b4ef00c8d4 Use a placeholder image if ffmpeg is missing instead of throwing an
exception which would get silently swallowed by swfUpload.
2009-06-16 19:47:52 -07:00
Bharat Mediratta f6e8f34bef Add the real image url to the anchor elements for our full size links
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-16 17:57:24 -07:00
Bharat Mediratta 51b9873041 Move all the fullsize code into the theme to make it less confusing.
Partial fix for ticket #427.
2009-06-16 17:20:30 -07:00
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