Current File : /home/karenpetzb/application/modules/default/views/scripts/produitspromotion/categorie.phtml
<script  type="text/javascript" >

$(function(){
	initEventsPromotionCats();
});

</script>
<?php
$listCat = array();
$listCat = $this->listCat;

$prefixClass = $this->prefixPromoClass;
?>

<?php if ($prefixClass == "eco-") { ?>
<style type="text/css">
.footer-content-divider{
	background: url('/business/image/eco-line.png') repeat-x top left;
	 height: 15px;
	 margin: 10px 0 0 0;
}
<?php if ($listCat['IDPARENT'] == 0) { ?>
  html, body {
  background: url('/business/image/eco-bg2.jpg') no-repeat top center;
  background-color: #21530d;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  }
  <?php } else { ?>
  html, body {
  background: url('/business/image/eco-bg1.jpg') no-repeat top center;
  background-color: #21530d;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  }
  <?php } ?>
.wrapBgContent-l,
.wrapBgContent-r {
	background:none;
}
.wrapBgContent-1 {
  -webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
}

.wrapBgContent-2 {
  -webkit-box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
}

</style>
<?php } ?>

<div class="hidden-xs col-md-12 sliderPanelTop noPadding">
	<div class="col-md-9 col-xs-12  indexBigBox">		
		<?php
			$colPromo = "col-xs-12";
			 if ($prefixClass == "eco-") { ?>
			<div class="col-xs-12 index-big-box noPadding <?php echo $prefixClass; ?>bg" style="overflow: hidden;overflow-y: hidden; ">
				<div class="<?php echo $prefixClass; ?>title1">D�couvrer notre</div>
				<div class="<?php echo $prefixClass; ?>title2">Gamme</div>
				<div class="<?php echo $prefixClass; ?>title3">D�veloppement Durable</div>
				<?php 
						if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
						$colPromo = "col-xs-7";?>
					<div class="col-xs-5 <?php echo $prefixClass; ?>choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
				<?php if ($listCat['ID'] != 3) { ?>
				<div class="<?php echo $colPromo;?> <?php echo $prefixClass; ?>title4"><?php echo $listCat['NOM']; ?></div>
				<?php } ?>
			</div>
		<?php }
		if ($prefixClass == "") { ?>
			<div class="col-xs-12 index-big-box noPadding promo-bg" style="overflow: hidden;overflow-y: hidden; ">
				<?php 
					if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
					?>
					<div class="col-xs-5 promo-choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
			</div>
		<?php } ?>
	</div>
	
	<?php echo $this->render("/ajax/caddyaccountrightnoslide.phtml"); ?>
</div>

<?php if ($prefixClass == "") { ?>
<div class="col-xs-12 indexBox3_title" style="margin-top: 10px;margin-bottom: 10px">
  <h1 class="eco-title-h1">
    <?php echo $listCat['NOM']; ?>
  </h1>
</div>
<?php } ?>

<div class="col-xs-12 noPadding">
	<?php 
	$i = 0;
	$filter = new Zend_Filter_StringToUpper();
	if (!empty($listCat['SUBS'])) {
		
	foreach ($listCat['SUBS'] as $row) {
		$nbProducts = $row['NBPRODUCT'];
		$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory2($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
    
		$desc = $this->escape($row['DESCRIPTION']);
		$name = $this->escape($row['NOM']);
		$filter = new Zend_Filter();
		$filter	->addFilter(new Zend_Filter_StripTags())
		->addFilter(new Zend_Filter_StringTrim());
		$descFiltered = $filter->filter($desc);
		?>
		<div class="col-md-3 col-sm-4 col-xs-12 categorieBoxContent">
			<div class="categorieBox text-center">
				<?php if ($prefixClass == "eco-") { ?>
					<div class="eco-tree"></div>
				<?php } ?>
				<div class="col-xs-10 col-xs-offset-1 noPadding">
					<center><a class="tooltips" data-placement="bottom" title="<?php echo $descFiltered;?>" href="<?php echo $link;?>" >
						<span class="categorieBoxImg">
							<img src="<?php echo '/'.$this->escape($row['URL']); ?>" alt="<?php echo $name; ?>"/>
						</span>
					</a></center>
				</div>
				<div class="col-xs-12 <?php echo $prefixClass; ?>categorieBoxTitleContent" >
					<div>
						<a class="<?php echo $prefixClass; ?>categorieBoxTitle" href="<?php echo $link;?>" >
							<?php echo $name; ?>
						</a>
					</div>
				</div>
				<div class="col-xs-12 categorieBoxTitleSubContent">
					<a class="<?php echo $prefixClass; ?>categorieBoxTitle2 tooltips" data-placement="bottom" title="<?php echo $descFiltered;?>" href="<?php echo $link;?>">
						<?php if ($nbProducts > 1) { ?>
						Voir les <?php echo $nbProducts;?> mod�les disponibles
						<?php } else if ($nbProducts == 1) { ?>
						Voir le mod�le disponible
						<?php } else if ($nbProducts == 0) { ?>
						Voir la gamme
						<?php } 
						?>
						<img src="/business/image/<?php echo $prefixClass; ?>category-icon.png" alt="<?php echo $descFiltered; ?>" style="margin-left: 10px;">
					</a>			
				</div>
			</div>
		</div>
	<?php } 
	}
	?>
</div>