$edities_main = getdata("br_items","id","=",1);
$edities_list = explode("]---[",$edities_main['content']);
$edities_list_first = array_slice($edities_list,0,1);
$upcoming_data = getdata("br_items","id","=",$edities_list_first[0]);
$nav_list = array("home","festival","activities","blog","editions","tickets");
$nav_list_url = array_combine($nav_list, $nav_list);
foreach($nav_list as $nav_item){
$active = "";
if($_REQUEST['p'] == pretty_url($nav_item) && $nav_item != "festival" && $_REQUEST['id'] != $upcoming_data['name'] || ($nav_item == "festival" && $_REQUEST['p'] == "archive" && $_REQUEST['id'] == $upcoming_data['name'] && $nav_item != "archive")){
$active = " active";
}
if($nav_item == "tickets"){
echo "".ucfirst($nav_item)."";
} else if($nav_item == "festival"){
echo "
".ucfirst($nav_item)." ".clean_txt($upcoming_data['name'])."";
$pages_items = explode("]---[",$upcoming_data['pages']);
if($pages_items[0]){
echo "
";
} else if($nav_item == "archive"){
echo "";
if($upcoming_data['bands']){
$bands_visible = "n";
$bands_items = explode("]---[",$upcoming_data['bands']);
if($bands_items[0]){
foreach($bands_items as $item){
$item_data = getdata("br_bands","id","=",$item);
if($item_data['visible'] == "y"){
$bands_visible = "y";
}
}
}
if($bands_visible == "y"){
echo "Bands";
}
}
foreach($pages_items as $item){
$info_data = getdata("br_pages","id","=",$item);
if($info_data['visible'] == "y"){
echo "".clean_txt(str_maxlength(25,$info_data['name']))."";
}
if($item == $pages_items[ceil(count($pages_items) / 2)] && $upcoming_data['img']){
echo "PHOTO GALLERY";
}
//$active = ""; if($_REQUEST['name'] == "info" && $_REQUEST['sid'] == $info_data['id']){ $active = " class='active'"; }
//echo "".clean_txt($info_data['name'])."";
}
echo "
";
}
echo "".ucfirst($nav_item)."";
$edities_list_archive = array_slice($edities_list,1);
if($edities_list_archive[0]){
echo "
";
} else {
echo "".ucfirst($nav_item)."";
}
}
?>
";
foreach($edities_list_archive as $editie_id){
$item_data = getdata("br_items","id","=",$editie_id);
echo "".clean_txt($item_data['name'])."";
}
echo "
";
}
echo "