<?php $_shouldextend[1]=1; ?>

<?php $this->startSection('content'); ?>
 <div class="index-page-slider <?php echo \htmlentities($res->homeVideoDisplay ?  'with-video' : 'without-video'??'', ENT_QUOTES, 'UTF-8', false); ?>">
 <div class="list">
 <?php $__currentLoopData = $res->homeSlider; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $item): $loop = $this->incrementLoopIndices();  ?>
 <div class="item" style="background: url( <?php echo \htmlentities(thumb($item['img'])??'', ENT_QUOTES, 'UTF-8', false); ?> ) center/cover;"></div>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>

 <?php ( $sliderContent = explode('===', $res->homeSliderContent) ); ?>

 <div class="text">
 <div class="name">
 <?php echo \htmlentities($sliderContent[0]??'', ENT_QUOTES, 'UTF-8', false); ?>

 </div>

 <p>
 <?php echo \htmlentities($sliderContent[1]??'', ENT_QUOTES, 'UTF-8', false); ?>

 </p>
 </div>

 <?php if($res->homeVideoDisplay): ?>
 <?php if(isset($res->homeVideoFile)): ?>
 <div class="video video-file">
 <div id="home-video-file"
 class="home-video-file"
 data-src="<?php echo \htmlentities(assetsUserfiles($res->homeVideoFile)??'', ENT_QUOTES, 'UTF-8', false); ?>"
 data-type="video/mp4"
 data-width="490"
 data-autoplay="true"
 data-muted="true"
 data-controls="true"
 ></div>
 </div>

 <?php elseif(isset($res->homeVideo)): ?>
 <div class="video">
 <iframe width="100%" src="https://www.youtube.com/embed/<?php echo \htmlentities($res->homeVideo??'', ENT_QUOTES, 'UTF-8', false); ?>" allowfullscreen></iframe>
 </div>
 <?php endif; ?>
 <?php endif; ?>
 </div>

 <div class="index-images flex">
 <?php $__currentLoopData = ['women', 'men']; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $key): $loop = $this->incrementLoopIndices();  ?>
 <a href="<?php echo \htmlentities(resUrl($res->homeBlocks[$key]['link'])??'', ENT_QUOTES, 'UTF-8', false); ?>" class="item">
 <img src="<?php echo \htmlentities(assetsUserfiles($res->homeBlocks[$key]['img'])??'', ENT_QUOTES, 'UTF-8', false); ?>">
 
 <div class="link">
 <?php echo \htmlentities($res->homeBlocks[$key]['title']??'', ENT_QUOTES, 'UTF-8', false); ?>

 </div>
 </a>    
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>

 <?php ( $atelierBlock = $res->homeBlocks['atelier'] ); ?>
 <?php ( $atelierBlockContents = splitContent($atelierBlock['content']) ); ?>
 
 <div class="home-block home-block-atelier">
 <div class="home-block__title">
 <?php echo \htmlentities($atelierBlock['title']??'', ENT_QUOTES, 'UTF-8', false); ?>

 </div>
 
 <div class="home-block__row">
 <div class="home-block__col home-block-atelier__col">
 <div class="home-block-atelier__img-outer">
 <img src="<?php echo \htmlentities(thumb($atelierBlock['img'])??'', ENT_QUOTES, 'UTF-8', false); ?>" class="home-block-atelier__img">
 </div>
 
 <div class="home-block-atelier__col-right">
 <div class="home-block__text">
 <?php echo $atelierBlockContents[0]; ?>

 </div>
 
 <a href="<?php echo \htmlentities(resUrl($atelierBlock['link'])??'', ENT_QUOTES, 'UTF-8', false); ?>" class="home-block__link">
 <?php echo \htmlentities(__('site.read_details')??'', ENT_QUOTES, 'UTF-8', false); ?> 
 </a>
 </div>
 </div>

 <div class="home-block__col home-block-atelier__col2">
 <div class="home-block-atelier__col2-inner">
 <div class="home-block__text2">
 <?php echo $atelierBlockContents[1]; ?>

 </div>
 
 <div class="home-block-atelier__contacts">
 <?php $__currentLoopData = getGlobalParams('contactsChats'); $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $chat): $loop = $this->incrementLoopIndices();  ?>
 <a href="<?php echo \htmlentities($chat['link']??'', ENT_QUOTES, 'UTF-8', false); ?>" 
 target="_blank" 
 class="home-block-atelier__contacts-link" 
 title="<?php echo \htmlentities($chat['title']??'', ENT_QUOTES, 'UTF-8', false); ?>">
 <?php echo $chat['icon']; ?>

 </a>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>
 </div>
 </div>
 </div>
 </div>

 <div class="index-bottom-images flex">
 <?php $__currentLoopData = ['new', 'sale', 'bestseller']; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $key): $loop = $this->incrementLoopIndices();  ?>
 <a href="<?php echo \htmlentities(resUrl($res->homeBlocks[$key]['link'])??'', ENT_QUOTES, 'UTF-8', false); ?>" class="item">
 <img src="<?php echo \htmlentities(thumb($res->homeBlocks[$key]['img'])??'', ENT_QUOTES, 'UTF-8', false); ?>">
 
 <div class="link">
 <?php echo \htmlentities($res->homeBlocks[$key]['title']??'', ENT_QUOTES, 'UTF-8', false); ?>

 </div>
 </a>    
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>
<?php $this->stopSection(); ?>

<?php if (isset($_shouldextend[1])) { echo $this->runChild('layouts.main'); } ?>