http://drupal.org/project/languageicons

language icons add icons to the links title field, while BlogBuzz have a hook function of hook_links, In this function, BlogBuzz call check_plain to safe links['title'] value, This may cause the < to convert to &lt; . Then the language swith block will not show the icons as image but shows the html code.

I have removed the check_plain function then the icon shows right well.

from

if (isset($link['href'])) {
// Pass in $link as $options, they share the same keys.
$link['html'] = TRUE;
$output .= l(''. check_plain($link['title']) .'', $link['href'], $link);
}

to

if (isset($link['href'])) {
// Pass in $link as $options, they share the same keys.
$link['html'] = TRUE;
$output .= l(''. $link['title'] .'', $link['href'], $link);
}

Comments

wqmeng’s picture

The function is blogbuzz_links

regards
http://blog.howpick.com/

antsin’s picture

Status: Active » Closed (duplicate)
vlooivlerke’s picture

Title: conflict with language icons module » Conflict with Gtranslate language icons in IE
Version: 6.x-1.2 » 6.x-2.x-dev
Status: Closed (duplicate) » Active

Hi.

When using the Gtranslate.module with this BlogBuzzII theme, the flag icons does not display correctly, well it does not display at all.

It works fine in FireFox and Chrome.