Campustream 1.0
A social network MQP for WPI
application/views/template/_javascript.php
Go to the documentation of this file.
00001 <? if($enable_fbml): ?>
00002 <script src="http://connect.facebook.net/en_US/all.js"></script>
00003 <? endif; ?>
00004 
00005 <script type="text/javascript" src="/js/head.js"></script>
00006 
00007 <? if (sess::is_logged_in()): ?>
00008 <script type="text/javascript">
00009 // Store some user information here so that the rest of the site
00010 // JS can easily grab it.
00011 var cs_user = <?=sess::getUser()->to_json()?>;
00012 </script>
00013 <? endif; ?>
00014 
00015 <script type="text/javascript">
00016 head.js(
00017         {jquery: "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"},
00018         {jqueryui: "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"},
00019         {jquery_bbq: "/js/jquery.bbq.js"},
00020         {jquery_postmessage: "/js/jquery.postmessage.js"},
00021         {jquery_timeago: "/js/jquery.timeago.js"},
00022         {iphone_checkboxes: "/js/iphone-checkbox/iphone-style-checkboxes.js"},
00023         {osimo_editor: "/js/osimoeditor/osimo_editor.js"},
00024         {campustream: "/js/campustream.js"}
00025 );
00026 </script>
00027 
00028 <!-- iPhone style checkboxes -->
00029 <link type="text/css" rel="stylesheet" href="/js/iphone-checkbox/style.css" />