2024-10-02
This commit is contained in:
parent
9fc94a84c3
commit
59a236f0fa
45 changed files with 230 additions and 106 deletions
|
|
@ -13,13 +13,13 @@ require_once __DIR__ . "/src/inc/TraitementInformations.php";
|
|||
$contexte = Timber::context();
|
||||
$modeles = ["boutique.twig"];
|
||||
|
||||
// Informations brutes des Produits
|
||||
/** @var array<WC_Product> $informations_produits Les informations brutes des Produits. */
|
||||
$informations_produits = wc_get_products([
|
||||
"orderby" => "date",
|
||||
"order" => "DESC",
|
||||
]);
|
||||
// Informations nécessaires pour la grille des Produits
|
||||
$produits = array_map($callback = "recupere_informations_produit_shop", $array = $informations_produits);
|
||||
/** @var InformationsProduitShop $produits Les informations strictement nécessaires pour la grille des Produits. */
|
||||
$produits = array_map(callback: "recupere_informations_produit_shop", array: $informations_produits);
|
||||
$contexte["produits"] = $produits;
|
||||
|
||||
// Rendu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue