Hallo,
Ich hab ein file, welches die Navigation steuert resp. die sogenannten "Aktiv-Modus-ID" für einen einzelnen Navigationspunkt zuweist.
PHP
<?php
if(is_page('About'))
{
$pc_about_label = "id=\"a\"";
}
else if(is_page('Movies'))
{
$pc_movies_label = "id=\"a\"";
}
else if(is_page('Archives') || isset($_GET['p']) || isset($_GET['m']) || isset($_GET['s']))
{
$pc_archives_label = "id=\"a\"";
}
else
{
$pc_home_label = "id=\"a\"";
}
?>
Alles anzeigen
Das problem ist nun folgendes:
Da ich customized permalinks habe (/archive/%year%/%monthnum%/%postname%/) geht das else if mit dem isset $get p und $get m net.
Wich kann ich das umgehen/lösen?