Hello carfreak,
These are the links in the flags:
<map name="Map" id="Map">
<area shape="rect" coords="178,128,209,148" href="<?php echo WB_URL; ?>/pages/en.php?lang=EN" alt="english" />
<area shape="rect" coords="211,128,242,148" href="<?php echo WB_URL; ?>/pages/de.php?lang=DE" alt="german" />
<area shape="rect" coords="243,128,274,148" href="<?php echo WB_URL; ?>/pages/nl.php?lang=NL" alt="dutch" />
<area shape="rect" coords="274,128,306,148" href="<?php echo WB_URL; ?>/pages/es.php?lang=ES" alt="spanish" />
<area shape="rect" coords="308,129,338,148" href="<?php echo WB_URL; ?>/pages/fr.php?lang=FR" alt="french" />
<area shape="rect" coords="338,129,368,148" href="<?php echo WB_URL; ?>/pages/ja.php?lang=JA" alt="japanese" />
</map>
code for horizontal menu:
<?php
//sand multilingual
// default language , the defaultlanguage is considered the language of the first page
//$defaultlanguage = '/nl';
$result = $database->query("SELECT language FROM ".TABLE_PREFIX."pages WHERE page_id = 1 LIMIT 0,1");
if($result->numRows() > 0) {
$language = $result->fetchRow();
$defaultlanguage = $language['language'];
$defaultlanguage = '/'.$defaultlanguage ;
}
// Get language page link
$parse_wb_url = parse_url(WB_URL);
$set = $parse_wb_url['path'];
$actual = $_SERVER['REQUEST_URI'];
$pageslen = strlen(PAGES_DIRECTORY);
$language_link = substr(str_replace($set, '', $actual), $pageslen, 3);
//if the visitor enters the site, no pages directory is visible in url; set language_link to defaultlanguage
$p = substr(str_replace($set, '', $actual), 1, 5);
if ($p!='pages'){$language_link=$defaultlanguage ;}
// Get language page id
$result = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$language_link' LIMIT 0,1");
if($result->numRows() > 0) {
$page = $result->fetchRow();
$parent = $page['page_id'];
show_menu2(0, $parent, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
} else {
// Can't figure out the root ID, so just use normal menu
//show_menu(2);
//show_menu2(0, 17, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
//show_menu2(0, SM2_CURR+1, SM2_CURR+1);
//SAND for news read more
$parent = 17; //english
show_menu2(0, $parent, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
}
?>
code for vertical menu:
<?php if(SHOW_MENU) { ?>
<div id="sideColumn"> <br />
<br />
<?php //SAND
show_menu2(0, SM2_ROOT+2, SM2_CURR+1); ?>
I attached an image with part of the page structure.
I hope this will help you.
[gelöscht durch Administrator]