" id="<?php echo $sid . $languageCode; ?> "> <?php if (get_class($this->context->model) == 'app\\easyii\\modules\\carousel\\models\\Carousel' && ($attribute == 'video' || $attribute == 'video_ru')) { ?> <?php if (isset($this->context->model->{$attribute}) && !empty($this->context->model->{$attribute})) { ?> <div style="margin: 10px 0"> <?php if (\app\components\Utils::isImageFile(\Yii::getAlias('@webroot') . $this->context->model->{$attribute})) { ?> <img width=400px" src="<?php echo $this->context->model->{$attribute}; ?> " alt=""> <?php } else { ?> <video width=400px" preload="none" autoplay> <source src="<?php echo $this->context->model->{$attribute}; ?>