<?php
include('veza/le.php');
require('xwaf.php'); // Before all your code starts.
$xWAF = new xWAF();
$xWAF->start();

$query_menu_cat = "SELECT * FROM le_menu_category as c LEFT JOIN le_menu_category_photo as p ON c.menu_cat_id = p.lemcatid WHERE c.menu_cat_active = 'y'";
$result_menu_cat = mysqli_query($leld,$query_menu_cat);
$totalRows_menu_cat = mysqli_num_rows($result_menu_cat);

$images_dir = "";
?>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <title>Luxury Event Catering Tivat - Menu</title>
        <meta name="description" content="Luxury Event Catering Tivat MONTENEGRO - Menu">
		<meta name="robots" content="index,follow" />
        <meta name="author" content="LaktusDev">
        <meta name="keywords" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <!-- Stylesheets -->
		<link rel="icon" href="icon.jpg">
        <link rel="stylesheet" href="css/bootstrap.min.css"/><!-- bootstrap grid -->
        <link rel="stylesheet" href="css/bootstrap-theme.min.css"/><!-- bootstrap theme -->
        <link rel="stylesheet" href="css/style.css"/><!-- template styles -->
        <link rel="stylesheet" href="css/color-default.css"/><!-- default template color styles -->
        <link rel="stylesheet" href="css/retina.css"/><!-- retina ready styles -->
        <link rel="stylesheet" href="css/responsive.css"/><!-- responsive styles -->
        <link rel="stylesheet" href="css/animate.css"/><!-- animation for content -->
        <link rel="stylesheet" href="css/nivo-slider.css"/><!-- Nivo Slider styles -->
        <link rel='stylesheet' href='owl-carousel/owl.carousel.css'/><!-- Carousels css -->
        <link rel='stylesheet' href='owl-carousel/owl.theme.css'/><!-- Carousels -->

        <!-- Google Web fonts -->
        <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
        <link href='https://fonts.googleapis.com/css?family=Suranna' rel='stylesheet' type='text/css'>
        <link href='https://fonts.googleapis.com/css?family=Montez' rel='stylesheet' type='text/css'>

        <!-- Font icons -->
        <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css"/><!-- Font awesome icons -->
    </head>

    <body>

 <?php include("inc/header.php"); ?>

        <!-- .page-content start -->
        <div class="page-content custom-img-background dark page-title page-title-4 mb-100">
            <div class="container">
                <!-- .row start -->
                <div class="row">
                    <!-- .col-md-12 start -->
                    <div class="col-md-12 centered">
                        <div class="custom-heading style-1 triggerAnimation animated" data-animate='fadeInUp'>
                            <h1><span>Luxury Event</span></h1>
                            <h1>Catering Tivat</h1>
                        </div><!-- .custom-heading.style-1 end -->
                    </div><!-- .col-md-12 end -->
                </div><!-- .row end -->
            </div><!-- .container end -->
        </div><!-- .page-content end -->

        <div class="page-content">
            <!-- .container start -->
            <div class="container">
                <!-- .row start -->
                <div class="row mb-0">
                    <div class="col-md-12 mb-20 centered triggerAnimation animated" data-animate='fadeIn'>
                        <div class="custom-heading style-1">
                            <h3>Menu packages</h3>

                            <!-- .divider.style-1 start -->
                            <div class="divider style-1 center">
                                <span class="hr-simple left"></span>
                                <i class="fa fa-circle hr-icon"></i>
                                <span class="hr-simple right"></span>
                            </div>
                        </div><!-- .custom-heading.style-1 end -->
                    </div><!-- .col-md-12 end -->                    
                </div><!-- .row end -->
                <!-- .row start -->
                <div class="row">
