Hallo, I have function 2 language - Czech and English in front end, but the switch betwen them I have throw the text - link. How to add language flags ( png or gif) as in DEMO Cart ??
add small images of flags to the directory templates / img (for example: en.png ), then in _head.php, link them to languages : <a href="?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a>
Second option: <a href="./?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a> In this way english flag image will be link to english main page.
Thank you guys, but its not function, Im doing some badthing maybe. Source code of header.php is difficult... where is the correct place of yours "code" ? ( small images of flags I have in templates/.../img folder).
I dont see" _head.php " only " header.php " and there is it in code added:
div id="container"> <div id="header"> <div id="head1"><?php // first top menu starts here ?> <div class="container"> <a href="?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a> <a href="?sLang=cs"><img src="$config['dir_skin']img/cz.png" alt="lang cs"></a>
<?php echo $oPage->throwMenu( 1, $iContent, 0 ); // content of top menu first ?> </div> </div> <div id="head2"><?php // banner, logo and slogan starts here ?> <div class="container"> <div id="logo"><?php // logo and slogan ?> <div id="title"><a href="./" tabindex="1"><?php echo $config['logo']; ?></a></div> <div id="slogan"><?php echo $config['slogan']; ?></div> </div> </div> </div> <div id="head3"><?php // second top menu starts here ?> <div class="container"> <?php echo $oPage->throwMenu( 2, $iContent, 0 ); // content of top menu second ?> </div> </div> </div> <div id="body"<?php if( isset( $bOrderPage ) ) echo ' class="order"'; ?>> <div class="container"> <div id="column"><?php if( !isset( $bOrderPage ) ){ // left column with left menu ?><?php if( isset( $config['page_search'] ) && is_numeric( $config['page_search'] ) && isset( $oPage->aPages[$config['page_search']] ) ){ // search form starts here ?> <form method="post" action="<?php echo $oPage->aPages[$config['page_search']]['sLinkName']; ?>" id="searchForm"> <fieldset> <span><label for="<?php echo $lang['search']; ?>"><?php echo $lang['search']; ?></label><input type="text" size="15" name="sPhrase" id="<?php echo $lang['search']; ?>" value="<?php echo $sPhrase; ?>" class="input" maxlength="100" /></span> <em><input type="submit" value="<?php echo $lang['search']; ?> »" class="submit" /></em> </fieldset> </form><?php } // search form ends here ?><?php echo $oPage->throwMenu( 3, $iContent, 1 ); // content of left menu ?><?php }?> </div> <div id="content">