loreakasmatzen_docker/data/inc/funciones.php

28 lines
542 B
PHP

<?php
function activar_menu($pagina, $class){
$pagina = $pagina.".php";
$pagina_actual = substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
if ($pagina == $pagina_actual){
return "class=\"$class\"";
}elseif ($pagina == "opiniones-bubani-sobre-pais-vasco.php"){
return "class=\"big\"";
}elseif ($pagina == "index.php"){
return "class=\"top\"";
}elseif ($pagina == "excursiones-bubani-pais-vasco.php"){
return "class=\"big\"";
}if ($pagina == "creditos.php"){
return "class=\"bottom\"";
}
}
?>