<?php
 error_reporting(E_ALL);
 include("php/Parsedown.php");
 $Parsedown = new Parsedown();

 $pagetitle = "Plate-Forme Intelligence Artificielle PFIA 2022";
 include("php/header.php");
?>
<body>

<?php include("php/menu.php"); ?>

<div id="serviceswrap">
		<div class="container">
			<div class="row">
				<div class="col-lg-12 col-lg-offset-2">
          <div id="bigpfia">PFIA'22</div>
				    <h1>Plate-Forme Intelligence Artificielle</h1> 
				    <h2>Saint-Étienne, France,<br/>27 Juin - 1<sup>er</sup> Juillet 2022</h2>
            <!--<a href="/pfia2022/infos-locales/inscriptions/" class="btn btn-light btn-lg m-3" role="button">S'inscrire à PFIA 2022</a>-->
            <!--<a href="/pfia2022/downloads/pfia2022_livret_du_participant.pdf" target="_blank" class="btn btn-light btn-lg m-3" role="button">Livret du participant</a>-->

				</div>
			</div><!-- row -->
		</div><!-- /container -->
	</div><!-- /headerwrap -->
<div id="copyright">
</div>

<!-- <div class="alert alert-success">
	<p><i class="fa fa-thumbs-o-up" aria-hidden="true"></i> La semaine touche à sa fin. Les organisateurs et volontaires vous remercient pour votre participation, espèrent que vous avez passé une bonne semaine chez nous, et vous souhaitent un bon retour. <br/>A bientôt pour PFIA 2023 à Strasbourg !</p> 
	<img class="mx-auto w-100" src="/pfia2022/img/benevoles.jpg"/>
</div> -->

<div class="alert alert-success">
	<p><i class="fa fa-picture-o" aria-hidden="true"></i> <a href="/pfia2022/photos"> Voir quelques photos de PFIA 2022 !</a></p>
</div>

<?php 
 $structure  = json_decode(file_get_contents("structure.json"), true);
 foreach($structure as $value) {
   if (!is_string($value)) {
     // Case where we specify a class also
     $class = $value["class"];
     $value = $value["file"];
   } else {
     $class = "";
   }
   $withoutExt = preg_replace('/\\.[^.\\s]{2,4}$/', '', $value);
   if ($class != "") {
     echo "<div class=\"" . $class . "\">\n";
   }
?>
 <div class="container"
          id="<?php echo $withoutExt; ?>">

<?php
  if (substr($value, -3) == ".md"){
     echo $Parsedown->text(file_get_contents($value));
   } else {
     include($value);
   }
?>

 </div> <!-- container -->
<?php
  if ($class != "") {
    echo "</div>\n";
  }
} // end of foreach
?>
<?php
  include("php/footer.php");
?>


</body>
</html>
