WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Where do I add another show_menu() inside the index.php file
If you think that my quesitons are too simple
<?php $flags_path = WB_PATH.MEDIA_DIRECTORY.'/flags'; if(file_exists($flags_path) AND $handle = opendir($flags_path)) { ?> <div class="wb-flags"> <table cellpadding="5" cellspacing="0" border="0"> <tr> <td rowspan="5" style="font-weight: bold;" valign="top"> Language: </td> <?php while (false !== ($file = readdir($handle))) { if (substr($file, 0, 1) != '.' AND $file != 'index.php') { $pathinfo = pathinfo($file); $language = strtolower(str_replace('.'.$pathinfo['extension'],'',$file)); ?> <td> <a href="<?php echo WB_URL.'/pages/'.$language.PAGE_EXTENSION; ?>"> <img src="<?php echo WB_URL.MEDIA_DIRECTORY.'/flags/'.$file; ?>" alt="<?php echo $language; ?>" /> <?php echo strtoupper($language); ?> </a> </td> <?php } } closedir($handle); ?> </tr>
<?phpshow_menu(1, 0, 1, true, "[a]<img src=" .WB_URL ."/media/flags/[menu_title].gif />[/a]", '', '', '', false, '', 0);?>
... And it shows the flags as hyperlinks to the specific home page for each language.
But, if I replace the code above with one of the syntax described in the help:
To allow your visitors to change the language from any displayed page, one needs to add an additional show_menu() call function to the index.php file of your template
<?phpshow_menu( $menu_number = 1, $start_level = 0, $recurse = 1, $collapse = true, $item_template = '[a]<img src=' . WB_URL . MEDIA_DIRECTORY . '/flags/[menu_title].gif />[/a]', $item_footer = null, $menu_header = null, $menu_footer = null, $default_class = false, $current_class = null, $parent = null);?>