diff options
author | Evan Winslow <evan.b.winslow@gmail.com> | 2010-06-24 21:08:55 +0000 |
---|---|---|
committer | Evan Winslow <evan.b.winslow@gmail.com> | 2010-06-24 21:08:55 +0000 |
commit | f9bebb9bf5580d922cca3715ef852cd28c12ff5c (patch) | |
tree | d3b83eabbf16046a5f1b8915dc2f8d1ce7f3a5f1 | |
parent | 1f8af59dc552d1a825d3575bff8e7ed403d125ba (diff) | |
download | elgg-f9bebb9bf5580d922cca3715ef852cd28c12ff5c.tar.gz elgg-f9bebb9bf5580d922cca3715ef852cd28c12ff5c.tar.bz2 |
Added IE support to html5 plugin
-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 |