<?php
$count = 1;

if ($this->images) {

    ?>

    <ul class="item-slider-list js-item-slider-list">
        <?php
        foreach ($this->images as $image) {
            if ($count > 6)
                break;
// $imgTag = CHtml::image(Images::getThumbUrl($image, 112, 87), Images::getAlt($image));
// echo CHtml::link($imgTag, Images::getFullSizeUrl($image), array(
//     'title' => Images::getAlt($image),
//     'data-image'=> Images::getFullSizeUrl($image),
//     'alt' => Images::getAlt($image),
// ));
// $imgTag = CHtml::image(Images::getFullSizeUrl($image), Images::getAlt($image));
//                     echo $imgTag;
// $imgTag = CHtml::image(Images::getFullSizeUrl($image), Images::getAlt($image));
//                     echo CHtml::link($imgTag, Images::getFullSizeUrl($image), array(
//                         'title' => Images::getAlt($image),
//                         'data-image'=> Images::getFullSizeUrl($image),
//                         'alt' => Images::getAlt($image),
//                     ));

            ?>


            <li class="item-slider-item js-item-slider-item">
                <div class="item-slider-image large-picture"
                     style="background-image: url(<?php echo Images::getThumbUrl($image, isset($this->width) ? $this->width : 330, isset($this->height) ? $this->height : 238); ?>)"></div>

            </li>


            <?php $count++;
        }

        ?>
    </ul>


<?php } ?>

