Permalink
Browse files

added style sheet to message panel

  • Loading branch information...
1 parent f1cc038 commit 68eb9f32e4c11885610377f603eab052e2824972 skodak committed Feb 13, 2005
Showing with 7 additions and 0 deletions.
  1. +7 −0 mod/chat/gui_header_js/jsupdate.php
@@ -42,6 +42,12 @@
header('Content-Type: text/html');
header("Refresh: $CFG->chat_refresh_room; url=$refreshurl");
+ /// required stylesheets
+ $stylesheetshtml = '';
+ foreach ($CFG->stylesheets as $stylesheet) {
+ $stylesheetshtml .= '<link rel=\\"stylesheet\\" type=\\"text/css\\" href=\\"'.$stylesheet.'\\" />';
+ }
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
@@ -54,6 +60,7 @@
parent.msg.document.open("text/html","replace");
parent.msg.document.write("<html><head>");
parent.msg.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=<?php echo get_string('thischarset'); ?>\" />");
+ parent.msg.document.write("<?php echo $stylesheetshtml ?>");
parent.msg.document.write("</head><body><div style=\"display: none\" id=\"msgStarted\">&nbsp;</div>");
}
<?php

0 comments on commit 68eb9f3

Please sign in to comment.