Elxis CMS Forum
Support => General => Topic started by: armpouniotis on July 31, 2008, 22:57:28
-
Hi all !
is it possible to an image (which is related to the template, and not the content) to change according to the selection of the language ???
e.g. I have designed a logo in Greek. If I choose the English language, how can I make it change to the English logo ???
Thank you in advance
Christos Armpouniotis
-
In one case I needed this, and I did this:
<?php
global $lang;
if ($lang == 'english') {
$logo = 'templates/YourTemplate/images/logo_eng.jpg';
} else {
$logo = 'templates/YourTemplate/images/logo_main.jpg';
}
echo '<style type="text/css">
div.logo {background: url('.$logo.') center top no-repeat}
</style>';
?>
PS
You can also create custom module with your logo, and then publish each logo module for appropriate language
-
Thanx a lot !
i will apply both of your suggestions !
christos