aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.php11
-rw-r--r--views/default/html5/css.php2
-rw-r--r--views/default/scripts/html5.php3
3 files changed, 16 insertions, 0 deletions
diff --git a/start.php b/start.php
index 6fd199e66..6598fd887 100644
--- a/start.php
+++ b/start.php
@@ -1 +1,12 @@
<?php
+
+function html5_init() {
+
+ //This script must appear before any styles
+ elgg_extend_view('head/metas', 'scripts/html5', 1);
+
+ elgg_extend_view('css', 'html5/css');
+
+ elgg_view_register_simplecache('scripts/html5');
+ elgg_view_register_simplecache('html5/css');
+} \ No newline at end of file
diff --git a/views/default/html5/css.php b/views/default/html5/css.php
new file mode 100644
index 000000000..eae9c7d13
--- /dev/null
+++ b/views/default/html5/css.php
@@ -0,0 +1,2 @@
+article, aside, details, figcaption, figure, footer, header, hgroup,
+menu, nav, section { display: block; }
diff --git a/views/default/scripts/html5.php b/views/default/scripts/html5.php
new file mode 100644
index 000000000..82ad63146
--- /dev/null
+++ b/views/default/scripts/html5.php
@@ -0,0 +1,3 @@
+<!--[if lt IE 9]>
+<script src="http://html5shim.googlecode.com/svn/trunk/html5-els.js"></script>
+<![endif]--> \ No newline at end of file