summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_template.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-30 11:05:50 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-30 11:05:50 +0000
commitc96fbd6314312333919931449e1b4b0eb07d9cf8 (patch)
treeade2ee38c746df3c92842ccaf5268994ad0322c4 /roundcubemail/program/include/rcube_template.php
parente54a3f55eb690b0db9848bb21c285ae7a188a527 (diff)
Enable buttons having an inner <span> for better CSS styling capabilities
git-svn-id: https://svn.roundcube.net/trunk@5513 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index df10ac116..8c6c5fbd8 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/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';