Tim Almdal
3969145a36
Move the thumb_proportion method into Theme_View and set it by default
...
if the page type is album.
Leave a todo if we ever set up a theme default API
2009-05-09 22:22:30 +00:00
Bharat Mediratta
764f88defb
Fix whitespace issues
2009-05-08 17:58:56 +00:00
Bharat Mediratta
0373cb0676
Use lower-case aliases for greater portability (thanks Romain LE DISEZ)
2009-05-08 17:48:30 +00:00
Tim Almdal
2991831c03
Fix for ticket #72
2009-05-06 14:45:44 +00:00
Tim Almdal
b05b89798a
Continuation of r20518. Remove all the cases were the csrf values in
...
views were being manually set. Also removed it from the Admin_View.
2009-04-02 21:41:10 +00:00
Tim Almdal
160b54760f
Fix the issue identified in
...
http://gallery.menalto.com/gallery_3.0_alpha_3_released?page=1#comment-304581
ticket #195
2009-04-02 13:01:16 +00:00
Chad Kieffer
a57d0d93a8
Add quick edit pane to resize images, ticket #189
2009-03-31 05:14:40 +00:00
Bharat Mediratta
921f3a2eee
Put csrf token into Admin_View and Theme_View by default, then use it
...
directly wherever possible instead of access::csrf_token().
2009-03-27 03:43:21 +00:00
Bharat Mediratta
9f784818da
Set csrf into the global theme for convenience.
2009-03-26 06:56:29 +00:00
Bharat Mediratta
78943402b2
Convert the L10n scanner from a library to a helper.
...
In order to make the class static, I had to remove the index cache.
I'll restore that and cache the index keys in the task context in a
subsequent change. For now, I've put in a @todo to add the caching
back in.
2009-03-26 04:36:00 +00:00
Bharat Mediratta
a28deb8674
Use pathinfo() instead of substr/strchr/etc to get the file extension.
2009-03-26 03:09:23 +00:00
Bharat Mediratta
b438af3027
Optimize the way we lookup incoming translations.
...
Undo last commit (accidentally committed benchmarking code)
2009-03-26 03:01:25 +00:00
Bharat Mediratta
d311aa7107
Normalize exception format.
2009-03-26 02:54:35 +00:00
Bharat Mediratta
2152baa65c
Normalize exception string format.
2009-03-26 02:53:42 +00:00
Tim Almdal
537bd94453
This change checks that the active theme is available and if its not,
...
reverts to the default theme.
2009-03-20 18:19:27 +00:00
Tim Almdal
863e353911
rollback of r20469... see trac #161
2009-03-20 17:20:17 +00:00
Tim Almdal
48c022e8cb
Rather than moving the themeroller and all of its associated files
...
into each theme. I chose to create methods Theme_View::file($path)
and Admin_View::file($path). These methods check for a theme override
file in the theme and return a link to it if it exists. So to
override the themeroller files. just create a lib/themeroller in the
theme and the files will be picked up.
2009-03-20 14:59:55 +00:00
Bharat Mediratta
0b721258f4
Fix syntax errors.
2009-03-19 01:47:42 +00:00
Andy Staudacher
4971db37d4
Fix for ticket 142: Choose plural form "other" for count == 0 (unless the locale has a specific plural form for zero)
2009-03-18 02:40:16 +00:00
Tim Almdal
6e84c132a2
Fix for ticket #142 . Valiant: u might want to check the implications
...
of this.
2009-03-18 01:58:59 +00:00
Tim Almdal
8c1f600611
Corrections based on feedback
2009-03-18 00:01:39 +00:00
Tim Almdal
c92ef7aced
Fix for ticket #101
2009-03-17 22:38:52 +00:00
Bharat Mediratta
6a2e8ec1cc
Set $item and $tag in the Theme_View so that calls like $theme->item()
...
which fall through to calling &View::__get() have an lvalue to return,
else you can't return them by reference.
Also, don't show sidebar blocks for pages that don't have an item so
that the rss and tag modules don't break the search page.
2009-03-16 11:17:27 +00:00
Bharat Mediratta
f12f535749
Provide an empty sidebar by default
2009-03-16 07:59:28 +00:00
Bharat Mediratta
736d74d05f
Clean up the login, maintenance login and required-top-level-login code.
...
We now have two clear and separate login approaches:
login/ajax
login/html
Choose the one that's appropriate. Totally simplified the maintenance
page to be separate from the theme and dead simple, and use login/html
approach there. Totally simplified the top level login
(login_page.html.php) to just be a login page, not the rest of the
chrome on the page and use the login/ajax approach there.
Don't use access::required in albums and then catch the exception,
instead use access::can and check the return code.
Improve the text for maintenance mode.
2009-03-16 04:33:45 +00:00
Bharat Mediratta
181737fb12
Remove the word 'album' from phpdoc.
2009-03-15 02:00:21 +00:00
Bharat Mediratta
c825ec4ffb
Move references to "album" out of ORM_MPTT since it's supposed to be
...
implementation agnostic.
2009-03-15 01:17:25 +00:00
Tim Almdal
b82b60c91a
Rename tag.html.php to dynamic.html.php as part of ticket #115
...
creating Dynamic Albums. This name change reflects the usage better
and allows multiple dynamic albums (including tags) to use the same
page template.
2009-03-12 15:40:08 +00:00
Tim Almdal
7ade710258
Handle no prefix being set when building key/value table map
2009-03-12 04:00:49 +00:00
Tim Almdal
7dae7dc510
Strip down the loin page (not sure if this is what bharat had in mind)
2009-03-12 03:54:17 +00:00
Tim Almdal
d1f181da08
Attempt to reduce the chance of replacing text in sql statements that
...
is not a table name (but contained in braces) with the database prefix
by building and maintaining a cache of database tables and prefixes.
2009-03-12 03:20:13 +00:00
Tim Almdal
b9ee37f30e
Override the ORM_MTTP::children and ORM_MTPP::descendants methods in
...
the item model and always pass the orderby fields. This insures that
all children or descendant calls will respect the album sort order.
2009-03-09 14:38:25 +00:00
Bharat Mediratta
f32f1697c9
Get rid of Task_Definition types: they're not necessary. This
...
incidentally fixes the the problem that admin/maintenance tasks have
been broken.
2009-03-09 07:02:09 +00:00
Tim Almdal
39954ad0b7
Implement Sortable albums. Current sort fields include (Creation
...
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08 16:29:01 +00:00
Bharat Mediratta
3c672bd865
Don't show the pager if there're no photos on the page.
2009-03-08 03:57:02 +00:00
Bharat Mediratta
23937ff135
Avoid using default task types. Require task::get_definitions() to
...
specify a single type and ask for it appropriately in
admin_maintenance. Specify a type for every existing task.
2009-03-05 06:38:11 +00:00
Tim Almdal
7786bb09d3
Implement a Maintenance mode as per ticket: #15
2009-03-05 00:32:33 +00:00
Tim Almdal
c04ff8e02f
Change the pattern to identify tables that need prefix substitution to
...
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal
bd15853708
This implements table prefix for all the queries in core, user, exif,
...
tag, search, comment and notification modules (Ticket #68 )
2009-02-27 21:07:18 +00:00
Tim Almdal
dc4f784558
* Refactor task management methods from admin_maintenance.php to
...
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal
ab973bd871
Replace the string [table_name] with {$prefix}table_name. Slowly
...
working through setting up the database access to support table
prefixes. (Ticket#68)
Before going ahead, just wanted to check this approach... whatcha think?
2009-02-27 03:25:29 +00:00
Bharat Mediratta
5702556499
Minor style changes.
2009-02-26 01:56:00 +00:00
Andy Staudacher
8bba897a46
Changing from binary(16) to char(32) as translation message key.
...
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
2009-02-23 06:33:10 +00:00
Andy Staudacher
d47e4c9b43
Adding a l10n scanner - scans for t() and t2() calls, inserts the extracted messages into incoming_translations.
...
See: https://apps.sourceforge.net/trac/gallery/ticket/74
2009-02-19 07:20:26 +00:00
Andy Staudacher
50b783e3a5
Change i18n message key to include the plural form (to ensure that it's truly unique).
2009-02-12 07:11:24 +00:00
Chad Kieffer
9bbe8053c7
Added a show comment form button. Add comment form is revealed when the button is clicked. Used jQuery UI Effect to .highlight() to bring attention to newly added comments. Also added a named anchor to our block library to allow direct linking/scrolling to those blocks on the page.
2009-02-12 07:07:11 +00:00
Andy Staudacher
b2f20ff766
style fixes (style for method names, style for vars in locale.php)
2009-02-10 06:12:16 +00:00
Andy Staudacher
62f3724acb
Adding UI for site language selection and user language preference.
2009-02-10 05:37:42 +00:00
Bharat Mediratta
78efd9bd3d
Remove extra blank lines
2009-02-10 04:57:39 +00:00
Andy Staudacher
c2eee47465
Move site default_locale into DB (vars) and add a per user locale preference.
...
There's no UI to select the locale yet.
2009-02-10 02:37:16 +00:00