
<?php \Laravel\Section::start('content'); ?>

<div id="slideInterne">
	<div class="wrapper ariane">
		<a href="<?php echo  URL::to('/'); ; ?>" title="<?php echo  __('site.accueil') ; ?>"><i class="icon-home"></i></a> 
		<i class="icon-angle-right"></i> 
		<?php echo  $categorie_products->descLocale()->name ; ?> 
		<i class="icon-angle-right"></i> 
		<a href="<?php echo  URL::full() ; ?>" title="<?php echo $categorie->descLocale()->name; ?>"><?php echo $categorie->descLocale()->name; ?></a>
	</div>
</div>

<?php // Choix des catégories ?>
<div class="categChoice hidden_mobile">
	<div class="wrapper">
		<div class="ajax_loader"><img src="<?php echo  URL::to_asset('/image/ajax-loader.gif') ; ?>" /></div>
		<div class="ajax_categ" style="display:none;">
			<?php foreach($categorie_products_categories as $p): ?>
			<a href="<?php echo  URL::to_route('categorieproduit', array($p->id, GeneralFunctions::cleanstring($categorie_products->descLocale()->name), GeneralFunctions::cleanstring($p->descLocale()->name))) ; ?>" title="<?php echo  $p->descLocale()->name ; ?>" class="<?php echo (URI::is($p->id.'*')) ? 'active' : '' ?>">
				<?php if($p->photo && $p->photo!=''): ?>
					<img src="<?php echo  URL::to_route('photocategs', array('328', '350', $p->photo)) ; ?>"><br />
				<?php else: ?>
					<img src="http://placehold.it/328x350&text=No+Photo">
				<?php endif; ?>
				<span><?php echo  $p->descLocale()->name ; ?></span>
			</a>
			<?php endforeach; ?>
			<div class="cursor cursor<?php echo  $categorie->id ; ?>"></div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function() {
		setTimeout(update, 800);
	});
	function update(){
		$('.ajax_loader').hide('fast');
		$('.ajax_categ').show('fast');
	}
</script>

<?php // Listing produits ?>
<div class="categProduits">
	<div class="wrapper pageType">
		
		<h1><?php echo  $categorie->descLocale()->name ; ?></h1>
		<h2><?php echo  $categorie->descLocale()->slogan ; ?></h2>
		
		<?php if($produits && count($produits)>=1): ?>
			<div class="row-fluid">
			<?php foreach($produits as $p): ?>
				
				<a href="" class="blocProduit span4">
					<span class="produitImg"><img src="<?php echo  URL::to_asset('/image/categorie1.jpg') ; ?>"></span>
					<span class="produitName"><?php echo  $p->nom ; ?></span>
					<span class="produitResume"><?php echo  $p->contentLocale()->resume ; ?></span>
				</a>
				<a href="" class="blocProduit span4">
					<span class="produitImg"><img src="<?php echo  URL::to_asset('/image/categorie1.jpg') ; ?>"></span>
					<span class="produitName"><?php echo  $p->nom ; ?></span>
					<span class="produitResume"><?php echo  $p->contentLocale()->resume ; ?></span>
				</a>
				<a href="" class="blocProduit span4">
					<span class="produitImg"><img src="<?php echo  URL::to_asset('/image/categorie1.jpg') ; ?>"></span>
					<span class="produitName"><?php echo  $p->nom ; ?></span>
					<span class="produitResume"><?php echo  $p->contentLocale()->resume ; ?></span>
				</a>
				
			<?php endforeach; ?>
			</div>
		<?php else: ?>
			<p style="text-align:center;"><?php echo  __('site.error_categ') ; ?><br/><br/></p>
		<?php endif; ?>
		
	</div>
	<div class="clear"></div>
</div>

<?php // Rappel devis ?>
<div class="rappelDevis">
	<div class="wrapper">
		<h3>Besoin d'un devis?</h3>
		<a href="" class="btn btn-warning btn-large" title="Obtenir un devis gratuitement">Obtenir un devis gratuitement</a>
	</div>
</div>
<div class="clear"></div>
		
<?php \Laravel\Section::stop(); ?>
<?php echo view('template')->with(get_defined_vars())->render(); ?>