"; } function openHead(){ return " ". getConfigValue('title') .""; } function closeHead(){ return ""; } function openBody(){ return ""; } function closeBody(){ return ""; } function openHeader(){ return "
"; } function closeHeader(){ return "
"; } function closeDocument(){ return ""; } function styles(){ global $ruta; $html = " "; return $html; } function js(){ $html = " "; return $html; } function createMenu($menuEntries){ static $level; global $id_pagina; if($level == null) $level = 0; $level++; $display = ''; if($level > 1){ $display = 'invisible'; $menu_level = 'menu_level_'.$level; } else{ $menu_level = 'menu_top_level'; } $html .= ""; $level--; } function createTopBanner(){ global $ruta; global $i_bienvenidos; global $id_pagina; $h1 = $id_pagina == 1 ? "

$i_bienvenidos

" : $i_bienvenidos; $html = "
"; return $html; } function setBackground(){ $html = ""; return $html; } function createBodyContainer(){ $html = "
"; return $html; } function closeBodyContainer(){ $html = "
"; return $html; } function createMenuWrapper(){ global $ruta; $direccion_idioma = $_SERVER["REQUEST_URI"]; if(strpos($direccion_idioma, '.php') == 0){ $direccion_idioma .= "index.php?"; }else if(strpos($direccion_idioma, 'idioma')){ $direccion_idioma = substr_replace($direccion_idioma, '', strpos($direccion_idioma, 'idioma')-1, 11); if(strpos($direccion_idioma, '?') > 0){ $direccion_idioma .= "&"; }else{ $direccion_idioma .= "?"; } }else if(strpos($direccion_idioma, '?')){ $direccion_idioma .= "&"; }else{ $direccion_idioma .= "?"; } $html = ""; return $html; } function getIndexBanners(){ $html = ""; return $html; } function getPageBanners($id_pagina){ $html = ""; return $html; } function clear(){ $html = "
"; return $html; } function getFooter(){ global $i_contacto; global $i_aviso_legal; $html = ""; return $html; } function strikeBanner(){ $html = "Diseņo web Bilbao"; return $html; } function createHome(){ global $ruta; global $menuEntries; $html .= ""; return $html; } $id_pagina = $_GET['id_pagina']; $id_pagina = ($id_pagina == 0 ? 1 : $id_pagina); echo openDocument(); echo openHead(); echo styles(); echo js(); echo closeHead(); echo openBody(); echo createBodyContainer(); echo setBackground(); echo openHeader(); echo createTopBanner(); echo createMenuWrapper(); echo closeMenuWrapper(); echo createHome(); echo closeHeader(); if(!($id_pagina > 0)){ /* Si no hay pagina ponemos los banners del index */ echo clear(); echo getIndexBanners(); } else{ echo clear(); echo getPageBanners($id_pagina); } $id = $id_pagina; require_once(dirname(__FILE__).'/modulos/paginas.php'); echo generatePaginaFromId($id); echo clear(); echo getFooter(); //echo strikeBanner(); echo closeBodyContainer(); echo closeBody(); //echo closeDocument(); ?>