Custom logo not displayed

dirkels - May 31, 2008 - 10:52
Project:Artists C01
Version:5.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

Hi. The custom logo does not display. Am I missing something obvious?

On theme config page; logo is enabled, default logo disabled and file path to logo is populated. Our image is png saved without transparency. Browser is Firefox.

Thanks

#1

guidot - June 7, 2008 - 02:00
Category:support request» bug report

Same problem here. No matter if I use explicit settings for artistsC01 only or the global settings. Core themes work. The standard logo works in artistsC01 as well.

I have the theme in a subdomain path like /sites/subdomain.example.com/themes while the files path is /sites/subdomain.example.com/files. I've verified that both the global and the theme-specific logo-files got uploaded there.

Looks like the if (isset($logo)) in line 37 in page.tpl.php

<td><?php if (isset($logo)): ?> <?php print '<a href="' . check_url($base_path) . '" title="' . $site_name . '"><img src="'. check_url($logo) .'" alt="'. $site_name .'" id="logo" /></a>'; ?> <?php endif; ?></td>

computes to FALSE, which leads to

...
<table class="layout site-header">
<tbody>
<tr>
<-- logo-markup should be here -->
<td/>
<td class="align-top">
<table class="layout">
...

in the resulting HTML.

Without the if I get
...
<td>
<a title="Title" href="/">
<img id="logo" alt="Title" src=""/>
</a>
</td>
...

but now I'm lost.

#2

TimK - September 15, 2008 - 22:21
Version:5.x-1.3» 5.x-1.x-dev

Attaching a patch (which also works against 5.x-1.3) to fix this issue. The bug was introduced with the last farbtastic fix. I don't think I broke anything else in this patch, although I'm not really familiar with farbtastic, so I can't be sure.

AttachmentSize
artistsC01.theme_.patch925 bytes

#3

TimK - September 15, 2008 - 22:23
Status:active» patch (code needs review)

(Changing status to patch-needs review. Sorry about forgetting that before.)

 
 

Drupal is a registered trademark of Dries Buytaert.