added link-targets to the sidebox-menu

This commit is contained in:
Ralf Becker 2003-12-09 00:31:00 +00:00
parent 1f4dad9ce2
commit 52628e99b8
2 changed files with 6 additions and 1 deletions

View File

@ -216,6 +216,7 @@
else
{
$var['icon_or_star']='<img src="'.$GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/images'.'/orange-ball.png" width="9" height="9" alt="ball"/>';
$var['target'] = '';
if(is_array($item_link))
{
if(isset($item_link['icon']))
@ -225,6 +226,10 @@
}
$var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
$var['item_link'] = $item_link['link'];
if ($item_link['target'])
{
$var['target'] = " target=\"$item_link[target]\"";
}
}
else
{

View File

@ -70,7 +70,7 @@
<!-- BEGIN extra_block_row -->
<tr class="divSideboxEntry">
<td width="20" align="center" valign="middle" class="textSidebox">{icon_or_star}</td><td class="textSidebox"><a class="textSidebox" href="{item_link}">{lang_item}</a></td>
<td width="20" align="center" valign="middle" class="textSidebox">{icon_or_star}</td><td class="textSidebox"><a class="textSidebox" href="{item_link}"{target}>{lang_item}</a></td>
</tr>
<!-- END extra_block_row -->