<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
		<meta name="keywords" content="Djoedes by enambelasapp.my.id">
		<meta name="author" content="Suroto">
		<meta name="description" content="Djoedes by enambelasapp.my.id">
		<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />

		<title>Detail Menu</title>
		<link href="<?php echo base_url().'assets/img/logo.png'?>" rel="shortcut icon" type="image/x-icon">

		<link type="text/css" rel="stylesheet" href="<?php echo base_url().'mobile/css/jquery.mmenu.all.css'?>" />
		<link type="text/css" rel="stylesheet" href="<?php echo base_url().'mobile/css/style.css'?>" />

		<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
		<link rel="apple-touch-startup-image" href="img/apple-touch-startup-image.png">
		
		<script type="text/javascript" src="<?php echo base_url().'mobile/js/jquery.min.js'?>"></script>
		<script type="text/javascript" src="<?php echo base_url().'mobile/js/jquery.mmenu.min.all.js'?>"></script>
		<script type="text/javascript" src="<?php echo base_url().'mobile/js/jquery.easy-pie-chart.js'?>"></script>
		<script type="text/javascript" src="<?php echo base_url().'mobile/js/o-script.js'?>"></script>
		<?php 
			$b=$data->row_array();
			$url=base_url().'mobile/menu/detail_menu/'.$b['menu_id'];
	        $img=base_url().'assets/gambar/'.$b['menu_gambar'];
	   		$title=$b['menu_nama'];
			$deskripsi=strip_tags($b['menu_deskripsi']);
		?>
		<meta property="fb:app_id" content="966242223397117" />
		<meta property="og:locale" content="id_id" />
		<meta property="og:type" content="article" />
		<meta property="og:title" content="<?php echo $title;?>" />
		<meta property="og:description" content="<?php echo $deskripsi;?>" />
		<meta property="og:url" content="<?php echo $url?>" />
		<meta property="og:site_name" content="" />

		<meta property="article:section" content="Miedjoedes" />
		<meta property="og:image" content="<?php echo $img?>" />
		<meta property="og:image:width" content="1024" />
		<meta property="og:image:height" content="900" />

		<script>
        jQuery(document).ready(function($) {
         $('.popup').click(function(event) {
         var width = 575,
         height = 400,
         left = ($(window).width() - width) / 2,
         top = ($(window).height() - height) / 2,
         url = this.href,
         opts = 'status=1' +
         ',width=' + width +
         ',height=' + height +
         ',top=' + top +
         ',left=' + left;
          
         window.open(url, 'instagram', opts);
          
         return false;
         });
         });
        jQuery(document).ready(function($) {
          $('.popup2').click(function(event) {
            var width  = 575,
                height = 400,
                left   = ($(window).width()  - width)  / 2,
                top    = ($(window).height() - height) / 2,
                url    = this.href,
                opts   = 'status=1' +
                         ',width='  + width  +
                         ',height=' + height +
                         ',top='    + top    +
                         ',left='   + left; 
            window.open(url, 'facebook', opts);
            return false;
          });
        });
        </script>

	</head>
	
	<body class="o-page">
		<div id="page">
			<div id="header">
				<div class="header-content">
					<a href="#menu" class="p-link-home"><i class="fa fa-bars"></i></a>
					<a href="javascript:history.back();" class="p-link-back"><i class="fa fa-arrow-left"></i></a>
				</div>
			</div>
			<img src="<?php echo base_url().'assets/images/'.$b['menu_gambar']?>" />
			<div id="content">
				
				<article>
					
					
					<div class="prod-single-content-h">
						<div class="prod-pricePane">
						<?php if(empty($b['menu_harga_lama'])):?>
							<span class="current-price" style="font-size:20px;"><?php echo 'Rp '.number_format($b['menu_harga_baru'])?></span>
						<?php else:?>
							<span class="current-price" style="font-size:20px;"><?php echo 'Rp '.number_format($b['menu_harga_baru'])?></span>
							<span class="last-price" style="font-size:12px;"><?php echo $b['harga_lama'].'K'?></span>
						<?php endif;?>
						</div>
						
						<div class="products-ratings">
							<a href="<?php echo base_url().'mobile/menu/add_to_cart/'.$b['menu_id'];?>" style="text-decoration:none;"><div class="subFooter"><span class="fa fa-shopping-cart"></span> Beli</div></a>
						</div>
					</div>
					<div class="prod-single-content">
						<h2><a href="#"><?php echo $b['menu_nama']?></a></h2>
						<br/>
						<p>
							<?php echo $b['menu_deskripsi']?>
						</p>
					</div>
					<div class="product-single-meta">
						<div class="p-single-meta-likes">
							<h4>Like</h4>
							<a href="<?php echo base_url().'mobile/menu/like/'.$b['menu_id']?>"><i class="fa fa-thumbs-up"></i></a> <?php echo $b['menu_likes']?>
						</div>
						
						<div class="p-single-meta-share">
							<h4>Share</h4>
							<a class="popup2" target="_parent" href="https://www.facebook.com/miedjoedesdjoeranyapedes"><i class="fa fa-facebook"></i></a>
							<a class="popup" href="https://www.instagram.com/accounts/login/?next=/miedjoedes/"><i class="fa fa-instagram"></i></a>
							<a href="javascript:void(0);" onclick="popUp=window.open('https://miedjoedes.com/','popupwindow','scrollbars=yes,width=800,height=400');popUp.focus();return false"><i class="fa fa-globe"></i></a>
						</div>
						
					</div>
				</article>

			</div>
			<div class="subFooter">Copyright <?php echo date('Y');?>. All rights reserved.</div>
			
			<!-- Menu navigation -->
				<!-- Menu navigation -->
			<nav id="menu">
				<ul>
					<li class="Selected">
						<a href="#close">
							<i class="fa fa-times-circle"></i>
						</a>
					</li>
					<li>
						<a href="<?php echo base_url().'mobile/home'?>">
							<i class="fa fa-home"></i>Home
						</a>
					</li>
					<li>
						<a href="<?php echo base_url().'mobile/menu/cart'?>">
							<i class="fa fa-shopping-cart"></i>Keranjang Belanja (<?=$this->cart->total_items();?>)
						</a>
					</li>
				
					<li>
						<a href="<?php echo base_url().'mobile/tracker'?>">
							<i class="fa fa-crosshairs"></i>Tracker
						</a>
					</li>
					<li>
						<a href="<?php echo base_url().'mobile/member/register'?>">
							<i class="fa fa-user"></i>Mendaftar
						</a>
					</li>
					
					<?php if($this->session->userdata('online') == TRUE):?>
					<li>
						<a href="<?php echo base_url().'mobile/konfirmasi'?>">
							<i class="fa fa-exchange"></i>Konfirmasi
						</a>
					</li>
					
					<li>
						<a href="<?php echo base_url().'mobile/myfood'?>">
							<i class="fa fa-cutlery"></i>My Food
						</a>
					</li>

					<li>
						<a href="<?php echo base_url().'mobile/member/logout'?>">
							<i class="fa fa-sign-out"></i>Logout
						</a>
					</li>
					<?php else:?>
					<li>
						<a href="<?php echo base_url().'mobile/member'?>">
							<i class="fa fa-sign-in"></i>Login
						</a>
					</li>
					<?php endif;?>
				</ul>
					
			</nav>
			
		</div>
	</body>
</html>