<?php while($row_menu_cat = mysqli_fetch_assoc($result_menu_cat)) { ?>
<?php
$did=$row_menu_cat['menu_cat_id'];
$sql_menucat="SELECT * FROM le_menu_category as c LEFT JOIN le_menu_category_photo as p ON c.menu_cat_id = p.lemcatid where c.menu_cat_id='".$did."'";
$result_menucat = mysqli_query($leld,$sql_menucat);
$row_menucat = mysqli_fetch_assoc($result_menucat);

$menucat_images_dir = "uploads/menu/category/";
?>
                    <div class="col-md-4 col-sm-6 menu-package">
                        <div class="menu-sample style-2 border-decor centered">                                
                            <figure>
                                <div class="menu-image">
<?php if ($row_menucat['photo_id'] >= '1') { ?>
									<a href="menu_sub.php?content_cat=<?php echo $row_menu_cat['menu_cat_id']; ?>">
									<img src="<?php echo $menucat_images_dir ?><?php echo $row_menucat['slika']; ?>" alt="Luxury Event Catering Tivat"/>
									</a>
<?php } else { ?>
									<a href="menu_sub.php?content_cat=<?php echo $row_menu_cat['menu_cat_id']; ?>">
									<img src="<?php echo $menucat_images_dir ?>default.jpg" alt="Luxury Event Catering Tivat"/>
									</a>
<?php } ?>
                                </div>

                                <figcaption>
                                    <div class="custom-heading style-1">
                                        <h3><span>Menu for</span></h3>
                                        <h3><?php echo $row_menu_cat['menu_cat_name']; ?></h3>

                                        <!-- .divider.style-1 start -->
                                        <div class="divider style-1 center">
                                            <span class="hr-simple left"></span>
                                            <i class="fa fa-circle hr-icon"></i>
                                            <span class="hr-simple right"></span>
                                        </div>
                                    </div><!-- .custom-heading.style-1 end -->
                                    <a href="menu_sub.php?content_cat=<?php echo $row_menu_cat['menu_cat_id']; ?>" class="more-details triggerAnimation animated" data-animate='fadeInUp'>View menu <i class="fa fa-angle-double-right"></i></a>
                                </figcaption>   
                            </figure>
                        </div><!-- .menu-sample.style-2 end -->
                    </div><!-- .col-md-4 end -->
<?php } ?>
                </div><!-- .row end -->
<?php include("inc/pdf.php"); ?>
            </div><!-- .container end -->
        </div><!-- .page-content end -->


<?php include("inc/footer.php"); ?>

<?php include("inc/copyright.php"); ?>

        <script src="js/jquery-2.1.4.min.js"></script><!-- jQuery library -->
        <script src="js/bootstrap.min.js"></script><!-- .bootstrap script -->
        <script src="js/jquery.scripts.min.js"></script><!-- modernizr, retina, stellar for parallax -->  
        <script src="js/jquery.dlmenu.min.js"></script><!-- for responsive menu -->
        <script src="js/include.js"></script><!-- custom js functions -->
        <script src="js/jquery.nivo.slider.pack.js"></script><!-- Nivo Slider script -->
        <script src="owl-carousel/owl.carousel.min.js"></script><!-- Carousels script -->
        <script src="js/TweenMax.min.js"></script> <!-- Plugin for smooth scrolling-->
        <script src="js/ScrollToPlugin.min.js"></script> <!-- Plugin for smooth scrolling-->

        <script>
            /* <![CDATA[ */
            jQuery(document).ready(function ($) {
                'use strict';

                $('#featured-menu-nivo-slider').nivoSlider({
                    controlNav: false
                });

                // FEATURED MENU CAROUSEL START 
                $('#featured-menu-carousel').owlCarousel({
                    items: 3, //3 items above 1000px browser width
                    itemsCustom: [[0, 1], [600, 2], [1000, 3]],
                    autoPlay: true,
                    pagination: false,
                    navigation: true
                });

                // FANCY TESTIMONIAL CAROUSEL START 
                $('#fancy-testimonial-carousel').owlCarousel({
                    singleItem: true,
                    autoPlay: true,
                    pagination: false,
                    navigation: false
                });
                // TESTIMONIAL STYLE 1 CAROUSEL START 
                $('#testimonial-style-1-carousel').owlCarousel({
                    singleItem: true,
                    autoPlay: true,
                    pagination: false,
                    navigation: false
                });

                // TESTIMONIAL STYLE 2 CAROUSEL START 
                $('#testimonial-style-2-carousel').owlCarousel({
                    singleItem: true,
                    autoPlay: true,
                    pagination: false,
                    navigation: false
                });
                // TESTIMONIAL STYLE 3 CAROUSEL START 
                $('#testimonial-style-3-carousel').owlCarousel({
                    singleItem: true,
                    autoPlay: true,
                    pagination: false,
                    navigation: false
                });


            });
            /* ]]> */
        </script>

    </body>
</html>
