summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorPhilW <roundcube@tehinterweb.co.uk>2013-08-26 12:22:34 +0100
committerPhilW <roundcube@tehinterweb.co.uk>2013-08-26 12:22:34 +0100
commita77504aeacd4516156267fe10eeca1bfffcacf87 (patch)
tree001180c0d2a1fa85cfb95dfb554d4e3dccbfaca9 /program/include
parent62350ba021d479e459cbbf7957841fbb440b9846 (diff)
allow different logos for different functions (eg. normal and print)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail_output_html.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index a2ec29ca3..39f79d119 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -924,8 +924,19 @@ class rcmail_output_html extends rcmail_output
}
else if ($object == 'logo') {
$attrib += array('alt' => $this->xml_command(array('', 'object', 'name="productname"')));
- if ($logo = $this->config->get('skin_logo'))
+
+ if (is_array($this->config->get('skin_logo'))) {
+ if (isset($attrib['type']) && array_key_exists($attrib['type'], $this->config->get('skin_logo'))) {
+ $attrib['src'] = $this->config->get('skin_logo')[$attrib['type']];
+ }
+ elseif (array_key_exists('default', $this->config->get('skin_logo'))) {
+ $attrib['src'] = $this->config->get('skin_logo')['default'];
+ }
+ }
+ elseif ($logo = $this->config->get('skin_logo')) {
$attrib['src'] = $logo;
+ }
+
$content = html::img($attrib);
}
else if ($object == 'productname') {