Merge branch 'master' of github.com:roundcube/roundcubemail

Conflicts:
	CHANGELOG
pull/23/head
Aleksander Machniak 12 years ago
commit 0062becea7

@ -2,6 +2,7 @@ CHANGELOG Roundcube Webmail
=========================== ===========================
- Fix quota capability detection so it can be overwritten by a plugin (#1488655) - Fix quota capability detection so it can be overwritten by a plugin (#1488655)
- Added template object 'frame'
- Fix identity selection on reply (#1488101) - Fix identity selection on reply (#1488101)
- Add option to enable HTML editor on forwarding (#1488517) - 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) - Add option to not include original message on reply, rename option top_posting to reply_mode (#1485149)

@ -233,8 +233,7 @@ class acl extends rcube_plugin
// Advanced rights // Advanced rights
$attrib['id'] = 'advancedrights'; $attrib['id'] = 'advancedrights';
foreach ($supported as $val) { foreach ($supported as $idx => $val) {
$id = "acl$val";
$ul .= html::tag('li', null, $ul .= html::tag('li', null,
$input->show('', array( $input->show('', array(
'name' => "acl[$val]", 'value' => $val, 'id' => $id)) 'name' => "acl[$val]", 'value' => $val, 'id' => $id))

@ -123,3 +123,7 @@
{ {
margin-left: 0.5em; margin-left: 0.5em;
} }
ul.toolbarmenu li span.delete {
background-position: 0 -1509px;
}

@ -3,14 +3,14 @@
<roundcube:object name="acltable" id="acltable" class="records-table" /> <roundcube:object name="acltable" id="acltable" class="records-table" />
</div> </div>
<div id="acllist-footer" class="boxfooter"> <div id="acllist-footer" class="boxfooter">
<roundcube:button command="acl-create" id="aclcreatelink" type="link" title="acl.newuser" class="listbutton add disabled" classAct="listbutton add" innerClass="inner" content="+" /><roundcube:button name="aclmenulink" id="aclmenulink" type="link" title="acl.actions" class="listbutton groupactions"onclick="UI.show_popup('aclmenu');return false" innerClass="inner" content="&#9881;" /> <roundcube:button command="acl-create" id="aclcreatelink" type="link" title="acl.newuser" class="listbutton add disabled" classAct="listbutton add" innerClass="inner" content="+" /><roundcube:button name="aclmenulink" id="aclmenulink" type="link" title="acl.actions" class="listbutton groupactions"onclick="UI.show_popup('aclmenu', undefined, {above:1});return false" innerClass="inner" content="&#9881;" />
</div> </div>
</div> </div>
<div id="aclmenu" class="popupmenu"> <div id="aclmenu" class="popupmenu">
<ul class="toolbarmenu selectable"> <ul class="toolbarmenu selectable iconized">
<li><roundcube:button command="acl-edit" label="edit" classAct="active" /></li> <li><roundcube:button command="acl-edit" label="edit" class="icon" classAct="icon active" innerclass="icon edit" /></li>
<li><roundcube:button command="acl-delete" label="delete" classAct="active" /></li> <li><roundcube:button command="acl-delete" label="delete" class="icon" classAct="icon active" innerclass="icon delete" /></li>
<roundcube:if condition="!in_array('acl_advanced_mode', (array)config:dont_override)" /> <roundcube:if condition="!in_array('acl_advanced_mode', (array)config:dont_override)" />
<li><roundcube:button name="acl-switch" id="acl-switch" label="acl.advanced" onclick="rcmail.command('acl-mode-switch')" class="active" /></li> <li><roundcube:button name="acl-switch" id="acl-switch" label="acl.advanced" onclick="rcmail.command('acl-mode-switch')" class="active" /></li>
<roundcube:endif /> <roundcube:endif />

@ -400,7 +400,7 @@ class rcube_output_html extends rcube_output
'line' => __LINE__, 'line' => __LINE__,
'file' => __FILE__, 'file' => __FILE__,
'message' => 'Error loading template for '.$realname 'message' => 'Error loading template for '.$realname
), true, true); ), true, $write);
return false; return false;
} }
@ -698,6 +698,11 @@ class rcube_output_html extends rcube_output
} }
break; break;
// frame
case 'frame':
return $this->frame($attrib);
break;
// show a label // show a label
case 'label': case 'label':
if ($attrib['name'] || $attrib['command']) { 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 ************** */ /* ************* common functions delivering gui objects ************** */

Loading…
Cancel
Save