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 < . 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
Comment #1
wqmeng commentedThe function is blogbuzz_links
regards
http://blog.howpick.com/
Comment #2
antsin commentedhttp://drupal.org/node/604652
Comment #3
vlooivlerke commentedHi.
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.