I created a block with the ID name_lang (es,en), but doesn't enable the language and the 2 blocks always appears (both languages)
I also created a block with the ID name (disabled) and name_lang (es,en; enable). Finaly i added:
$lang = COM_getLanguageId();
if (empty($lang)) {
$result = DB_query("SELECT onleft,name FROM {$_TABLES['blocks']} WHERE is_enabled = 1"
;
} else {
$result = DB_query("SELECT onleft,name FROM {$_TABLES['blocks']}"
;
}
In theme's functions.php.
What is the correct mode to do this?
Thanks.
D Web Studio - www.d-webstudio.net