summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/theme.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-04-22Detect if the users theme is missing (or missing a theme.info) and inBharat Mediratta
that case fall back to the wind theme. Fixes #1655.
2011-04-21Normally Router::find_uri() strips off the url suffix for us, but whenBharat Mediratta
we make the theme::$is_admin determination we're working off of the PATH_INFO so we need to strip it off manually. Fixes #1631.
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-08-29Move theme::get_edit_form_admin into admin_theme_options since that'sBharat Mediratta
the only place where it's used and the theme helper is loaded on every page view.
2010-08-08Fix for ticket #1279. In admin themes sanitize the theme name before ↵Tim Almdal
checking that theme.info exists.
2010-06-26Sentence casing.Bharat Mediratta
2010-06-26Differentiate in our logs between missing site and admin theme overrides.Bharat Mediratta
2010-06-25Better fix for the problem that a preview of an admin theme was not showing up.Tim Almdal
2010-06-25Fix an issue where a preview of the admin view would not work.Tim Almdal
2010-06-25Change the theme option page to display using tabs if the site theme has an ↵Tim Almdal
admin page.
2010-04-10Add error messages to theme::get_edit_form_admin()Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2009-12-01Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2009-11-29Publish theme_edit_form and theme_edit_form_completed events so that themes ↵Bharat Mediratta
can piggyback on the regular Admin > Appearance > Theme Options page.
2009-11-29Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/helpers/theme.php modules/gallery/libraries/Admin_View.php modules/gallery/libraries/Theme_View.php
2009-11-28Rework the theme loading code to allow themes to be treated as GalleryBharat Mediratta
modules, and have an admin subdirectory that is treated like a Kohana module (as distinct from a Gallery module). The main advantage of creating the separate admin subdirectory is that we will not load an admin theme and a site theme at the same time. We'll only load a few specialized bits of the site theme while the admin theme is active. Concrete examples. A site theme named "xxx": - will receive events at themes/xxx/helpers/xxx_event.php - will have working controllers at themes/xxx/controllers/xxx.php If theme xxx has an admin subdir, then in admin mode it: - will receive events at themes/xxx/admin/helpers/xxx_event.php - will have working controllers at themes/xxx/admin/controllers/xxx.php
2009-11-28Expose theme::$is_adminBharat Mediratta
2009-11-27Move the theme fallback checking into theme::load_themes() so thatBharat Mediratta
we're calling it once per request.
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-11-19Revert "Currently Admin_Theme_Options controller assumes that all the themes ↵Tim Almdal
will provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme." This reverts commit 1692ee130887a6ad1ba68aa34a96ad36161600f9.
2009-11-19Revert "Create theme::get_var(), theme::set_var() methods to set the options ↵Tim Almdal
of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme." This reverts commit 26114972c3388f065220b94a0d5962f20a6ccd0c.
2009-11-18Create theme::get_var(), theme::set_var() methods to set the options of the ↵Tim Almdal
active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18Currently Admin_Theme_Options controller assumes that all the themes will ↵Tim Almdal
provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme.
2009-11-18Create a helper to load the theme information from theme.infoTim Almdal
2009-11-17Tweak load_themes() to match exactly "/admin" or the "/admin/" prefix,Bharat Mediratta
but not just the "/admin" prefix because that breaks if you add an image like "admin_photostream".
2009-11-03Respect the "theme" variable if we're an admin. This requires us toBharat Mediratta
change the order of operations in gallery_event::gallery_ready() so that we load users before themes. Fixes ticket #836.
2009-10-24Update themes::load_theme() to work with mod_rewrite's short urls.Bharat Mediratta
2009-10-23Allow themes to override event handlers. In gallery::ready() grab the serverTim Almdal
PATH_INFO and pass it to the theme::load_themes method. If it starts with \"/admin\", then set the theme to the active admin theme, otherwise set it to the active site theme. Fixes ticket #841: Themes cannot overload event classes."
2009-10-04Revert "Create a gallery::plugin_path which returns the appropriate path to ↵Tim Almdal
the module or theme. This checks for the existence of an application/modules or application/themes first." This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04Create a gallery::plugin_path which returns the appropriate path to the ↵Tim Almdal
module or theme. This checks for the existence of an application/modules or application/themes first.
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-06-23Add a new "show credits" check box in the theme options so that youBharat Mediratta
can disable any module credits if you want. Update the theme to obey it.
2009-06-11Rename theme_details to theme_options. These changes got left out ofBharat Mediratta
68fd196d66e2d21f571ff3b5a673f18cd129abf9 leaving us in a temporarily broken state.
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.