summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-11-30 11:05:50 +0000
committerthomascube <thomas@roundcube.net>2011-11-30 11:05:50 +0000
commit5587b34cfa5d04fec8e009288cabd0ffdbf39413 (patch)
tree0eb64fce705cebff2e947f5f4980722ddc0f5cbb /program
parent7f79e22eb4baa44d17d34beddae48b1bfd18eaff (diff)
Enable buttons having an inner <span> for better CSS styling capabilities
Diffstat (limited to 'program')
-rwxr-xr-xprogram/include/rcube_template.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index df10ac116..8c6c5fbd8 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -970,6 +970,8 @@ class rcube_template extends rcube_html_page
else if ($attrib['type']=='link') {
$btn_content = isset($attrib['content']) ? $attrib['content'] : ($attrib['label'] ? $attrib['label'] : $attrib['command']);
$link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex', 'target');
+ if ($attrib['innerclass'])
+ $btn_content = html::span($attrib['innerclass'], $btn_content);
}
else if ($attrib['type']=='input') {
$attrib['type'] = 'button';