--- loncom/interface/lontemplate.pm 2009/05/30 20:41:34 1.34 +++ loncom/interface/lontemplate.pm 2009/06/08 18:04:46 1.36 @@ -1,7 +1,7 @@ # The LearningOnline Network # "Template" Functions to generate html output # -# $Id: lontemplate.pm,v 1.34 2009/05/30 20:41:34 bisitz Exp $ +# $Id: lontemplate.pm,v 1.36 2009/06/08 18:04:46 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -76,9 +76,9 @@ sub print_aboutme_content_template { if($field eq 'aaa_contactinfo') { $r->print('
 
'); - &print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial'); + &print_template($r,$syllabusfields{$field},$message,$allowed,'LC_Box'); } else { - &print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial'); + &print_template($r,$syllabusfields{$field},$message,$allowed,'LC_Box'); } } else { @@ -104,32 +104,26 @@ sub send_message { return $s; } -sub print_template -{ +sub print_template { my ($r,$topic,$content, $allowed,$boxclass) = @_; $r->print('
'); $r->print('

'.$topic.'

'); - $r->print('
' .$content . '
'); + $r->print($content); $r->print('
'); } -sub print_start_template -{ +sub print_start_template { my ($r,$topic,$boxclass) = @_; $r->print('
'); $r->print('

'.$topic.'

'); - $r->print('
' ); } -sub print_end_template -{ +sub print_end_template { my ($r) = @_; $r->print('
'); - $r->print('
'); } -sub print_editbox_template -{ +sub print_editbox_template { my ($r,$content,$field) = @_; $r->print('