| | |
| | | else if ($object == 'logo') { |
| | | $attrib += array('alt' => $this->xml_command(array('', 'object', 'name="productname"'))); |
| | | |
| | | if (is_array($this->config->get('skin_logo'))) { |
| | | if ($logo = $this->config->get('skin_logo')[$this->template_name]) { |
| | | $attrib['src'] = $logo; |
| | | } |
| | | elseif ($logo = $this->config->get('skin_logo')['*']) { |
| | | $attrib['src'] = $logo; |
| | | } |
| | | } |
| | | elseif ($logo = $this->config->get('skin_logo')) { |
| | | $attrib['src'] = $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); |
| | |
| | | // these commands can be called directly via url |
| | | $a_static_commands = array('compose', 'list', 'preferences', 'folders', 'identities'); |
| | | |
| | | if (!($attrib['command'] || $attrib['name'])) { |
| | | if (!($attrib['command'] || $attrib['name'] || $attrib['href'])) { |
| | | return ''; |
| | | } |
| | | |