summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Admin_View.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-05-11Verify that theme names are well formed. Fixes #1856.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-21Add "html_attributes" theme callback to allow modules to inject attributes intoBharat Mediratta
the <html> element, including things like namespaces. Fixes #1615.
2011-01-10Create new APIs for allowing themers to control what CSS/JS getBharat Mediratta
combined and when. Backwards compatible in that old themes will work, but their CSS/JS will no longer be combined unless they make some changes. Fixes #1600.
2011-01-03Using array support introduced in 8295201adf948ea35f21f75801b7a8bf36c27569Joe7
2010-12-29Improve the solution for #1545 by sorting the settings menu properlyBharat Mediratta
to be naturally ordered and case insensitive.
2010-12-17Sort the Admin > Settings menu instead of relying on module activation order.Bharat Mediratta
Requires making Menu::get() return a reference. Fixes #1545.
2010-12-16Swap the order of the CSS and JS for performance. Fixes #1540.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-28First step towards fixing ticket #1038: Allowing for custom page <title> in ↵Andy Staudacher
admin pages, just like in non-admin pages. TODO: Set $view->page_title in the many admin controllers we have. I just set it for admin_maintenance.php to show how it's intended to be used. I copied the title from views/admin_maintenance.html.php to the controller.
2010-01-23Add a user_menu method to the Admin_View and then use this method to get theTim Almdal
user menu. Since the information displayed is identical in both admin and theme views, it makes sense to combine the generation to it is done in a common location.
2009-11-27Move the theme fallback checking into theme::load_themes() so thatBharat Mediratta
we're calling it once per request.
2009-10-27Remove Menu::compact() in favor of putting an if-then clause inBharat Mediratta
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
2009-10-27Change our menu building blocks to use PHP templates so that themesBharat Mediratta
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-29* Remove the @todo in module event and always try to call ↵Tim Almdal
gallery_event::$function first * Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php * Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-24Fix Admin_View to look for the the variable active_admin_theme instead of ↵Tim Almdal
active_site_theme. In addition check for the existence of THEMEPATH . instead of theme/
2009-09-24Hopefully the last 2 errant occurrences of default as it relates to theme namesTim Almdal
2009-07-29Make body_attributes() a theme callback instead of a method on theBharat Mediratta
View. This allows modules to piggyback on it.
2009-07-28Move site_menu and admin_menu into gallery helper so that site_menuBharat Mediratta
can call admin_menu.
2009-07-28Use events to generate menus, instead of having xxx_menu helpers.Bharat Mediratta
This is the first step towards having a simple, lightweight and unified API for module interaction.
2009-06-29Oops, "head" => "admin_head" to make the admin dashboard work.Bharat Mediratta
2009-06-29Fix some bugs in the combined JS/CSS code (most of which I introducedBharat Mediratta
in my last refactor): 1) Actually combine the JS (I was only combining the CSS) 2) Add line breaks between the files and comment them so that we can find a specific file inside the blob. 3) Add an HTML comment to help developers figure out why they can't find their CSS/JS.
2009-06-29Refactor combine_xxx() functions together into combine_files() and useBharat Mediratta
html functions to generate the resulting elements. Add phpdoc.
2009-06-29A Combined javascript seems to work.Tim Almdal
1) CSS files are added to the combined version by use of $theme->css() or $theme->css_theme() methods 2) url references in the css are converted to full paths as opposed to relative 3) @import statements in the css are resolved as well. 4) need to move the [if IE] statements into the css files so the will be honored in the browser. currently the ie fix css are always included.
2009-06-28Clean up the combined javascript change and refactor out theBharat Mediratta
Gallery_View base class from Theme_View and Admin_View. 1) Move all the theme specific jquery stuff from gallery_theme::head() and admin_head() into the theme files. Use $theme->script() as appropriate. 2) Get rid of the extra boolean on $theme->url() that we were using so that we could call $theme->script($theme->url(...)) -- add $theme->theme_script() instead (poorly named, but still clearer than what we had before) 3) Fix the bug that combined scripts didn't work at all in the admin theme. 4) Get rid of $theme->display() in favor of new View(...)
2009-06-17Correct the "inappropriate intimacy" smell that bharat's refined senses pick upTim Almdal
2009-06-17Fix for ticket #366Tim Almdal
Move the creation of the setting menu back to gallery_menu::admin, now that there is a mechanism to remove empty menu items
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.