<article class="item" data-source="<?= $item->filename ?>" onclick="yc_clicItem(this)" data-id="<?= isset($num) ? sprintf("%'.06d", $num) : 100000 ?>" data-date="<?= $item->get('date_creation',date('Y-m-d')) ?>">
    <div class="item-grid">
        <div><img src="app/images/defaut.jpg" data-source="<?php
    $im=new thumbnail_tool(CHEMIN,CACHE_VIGNETTES,APP."images/");
         $im->set_source(IMPORTS.$item->getFile('illustration'));
         echo $im->vignette(VIGNETTE_W,VIGNETTE_H,true); ?>" class="item-illu img-object-fit"></div>
        <div>
            <h2 data-contenu='titre' class="fs-medium ff-bold-primary mb-1"><?= $item->get('titre') ?></h2>

            <div class="item-info ff-bold-secondary item-techspecs mb-1" data-contenu="techspecs"><?= $item->get("techspecs") ?> — <?= formate_date($item->get("date_oeuvre"),"year") ?></div>


            <div class="item-description">
                <?= $item->getTextPart("texte",300) ?>
            </div>

            <div class="fs-small ff-bold-secondary item-infos mt-3">
                <span class="item-medium" data-contenu="medium"><?= $item->getPropre("medium") ?></span>  
            </div>
        </div>
    </div>
</article> 