head.tpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!-- head start -->
  2. <link href="http://www.chamilo.org/documentation.php" rel="Help" />
  3. <link href="http://www.chamilo.org/team.php" rel="Author" />
  4. <link href="http://www.chamilo.org" rel="Copyright" />
  5. <link rel="top" href="{$_p.web_main}index.php" title="" />
  6. <link rel="courses" href="{$_p.web_main}auth/courses.php" title="{"OtherCourses"|get_lang}"/>
  7. <link rel="profil" href="{$_p.web_main}auth/profile.php" title="{"ModifyProfile"|get_lang}"/>
  8. <meta http-equiv="Content-Type" content="text/html; charset={$system_charset}" />
  9. <meta name="Generator" content="{$_s.software_name} {$_s.system_version|substr:0:1}" />
  10. <title>{$title_string}</title>
  11. <style type="text/css" media="screen, projection">
  12. /*<![CDATA[*/
  13. {$css_style}
  14. /*]]>*/
  15. </style>
  16. <style type="text/css" media="print">
  17. /*<![CDATA[*/
  18. {$css_style_print}
  19. /*]]>*/
  20. </style>
  21. <script type="text/javascript">
  22. //<![CDATA[
  23. // This is a patch for the "__flash__removeCallback" bug, see FS#4378.
  24. {literal}
  25. if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) ) {
  26. window.attachEvent( 'onunload', function() {
  27. window['__flash__removeCallback'] = function ( instance, name ) {
  28. try {
  29. if ( instance ) {
  30. instance[name] = null ;
  31. }
  32. } catch ( flashEx ) {
  33. }
  34. } ;
  35. });
  36. }
  37. {/literal}
  38. //]]>
  39. var ajax_url = '{$_p.web_ajax}chat.ajax.php';
  40. var online_button = '{$online_button}';
  41. var offline_button ='{$offline_button}';
  42. </script>
  43. {$js_file_to_string}
  44. {$css_file_to_string}
  45. {$extra_headers}
  46. {$favico}
  47. <script type="text/javascript">
  48. $(document).ready(function(){
  49. $('.topbar').dropdown();
  50. $('.ajax').live('click', function() {
  51. var url = this.href;
  52. var dialog = $("#dialog");
  53. if ($("#dialog").length == 0) {
  54. dialog = $('<div id="dialog" style="display:hidden"></div>').appendTo('body');
  55. }
  56. // load remote content
  57. dialog.load(
  58. url,
  59. {},
  60. function(responseText, textStatus, XMLHttpRequest) {
  61. dialog.dialog({
  62. modal : true,
  63. width : 540,
  64. height : 400,
  65. });
  66. });
  67. //prevent the browser to follow the link
  68. return false;
  69. });
  70. });
  71. </script>
  72. {$header_extra_content}
  73. <!-- head end-->