Added template object 'frame'

pull/22/head
Aleksander Machniak 12 years ago
parent 397cf794b9
commit b7d33e3518

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Added template object 'frame'
- Fix identity selection on reply (#1488101)
- Add option to enable HTML editor on forwarding (#1488517)
- Add option to not include original message on reply, rename option top_posting to reply_mode (#1485149)

@ -698,6 +698,11 @@ class rcube_output_html extends rcube_output
}
break;
// frame
case 'frame':
return $this->frame($attrib);
break;
// show a label
case 'label':
if ($attrib['name'] || $attrib['command']) {
@ -1275,6 +1280,30 @@ class rcube_output_html extends rcube_output
}
/**
* Returns iframe object, registers some related env variables
*
* @param array $attrib HTML attributes
*
* @return string IFRAME element
*/
public function frame($attrib)
{
if (!$attrib['id']) {
$attrib['id'] = 'rcmframe';
}
if (!$attrib['name']) {
$attrib['name'] = $attrib['id'];
}
$this->set_env('contentframe', $attrib['name']);
$this->set_env('blankpage', $attrib['src'] ? $this->abs_url($attrib['src']) : 'program/resources/blank.gif');
return html::iframe($attrib);
}
/* ************* common functions delivering gui objects ************** */

Loading…
Cancel
Save