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
(Container - German) (Container - English)DE.php EN.php (page name as you like, recommended: EN, DE, NL ...) - Startseite - Home - Seite 1 - site 1 - Seite 2 - no "site 2" exists (create dummy-page; visibility:= "NONE")
<?phpif (function_exists('switchLanguage')) { switchLanguage(array('EN' => 12, 'DE' => 14));}?>
<a href="page.php" target="_self" title="DE"><img id="flag_icon_de" class="flag_icon" src=".../images/DE.gif" alt="DE" />DE</a>
Hello,I'm using language switcher and the by default showing, I mean the flags.How could I use this module to show the langusges in a drop down menu ?Regards
(with the flags why not)
<?php if (function_exists('switchLanguage')) { switchLanguage(array('EN' => 1, 'NL' => 2, 'CN' => 46), '<a href="[url]" target="_self" title="[lang_id]">[img] <!--[lang_id]--></a>'); }?>
Hope someone has a clue.
if ($root_parent == $lang_id) $url.= '" class="curr_lang'; // create image or text links for the language switcher
Hi,Quote from: D72 on July 05, 2012, 09:31:03 AMHope someone has a clue. This ist not tested:Insert code at line 83 of include.php so it looks like Code: [Select] if ($root_parent == $lang_id) $url.= '" class="curr_lang'; // create image or text links for the language switcher This should add the class "curr_lang" to the link of the active language.regards
// build image link if exists $img = ''; $curr_lang = ''; if (stristr($page_tree[$root_parent][0]['link'],PAGES_DIRECTORY.'/'.$lang_id.'/') !== false) $curr_lang = ' curr_lang'; if (file_exists(dirname(__FILE__) . '/images/' . $lang_id . '.gif')) { $img = '<img id="flag_icon_' . strtolower($lang_id) . '"' . ' class="flag_icon'.$curr_lang.'" src="' . WB_URL . '/modules/switch_language/images/' . $lang_id . '.gif" alt="' . $lang_id . '" />'; }
$temp[$row['root_parent']]['sub'][] = str_replace($row['root_parent'] . ',', '', $row['page_trail']);
$temp[$row['root_parent']]['sub'][] = preg_replace('/^' . $row['root_parent'] . ',/', '', $row['page_trail']);
Hello Stefek and thanks for your response.Yes, I'd like a combo box (with the flags why not), but don't know what php code to assign and where.Regards
here is a bugfix which really fckd me up , randomly loosing pages in the tree after moving them around: