Merhaba Arkadaşlar
tema değişikliğinden dolayı PHP header menümü aşağıdaki html yapıya uygulama yapamadım, bu konuda yardımcı olabilirmisiniz
<?php
function site_menu_listele($id = 0){
global $db;
global $menu_alt;
$query = $db->prepare("SELECT * FROM menu WHERE menu_ust=:menu_id AND menu_durum=:menu_durum AND menu_dil=:menu_dil ORDER BY menu_sira ASC");
$query->execute(["menu_id" => $id, "menu_durum" => 1, "menu_dil" => $_SESSION["language"]]);
$goster = $query->fetchAll(PDO::FETCH_ASSOC);
$x = $query->rowCount();
$menu_alt = 0;
if ($x){
foreach ($goster as $row){
$alt_kategori = $db->prepare("SELECT * FROM menu WHERE menu_ust=:menu_id AND menu_durum=:menu_durum AND menu_dil=:menu_dil ORDER BY menu_sira ASC");
$alt_kategori->execute(["menu_id" => $row["menu_id"], "menu_durum" => 1, "menu_dil" => $_SESSION["language"]]);
$alt_kategori_say = $alt_kategori->rowcount();
if (0 < $alt_kategori_say){
$menu_alt = 1;
}
$ikon = $row["menu_ikon"];
$menu_ikon = "";
if (trim($ikon) == NULL){
$menu_ikon = "";
} else {
$menu_ikon = "<i class='fa ".$ikon."'></i>";
}
$menu_yon = "right";
$menu_yon_side = "";
if ($row["menu_yon"] == 1){
$menu_yon = "right";
} else {
$menu_yon = "left";
$menu_yon_side = "left-side";
}
$menu_url = $row["menu_url"];
$menu_sekme = "";
if ($row["menu_sekme"] == 1){
$menu_sekme = "target=\"_blank\"";
}
echo "<li><a href=\"";
include "menulink.php";
echo "\"";
echo $menu_sekme;
echo " style='text-transform:none;padding-left:10px;padding-right:10px;'>\r\n";
echo "".$menu_ikon."";
echo $row["menu_ad"];
if ($row["menu_ust"] == 0){
if ($menu_alt == 0){
echo "</a><ul>";
} else {
echo "<i class=\"fa fa-angle-down fa-indicator\"></i></a><ul class=\"drop-down-multilevel \">";
}
} else {
if ($menu_alt == 0){
echo "</a><ul class='".$menu_yon_side."'>";
} else {
echo " <i class='fa fa-angle-".$menu_yon." fa-indicator'></i> </a><ul class='drop-down-multilevel ".$menu_yon_side."'>";
}
}
site_menu_listele($row["menu_id"]);
echo "</ul></li>";
}
} else {
return false;
}
}
?>
---------------------------------------------------------------------------------------------
<div class="collapse navbar-collapse" id="main-navbar">
<ul class="navbar-nav mr-auto w-100 justify-content-center">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Pages <i class="fa fa-angle-down"></i>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="about.html">About Us</a>
<a class="dropdown-item" href="agents.html">Agents</a>
<a class="dropdown-item" href="rent.html">For Rent</a>
<a class="dropdown-item" href="sale.html">For Sale</a>
<a class="dropdown-item" href="pricing.html">Pricing Tables</a>
<a class="dropdown-item" href="dashboard.html">Dashboard</a>
<a class="dropdown-item" href="submit-property.html">Submission Form</a>
<a class="dropdown-item" href="faq.html">FAQ</a>
<a class="dropdown-item" href="testimonials.html">Testimonials</a>
<a class="dropdown-item" href="typography.html">Typography</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">
Contact Us
</a>
</li>
</ul>
</div>