Current File : /home/karenpetzb/application/modules/default/views/scripts/produits/categorie_default_theme.phtml
<?xml version="1.0" encoding="Windows-1252"?>


<?php  
	$currentCat = array();
	$currentCat = $this->currentCat;
?> 

<?php if (isset($currentCat['ID_THEME']) && $currentCat['ID_THEME'] == 2) {
	
	echo $this->render("/index/index.phtml");
	
} else { ?>

	<div id="page">

	<?php   
		if (isset($currentCat['NOM']) && !empty($currentCat['NOM'])) { ?>
		<div class="big_header"><h1 class="big_header"><?php echo $currentCat['NOM'];  ?></h1></div>
	<?php } 

	if (isset($currentCat['ID_THEME']) && !empty($currentCat['ID_THEME']) && isset($this->listAllGalleries) && !empty($this->listAllGalleries)) { ?>

	<?php
		$currentTheme = (int)$currentCat['ID_THEME'];
		$currentWithThumb = 0;
		if (isset($this->FeatureSiteThemeCms) && !empty($this->FeatureSiteThemeCms)) { 
			foreach ($this->FeatureSiteThemeCms as $row) { 
				if ($row['ID_THEME'] == $currentTheme && isset($row['WIDTH_THUMB']) && $row['WIDTH_THUMB'] > 0) {
					$currentWithThumb = $row['WIDTH_THUMB'];
					break;
				}
			} 
		}
		
		switch ($currentTheme) { 
			case 3:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio2c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:310px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 4:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio3c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:200px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 5:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio4c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:142px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 6:?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<p class="margin_1line">&nbsp;</p>
					<p class="margin_1line margin_bottom_1line"><?php echo $currentCat['DESCRIPTION']; ?></p>
					<div class="responsiveslides-div" style="width:641px; height: 404px;">
						<ul class="rslides">
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
							<li><img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" /></li>
						<?php } } ?>  
						</ul>
					</div>	
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>		
				<?php
				break;
		}
	} else if (isset($this->listAllArticles) && !empty($this->listAllArticles)) { ?>

			<div class="submenu">
			<?php foreach ($this->listAllArticles as $row) { 
				if (!empty($row['CONTENT_SHORT'])) { ?>
				<a href="#article-<?php echo $row['ID'];  ?>" class="custom_font filter"><?php echo $row['CONTENT_SHORT'];  ?></a>
			<?php }
			} ?>
			</div>
			<div class="scroll-pane">
				<div class="page_block">

					<?php foreach ($this->listAllArticles as $row) { ?>
					<div id="article-<?php echo $row['ID'];  ?>">
						<?php echo $row['CONTENT']; ?>
					</div>
					<?php } ?>
					<div class="clear"></div>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>

	<?php } ?>
	</div>
<?php } ?>