Diff for /loncom/interface/lontemplate.pm between versions 1.28 and 1.30

version 1.28, 2009/03/27 14:10:43 version 1.30, 2009/04/14 15:32:12
Line 121  sub print_template Line 121  sub print_template
  my ($r,$topic,$content, $allowed,$boxclass) = @_;   my ($r,$topic,$content, $allowed,$boxclass) = @_;
  $r->print('<div class="'.$boxclass.'">');   $r->print('<div class="'.$boxclass.'">');
  $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');   $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');
  $r->print('<p>' .$content . '</p>');   $r->print('<div class="LC_BoxPadding">' .$content . '</div>');
  $r->print('</div>');   $r->print('</div>');
 }  }
 sub print_start_template  sub print_start_template
Line 129  sub print_start_template Line 129  sub print_start_template
  my ($r,$topic,$boxclass) = @_;   my ($r,$topic,$boxclass) = @_;
  $r->print('<div class="'.$boxclass.'">');   $r->print('<div class="'.$boxclass.'">');
  $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');   $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');
    $r->print('<div class="LC_BoxPadding">' );
 }  }
 sub print_end_template  sub print_end_template
 {  {
  my ($r) = @_;   my ($r) = @_;
  $r->print('</div>');   $r->print('</div>');
    $r->print('</div>');
 }  }
 sub print_editbox_template  sub print_editbox_template
 {  {
Line 147  sub print_editbox_template Line 149  sub print_editbox_template
 # Functionslist: List of functions  # Functionslist: List of functions
 # Typically used to display a list of available functions at top of page  # Typically used to display a list of available functions at top of page
 sub start_functionslist {  sub start_functionslist {
  my($r)=@_;      my($legendtext)=@_;
  $r->print('<fieldset><legend>'. &mt('Functions') . '</legend>');      $legendtext=&mt('Functions') if !$legendtext;
  $r->print('<ul class="LC_functionslist">');      return '<fieldset><legend>'.$legendtext.'</legend>'
             .'<ul class="LC_functionslist">';
 }  }
   
 sub item_functionslist {  sub item_functionslist {
  my($r,$content) = @_;      my($content) = @_;
  $r->print('<li>'.$content.'</li>');      return '<li>'.$content.'</li>';
 }  }
   
 sub end_functionslist {  sub end_functionslist {
  my($r)=@_;      my($r)=@_;
  $r->print('</ul></fieldset>');      return '</ul></fieldset>';
 }  }
   
 1;  1;

Removed from v.1.28  
changed lines
  Added in v.1.30


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>