summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-29 14:35:15 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-29 14:35:15 -0700
commit39a40e49a19f00baeeeefe375d67e915ccc7e09a (patch)
treea82561589758254dd4adfe9325179f545b36fdf8 /modules/gallery/libraries/Theme_View.php
parentd77045f60de98eaa6400deddd11690a1401044ea (diff)
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
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 728e8bf9..493bca16 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -154,6 +154,13 @@ class Theme_View_Core extends Gallery_View {
}
/**
+ * Print out the sidebar.
+ */
+ public function sidebar_blocks() {
+ return block_manager::get_html("site.sidebar");
+ }
+
+ /**
* Handle all theme functions that insert module content.
*/
public function __call($function, $args) {