Is it possible to have a different header image based on language selected ?
Is it possible to have a different header image based on language selected ?
What a good question. You would need to edit your common/tpl_header.php file to include a switch statement that determined which logo file to display based on the currently selected language.Originally Posted by johnny43
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Could you help with the php ?
Becomes something like (untested)<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div><!--bof-branding display-->
<?php
switch($_SESSION['language']) {
case 'french' :}
$logo_img = 'logo_francais.gif';case 'japanese' :
break;
$logo_img = logo_nihongo.gif;case 'spanish' :
break;
$logo_img = logo_espangol.gif;default :
break;
$logo_img = HEADER_LOGO_IMAGE;
break;
?>
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir($logo_img, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . $logo_img, HEADER_ALT_TEXT) . '</a>'; ?></div>
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
great, thanks....seems to work fine...
Any chance you can help me out with my "hard Code" country and state post ?
Still facing issue with it johnny?Originally Posted by johnny43
No ...Got all to work fine, Thanks !
Bookmarks