--- loncom/interface/lontemplate.pm 2009/02/20 15:09:28 1.18 +++ loncom/interface/lontemplate.pm 2009/02/20 17:45:40 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network # "Template" Functions to generate html output # -# $Id: lontemplate.pm,v 1.18 2009/02/20 15:09:28 amueller Exp $ +# $Id: lontemplate.pm,v 1.19 2009/02/20 17:45:40 neumanie Exp $ # # Copyright Michigan State University Board of Trustees # @@ -58,7 +58,7 @@ sub print_aboutme_content_template{ my ($r,$allowed,$target,$syllabusfields_ref,$syllabus_ref) = @_; my %syllabusfields = %{$syllabusfields_ref}; my %syllabus = %{$syllabus_ref}; - #&start_ContentBox($r,$allowed); + foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed)) { my $message=$syllabus{$field}; @@ -97,7 +97,7 @@ sub print_aboutme_content_template{ } } } - #&end_ContentBox($r); + } sub start_ContentBox{ @@ -114,10 +114,8 @@ sub end_ContentBox{ sub send_message{ my ($r,$cnum,$cdom) = @_; my $s; - my $image = qq{}; - #$r->print('
'); - $s=&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom); - #$r->print('
'); + my $image = qq{}; + $s=&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom); return $s; } @@ -126,7 +124,6 @@ sub print_template my ($r,$topic,$content, $allowed,$boxclass) = @_; $r->print('
'); $r->print('

'.$topic.'

'); -# $r->print('
'.$content.'
'); $r->print('

' .$content . '

'); $r->print('
'); } @@ -141,14 +138,13 @@ sub print_editbox_template } sub print_start_page_functions { - my($r)=@_; - #TODO add translation for Functions + my($r)=@_; $r->print('
'. &mt('Functions') . ''); } sub print_functions_content { my($r,$content) = @_; - $r->print($content.'      '); + $r->print(' '.$content.' '); } sub print_end_page_functions