{"id":1171,"date":"2025-08-01T09:42:20","date_gmt":"2025-08-01T07:42:20","guid":{"rendered":"https:\/\/formation-defiweb.fr\/index.php\/forum-copy\/"},"modified":"2025-08-01T14:39:07","modified_gmt":"2025-08-01T12:39:07","slug":"community-2-2","status":"publish","type":"page","link":"https:\/\/formation-defiweb.fr\/index.php\/community-2-2\/","title":{"rendered":"Cr\u00e9er un topic"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-1171\" data-postid=\"1171\" class=\"themify_builder_content themify_builder_content-1171 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_0227772 tb_first tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_qpyk772 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_9xsh773 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <div>\n  <label for=\"topic-title\">Titre du topic :<\/label>\n  <input type=\"text\" id=\"topic-title\" placeholder=\"Entrez le titre\">\n\n  <label for=\"topic-desc\">Description :<\/label>\n  <textarea id=\"topic-desc\" placeholder=\"Entrez la description\"><\/textarea>\n\n  <button id=\"createTopicBtn\">Envoyer<\/button>\n<\/div>\n\n<div class=\"jtcc_topic_grid\"><\/div>\n\n<script>\ndocument.getElementById(\"createTopicBtn\").addEventListener(\"click\", function () {\n  const titleInput = document.getElementById(\"topic-title\").value.trim();\n  if (titleInput === \"\") return;\n\n  const grid = document.querySelector(\".jtcc_topic_grid\");\n  const newCard = document.createElement(\"div\");\n  newCard.className = \"jtcc_topic_card\";\n\n  const newTitle = document.createElement(\"h3\");\n  newTitle.textContent = titleInput;\n\n  newCard.appendChild(newTitle);\n  grid.appendChild(newCard);\n\n  \/\/ Optionnel : reset les champs\n  document.getElementById(\"topic-title\").value = \"\";\n  document.getElementById(\"topic-desc\").value = \"\";\n});\n<\/script>    <\/div>\n<\/div>\n<!-- \/module plain text -->        <\/div>\n                        <\/div>\n        <\/div>\n        <\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"close","ping_status":"close","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","css_class_manager_body_classes":"","css_class_manager_use_in_post_loop":false},"class_list":["post-1171","page","type-page","status-publish","hentry"],"builder_content":"<label for=\"topic-title\">Titre du topic :<\/label> <input type=\"text\" id=\"topic-title\" placeholder=\"Entrez le titre\">\n <label for=\"topic-desc\">Description :<\/label> <textarea id=\"topic-desc\" placeholder=\"Entrez la description\"><\/textarea>\n <button id=\"createTopicBtn\">Envoyer<\/button>","_links":{"self":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1171"}],"version-history":[{"count":11,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1171\/revisions"}],"predecessor-version":[{"id":1651,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1171\/revisions\/1651"}],"wp:attachment":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}