Commit d10db461 authored by root's avatar root

edited contact.php for WP compatibility

parent cdc39287
......@@ -4,12 +4,13 @@
*/
/*get_header(); */?>
get_header();
//chemin d'accès de grille.csv
$grillePath = $_SERVER["CONTEXT_DOCUMENT_ROOT"] . '/wp-content/themes/twentyseventeen-child/twentynineteen-child/grille.csv';
<?php
$fichier = fopen('grille.csv', 'r');
$fichier = fopen($grillePath, 'r');
$ligne = fgetcsv($fichier, 1024, ";");
//on effectue de nouveau cette instruction pour sauter les titres du tableau
......@@ -119,6 +120,7 @@ sort($classSelectMenu);
sort($classSelectMenuExtended);
?>
<script>
......@@ -517,4 +519,4 @@ sort($classSelectMenuExtended);
</script>
<?php /*get_footer(); */?>
<?php /*get_footer();*/?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment