{"id":13523,"date":"2023-08-16T07:51:21","date_gmt":"2023-08-16T07:51:21","guid":{"rendered":"https:\/\/channelnews.be\/dashboard-documents-form\/"},"modified":"2023-09-11T05:32:41","modified_gmt":"2023-09-11T05:32:41","slug":"dashboard-documents-form","status":"publish","type":"page","link":"https:\/\/channelnews.be\/nl\/dashboard-documents-form\/","title":{"rendered":"Dashboard documents form"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"13523\" class=\"elementor elementor-13523 elementor-11697\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ebb2e27 maxw elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ebb2e27\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-narrow\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-52e56b92\" data-id=\"52e56b92\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2fcdd08a elementor-widget elementor-widget-foxiz-sidebar-menu\" data-id=\"2fcdd08a\" data-element_type=\"widget\" data-widget_type=\"foxiz-sidebar-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<ul id=\"menu-menu-dashboard-nl\" class=\"sidebar-menu\"><li id=\"menu-item-16793\" class=\"menu-dashboard menu-house menu-item menu-item-type-custom menu-item-object-custom menu-item-16793\"><a href=\"https:\/\/channelnews.be\/nl\/backoffice\/?action=logout&#038;redirect_to=https:\/\/channelnews.be\/nl\"><span><span class=\"menu-item-svg\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" class=\"icon-svg\" height=\"256\" width=\"256\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2023\/08\/user.svg\" alt=\"Sign Out\"><\/span>Sign Out<\/span><\/a><\/li>\n<\/ul>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-66 elementor-top-column elementor-element elementor-element-12936615\" data-id=\"12936615\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-12fca58 hbtn-bleur-line-grise border-radius-20 tab-ombre elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"12fca58\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-f86a92c\" data-id=\"f86a92c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2ecc9b1 elementor-widget elementor-widget-foxiz-heading\" data-id=\"2ecc9b1\" data-element_type=\"widget\" data-widget_type=\"foxiz-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div id=\"uid_2ecc9b1\" class=\"block-h heading-layout-1\"><div class=\"heading-inner\"><h3 class=\"heading-title\"><a href=\"https:\/\/channelnews.be\/nl\/dashboard-documents-form\/?action=edit\">Document<\/a><\/h3><div class=\"heading-tagline h6\"><a class=\"heading-tagline-label\" href=\"https:\/\/channelnews.be\/nl\/dashboard-documents-form\/?action=edit\">New<\/a><i class=\"rbi rbi-cright heading-tagline-icon\" aria-hidden=\"true\"><\/i><\/div><\/div><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-962ed2a elementor-widget elementor-widget-shortcode\" data-id=\"962ed2a\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t        <div class=\"widj-content\">\n            <div id=\"postbox\" class=\"widj-col-70\">\n                <form id=\"form_post\" name=\"form_post\" method=\"post\" action=\"\" class=\"dashboard-form\" enctype=\"multipart\/form-data\">\n\n                    <!-- 1. S\u00e9lection du Partner si l'utilisateur a les droits -->\n                    \n                    <!-- 2. Affichage unique des cat\u00e9gories (sauf bp_doc) -->\n                    \n                    <!-- 3. Affichage des tags pour les posts standards -->\n                    \n                    <!-- 4. Image Upload -->\n                    <div class=\"white\">\n                        \n\t\t<div class=\"file-drop-area\" data-banner=\"\" data-url=\"https:\/\/channelnews.be\/wp-admin\/admin-ajax.php\" data-type=\"bp_doc\" data-id=\"\"  data-autosave=\"false\" >\n\t\t<label class=\"fake-btn h-120\"  for=\"fileElem30\" >Choose files or drop files here\n\t\t<span class=\"file-msg\"><br>Maximum File size: 50 mb\n\t\t<img decoding=\"async\" class=\"previewImg\" src=\"\">\n\t\t<\/span>\n\t\t<div class=\"item-delete\"><i class=\"rbi rbi-trash\"><\/i><\/div>\n\t\t<\/label>\n\t\t<input class=\"fileElem\" style=\"display:none\" id=\"fileElem30\" value=\"\" accept=\"image\/*\"  type=\"file\">\n\t\t<\/div>                     <\/div>\n                                            <p>\n                            <input type=\"file\" name=\"image\" id=\"image\" accept=\"image\/*\" required>\n                        <\/p>\n                    \t\t\t\t\t\n                    <!-- 5. Titre et Description en NL -->\n\t\t\t\t \n\t\t\t\t\t\n                    <p>\n                        <label for=\"titre_NL\">\n                            Title NL <sup>*<\/sup>\n                        <\/label><br \/>\n                        <input type=\"text\" id=\"titre_NL\" value=\"\" tabindex=\"1\" size=\"20\" name=\"titre_NL\" \/>\n\t\t\t\t\t\n                    <\/p>\n                    <div >\n                        <label for=\"description_NL\">Beschrijving NL <sup>*<\/sup><\/label><br \/>\n                        <div id=\"wp-description_NL-wrap\" class=\"wp-core-ui wp-editor-wrap tmce-active\"><link rel='stylesheet' id='dashicons-css' href='https:\/\/channelnews.be\/wp-includes\/css\/dashicons.min.css?ver=6.7.2' media='all' \/>\n<link rel='stylesheet' id='editor-buttons-css' href='https:\/\/channelnews.be\/wp-includes\/css\/editor.min.css?ver=6.7.2' media='all' \/>\n<div id=\"wp-description_NL-editor-container\" class=\"wp-editor-container\"><textarea class=\"wp-editor-area\" rows=\"8\" autocomplete=\"off\" cols=\"40\" name=\"description_NL\" id=\"description_NL\"><\/textarea><\/div>\n<\/div>\n\n                    <\/div>\n\t\t\t\t \n                    <!-- 6. Titre et Description en FR -->\n                    <p>\n                        <label for=\"titre_FR\">\n                            Title FR <sup>*<\/sup>\n                        <\/label><br \/>\n                        <input type=\"text\" id=\"titre_FR\" value=\"\" tabindex=\"1\" size=\"20\" name=\"titre_FR\" \/>\n\n\t\t\t\t\t\t\n                    <\/p>\n                    <div >\n                        <label for=\"description_FR\">Beschrijving FR <sup>*<\/sup><\/label><br \/>\n                        <div id=\"wp-description_FR-wrap\" class=\"wp-core-ui wp-editor-wrap tmce-active\"><div id=\"wp-description_FR-editor-container\" class=\"wp-editor-container\"><textarea class=\"wp-editor-area\" rows=\"8\" autocomplete=\"off\" cols=\"40\" name=\"description_FR\" id=\"description_FR\"><\/textarea><\/div>\n<\/div>\n\n                    <\/div>\n\t\t\t\t\t<p><br><\/p>\n\t\t\t\t\t\t\n                    <!-- 7. Champs sp\u00e9cifiques selon le type de post -->\n\n                    <!-- Pour job_listing -->\n                    \n                    <!-- Pour tribe_events -->\n                    \n                    <!-- Pour partner-team -->\n                    \n                    <!-- 8. Bouton de sauvegarde -->\n                    <p align=\"right\">\n                        <span id=\"errorfeedback\" class=\"errorfeedback\"><\/span>\n                        <input type=\"button\" value=\"Save\" tabindex=\"6\" class=\"btn-sub\" id=\"submit_form\" name=\"button\" \/>\n                        <span id=\"preloader\" class=\"hide\">\n                            <img decoding=\"async\" width=\"60px\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2023\/08\/preloader.gif\">\n                        <\/span>\n                    <\/p>\n  \n                    <input type=\"hidden\" name=\"operation_FR\" value=\"f_add_post\" \/>\n                    <input type=\"hidden\" name=\"operation_NL\" value=\"f_add_post\" \/>\n                    <input type=\"hidden\" name=\"post_type\" id=\"post_type\" value=\"bp_doc\" \/>\n                    <input type=\"hidden\" name=\"pid_FR\" value=\"\" \/>\n                    <input type=\"hidden\" name=\"pid_NL\" value=\"\" \/>\n                    <input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"f470ea2e0d\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/nl\/wp-json\/wp\/v2\/pages\/13523\" \/>                <\/form>\n\n                <!-- Zone de gestion des images t\u00e9l\u00e9charg\u00e9es -->\n                <div id=\"custom-modal\" class=\"custom-modal\">\n                    <p class=\"red\" id=\"feedback\"><\/p>\n                    <div class=\"dropzone\" id=\"dropzone\">\n                        <p>Sleep afbeeldingen hierheen of klik om te downloaden.<\/p>\n                        <input type=\"file\" id=\"file-input-image\" class=\"file-input\" accept=\"image\/*\">\n                        <label for=\"file-input-image\" class=\"file-input-label\">Select a file<\/label>\n                    <\/div>\n                    <h2>Lijst met gedownloade afbeeldingen<\/h2>\n                    <div id=\"image-list\" class=\"image-grid\">\n                        <img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-24-a-14.36.23.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-24-a-14.36.23\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-23-a-12.58.38.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-23-a-12.58.38\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-23-a-12.37.56.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-23-a-12.37.56\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-22-a-16.15.34.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-22-a-16.15.34\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-20-a-11.35.32.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-20-a-11.35.32\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-17-a-18.25.39.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-17-a-18.25.39\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-17-a-15.43.01.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-17-a-15.43.01\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-17-a-14.38.35.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-17-a-14.38.35\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-17-a-12.45.20.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-17-a-12.45.20\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Fortinet_01.png\" class=\"modal-image\" alt=\"Fortinet_01\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-14-a-17.54.49.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-14-a-17.54.49\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-13-a-17.09.06.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-13-a-17.09.06\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-10-a-12.10.33.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-10-a-12.10.33\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Brian-Lanigan.png\" class=\"modal-image\" alt=\"Brian-Lanigan\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-10-a-11.03.16.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-10-a-11.03.16\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Peter-Beurghs.jpeg\" class=\"modal-image\" alt=\"Peter Beurghs\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/chrostophe-baroux.jpeg\" class=\"modal-image\" alt=\"chrostophe baroux\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-09-a-16.07.36.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-09-a-16.07.36\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Jelmer-vet.jpeg\" class=\"modal-image\" alt=\"Jelmer vet\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Kees-Ruyters.jpeg\" class=\"modal-image\" alt=\"Kees Ruyters\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Heidi-deraeve.jpeg\" class=\"modal-image\" alt=\"Heidi deraeve\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Michael-vdrsijpt.png\" class=\"modal-image\" alt=\"Michael vdrsijpt\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-09-a-15.30.06.png\" class=\"modal-image\" alt=\"Capture-decran-2026-07-09-a-15.30.06\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-09-a-15.32.31.png\" class=\"modal-image\" alt=\"Capture d\u2019e\u0301cran 2026-07-09 a\u0300 15.32.31\"><img decoding=\"async\" src=\"https:\/\/channelnews.be\/wp-content\/uploads\/2026\/07\/Capture-decran-2026-07-09-a-15.32.20.png\" class=\"modal-image\" alt=\"Capture d\u2019e\u0301cran 2026-07-09 a\u0300 15.32.20\">                    <\/div>\n                    <span id=\"close-modal-frt\" class=\"modal-close-icon\"><\/span>\n                <\/div>\n\n                <!-- (Les scripts de gestion de la modal et de l'upload d'images restent inchang\u00e9s) -->\n\t\t\t\t<script>\n\t\t\t\t\t\t\t(function($) { \n\n\t\t\t\t\t\t\t\tjQuery(document).ready(function($) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\/\/ Initialisation de la fen\u00eatre modale\n\t\t\t\t\t\t\t\t\t$('#custom-modal').dialog({\n\t\t\t\t\t\t\t\t\t\tautoOpen: false,\n\t\t\t\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\t\t\t\twidth: 600,\n\t\t\t\t\t\t\t\t\t\theight: 500,\n\t\t\t\t\t\t\t\t\t\tbuttons: {\n\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\"Annuler\": function() {\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Fermez la fen\u00eatre modale\n\t\t\t\t\t\t\t\t\t\t\t\t$(this).dialog(\"close\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\topen: function(event, ui) {\n\t\t\t\t\t\t\t\t\t\t\t\/\/ Rendre la fen\u00eatre modale draggable\n\t\t\t\t\t\t\t\t\t\t\t$(this).parent().draggable({\n\t\t\t\t\t\t\t\t\t\t\t\thandle: \".ui-dialog-titlebar\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\/\/ Zone de glisser-d\u00e9poser\n\t\t\t\t\t\t\t\t\tvar dropzone = $('.dropzone');\n\n\t\t\t\t\t\t\t\t\tdropzone.on('dragover', function(e) {\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\t\t$(this).addClass('dragover');\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tdropzone.on('dragleave', function(e) {\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\t\t$(this).removeClass('dragover');\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tdropzone.on('drop', function(e) {\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\t\t$(this).removeClass('dragover');\n\n\t\t\t\t\t\t\t\t\t\tvar files = e.originalEvent.dataTransfer.files;\n\t\t\t\t\t\t\t\t\t\thandleFiles(files);\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\/\/ Champ de t\u00e9l\u00e9chargement de fichiers\n\t\t\t\t\t\t\t\t\tvar fileInput = $('#file-input-image');\n\n\t\t\t\t\t\t\t\t\tfileInput.on('change', function() {\n\t\t\t\t\t\t\t\t\t\tvar files = this.files;\n\t\t\t\t\t\t\t\t\t\thandleFiles(files);\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\/\/ Fonction pour g\u00e9rer les fichiers s\u00e9lectionn\u00e9s\n\t\t\t\t\t\t\t\t\tfunction handleFiles(files) {\n\t\t\t\t\t\t\t\t\t\t\/\/ V\u00e9rifiez s'il y a des fichiers\n\t\t\t\t\t\t\t\t\t\tif (files.length === 0) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\/\/ Cr\u00e9ez un objet FormData pour t\u00e9l\u00e9charger le fichier\n\t\t\t\t\t\t\t\t\t\tvar formData = new\t FormData();\n\t\t\t\t\t\t\t\t\t\tformData.append('file', files[0]); \n\t\t\t\t\t\t\t\t\t\tformData.append('action', 'upload_image_news'); \n\t\t\t\t\t\t\t\t\t\t\/\/ Utilisez AJAX pour t\u00e9l\u00e9charger le fichier vers la biblioth\u00e8que multim\u00e9dia\n\t\t\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\t\t\t\t\turl: ajaxurl,\n\t\t\t\t\t\t\t\t\t\t\tdata: formData,\n\t\t\t\t\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\t\t\t\t\tcontentType: false,\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ L'image a \u00e9t\u00e9 t\u00e9l\u00e9charg\u00e9e avec succ\u00e8s\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar imageUrl = response.data.url;\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar my_editor = $('#custom-modal').data('editor');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Ins\u00e9rez l'URL de l'image dans l'\u00e9diteur TinyMCE (remplacez 'description_FR' par l'ID de votre \u00e9diteur)\n\t\t\t\t\t\t\t\t\t\t\t\t\ttinyMCE.get(my_editor).insertContent('<img decoding=\"async\" src=\"' + imageUrl + '\">');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('#custom-modal').dialog(\"close\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#feedback').html(response.data.error);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\terror: function (error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t  jQuery('#feedback').html(response.data.error);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\/\/ Bouton \"S\u00e9lectionner une image\"\n\n\t\t\t\t\t\t\t\t\t$('.insert-media').on('click', function() {\n\t\t\t\t\t\t\t\t\t\tvar editor=jQuery(this).data('editor');\n\t\t\t\t\t\t\t\t\t\t\/\/ Appliquer la nouvelle largeur \u00e0 la modal\n\t\t\t\t\t\t\t\t\t\t\t$('#custom-modal').data('editor', editor).dialog(\"option\", \"width\", 600, \"height\", 500);\n\n\t\t\t\t\t\t\t\t\t\t\t\/\/ Ouvrir la bo\u00eete de dialogue avec la nouvelle largeur\n\t\t\t\t\t\t\t\t\t\t\t$('#custom-modal').dialog(\"open\"); \n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\/\/ Fermer la fen\u00eatre modale lorsque le bouton est cliqu\u00e9\n\t\t\t\t\t\t\t\t\t$('#close-modal-frt').on('click', function() {\n\t\t\t\t\t\t\t\t\t\t$('#custom-modal').dialog(\"close\");\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t$('#image-list img').on('click', function() {\n\t\t\t\t\t\t\t\t\tvar imageUrl = $(this).attr('src');\n\t\t\t\t\t\t\t\t\tvar my_editor = $('#custom-modal').data('editor');\n\t\t\t\t\t\t\t\t\t\/\/ Ins\u00e9rer l'image dans l'\u00e9diteur TinyMCE (remplacez 'description_FR' par l'ID de votre \u00e9diteur)\n\t\t\t\t\t\t\t\t\ttinyMCE.get(my_editor).insertContent('<img decoding=\"async\" src=\"' + imageUrl + '\">');\n\n\t\t\t\t\t\t\t\t\t\/\/ Fermer la fen\u00eatre modale\n\t\t\t\t\t\t\t\t\t$('#custom-modal').dialog(\"close\");\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t});\n\n\n\n\n\t\t\t\t\t\t\t\t\/\/ Fonction pour nettoyer le contenu TinyMCE en supprimant les attributs sauf \"src\"\n\t\t\t\t\t\t\t\t\tfunction cleanTinyMCEContent(content) {\n\t\t\t\t\t\t\t\t\t\t\/\/ Utilisez une expression r\u00e9guli\u00e8re pour supprimer les attributs des balises, sauf \"src\"\n\t\t\t\t\t\t\t\t\t\tvar cleanContent = content.replace(\/<[^>]*>\/g, function(match) {\n\t\t\t\t\t\t\t\t\t\t\tif (match.indexOf('<img') !== -1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Si c'est une balise <img>, conservez-la telle quelle\n\t\t\t\t\t\t\t\t\t\t\t\treturn match;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Pour les autres balises, supprimez les attributs, sauf \"src\"\n\t\t\t\t\t\t\t\t\t\t\t\treturn match.replace(\/\\s\\w+=\"[^\"]*\"(?![^<]*>)\/g, '');\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tcleanContent = cleanContent.replace(\"&amp;\", \"&\");\n\t\t\t\t\t\t\t\t\t\treturn cleanContent;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tjQuery(document).ready(function() {\n\n\t\t\t\t\t\t\t\t\tjQuery('.insert-media').on('click', function() {\n\t\t\t\t\t\t\t\t\t\twp.media('open');\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tjQuery('.btn-sub').on('click', function(event) {\n\n\n\t\t\t\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\t\t\t$this = jQuery(this);\n\t\t\t\t\t\t\t\t\t\t$this.prop(\"disabled\", true);\n\t\t\t\t\t\t\t\t\t\tjQuery('#errorfeedback').html(\"\");\n\t\t\t\t\t\t\t\t\t\tjQuery('#preloader').removeClass(\"hide\");\n \n\n\n\t\t\t\t\t\t\t\t\t\t\/\/ var action = 'edit'; \n\t\t\t\t\t\t\t\t\t\tvar valid = true;\n\n\t\t\t\t\t\t\t\t\t\tif(jQuery('#titre_fr').val()=='' &&  jQuery('#titre_nl').val()==''){\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#titre_nl').css('border-color', '#FF0000');\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#titre_fr').css('border-color', '#FF0000');\n\t\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#preloader').addClass(\"hide\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t$this.prop(\"disabled\", false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#errorfeedback').html(\"U hebt de verplichte velden niet ingevuld.\");\n\t\t\t\t\t\t\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tjQuery('.required').each(function() {\n\t\t\t\t\t\t\t\t\t\t\tif (jQuery(this).val() == '') {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tvar name=jQuery(this).attr('name');\n\n\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(this).css('border-color', '#FF0000');\n\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#preloader').addClass(\"hide\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t$this.prop(\"disabled\", false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#errorfeedback').html(\"U hebt de verplichte velden niet ingevuld.\");\n\t\t\t\t\t\t\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\tif (valid == true) {\n\t\t\t\t\t\t\t\t\t\t\tvar form = jQuery('#form_post');\n\t\t\t\t\t\t\t\t\t\t\tform_data = new FormData(); \/\/form_data is a FormData() object \n\n\t\t\t\t\t\t\t\t\t\t\tif (document.getElementsByClassName(\"fileElem\")[0].files.length != 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tfile_data = jQuery('.fileElem').prop('files')[0]; \/\/get the file\n\t\t\t\t\t\t\t\t\t\t\t\tform_data.append('photo_team_partner', file_data); \/\/append the file in form_data object\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tform_data.append('action', 'front_end_submit_teams'); \/\/ your wordpress function name\n\n\t\t\t\t\t\t\t\t\t\t\tvar content_FR = cleanTinyMCEContent(tinyMCE.get('description_FR').getContent());\n\t\t\t\t\t\t\t\t\t\t\tvar content_NL = cleanTinyMCEContent(tinyMCE.get('description_NL').getContent());\n\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tform_data.append('post_data', form.find(':not(input[name=description])').serialize() + '&description_FR=' + encodeURIComponent(content_FR) + '&description_NL=' + encodeURIComponent(content_NL)); \/\/ e.g. other form data such as first_name, last_name will be stored as serialized\n\n\n\t\t\t\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\t\turl: ajaxurl,\n\t\t\t\t\t\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\t\t\t\t\t\tcontentType: false,\n\t\t\t\t\t\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\t\t\t\t\t\tdata: form_data,\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess: function(response) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (response != '' ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#preloader').addClass(\"hide\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#errorfeedback').html(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar url = 'dashboard-news';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (jQuery('#post_type').val() == 'partner-team') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl = 'dashboard-team';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (jQuery('#post_type').val() == 'job_listing') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl = 'dashboard-job';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (jQuery('#post_type').val() == 'tribe_events') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl = 'dashboard-event';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (jQuery('#post_type').val() == 'bp_doc') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl = 'dashboard-document';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.location.href = 'https:\/\/channelnews.be\/nl\/' + url;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\terror: function(xhr, status, error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(error);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t});\n\n\n\n\n\t\t\t\t\t\t\t\t});\n\n\n\n\n\t\t\t\t\t\t\t})(jQuery);\n\t\t\t\t\t\t<\/script>\n            <\/div>\n\n            <div class=\"widj-col-30\">\n                <div class=\"p-15 form-right\">\n                    <h4>Publish post<\/h4>\n                    <p>Publication post Date: <input type=\"text\" id=\"post_date\" value=\"2026-07-28\" class=\"datepicker noinput\"> <\/p>\n                    <p>Visibility post:\n                        private                    <\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n        \t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Profile CONTRIBUTIONS News Who is who Jobs Events Documents Ads Ads Partners Validation Stats History Document New<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-13523","page","type-page","status-publish"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/pages\/13523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/comments?post=13523"}],"version-history":[{"count":4,"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/pages\/13523\/revisions"}],"predecessor-version":[{"id":15319,"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/pages\/13523\/revisions\/15319"}],"wp:attachment":[{"href":"https:\/\/channelnews.be\/nl\/wp-json\/wp\/v2\/media?parent=13523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}