<?php
if ($home == 'transparent') {
    $kelas = 'transperent';
} else {
    $kelas = "";
}
?>
<nav class="main-nav dark <?php echo $kelas ?> container stick-fixed">
    <div class="container">
        <div class="full-wrapper relative clearfix">
            <!-- Logo ( * your text or image into link tag *) -->
            <div class="nav-logo-wrap local-scroll">
                <a href="<?php echo base_url() ?>" class="logo">
                    <!--img src="<?php echo base_url(); ?>assets/frontend/images/logo-white.png" alt="" /-->
                    <img src="<?php echo base_url(); ?>assets/frontend/images/logo-amazink-white-new.png" alt="" />
                </a>
            </div>
            <div class="mobile-nav">
                <i class="fa fa-bars"></i>
            </div>

            <!-- Main Menu -->
            <div class="inner-nav desktop-nav">
                <ul class="clearlist">


                    <!-- End Item With Sub -->
                    <?php
                    $key['active'] = "yes";
                    $myMenu = $this->db->get_where('main_menu', $key);
                    foreach ($myMenu->result() as $mnm) {
                        ?>
                        <li><a href="<?php echo site_url(); ?>pages/produk/<?= $mnm->key_page?>/<?= url_title($mnm->menu_name)?>.html"><?= $mnm->menu_name?></a></li>
                        <?php
                    }
                    ?>
                    <li><a href="<?php echo site_url(); ?>reseller.html">Reseller</a></li>    
                    <li><a href="<?php echo site_url(); ?>news.html">News</a></li>
                    <li><a href="<?php echo site_url(); ?>support.html">Support</a></li>
                    <li><a href="<?php echo site_url(); ?>contact.html">contact</a></li>
                    <li><a href="<?php echo site_url(); ?>toko.html">Toko</a></li>
                    <li><a href="<?php echo site_url(); ?>toko/cart.html">Cart (<?= $this->cart->total_items() ?>)</a></li>
                </ul>
            </div>
            <!-- End Main Menu -->


        </div>
    </div>
</nav>