<?php include('../perch/runtime.php'); ?>
<!doctype html>
<html lang="de">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
	 <?php     
    $domain        = 'http://'.$_SERVER["HTTP_HOST"];
    $url           = $domain.$_SERVER["REQUEST_URI"];
    $sitename = perch_pages_title(true);
    PerchSystem::set_var('domain',$domain);
    PerchSystem::set_var('url',$url);
    PerchSystem::set_var('sitename',$sitename);
    perch_page_attributes(array(        
      'template' => 'default.html'    
    )); 
      ?>
   <title><?php perch_pages_title(); ?></title> 
  <?php 
   perch_content("Startseite");  
   perch_get_css("mc2021_home"); 
   ?>
   <style type="text/css">
   </style>
</head>
<body class="sst">
    <div class="swiper-container myMasterswiper"  >
    <div class="swiper-wrapper">
      
      <?php 
       $content = perch_content_custom('Teilnehmer:In', [
           'page' => '*',
           'template'=>'2021start.html',
           'split-items' => true,
        ]);
       $howmany = count($content);
       $tmp = array();
       for ($i=0; $i<$howmany; $i++) {
            $tmp[$i] = $i;
      }
       shuffle($tmp);
    for ($i=0; $i<$howmany; $i++) {
      $neworder = $tmp[$i];
      echo "$content[$neworder]";
    }
      ?>
   
    </div>
  </div>
 
 <ul class="navsizechange">
  <li class="next">
    <a class="anim" href="#"><span class="blotter">PREV</span></a>
  </li>
  <li class="prev">
    <a class="anim" href="#"><span class="blotter">NEXT</span></a>
  </li>
  <li class="open">
    <?php 
       $name = perch_content_custom('Teilnehmer:In', [
           'page' => '*',
           'template'=>'2021firstname.html',
           'split-items' => true,
        ]);
       for ($i=0; $i<1; $i++) {
      $neworder = $tmp[$i];
      echo "$name[$neworder]";
    }
      ?>
  </li>
  <li class="info">
    <a class="anim" href="info.php"><span class="blotter">INFO</span></a>
  </li>
  <li class="navback"></li>
  <li class="mc">
    <a class="anim" href="/"><svg id="mc" version="1.1" xmlns="http://www.w3.org/2000/svg"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         viewBox="0 0 200 90" width="200" height="90">
      <defs>
        <filter id="goo" x="-50%" width="200%" y="-50%" height="200%" color-interpolation-filters="sRGB">
          <feGaussianBlur in="SourceGraphic" stdDeviation="8" result="blur" />
          <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 21 -7" result="cm" />
        </filter>
</defs>
       <g filter="url(#goo)">
        <circle fill="#4B9BFF" cx="80" cy="50" r="30"  id="circle1" />
        <circle fill="#4B9BFF" cx="200" cy="80" r="100"  id="circle2"  />
        <circle fill="#4B9BFF"  cx="80" cy="95" r="30" id="circle3"/>
        <circle fill="#4B9BFF"  cx="80" cy="95" r="30"  id="circle4"/>
       
      </g>
    </svg><span>MC</span></a>
    <ul class="subnavi">
      <?php 
       perch_content_custom('Teilnehmer:In', [
           'page' => '*',
           'template'=>'2021navi.html',
           'sort'=>'nachname',
           'sort-order'=>'ASC'
        ]);
      ?>
    </ul>
  </li>
</ul>
<?php
     perch_content('Cookie');
?>
<div class="datencredits">
  <div class="datenschutz"><a href="/2021/datenschutz.php">Datenschutz</a></div>
  <div class="cookiestoggle">Cookies</div>
</div>
<?php perch_get_javascript("mc2021_home"); ?>
</body>
</html>