summaryrefslogtreecommitdiff
path: root/core/libraries/Theme_View.php
AgeCommit message (Collapse)Author
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.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-09Move the thumb_proportion method into Theme_View and set it by defaultTim Almdal
if the page type is album. Leave a todo if we ever set up a theme default API
2009-04-02Fix the issue identified in Tim Almdal
http://gallery.menalto.com/gallery_3.0_alpha_3_released?page=1#comment-304581 ticket #195
2009-03-31Add quick edit pane to resize images, ticket #189Chad Kieffer
2009-03-27Put csrf token into Admin_View and Theme_View by default, then use itBharat Mediratta
directly wherever possible instead of access::csrf_token().
2009-03-20This change checks that the active theme is available and if its not,Tim Almdal
reverts to the default theme.
2009-03-20rollback of r20469... see trac #161Tim Almdal
2009-03-20Rather than moving the themeroller and all of its associated filesTim Almdal
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-16Set $item and $tag in the Theme_View so that calls like $theme->item()Bharat Mediratta
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-16Clean up the login, maintenance login and required-top-level-login code.Bharat Mediratta
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-12Rename tag.html.php to dynamic.html.php as part of ticket #115Tim Almdal
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-12Strip down the loin page (not sure if this is what bharat had in mind)Tim Almdal
2009-03-08Don't show the pager if there're no photos on the page.Bharat Mediratta
2009-03-05Implement a Maintenance mode as per ticket: #15Tim Almdal
2009-01-18Rename theme callback helpers from xxx_block to xxx_theme to make roomBharat Mediratta
for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard.
2009-01-13Change admin/themes to show both styles of themes side by side. ThisBharat Mediratta
eliminates the menu, which is kind of clunky. While I'm at it, let's call the "regular" themes a "site theme" so we have "site" and "admin" themes.
2009-01-11Let admins override the theme with a query paramBharat Mediratta
2009-01-10Use the theme's avatar as the default if Gravatar doesn't have one.Bharat Mediratta
2009-01-07Properly implement 'root' as a legal factory typeBharat Mediratta
2009-01-04Extend Theme_View to look in modules for photo and album menus. MoveBharat Mediratta
"view comments" link to the comment menu helper.
2009-01-04Started to wire up album and photo view menus. Need photo's parent album ↵Chad Kieffer
link added. Also need add the slideshow link to the menu.
2009-01-01Move debug CSS into core/css/debug.css, and enable it for admin themes alsoBharat Mediratta
2008-12-30Add site_status() to the regular Theme_ViewBharat Mediratta
2008-12-24Normalize our Admin controllers so that functions always print outBharat Mediratta
their results, as opposed to having them return their view back upstream. This is a little more code in every controller, but it's much less magical and more consistent. Look up the active_theme and active_admin_theme inside the view itself, no need to do that in the controllers. This makes view initialization easier in the controllers.
2008-12-22Add messaging system for reporting actions back to the user. MakeBharat Mediratta
module install/uninstall work and tie it into the messaging system.
2008-12-22Add some admin theme callbacks and make them explicitly admin_xxx for ↵Bharat Mediratta
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-18Refactor site admin menu into a theme function and build the menus inBharat Mediratta
the various modules. In the process, rename xxx_menu::site_navigation() to just xxx_menu::site(). And add xxx_menu::admin(). The menus are the same as before, but I changed the HTML to be consistent with the way that we do it in the regular site, and this broke the superfish styles. I don't know how to fix this.. help me Chad!
2008-12-17Separate thumbnails out into var/thumbs. This clears up some ambiguity in ↵Bharat Mediratta
Item_Model and simplifies file_proxy. It also means we can stop munging file names in the var/resizes hierarchy. In the process, rename "thumbnail" to "thumb" everywhere in honor of Chad (well, ok because it's shorter)..
2008-12-15Refactor admin dashboard.Bharat Mediratta
o Copy all the assets from default to default_admin so that they're totally separate o Get rid of $item_theme o Rename list_users.html.php to users.html.php o use __call in admin controller to allow us to load any admin page
2008-12-12Get rid of all pseudo users and pseudo groups, while preserving allBharat Mediratta
other functionality. This makes our user/group and access code fully consistent.
2008-12-10Remove navigation_top() and navigation_bottom() as they're subsumed by the ↵Bharat Mediratta
new menu code
2008-12-08Refactor Menu code to create allow you to create menus using aBharat Mediratta
chainable factory interface and retrieve them by ids. Streamlined the HTML creation code a little bit in the process, moved the basic menu functionality into Theme_View and created the option to have different menus other than site_navigation().
2008-12-07Merge gallery3/branches/menus back into gallery3/trunkTim Almdal
2008-11-28Rename module::get_list() to module::installed()Bharat Mediratta
2008-11-28Add credits theme callback, point the powered-by link at GMCBharat Mediratta
2008-11-28Add tag() functionBharat Mediratta
2008-11-271) Create a Theme_View class that combines the functionality of the Theme ↵Tim Almdal
class with the View class. 2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)