<?php
error_reporting(0);
?>
<?php include('header.php');?>
<!-- menu start -->
<!-- Gallery start -->
<?php
$menuDataJsonPage = file_get_contents('json/getCategoriesAndProduct.json');
$decodeJsonmenuPage = json_decode( preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $menuDataJsonPage ));
$productData = $decodeJsonmenuPage->data;
?>
<section id="galleryImageHeader">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="pageHeadingOtherTwo">Menu</div>
</div>
</div>
</div>
</section>
<!--<section id="menuHeadingImage"></section>-->
<section id="menuSection">
<div class="container">
<!-- <div class="row">
<div class="col-lg-12">
<div class="pageHeadingOther">Our Menu</div>
</div>
</div>-->
<?php
foreach($productData->categories as $catergaryProductsData){?>
<div class="row">
<div class="col-lg-12 menuCategary"><?php echo $catergaryProductsData->category_name; ?></div>
</div>
<div class="row">
<?php
if($catergaryProductsData->subcategory){?>
<?php foreach($catergaryProductsData->subcategory as $getSubCategaryData ){?>
<div class="row">
<div class="col-lg-12 menuCategarySub"><?php echo $catergaryProductsData->category_name; ?> - <?php echo $getSubCategaryData->category_name; ?></div>
</div>
<div class="row">
<?php $rowCountone = 0; ?>
<?php $rowCountTwoone = 0; ?>
<?php foreach($getSubCategaryData->product as $subcategaryProductGet){?>
<?php if( $rowCountone%3 == 0){?>
<div class="row">
<?php }?>
<div class="col-lg-4 col-mg-4 col-sm-4">
<div class="productDiv">
<div class="productName"><?php echo $subcategaryProductGet->product_name; ?></div>
<?php if($subcategaryProductGet->product_desc != '' ){?>
<div class="productDes"><?php echo $subcategaryProductGet->product_desc; ?></div>
<?php }?>
<div class="productPrice">$ <?php echo $subcategaryProductGet->product_price; ?></div>
</div>
</div>
<?php $rowCountone++; ?>
<?php $rowCountTwoone++; ?>
<?php if( $rowCountTwoone%3 == 0){?>
</div>
<?php }?>
<?php }?>
</div>
<?php }?>
<?php }else{?>
<?php $rowCount = 0; ?>
<?php $rowCountTwo = 0; ?>
<?php foreach($catergaryProductsData->product as $getProductJsonCategary){ ?>
<?php if( $rowCount%3 == 0){?>
<div class="row">
<?php }?>
<div class="col-lg-4 col-mg-4 col-sm-4">
<div class="productDiv">
<div class="productName"><?php echo $getProductJsonCategary->product_name; ?></div>
<?php if($getProductJsonCategary->product_desc != ''){?>
<div class="productDes"><?php echo $getProductJsonCategary->product_desc; ?></div>
<?php }?>
<div class="productPrice">$ <?php echo $getProductJsonCategary->product_price; ?></div>
</div>
</div>
<?php $rowCount++; ?>
<?php $rowCountTwo++; ?>
<?php if( $rowCountTwo%3 == 0){?>
</div>
<?php }?>
<?php }?>
<?php }
?>
</div>
<?php }
?>
</div>
</section><!--menuSection-->
<?php include('footer.php');?>
error_reporting(0);
?>
<?php include('header.php');?>
<!-- menu start -->
<!-- Gallery start -->
<?php
$menuDataJsonPage = file_get_contents('json/getCategoriesAndProduct.json');
$decodeJsonmenuPage = json_decode( preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $menuDataJsonPage ));
$productData = $decodeJsonmenuPage->data;
?>
<section id="galleryImageHeader">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="pageHeadingOtherTwo">Menu</div>
</div>
</div>
</div>
</section>
<!--<section id="menuHeadingImage"></section>-->
<section id="menuSection">
<div class="container">
<!-- <div class="row">
<div class="col-lg-12">
<div class="pageHeadingOther">Our Menu</div>
</div>
</div>-->
<?php
foreach($productData->categories as $catergaryProductsData){?>
<div class="row">
<div class="col-lg-12 menuCategary"><?php echo $catergaryProductsData->category_name; ?></div>
</div>
<div class="row">
<?php
if($catergaryProductsData->subcategory){?>
<?php foreach($catergaryProductsData->subcategory as $getSubCategaryData ){?>
<div class="row">
<div class="col-lg-12 menuCategarySub"><?php echo $catergaryProductsData->category_name; ?> - <?php echo $getSubCategaryData->category_name; ?></div>
</div>
<div class="row">
<?php $rowCountone = 0; ?>
<?php $rowCountTwoone = 0; ?>
<?php foreach($getSubCategaryData->product as $subcategaryProductGet){?>
<?php if( $rowCountone%3 == 0){?>
<div class="row">
<?php }?>
<div class="col-lg-4 col-mg-4 col-sm-4">
<div class="productDiv">
<div class="productName"><?php echo $subcategaryProductGet->product_name; ?></div>
<?php if($subcategaryProductGet->product_desc != '' ){?>
<div class="productDes"><?php echo $subcategaryProductGet->product_desc; ?></div>
<?php }?>
<div class="productPrice">$ <?php echo $subcategaryProductGet->product_price; ?></div>
</div>
</div>
<?php $rowCountone++; ?>
<?php $rowCountTwoone++; ?>
<?php if( $rowCountTwoone%3 == 0){?>
</div>
<?php }?>
<?php }?>
</div>
<?php }?>
<?php }else{?>
<?php $rowCount = 0; ?>
<?php $rowCountTwo = 0; ?>
<?php foreach($catergaryProductsData->product as $getProductJsonCategary){ ?>
<?php if( $rowCount%3 == 0){?>
<div class="row">
<?php }?>
<div class="col-lg-4 col-mg-4 col-sm-4">
<div class="productDiv">
<div class="productName"><?php echo $getProductJsonCategary->product_name; ?></div>
<?php if($getProductJsonCategary->product_desc != ''){?>
<div class="productDes"><?php echo $getProductJsonCategary->product_desc; ?></div>
<?php }?>
<div class="productPrice">$ <?php echo $getProductJsonCategary->product_price; ?></div>
</div>
</div>
<?php $rowCount++; ?>
<?php $rowCountTwo++; ?>
<?php if( $rowCountTwo%3 == 0){?>
</div>
<?php }?>
<?php }?>
<?php }
?>
</div>
<?php }
?>
</div>
</section><!--menuSection-->
<?php include('footer.php');?>
No comments:
Post a Comment