--- loncom/interface/loncommon.pm 2006/03/15 19:37:55 1.306
+++ loncom/interface/loncommon.pm 2006/03/16 21:14:30 1.308
@@ -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.308 2006/03/16 21:14:30 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2959,22 +2959,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 .= ''.&mt($title).'';
+ $result .= ''.&mt($title).''.$head_extra;
return $result;
}
@@ -3006,14 +3010,14 @@ sub endheadtag {
Returns a uniform complete .. section for LON-CAPA web pages.
Inputs: $title - optional title for the page
-
+ $head_extra - optional extra HTML to put inside the
=back
=cut
sub head {
- my ($title) = @_;
- return &headtag($title).&endheadtag();
+ my ($title,$head_extra) = @_;
+ return &headtag($title,$head_extra).&endheadtag();
}
=pod
@@ -3026,17 +3030,19 @@ Returns a complete .. sect
Inputs: $title - optional title for the page
$head_extra - optional extra HTML to incude inside the
+ %args - additional optional args supported are:
+ onlybody -> is true will set &bodytag() onlybodytag arg on
=back
=cut
sub start_page {
- my ($title,$head_extra) = @_;
+ my ($title,$head_extra,%args) = @_;
return
&Apache::lonxml::xmlbegin().
- &headtag($title).$head_extra.&endheadtag().
- &bodytag($title);
+ &headtag($title,$head_extra).&endheadtag().
+ &bodytag($title,undef,undef,$args{'onlybody'});
}
=pod