aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-15 18:45:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-15 18:45:35 +0000
commitfb7ac1b3766c38a7159c9a245d364eb8fb46cd7f (patch)
treedef0e1cee89f135c88943c77a237c8c37a0007a2 /views/default/page_elements
parent7073c7c2d71202d6f5e6f542d1ace7d8eb93bd09 (diff)
downloadelgg-fb7ac1b3766c38a7159c9a245d364eb8fb46cd7f.tar.gz
elgg-fb7ac1b3766c38a7159c9a245d364eb8fb46cd7f.tar.bz2
Caching enhancements
git-svn-id: https://code.elgg.org/elgg/trunk@1949 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/header.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php
index 609e6181b..933cfaeb7 100644
--- a/views/default/page_elements/header.php
+++ b/views/default/page_elements/header.php
@@ -59,11 +59,24 @@ END;
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-personalized-1.5.packed.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>javascript/initialise_elgg.js"></script>
+
+<?php
+
+ global $pickerinuse;
+ if (isset($pickerinuse) && $pickerinuse == true) {
+
+?>
<!-- only needed on pages where we have friends collections and/or the friends picker-->
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-easing.1.2.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>javascript/friendsPickerv1.js"></script>
+
+<?php
+
+ }
+
+?>
<!-- include the default css file -->
<link rel="stylesheet" href="<?php echo $vars['url']; ?>_css/css.css" type="text/css" />