index 4a41a8dc0db2596efd1a16bf04dd87ed74ae353d..d0b9eab7b568bba5f1659c2f5b265d3880e46a33 100644 (file)
$selected= $this->base == $base?" class='treeListSelected'":"";
$link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($base)."';$('submit_tree_base_".$this->pid."').click();\"";
$this->tree.= "<li><a$selected $link>".
- "<img src='".$config->department_info[$base]['img']."'> ".
- str_replace('-', '‑', str_replace(' ', ' ', $config->department_info[$base]['name'].
- ($config->department_info[$base]['description']==''?'':' ['.$config->department_info[$base]['description'].']'))).
+ "<img class='center' src='".$config->department_info[$base]['img']."'> ".
+ $this->gennonbreaks($config->department_info[$base]['name']).
+ ($config->department_info[$base]['description']==''?'':' <span class="informal">['.$this->gennonbreaks($config->department_info[$base]['description']).']</span>').
"</a>";
$last_indent= $indent;
return true;
}
+
+ function gennonbreaks($string)
+ {
+ return str_replace('-', '‑', str_replace(' ', ' ', $string));
+ }
+
+
function render()
{
return $this->tree;