{"id":13,"date":"2024-09-07T15:34:53","date_gmt":"2024-09-07T13:34:53","guid":{"rendered":"https:\/\/ewlo.olwedev.ovh\/?page_id=13"},"modified":"2024-09-07T21:40:48","modified_gmt":"2024-09-07T19:40:48","slug":"accueil","status":"publish","type":"page","link":"https:\/\/ewlo.olwedev.ovh\/","title":{"rendered":"Accueil"},"content":{"rendered":"<div class=\"brz-root__container brz-reset-all brz\">{{ brizy_dc_global_blocks position=&rsquo;top&rsquo; }}<\/p>\n<section id=\"d2AgcpfLL328\" class=\"brz-section brz-css-s_rMp\">\n<div class=\"brz-section__content brz-section--boxed brz-css-sKvdq\" data-brz-custom-id=\"cXSDMWINQV4a\">\n<div class=\"brz-container brz-css-kYe_w\">\n<div id=\"\" class=\"brz-css-dwXbA brz-wrapper\">\n<div class=\"brz-wp-shortcode brz-css-k8JeC\" data-brz-custom-id=\"l5iWkTbm0ldZ\">\n<div>\t\t\t\n\t\t\t<div>Liste des produits<\/div>\n\n\t\t\t<div class=\"code-editor-post\">\n\t\t\t\t<div id=\"editor-82\" class=\"ace-editor\">\r\n\/\/ Arguments pour la requ\u00eate des produits WooCommerce\r\n    $args = array(\r\n        &#039;post_type&#039; =&gt; &#039;product&#039;,\r\n        &#039;posts_per_page&#039; =&gt; 10, \/\/ Nombre de produits \u00e0 afficher\r\n    );\r\n\r\n    \/\/ Nouvelle requ\u00eate WP_Query pour obtenir les produits\r\n    $loop = new WP_Query($args);\r\n\r\n    \/\/ V\u00e9rifier si des produits ont \u00e9t\u00e9 trouv\u00e9s\r\n    if ($loop-&gt;have_posts()) {\r\n        echo &#039;&lt;div class=&quot;woocommerce-products-grid&quot;&gt;&#039;; \/\/ Conteneur pour les produits\r\n\r\n        while ($loop-&gt;have_posts()) : $loop-&gt;the_post();\r\n            global $product; \/\/ Obtenir l&#039;objet produit global\r\n            ?&gt;\r\n            &lt;div class=&quot;woocommerce-product&quot;&gt;\r\n                &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;\r\n                    &lt;?php echo $product-&gt;get_image(); \/\/ Image du produit ?&gt;\r\n                    &lt;h2 class=&quot;woocommerce-product-title&quot;&gt;&lt;?php the_title(); \/\/ Titre du produit ?&gt;&lt;\/h2&gt;\r\n\t\t\t\t\t&lt;p&gt;\r\n\t\t\t\t\t\t&lt;?= $product-&gt;get_description() ?&gt;\r\n\t\t\t\t\t&lt;\/p&gt;\r\n                &lt;\/a&gt;\r\n                &lt;span class=&quot;woocommerce-product-price&quot;&gt;&lt;?php echo $product-&gt;get_price_html(); \/\/ Prix du produit ?&gt;&lt;\/span&gt;\r\n            &lt;\/div&gt;\r\n            &lt;?php\r\n        endwhile;\r\n\r\n        echo &#039;&lt;\/div&gt;&#039;; \/\/ Fin du conteneur des produits\r\n    } else {\r\n        echo &#039;&lt;p&gt;Aucun produit trouv\u00e9.&lt;\/p&gt;&#039;;\r\n    }\r\n\r\n    \/\/ R\u00e9initialiser les donn\u00e9es de la requ\u00eate post\r\n    wp_reset_postdata();\r\n<\/div>\n\t\t\t\t<div class=\"editor-preview\"><div class=\"woocommerce-products-grid\">            <div class=\"woocommerce-product\">\r\n                <a href=\"https:\/\/ewlo.olwedev.ovh\/?product=test-1\">\r\n                    <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/ewlo.olwedev.ovh\/wp-content\/uploads\/2024\/09\/bain-originel-300x300.webp\" class=\"attachment-woocommerce_thumbnail size-woocommerce_thumbnail\" alt=\"\" srcset=\"https:\/\/ewlo.olwedev.ovh\/wp-content\/uploads\/2024\/09\/bain-originel-300x300.webp 300w, https:\/\/ewlo.olwedev.ovh\/wp-content\/uploads\/2024\/09\/bain-originel-150x150.webp 150w, https:\/\/ewlo.olwedev.ovh\/wp-content\/uploads\/2024\/09\/bain-originel-500x500.webp 500w, https:\/\/ewlo.olwedev.ovh\/wp-content\/uploads\/2024\/09\/bain-originel-100x100.webp 100w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>                    <h2 class=\"woocommerce-product-title\">Bellevue<\/h2>\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t\tCe mod\u00e8le int\u00e9gralement en bois a \u00e9t\u00e9 pourvu de syst\u00e8me de leds pour le romantisme et de bulles pour votre d\u00e9tente. Il vous offrira une relation privil\u00e9gi\u00e9e avec le noble mat\u00e9riau qu'est le bois\t\t\t\t\t<\/p>\r\n                <\/a>\r\n                <span class=\"woocommerce-product-price\"><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&#36;<\/span>22.00<\/bdi><\/span><\/span>\r\n            <\/div>\r\n            <\/div><\/div>\n\t\t\t<\/div>\n\n\t\t\t\t\t\t\n\t\t\t<div>Mon premier extrait de code<\/div>\n\n\t\t\t<div class=\"code-editor-post\">\n\t\t\t\t<div id=\"editor-29\" class=\"ace-editor\">\/\/test\r\necho &#039;ok&#039;;<\/div>\n\t\t\t\t<div class=\"editor-preview\">ok<\/div>\n\t\t\t<\/div>\n\n\t\t\t<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<p>{{ brizy_dc_global_blocks position=&rsquo;bottom&rsquo; }}<\/p><\/div>\n<p>    <!-- version:1725738048 --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>{{ brizy_dc_global_blocks position=&rsquo;top&rsquo; }} {{ brizy_dc_global_blocks position=&rsquo;bottom&rsquo; }}<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-13","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/pages\/13"}],"collection":[{"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":5,"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/pages\/13\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=\/wp\/v2\/pages\/13\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/ewlo.olwedev.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}