HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/template/spa_gallery.php
<?php
extract(shortcode_atts(array(
    'images' => '',
), $atts));
$images = explode(',', $images);
if(count($images)) :
    $i = 1;
    echo '<ul class="galleryImg clearfix">';
    foreach ($images as $id) :
        $img = wpb_getImageBySize( array(
            'attach_id' => $id,
            'thumb_size' => '270x270',
            'class' => 'img-responsive'
        ) );

        $url = wp_get_attachment_image_src($id, 'full');
        $meta_image = wp_get_attachment_metadata($id);
        if($meta_image){
            $title = $meta_image['image_meta']['caption'];
        }else{
            $title = __('Gallery', IZ_LANG);
        }
        if($img){
            echo '<li class="wow fadeInLeft" data-wow-offset="200" data-wow-delay="'.$i.'00ms">';
            echo '<a href="'.$url[0].'" title="'.$title.'" rel="prettyPhoto[gallery1]">'.$img['thumbnail'].'</a>';
            echo '</li>';
            $i++;
        }
    endforeach;
    echo '</ul>';
endif;
?>