<body>
    <header>
        <nav class="navbar navbar-default bootsnav bg-white navbar-scroll-top nav-box-width navbar-top navbar-transparent-no-sticky">
            <div class="container-fluid nav-header-container">
                <div class="row">
                    <div class="col-lg-4 col-md-2 col-xs-5">
                        <a class="logo" href="./"><img src="asset/<?php echo $logo['image_link']; ?>" style="height: auto; max-width: 100%;"  alt="<?php echo $set['site_name'] ?>" /></a>
                    </div>
                    <div class="col-md-8 col-xs-2 width-auto pull-left accordion-menu text-white">
                        <button type="button" class="navbar-toggle collapsed pull-right" data-toggle="collapse" data-target="#navbar-collapse-toggle-1">
                            <span class="sr-only">toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <div class="navbar-collapse collapse pull-left" id="navbar-collapse-toggle-1">
                            <ul  id="accordion" class="nav navbar-nav navbar-right no-margin text-normal">
                                <li><a class="alt-font" href="./login" >Login</a></li>
                                <li><a class="alt-font" href="./register" >Create an account</a></li>
                                <li><a class="alt-font" href="./blog/1" >Latest news</a></li>
                                <li><a class="alt-font" href="#contact" >Contact us</a></li>
                                <?php if(mysqli_num_rows(mysqli_query($dbc, "SELECT * FROM faq"))>0){?>
                                <li><a class="alt-font" href="#faq" >FAQ</a></li>
                                <?php }?>
                                <?php if(mysqli_num_rows(mysqli_query($dbc, "SELECT * FROM review WHERE status=1"))>0){?>
                                <li><a class="alt-font" href="#press" >PRESS</a></li>
                                <?php }?>
                             </ul>
                        </div>
                    </div>
                </div>
            </div>
        </nav>
    </header>