Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks

This commit is contained in:
Tim Almdal
2009-09-29 14:35:15 -07:00
parent d77045f60d
commit 39a40e49a1
4 changed files with 72 additions and 20 deletions

View File

@@ -153,6 +153,13 @@ class Theme_View_Core extends Gallery_View {
return message::get();
}
/**
* Print out the sidebar.
*/
public function sidebar_blocks() {
return block_manager::get_html("site.sidebar");
}
/**
* Handle all theme functions that insert module content.
*/