<!DOCTYPE html>
<html lang="en">
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	    <title><?php echo isset($title)?$title . ' - ' : ''; ?><?php echo Config::get('site.name'); ?></title>
	    <meta name="description" content="">
	    <meta name="author" content="">
	    <?php echo HTML::style('favicon.png', array('rel' => 'shortcut icon')); ?>
	    
	    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
	
	    <?php echo HTML::style('css/bootstrap.css', array('rel'=>'stylesheet', 'type'=>'text/css')); ?>	    
	    <?php echo HTML::style('css/main.css', array('rel'=>'stylesheet', 'type'=>'text/css')); ?>

	    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	    <!--[if lt IE 9]>
	    	<?php echo HTML::script('/js/plugins/html5shiv.js'); ?>      
	    <![endif]-->	    
	    <!-- start Mixpanel --><script type="text/javascript">(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==
		typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g<i.length;g++)f(c,i[g]);
		b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]);
		mixpanel.init("785910b3db5e328486fad05a18f9b46e");</script><!-- end Mixpanel -->
	</head>
	<body>	
		<div id="fb-root"></div><script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=554435741277335";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script>
		<header id="navbar">
			<?php echo $__env->make('partials.navbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>		    
	    </header>
	    
	    <section id="content">
	    	<?php echo $__env->yieldContent('content'); ?>
	    </section>
    	
    	<footer id="footer">
    		<div class="container">
    			<div class="footer-nav row">
	    			<div class="col-xs-3">
	    				<ul class="navs">
	    					<li><a href="<?php echo url('/'); ?>">Home</a></li>
	    					<li><a href="<?php echo route('page_view', 'about-us'); ?>">About Us</a></li>
	    					<li><a href="<?php echo route('page_view', 'blog'); ?>">Blog</a></li>
	    					<li><a href="<?php echo route('page_view', 'team'); ?>">Team</a></li>
	    					<li><a href="<?php echo route('page_view', 'careers'); ?>">Careers</a></li>
	    					<li><a href="<?php echo route('page_view', 'terms-of-use'); ?>">Terms of Use</a></li>
	    					<li><a href="<?php echo route('page_view', 'privacy-policy'); ?>">Privacy Policy</a></li>
	    				</ul>
	    			</div>
	    			<div class="col-xs-3">
	    				<ul class="navs">
	    					<li><a href="<?php echo url('explore'); ?>">Explore New York City</a></li>
	    					<li><a href="<?php echo url('neighborhoods'); ?>">New York City Neighborhoods</a></li>
	    					<li><a href="<?php echo url('events'); ?>">New York City Events</a></li>
	    					<li><a href="<?php echo url('apartments'); ?>">New York City Apartments</a>
	    					<li><a href="<?php echo url('questions'); ?>">New York City Questions &amp; Answers</a>
	    				</ul>
	    			</div>
	    			<div class="col-xs-2 pull-right">
	    				<ul class="navs">	    					
	    					<li><a href="">Facebook</a></li>
	    					<li><a href="https://twitter.com/cityraven/" rel="nofollow" target=_blank">Twitter</a>
	    					<li><a href="">Pinterest</a>
	    				</ul>
	    			</div>	    			
    			</div>    			    			
    		</div>
    		<div class="copy">
    			<div class="container">
    				&copy; <?php echo date('Y'); ?> CityRaven, Inc.
    				<div class="pull-right"><a href="#top">Back to top <i class="fa fa-long-arrow-up"></i></a></div>
    			</div>
    		</div>
    	</footer>
    	<script src="//code.jquery.com/jquery.js"></script>
    	<?php echo HTML::script('/js/plugins/bootstrap.min.js'); ?> 
    	<?php echo HTML::script('/js/plugins/jquery.icheck.min.js'); ?> 
    	<?php echo HTML::script('/js/plugins.js'); ?>
    	<?php echo HTML::script('/js/plugins/jquery.fancybox.pack.js'); ?> 
    	<?php echo HTML::script('/js/common.js'); ?>  
    	<?php echo $__env->yieldContent('scripts'); ?>
		<?php if(Auth::check()): ?><div id="feedback"><a href="#feedback-block" class="popup-inline"><img src="<?php echo asset('img/feedback.png'); ?>" /></a></div><?php endif; ?>		
    	<?php echo $__env->make('partials.popups', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>	
	</body>
</html>
