Bharat Mediratta
5495037a3d
Gee it's May already. Update copyright to 2009.
2009-05-13 20:04:58 +00:00
Bharat Mediratta
983dc66684
Display the server load average in the platform block. Fixes ticket #198 .
2009-05-13 01:32:11 +00:00
Tim Almdal
95fc61c9a8
Standardize to uppercase DESC in the order by method calls
2009-02-22 17:36:58 +00:00
Tim Almdal
a8233ed979
Undo the adding underscores to the id on forge generated forms
2009-01-25 06:28:04 +00:00
Tim Almdal
cbff78daa8
Supply a form id on all forms. This id can be used by modules other
...
than the originating module to provide additional functionality to the form.
2009-01-24 17:26:47 +00:00
Bharat Mediratta
5e94456ce9
Make get_add_block_form() static.
2009-01-19 06:12:49 +00:00
Bharat Mediratta
8ec0e8471f
Drag and drop in the admin dashboard now saves the location.
...
* Make block_adder a real block
* Suppress the "close" link on block_adder
* Move the drag/drop JS into the core code out of the admin theme
2009-01-18 09:06:46 +00:00
Bharat Mediratta
7b68ca9946
Refactor dashboard -> block_manager since it'll manage blocks site
...
wide, not just in the dashboard.
2009-01-18 06:55:04 +00:00
Bharat Mediratta
3d1ea2904d
Rename theme callback helpers from xxx_block to xxx_theme to make room
...
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Chad Kieffer
0bbde9e059
Added gQuick to album_top, started implementation, but incomplete so far. Need edit album methods added to the quick controller.
2009-01-15 06:19:26 +00:00
Bharat Mediratta
f3ba69c1d6
Make sure that helper functions are all static. Add new
...
File_Structure_Test to make sure we don't regress.
According to the PHP docs, the "public" keyword is implied on static
functions, so remove it. Also, require private static functions to
start with an _.
http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Bharat Mediratta
b19729435c
Dashboard blocks are now data driven, and you can add new blocks to
...
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
2009-01-12 07:39:53 +00:00
Andy Staudacher
a631fe29f3
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
...
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Bharat Mediratta
7482b6683e
Add "quick edit" which lets you edit a photo's details from the albums
...
page.
2009-01-05 08:05:50 +00:00
Bharat Mediratta
99804a34b2
Rename:
...
gQuickEdit to gQuick
quick_edit -> quick
2009-01-04 19:54:38 +00:00
Bharat Mediratta
09a844fffc
No quickedit for album-- for real this time.
2009-01-03 05:50:17 +00:00
Bharat Mediratta
d299414399
No quickedit for album thumbs (for now, anyway)
2009-01-03 05:48:15 +00:00
Bharat Mediratta
e8f1ff580c
Add a new quick-edit mode for editing photos when viewing albums.
...
Implement image rotation this way.
2009-01-03 05:36:16 +00:00
Bharat Mediratta
7c82691e00
Move debug CSS into core/css/debug.css, and enable it for admin themes also
2009-01-01 00:16:08 +00:00
Bharat Mediratta
dee20ed6a2
Added the concept of "permanent" messages that we show to admins. Use
...
this to show a "your thumbs/resizes are out of date" message whenever
we change the graphics rules. Tweak watermark module to add graphics
rules whenever we make a change, which triggers the graphics module to
add the permanent message.
2008-12-26 05:43:06 +00:00
Bharat Mediratta
672eca5337
Lots of deltas rolled up into a bigger change. Sorry for the mess.
...
1) Deleted in-place-editing. We'll be replacing this with a real edit
system that groups settings together and is more coherent.
2) Tweaked the way that dialog boxes work to get the ajax stuff working
again. It's imperfect and does not work properly for uploading images.
This is going to get redone also, but this is a good resting point.
3) Created edit forms for albums and photos. Moved _update and _create out
of Items_Controller and into the individual subclasses.
4) Created access::required which is a shorthand for:
if (!access::can(...)) {
access::forbidden();
}
5) Added validation rules to Items_Model
6) Converted login to use the regular modal dialog approach in the theme.
2008-12-24 00:20:26 +00:00
Bharat Mediratta
b526cc8c0b
Add some admin theme callbacks and make them explicitly admin_xxx for consistency
...
with the callbacks in the xxx_block helpers. So in the theme we have:
admin.html.php:
$theme->admin_page_bottom()
then in the helpers:
core_block.php:
function admin_page_bottom() { }
2008-12-22 03:53:36 +00:00
Bharat Mediratta
3ce32dab55
Report actual log entries in the "log entries" admin block.
2008-12-21 03:56:53 +00:00
Bharat Mediratta
a19a4729b5
Implement the 'Project News' block with actual news from GMC.. woot!
2008-12-21 02:36:32 +00:00
Bharat Mediratta
8f87a030c8
Implement the photo stream with the most recently uploaded photos.
2008-12-20 23:19:12 +00:00
Bharat Mediratta
406830cbf8
use some real stats
2008-12-20 10:54:29 +00:00
Bharat Mediratta
9afd9d05ae
Move log entries into its own block
2008-12-20 01:20:19 +00:00
Bharat Mediratta
16a3e43b45
Move the "Photo Stream" section into its own block
2008-12-20 01:16:46 +00:00
Bharat Mediratta
e12a4f2ae3
Move the "status messages" section into its own block.
2008-12-20 01:13:57 +00:00
Bharat Mediratta
68e9dcf027
Move Platform and Project News admin sidebar blocks into the new
...
modular structure.
2008-12-20 01:08:39 +00:00
Bharat Mediratta
ac4bb34cf2
Add admin sidebar blocks, and move the stats block into that pattern.
2008-12-20 01:00:52 +00:00
Bharat Mediratta
aee3efe972
Create a pattern for admin dashboard blocks and make the "welcome"
...
block.
2008-12-20 00:52:20 +00:00
Bharat Mediratta
2f8b4df0f5
Protect menus and blocks against the fact that we don't have an item
...
on tag pages.
2008-12-15 21:23:00 +00:00
Bharat Mediratta
e65f8d5022
Remove head() for now.
2008-12-12 07:25:43 +00:00
Tim Almdal
1af3b8e100
Changes to the Menu.php:
...
1) separate the classes that are generated by the Menu class from what is used for the rendering. The classes that are generated are gMenu, gMenuElement, and gMenuDialog for the Menu, Menu_Element and MenuDialog classes respectively.
2) Changed the ui.init.js to add the appropriate rendering classes to the above classes. All gMenu elements have the sf-menu class added. All elements of class gMenuDialog have the gDialogLink class added.
3) Use Superfish for the menus so they now float properly.
2008-12-11 19:01:47 +00:00
Tim Almdal
f3d40c02ec
A a script block to the <head> of the page that creates a javascript variable (base_url) such that javascript on the page can find the base url of the site in order to generate ajax callbacks.
2008-12-11 18:53:54 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
09364348c7
Remove navigation_top() and navigation_bottom() as they're subsumed by the new menu code
2008-12-10 04:25:20 +00:00
Bharat Mediratta
f198331065
Put profiler into page_bottom()
2008-12-10 04:23:48 +00:00
Bharat Mediratta
73496de94f
Tighten up head()
2008-12-08 04:39:21 +00:00
Tim Almdal
954fcf0342
Merge gallery3/branches/menus back into gallery3/trunk
2008-12-07 19:45:46 +00:00
Bharat Mediratta
723eb2f611
Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user
2008-11-27 11:43:48 +00:00
Bharat Mediratta
b22494a4ea
Move the in-place-edit JS into the page_footer callback and out of
...
Theme.php.
2008-11-25 04:37:21 +00:00
Tim Almdal
8b52d9cde4
Revert the site_title change
2008-11-24 05:58:38 +00:00
Tim Almdal
7491e3c44a
Add a site-config parameter to the config.php file. Created a core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value.
2008-11-23 16:51:06 +00:00