<div class="socHome">
<a href="<?= social['youtube'] ?>" class="socButton youtube">
    <i class="fab fa-youtube"></i>
    <div class="text-content">
        YouTube
        <span>Official Channel</span>
    </div>
</a>
<a href="<?= social['discord'] ?>" class="socButton discord">
    <i class="fab fa-discord"></i>
    <div class="text-content">
        Discord
        <span>Discussion Chat</span>
    </div>
</a>
<a href="<?= social['facebook'] ?>" class="socButton facebook">
    <i class="fab fa-facebook"></i>
    <div class="text-content">
        Facebook
        <span>Official Group</span>
    </div>
</a>
<a href="<?= social['whatsapp'] ?>" class="socButton whatsapp">
    <i class="fab fa-whatsapp"></i>
    <div class="text-content">
        Whatsapp
        <span>Official Group</span>
    </div>
</a>
<a href="<?= social['tiktok'] ?>" class="socButton tiktok">
    <i class="fab fa-tiktok"></i>
    <div class="text-content">
        Tiktok
        <span>Official Page</span>
    </div>
</a>
<a href="<?= social['instagram'] ?>" class="socButton instagram">
    <i class="fab fa-instagram"></i>
    <div class="text-content">
        Instagram
        <span>Official Page</span>
    </div>
</a>


    
    
   <!-- <div class="socBlock flex-c-c">
        <a href="https://guide.muhorizon.net" target="blank" class="socBlock-guides socBlock-button">
            Guides
            <span>Info center</span>
        </a>
        <a href="#" class="socBlock-forum socBlock-button">
            Forum
            <span>Community</span>
        </a>
    </div> -->
    
    
</div>

<?php

$url = [
    'youtube' => [
        'https://www.youtube.com/watch?v=yd8jh9QYfEs',
    ]
];

?>

           <?php foreach ($url['youtube'] as $link) { 
                // Transformar o link de watch?v= para embed/ no formato correto para iframe
                $embedLink = str_replace("watch?v=", "embed/", $link);
            ?>
            <div class="slick-slider-slide">
                
            </div>
           <?php } ?>
           
<div>
    <div class="sliderGallery">
        <div class="slider-gallery">
            <?php foreach ($url['youtube'] as $link) {
                $embedLink = str_replace("watch?v=", "embed/", $link);
            ?>
            <div class="sliderImg"><iframe width="220" height="145" src="<?php echo $embedLink ?>" title="Mu Horizon Season 6 - DOMINGAOOOO - PVP" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
            <?php } ?>
            
        </div>
    </div>
</div>