19 lines
640 B
PHP
19 lines
640 B
PHP
<?php
|
|
function p ($pg) {
|
|
if ($_GET["page"] == $pg) {
|
|
echo "class=\"active\"";
|
|
} else if (!$_GET["page"] && ($pg == "main")) {
|
|
echo "class=\"active\"";
|
|
}
|
|
}
|
|
?>
|
|
<div class="nav">
|
|
<link rel="stylesheet" href="css/nav.css">
|
|
<ul>
|
|
<li><a <?php p("main"); ?> href="./?page=main">Главная</a></li>
|
|
<li><a <?php p("news"); ?> href="./?page=news">Новости</a></li>
|
|
<li><a <?php p("projects"); ?> href="./?page=projects">Проекты</a></li>
|
|
<li><a <?php p("music"); ?> href="./?page=music">Sound of Cyclone</a></li>
|
|
<li><a <?php p("contacts"); ?> href="./?page=contacts">Контакты</a></li>
|
|
</ul>
|
|
</div>
|