diff options
-rw-r--r-- | start.php | 11 | ||||
-rw-r--r-- | views/default/html5/css.php | 2 | ||||
-rw-r--r-- | views/default/scripts/html5.php | 3 |
3 files changed, 16 insertions, 0 deletions
@@ -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 |