summaryrefslogtreecommitdiff
path: root/program/include/rcube_template.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-01 21:58:54 +0000
committerthomascube <thomas@roundcube.net>2011-03-01 21:58:54 +0000
commitae39c47c3a07f9a9334c9676829fd948d682ffbd (patch)
tree9fbf9aafce13c4dd38c5a327a3c5cf9cfbb6d454 /program/include/rcube_template.php
parent715c7961ba8ff72fe40720bb4feaa7865e57e8b9 (diff)
New config option for custom logo; allow skins to define/override texts
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-xprogram/include/rcube_template.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 11c290a16..c4b7a4426 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -658,7 +658,8 @@ class rcube_template extends rcube_html_page
// show a label
case 'label':
if ($attrib['name'] || $attrib['command']) {
- return Q(rcube_label($attrib + array('vars' => array('product' => $this->config['product_name']))));
+ $label = rcube_label($attrib + array('vars' => array('product' => $this->config['product_name'])));
+ return !$attrbi['noshow'] ? Q($label) : '';
}
break;
@@ -709,6 +710,12 @@ class rcube_template extends rcube_html_page
else if (function_exists($handler)) {
$content = call_user_func($handler, $attrib);
}
+ else if ($object == 'logo') {
+ $attrib += array('alt' => $this->xml_command(array('', 'object', 'name="productname"')));
+ if ($this->config['skin_logo'])
+ $attrib['src'] = $this->config['skin_logo'];
+ $content = html::img($attrib);
+ }
else if ($object == 'productname') {
$name = !empty($this->config['product_name']) ? $this->config['product_name'] : 'Roundcube Webmail';
$content = Q($name);