Merge pull request #107 from JohnDoh/multi-logo
allow different logos for different functions (eg. normal and print)
| | |
| | | |
| | | // replace Roundcube logo with this image |
| | | // specify an URL relative to the document root of this Roundcube installation |
| | | // an array can be used to specify different logos for specific template files, '*' for default logo |
| | | // for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png") |
| | | $config['skin_logo'] = null; |
| | | |
| | | // automatically create a new Roundcube user when log-in the first time. |
| | |
| | | } |
| | | else if ($object == 'logo') { |
| | | $attrib += array('alt' => $this->xml_command(array('', 'object', 'name="productname"'))); |
| | | if ($logo = $this->config->get('skin_logo')) |
| | | |
| | | if ($logo = $this->config->get('skin_logo')) { |
| | | if (is_array($logo)) { |
| | | if ($template_logo = $logo[$this->template_name]) { |
| | | $attrib['src'] = $template_logo; |
| | | } |
| | | elseif ($template_logo = $logo['*']) { |
| | | $attrib['src'] = $template_logo; |
| | | } |
| | | } |
| | | else { |
| | | $attrib['src'] = $logo; |
| | | } |
| | | } |
| | | |
| | | $content = html::img($attrib); |
| | | } |
| | | else if ($object == 'productname') { |