<div class="gt-gallery-container grid clearfix">
    <div class="grid-sizer"></div>

    <?php foreach($settings['gallerys'] as $item):?>
    <div class="grid-item grid-size-<?php echo esc_attr($item['grid_size']);?>">
        <div class="gt-gallery-img-item">
            <div class="item-img">
                <img src="<?php echo esc_url($item['gallery']['url']);?>" alt="<?php if(!empty($item['gallery']['alt'])){ echo esc_attr($item['gallery']['alt']);}?>">
            </div>
            <div class="gt-gallery-view">
                <a href="<?php echo esc_url($item['gallery']['url']);?>"><i class="fas fa-eye"></i></a>
            </div>
        </div>
    </div>
    <?php endforeach;?>

</div>