--- loncom/interface/loncommon.pm 2006/03/15 19:37:55 1.306 +++ loncom/interface/loncommon.pm 2006/03/16 22:12:17 1.312 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.306 2006/03/15 19:37:55 albertel Exp $ +# $Id: loncommon.pm,v 1.312 2006/03/16 22:12:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2737,6 +2737,10 @@ Inputs: =item * $forcereg, if page should register as content page (relevant for text interface only) +=item * $customtitle, overrides the $title in some way ???? + +=item * $notopbar, if true, keep the 'what is this' info but remove the + navigational links =back Returns: A uniform header for LON-CAPA web pages. @@ -2747,7 +2751,8 @@ other decorations will be returned. =cut sub bodytag { - my ($title,$function,$addentries,$bodyonly,$domain,$forcereg,$customtitle,$notopbar)=@_; + my ($title,$function,$addentries,$bodyonly,$domain,$forcereg,$customtitle, + $notopbar)=@_; $title=&mt($title); $function = &get_users_function() if (!$function); my $img=&designparm($function.'.img',$domain); @@ -2959,22 +2964,26 @@ sub endbodytag { Returns a uniform footer for LON-CAPA web pages. -Inputs: $title - optinal title for the head +Inputs: $title - optional title for the head + $head_extra - optional extra HTML to put inside the
=back =cut sub headtag { - my ($title) = @_; + my ($title,$head_extra) = @_; - my $result = ''; + my $result = + ''. + &Apache::lonxml::fontsettings(). + &Apache::lonhtmlcommon::htmlareaheaders(); if (!defined($title)) { $title = 'The LearningOnline Network with CAPA'; } - $result .= '