if ($group["id"] == $mygroup) {
$tpl->setCurrentBlock('top_list');
foreach ($group["lists"] as $list) {
+ // use the shortdesc if it exists
+ if (isset($lists[$list]["shortdesc"]))
+ $desc = $lists[$list]["shortdesc"];
+ else
+ $desc = $list;
$tpl->setVariable('top_name', $list);
+ $tpl->setVariable('top_desc', $desc);
$tpl->parse('top_list');
}
}
<li><a href="/{top_group_firstlist}/">{top_groupname}</a>
<ul>
<!-- BEGIN top_list -->
- <li><a href="/{top_name}/">{top_name}</a></li>
+ <li><a href="/{top_name}/">{top_desc}</a></li>
<!-- END top_list -->
</ul>
</li>