Language switcher

Malderius - September 14, 2008 - 10:18
Project:Marinelli
Version:6.x-1.9
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review
Description

Hi,
this in Matteo from Turin.
here (http://www.aromaapiedi.it/) you can see on the right the language switcher with the black dots outside the box.
A simple to solve but unstilish bug.

Ciao omonimo :)
nuovo dominio di prova tutto incasinato (http://www.aromaapiedi.it/): sulla destra in alto il selettore di lingue ha i pallini neri fuori dal box, niente di preoccupante ma davvero brutto da vedere. Se ti avanzano 5 secondi a fine giornata e hai voglia di modificare il css...

#1

AltoRetrato - February 14, 2009 - 00:14
Component:Code» User interface
Priority:normal» minor
Status:active» needs review

First of all, thank you Matteo for this nice theme!

I have run into the same problem, and even though I'm a complete newbie to Drupal, this problem gave me enough motivation to dig into theming to find its source and a solution.

From my point of view, the problem resides in the "block.tpl.php", because it always render any block with a "defaultblock" class:

<div class="defaultblock">
    <h2><?php print $block->subject; ?></h2><!--block title-->
   <div class="blockcontent"><?php print $block->content; ?></div>
</div>

I changed the 1st line as below (adapted from the Garland theme):

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="defaultblock clear-block block block-<?php print $block->module ?>">

After that, the Language Switcher block was rendered as expected. See attachment for a "before and after" comparison.

I believe this might solve other CSS issues as well.

AttachmentSize
before_and_after.gif 3.82 KB

#2

mrbrowny - September 27, 2009 - 19:08

just suscribing :)

 
 

Drupal is a registered trademark of Dries Buytaert.