Add "html_attributes" theme callback to allow modules to inject attributes into

the <html> element, including things like namespaces.   Fixes #1615.
This commit is contained in:
Bharat Mediratta
2011-01-21 00:07:00 -08:00
parent 09a593c832
commit 08c41f2976
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" <?= $theme->html_attributes() ?> xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<? $theme->start_combining("script,css") ?>