D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
grandhou
/
www
/
include
/
Filename :
menu.php
back
Copy
<div class="main-nav1"> <div class="navwrap"> <nav class="nav is-fixed" role="navigation"> <div class="wrapper wrapper-flush"> <button class="nav-toggle"> <a href="#"><div class="icon-menu"><section>MENU</section> <span class="line line-1"></span> <span class="line line-2"></span> <span class="line line-3"></span> </div></a> </button> <div class="nav-container"> <ul class="nav-menu menu"> <li class="menu-item"> <a href="index" class="menu-link">Home</a></li> <li class="menu-item"> <a href="showcase" class="menu-link">Showcase</a></li> <li class="menu-item"> <a href="wedding-photo" class="menu-link">Weddings</a></li> <li class="menu-item"> <a href="pre-wedding-photo" class="menu-link">Pre-Weddings</a></li> <li class="menu-item"> <a href="wedding-video" class="menu-link">Wedding Cinema</a></li> <li class="menu-item"> <a href="live-streaming" class="menu-link">Live Streaming</a></li> <?php $sql=mysqli_query($dbhandle,"select * from page where parentmenu='0'"); while($row=mysqli_fetch_array($sql)) { $title=$row['pagetitle']; $permalink=$row['permalink']; $sql10=mysqli_query($dbhandle,"select * from page where parentmenu='$title'"); $num_rows = mysqli_num_rows($sql10); ?> <li class="menu-item <?php if($num_rows>'0'){echo "has-dropdown";} else{}?>"><a href="<?php if($num_rows>'0'){echo "#";} else {?>pages/<?php echo "$permalink";}?>" class="menu-link"><?php echo $title;?></a> <?php if($num_rows>'0') {?> <ul class="nav-dropdown menu"><?php while($row10=mysqli_fetch_array($sql10)) { $title1=$row10['pagetitle']; $permalink1=$row10['permalink'];?> <li class="menu-item"><a href="pages/<?php echo $permalink1;?>" class="menu-link"><?php echo $title1;?></a> </li> <?php }?> </ul> <?php }?> </li> <?php }?> <li class="menu-item"> <a href="faq" class="menu-link">FAQ</a></li> <li class="menu-item"><a href="about" class="menu-link">About Us</a></li> <li class="menu-item"><a href="contact" class="menu-link">Contact</a></li> <li class="menu-item"><a href="blog" class="menu-link">Blog</a></li> </ul> </div> </div> </nav> </div> <div class="getquote"><a href="quote">GET A QUOTE</a></div> </div>