Current File : /home/karenpetzb/application/modules/default/views/scripts/produits/categorie_gamma.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:
case 4:
case 5:
?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/style.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/stylesite.css"/>
<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/modernizr.custom.70736.js"></script>
<noscript><link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/noJS.css"/></noscript>
<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquery.masonry.min.js"></script>
<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/js-url.min.js"></script>
<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquerypp.custom.js"></script>
<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/gamma.js"></script>
<div id="page_top"></div>
<div class="scroll-pane">
<div class="page_block">
<div class="gamma-container gamma-loading" id="gamma-container">
<ul class="gamma-gallery">
<?php foreach ($this->listAllGalleries as $row) {
if (!empty($row['URL'])) { ?>
<li>
<div data-alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>" data-max-width="1800" data-max-height="1350">
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 641);?>" data-min-width="700"></div>
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 295);?>" data-min-width="300"></div>
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>"></div>
<noscript>
<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
</noscript>
</div>
</li>
<?php } } ?>
</ul>
<div class="gamma-overlay"></div>
</div>
</div>
<script type="text/javascript">
$(function() {
var GammaSettings = {
viewport : [ {
width : 600,
columns : 3
}, {
width : 0,
columns : 2
} ]
};
Gamma.init( GammaSettings, fncallback );
function fncallback() { }
});
</script>
<?php
break;
case 6:?>
<div id="page_top"></div>
<div class="scroll-pane">
<div class="page_block">
<p class="margin_1line"> </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">© <?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">© <?php echo $this->siteName; ?></div>
</div>
<?php } ?>
</div>
<?php } ?>