aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/head.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:27:36 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:27:36 +0000
commit0f8752554aa09bd0e9f4b4ff1cfeb1fec6507b65 (patch)
tree98836cd913c9ef82d2471060d13b7c940337a5f7 /views/default/page/elements/head.php
parent81161414ebe72d0b84e3bd267ea154d3f5452ff1 (diff)
downloadelgg-0f8752554aa09bd0e9f4b4ff1cfeb1fec6507b65.tar.gz
elgg-0f8752554aa09bd0e9f4b4ff1cfeb1fec6507b65.tar.bz2
Views in the js/ directory should not contain <script> tags
git-svn-id: http://code.elgg.org/elgg/trunk@8238 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/elements/head.php')
-rw-r--r--views/default/page/elements/head.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/views/default/page/elements/head.php b/views/default/page/elements/head.php
index 5772d0d24..43a5fbd54 100644
--- a/views/default/page/elements/head.php
+++ b/views/default/page/elements/head.php
@@ -42,15 +42,13 @@ $release = get_version(true);
<title><?php echo $title; ?></title>
<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>_graphics/favicon.ico" />
-<?php
-foreach ($css as $link) {
-?>
+<?php foreach ($css as $link) { ?>
<link rel="stylesheet" href="<?php echo $link; ?>" type="text/css" />
-<?php
-}
+<?php } ?>
-$ie_url = elgg_view_get_simplecache_url('css', 'ie');
-$ie6_url = elgg_view_get_simplecache_url('css', 'ie6');
+<?php
+ $ie_url = elgg_view_get_simplecache_url('css', 'ie');
+ $ie6_url = elgg_view_get_simplecache_url('css', 'ie6');
?>
<!--[if gt IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo $ie_url; ?>" />
@@ -59,14 +57,15 @@ $ie6_url = elgg_view_get_simplecache_url('css', 'ie6');
<link rel="stylesheet" type="text/css" href="<?php echo $ie6_url; ?>" />
<![endif]-->
-<?php
-foreach ($js as $script) {
-?>
+<?php foreach ($js as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
-<?php
-}
+<?php } ?>
-echo elgg_view('js/initialize_elgg');
+<script type="text/javascript">
+ <?php echo elgg_view('js/initialize_elgg'); ?>
+</script>
+
+<?php
echo $feedref;
$metatags = elgg_view('metatags', $vars);