96 lines
3.0 KiB
PHP
Executable File
96 lines
3.0 KiB
PHP
Executable File
<?php
|
||
/*-----------------------------------------------------*/
|
||
include_once("_inc/config.php");
|
||
/*-----------------------------------------------------*/
|
||
|
||
$_RUBRIQUE = "nouveautes";
|
||
|
||
/*-----------------------------------------------------*/
|
||
include_once("_inc/assets/metas.php");
|
||
include_once("_inc/assets/top.php");
|
||
/*-----------------------------------------------------*/
|
||
?>
|
||
|
||
|
||
<div class="page">
|
||
|
||
<div id="arianne">
|
||
<a href="home.php">Accueil</a> |
|
||
<a href="nouveautes.php">Formez-vous</a> |
|
||
<span class="current">Nouveautés</span>
|
||
</div>
|
||
|
||
<div class="page_menu">
|
||
<a href="nouveautes.php" class="current"><span>Nouveautés</span></a>
|
||
<a href="fiches-produits.php"><span>Fiches produits</span></a>
|
||
<a href="ecole-des-sorciers.php"><span>L'école des <img src="_img/produits/sorciers.png" alt="sorciers" /></span></a>
|
||
</div>
|
||
|
||
<div class="clear"></div>
|
||
|
||
<div class="produits_contents">
|
||
<?php
|
||
$items = getFrontNewProduits();
|
||
foreach($items as $item){
|
||
?>
|
||
|
||
<div class="produitItem">
|
||
<div class="category"><div><?php echo $item -> category; ?></div></div>
|
||
<div class="description" style="background-image:url(files/produits/thumbs/<?php echo $item -> id; ?>.jpg);">
|
||
<div class="txt"><?php echo $item -> description; ?></div>
|
||
</div>
|
||
<div class="btns">
|
||
<?php
|
||
$pdfPath = "files/produits/pdf/" . $item -> id . ".pdf";
|
||
if(file_exists($pdfPath)){
|
||
?>
|
||
<a href="mailto:?body=<?php echo $GLOBALS['siteRoot'] . $pdfPath; ?>" class="send">envoyer</a>
|
||
<a href="#pdf_viewer?file=<?php echo $pdfPath; ?>" rel="popin" class="pdf">voir la fiche</a>
|
||
<?php }else{ ?>
|
||
<em>fiche bientôt disponible</em>
|
||
<?php } ?>
|
||
</div>
|
||
<div class="clear"></div>
|
||
</div>
|
||
|
||
<?php } ?>
|
||
|
||
<div class="clear"></div>
|
||
|
||
|
||
<div class="center" style="margin:10px 0 40px 0;">
|
||
<a href="?donwloadPack=produits/pdf&packName=fiches_produits&filter=newProducts&type=produit" class="download_all">TÉLÉCHARGEZ L’ENSEMBLE DES FICHES nouveautés</a>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="clear"></div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
$(".produitItem .category").each(function(index, element) {
|
||
var d = $(this).children("div");
|
||
var mt = Math.round((44 - d.innerHeight()) / 2);
|
||
d.css("margin-top",mt + "px");
|
||
});
|
||
|
||
$(".produitItem .btns a").mouseover(function(e) {
|
||
TweenLite.to($(this),0.1,{backgroundColor:"#b2d11a"});
|
||
});
|
||
$(".produitItem .btns a").mouseout(function(e) {
|
||
TweenLite.to($(this),0.3,{backgroundColor:"#ebebeb"});
|
||
});
|
||
|
||
</script>
|
||
|
||
<?php
|
||
|
||
/*-----------------------------------------------------*/
|
||
include_once("_inc/assets/footer.php");
|
||
/*-----------------------------------------------------*/
|
||
?>
|