Current File : /home/karenpetzb/application/modules/default/views/scripts/produits/categorie.phtml |
<?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 }
$isGallerie = isset($currentCat['ID_THEME']) && !empty($currentCat['ID_THEME']) && isset($this->listAllGalleries) && !empty($this->listAllGalleries);
$isGallerieSlide = $isGallerie && $currentCat['ID_THEME'] == 6;
$isArticles = isset($this->listAllArticles) && !empty($this->listAllArticles);// && !$isGallerieSlide;
$subsCategory = $this->currentCatSubs['SUBS'];
if (sizeof($subsCategory) > 0) {
?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/style.css"/>
<div id="page_top"></div>
<div class="scroll-pane">
<div class="page_block" >
<div class="gamma-container " id="gamma-container" >
<ul class="gamma-gallery">
<?php
$isLeft = true;
foreach ($subsCategory as $row) {
$title = $this->escape($row['NOM']);
$description = $this->escape($row['DESCRIPTION']);
$link_href = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
?>
<li >
<div style="float:left;width:100%;padding:30px 0 30px 0">
<div style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>">
<?php if (!empty($row['URL'])) { ?>
<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" />
<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" alt="<?php echo $this->escape($row['NOM']);?>"/>
</a>
<?php } else { ?>
<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" /> <?php echo $title;?> </a>
<?php } ?>
</div>
<div style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>; <?php if ($isLeft) { echo "margin:0 0 0 30px"; } else {echo "margin:0 30px 0 0";}?> ; width: 350px; text-align: justify; text-justify: inter-word;">
<?php if (!empty($row['URL'])) { ?>
<div style="clear:both">
<a style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>;" href="<?php echo $link_href;?>" alt="<?php echo $title;?>" />
<?php echo $title;?>
</a>
</div><br /><br />
<?php } ?>
<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" style="text-decoration:none;color:#4F4F4F"/><p ><?php echo $description;?> </p> </a>
</div>
</div>
</li>
<?php
$isLeft = !$isLeft;
} ?>
</ul>
<div class="gamma-overlay"></div>
</div>
</div> <!-- page_block -->
<div class="page-footer">© <?php echo $this->siteName; ?></div>
</div> <!-- scroll-pane -->
<?php
} else {
if ($isArticles) { ?>
<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>
<?php if (!$isGallerie) { ?>
</div> <!-- page_block -->
<div class="page-footer">© <?php echo $this->siteName; ?></div>
</div> <!-- scroll-pane -->
<?php } ?>
<?php }
if ($isGallerie) { ?>
<?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"/>
<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>
<?php if (!$isArticles) { ?>
<div class="scroll-pane">
<div class="page_block" >
<?php } ?>
<div class="gamma-container gamma-loading" id="gamma-container">
<ul class="gamma-gallery">
<?php foreach ($this->listAllGalleries as $row) {
if (!empty($row['URL'])) {
$title = $this->escape($row['NOM']);
$description = $this->escape($row['CONTENT_SHORT']);
if (!empty($row['CONTENT_LONG'])) {
if (!empty($description)) {
$description .= " - ";
}
$description .= $this->escape($row['CONTENT_LONG']);
}
?>
<li>
<div data-alt="<?php echo $description;?>" data-description="<h3><?php echo $this->escape($row['CONTENT_SHORT']); ?></h3>" data-max-width="1800" data-max-height="1350">
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" data-min-width="700"></div>
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 641);?>" data-min-width="600"></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'], 180);?>" data-min-width="140"></div>
<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 100);?>"></div>
<noscript>
<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 100);?>" alt="<?php echo $description;?>"/>
</noscript>
</div>
</li>
<?php } } ?>
</ul>
<div class="gamma-overlay"></div>
</div>
<?php if (!$isArticles) { ?>
</div> <!-- page_block -->
<div class="page-footer">© <?php echo $this->siteName; ?></div>
</div> <!-- scroll-pane -->
<?php } ?>
<script type="text/javascript">
$(function() {
var GammaSettings = {
viewport : [ {
width : 600,
columns : 3
}, {
width : 0,
columns : 2
} ],
overlayAnimated : false,
};
Gamma.init( GammaSettings, fncallback );
function fncallback() {
var element = $('.scroll-pane').jScrollPane();
var api = element.data('jsp');
api.reinitialise();
}
});
</script>
<?php
break;
case 6:?>
<div id="page_top"></div>
<?php if (!$isArticles) { ?>
<div class="scroll-pane">
<div class="page_block">
<?php } ?>
<div class="col-md-12">
<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>
<?php if (!$isArticles) { ?>
</div> <!-- page_block -->
<div class="page-footer">© <?php echo $this->siteName; ?></div>
</div> <!-- scroll-pane -->
<?php } ?>
<?php
break;
}
}
if ($isArticles && $isGallerie) { ?>
</div> <!-- page_block -->
<div class="page-footer">© <?php echo $this->siteName; ?></div>
</div> <!-- scroll-pane -->
<?php }
} ?>
</div>
<?php } ?>