[svn r13106] Added description of lp_item in the title attribute of the table of content divs

skala
Yannick Warnier 18 years ago
parent a0ddabe12f
commit bcd1c26fca
  1. 5
      main/newscorm/learnpath.class.php

@ -2121,6 +2121,7 @@ class learnpath {
'status'=>$this->items[$item_id]->get_status(), 'status'=>$this->items[$item_id]->get_status(),
'level'=>$this->items[$item_id]->get_level(), 'level'=>$this->items[$item_id]->get_level(),
'type' =>$this->items[$item_id]->get_type(), 'type' =>$this->items[$item_id]->get_type(),
'description'=>$this->items[$item_id]->get_description(),
); );
} }
if($this->debug>2){error_log('New LP - In learnpath::get_toc() - TOC array: '.print_r($toc,true),0);} if($this->debug>2){error_log('New LP - In learnpath::get_toc() - TOC array: '.print_r($toc,true),0);}
@ -2280,14 +2281,14 @@ class learnpath {
if($item['type']!='dokeos_module' AND $item['type']!='dokeos_chapter'){ if($item['type']!='dokeos_module' AND $item['type']!='dokeos_chapter'){
$html .= '<a name="atoc_'.$item['id'].'" /><div class="'.$style.'" style="padding-left: '.($item['level']*1.5).'em; padding-right:'.($item['level']/2).'em" id="toc_'.$item['id'].'" >' . $html .= '<a name="atoc_'.$item['id'].'" /><div class="'.$style.'" style="padding-left: '.($item['level']*1.5).'em; padding-right:'.($item['level']/2).'em" id="toc_'.$item['id'].'" title="'.$item['description'].'" >' .
''; '';
} }
else{ else{
$html .= '<div class="'.$style.'" style="padding-left: '.($item['level']*2).'em; padding-right:'.($item['level']*1.5).'em" id="toc_'.$item['id'].'" >' . $html .= '<div class="'.$style.'" style="padding-left: '.($item['level']*2).'em; padding-right:'.($item['level']*1.5).'em" id="toc_'.$item['id'].'" title="'.$item['description'].'" >' .
''; '';
} }

Loading…
Cancel
Save