<div class="images-area">
    <?php
    foreach ($this->images as $image) {

        ?>
        <div class="image-item-carousel" id="image_<?php echo $image->id; ?>">
            <div class="image-drag-area"></div>
            <div class="image-link-item">
                <?php echo CHtml::image($image->getThumbUrl(), '', array('class' => 'carousel-img')); ?>
            </div>

            <div class="image-comment-input">

                <br/>
                <p>
                    <img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/set_alt.png" width="16" height="16"
                         alt="<?php echo tc('Image data'); ?>" title="<?php echo tc('Image data'); ?>"/>&nbsp;
                    <?php
                    echo CHtml::link(tc('Image data'), 'javascript:void(0);', array(
                        'onclick' => 'js:openDataImage(' . $image->id . ');'
                    ));

                    ?>
                </p>

                <a class="deleteImageLink" link-id="<?php echo $image->id; ?>" link-name="<?php echo $image->image; ?>"
                   href="javascript: void(0);">
                    <img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/delete.png" width="16" height="16"
                         alt="<?php echo tc('Delete'); ?>" title="<?php echo tc('Delete'); ?>"/>&nbsp;
                    <?php echo tc('Delete'); ?>
                </a>

            </div>

            <?php
            $this->widget('application.modules.slider.components.CarouselDataWidget', array(
                'image' => $image,
                'afterRefresh' => $this->afterRefresh,
            ));

            ?>
        </div>
        <?php
    }

    ?>
    <div class="clear"></div>
</div>
<?php

