mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
allow to specify a target for links on images
This commit is contained in:
parent
8529237f82
commit
c2bf8d30af
@ -354,6 +354,7 @@
|
||||
if (is_int($this->debug) && $this->debug >= 1 || $this->name && $this->debug == $this->name)
|
||||
{
|
||||
echo "<p>etemplate.show($this->name): $cname =\n"; _debug_array($content);
|
||||
echo "readonlys="; _debug_array($readonlys);
|
||||
}
|
||||
if (!is_array($content))
|
||||
{
|
||||
@ -1055,7 +1056,7 @@
|
||||
$image = $this->html->image(substr($this->name,0,strpos($this->name,'.')),
|
||||
$image,strlen($label) > 1 && !$cell['no_lang'] ? lang($label) : $label,'border="0"');
|
||||
$html .= $image;
|
||||
$extra_link = $cell_options;
|
||||
list($extra_link,$extra_link_target) = explode(',',$cell['size']);
|
||||
$extra_label = False;
|
||||
break;
|
||||
case 'file':
|
||||
@ -1242,6 +1243,7 @@
|
||||
{
|
||||
$options = " onMouseOver=\"self.status='".addslashes(lang($help))."'; return true;\"";
|
||||
$options .= " onMouseOut=\"self.status=''; return true;\"";
|
||||
if ($extra_link_target) $options .= ' target="'.$extra_link_target.'"';
|
||||
return $this->html->a_href($html,$extra_link,'',$help != '' ? $options : '');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user