summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-21 00:07:00 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-21 00:07:00 -0800
commit08c41f2976cb49b85ec896b11735edb008d53881 (patch)
treec0eafa337dea313f806620bd17fbbc775ecf55aa /modules/gallery
parent09a593c832cc768f7e2496273eff4b9b0f77afe0 (diff)
Add "html_attributes" theme callback to allow modules to inject attributes into
the <html> element, including things like namespaces. Fixes #1615.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/libraries/Admin_View.php1
-rw-r--r--modules/gallery/libraries/Theme_View.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php
index 1a633a34..b5d3871e 100644
--- a/modules/gallery/libraries/Admin_View.php
+++ b/modules/gallery/libraries/Admin_View.php
@@ -86,6 +86,7 @@ class Admin_View_Core extends Gallery_View {
case "admin_page_top":
case "admin_head":
case "body_attributes":
+ case "html_attributes":
$blocks = array();
foreach (module::active() as $module) {
$helper_class = "{$module->name}_theme";
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 04784ca1..cdc7a7cd 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -224,6 +224,7 @@ class Theme_View_Core extends Gallery_View {
case "head":
case "header_bottom":
case "header_top":
+ case "html_attributes":
case "page_bottom":
case "page_top":
case "photo_blocks":