<?php
/**
 * @package DJ-Catalog2-Yootheme
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */
defined('_JEXEC') or die;
if (!$props['image']) {
	return;
}

// Image
echo $this->el('image', [

	'class' => [
		'el-image',
		'uk-blend-{0}' => $props['media_blend_mode'],
		'uk-transition-{image_transition} uk-transition-opaque' => !($element['slider_width'] && $element['slider_height']),
	],

	'src' => $props['image'],
	'alt' => $props['image_alt'],
	'width' => $element['image_width'],
	'height' => $element['image_height'],
	'uk-img' => 'target: !.uk-slider-items',
	'uk-cover' => $element['slider_width'] && $element['slider_height'],
	'thumbnail' => true,

])->render($element);
