Hi,
After some requests concerning the opacity effect in our site on the selection languages of the Joom!fish module (mod_jflanguageselection), here modification of the code which was brought.
The modification takes place on the level of the switch defining the type of posting (text, image, selectlist) in line 99
$href = JFModuleHTML::_createHRef ($language->iso);
if( isset($language->image) && $language->image!="" ) {
$langImg = '/images/' .$language->image;
} else {
$langImg = '/components/com_joomfish/images/flags/' .$language->iso .".gif";
}
Under the condition which determines whether an image east defines in the configuration of Joomfish and add this portion of code which cuts out the name of the file image in order to insert the suffix there “_active”.
$pos = strrpos( $language->image, ".");
$image = substr($language->image, 0, $pos).'_active'.substr($language->image, $pos);
Always under the condition replace the attribution of the image to the variable $langImg by this code which adds a checking between the current language of the site and the language defines in the loop.
$langImg = ($iso_client_lang == $language->iso) ? '/images/'.$image : '/images/' .$language->image;
What gives us :
$href = JFModuleHTML::_createHRef ($language->iso);
if( isset($language->image) && $language->image!="" ) {
$pos = strrpos( $language->image, ".");
$image = substr($language->image, 0, $pos).'_active'.substr($language->image, $pos);
$langImg = ($iso_client_lang == $language->iso) ? '/images/'.$image : '/images/' .$language->image;
} else {
$langImg = '/components/com_joomfish/images/flags/' .$language->iso .".gif";
}
