<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
ul {
    font-style:"Comic Sans MS";
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li {
  float: left;
}

li a, .dropbtn {
    font-style:"Comic Sans MS", cursive, sans-serif;
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
  display: block;
}
</style>
</head>
<body>
<div style="background-color:#cd3b62;"><center><a href="http://tirtilyuva.com/"><img src="tirtil-logo.png" width="200px"></a></center></div>


<?php include 'baglanti.php';?>
<?php 

//12 değeri wordpress yemek listesi kategori id'sidir
$sorgu = $conn->query("SELECT * FROM wpjb_term_relationships WHERE term_taxonomy_id='12' ORDER BY object_id DESC limit 1 ");
while ($sonuc = $sorgu->fetch_assoc()) { 
    
    $yemek_listesi_link_id = $sonuc['object_id'];
}

//13 değeri wordpress yemek listesi kategori id'sidir
$sorgu = $conn->query("SELECT * FROM wpjb_term_relationships WHERE term_taxonomy_id='13' ORDER BY object_id DESC limit 1 ");
while ($sonuc = $sorgu->fetch_assoc()) { 
    
    $etkinlik_listesi_link_id = $sonuc['object_id'];
}

?>


<ul>
  <li><a href="https://tirtilyuva.com/">Anasayfa</a></li>
  <li><a href="https://www.tirtilyuva.com/?p=<?php echo $yemek_listesi_link_id; ?>">Yemek Listesi</a></li>
  <li><a href="https://www.tirtilyuva.com/?p=<?php echo $etkinlik_listesi_link_id; ?>">Etkinlik Listesi</a></li>
  </ul>    
</body>
</html>
