<?php
/*if (isset($_GET['q']) && !empty($_GET['q'])) {
  // Make search into an array
  $search_array = explode(" ", $_GET['q']);

  // Get images tags for comparing
  $image_tag_array = explode(" ", $image['tags']);

  // Compare arrays
  $compare_results = array_intersect($image_tag_array, $search_array);
  if (count($compare_results) > 0) {
    // Getting thumbnail
    if (file_exists("images/thumbnails/".$image['imagename'])) {
      $image_path = "images/thumbnails/".$image['imagename'];
    } else {
      $image_path = "images/".$image['imagename'];
    }

    // Image loading
    echo "<div class='gallery-item'>";
    echo "<a href='image.php?id=".$image['id']."'><img class='gallery-image' loading='lazy' src='".$image_path."' id='".$image['id']."'></a>";
    echo "</div>";
  }
}*/
?>

<!DOCTYPE html>
<html>
  
<head>
	<?php include "ui/header.php"; ?>
</head>

<body>
  <?php
  include "ui/required.php";
  include "ui/nav.php";
  ?>

  <div class="search-root">
    <h2>Where did the search go!</h2>
    <p>Due to how it was implemented originally, it was hard to handle and work with. So I removed it.</p>
    <p>It'll be coming back, but since it's going to be a lot of work it'll have to be much later.</p>
  </div>

  <?php include "ui/footer.php"; ?>
</body>
</html>