Elxis CMS Forum
Support => General => Topic started by: LadyHLG on January 15, 2008, 19:14:10
-
The site I am currently working on will only have two languages, I am wondering how difficult it would be to switch a logo image depending on which language is chosen. Is this info stored in a session variable?
Thanks
LadyHLG
-
The logo image or anything visible is controlled by your template and the template's CSS. You can create 2 diferrent logo's and afterwards add in your template something like this:
<?php
global $lang;
if ($lang == 'english') {
$logo = 'images/english-logo.png';
} else {
$logo = 'images/greek-logo.png';
}
echo '<img src="'.$logo.'" border="0" alt="logo" />';
?>
-
Another solution would be to create template position (eg. user9) inside your template, and then create module with your logo and publish it for specific language at that position (user9).
-
Wonderful!
Thanks guys!
LadyHLG