<?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
 */
// Image
defined('_JEXEC') or die;
if ($props['producer_image']) {

	$producerimage = $this->el('image', [

		'class' => [
			'djc_producer_image',
			'el-image',
			'uk-box-shadow-{producer_image_box_shadow} {@!panel_style} {@!producer_image_transition}',
			'uk-box-shadow-hover-{producer_image_hover_box_shadow} {@!panel_style} {@!producer_image_transition}' =>  $props['producer_link'],
			'uk-transition-{producer_image_transition} uk-transition-opaque' => $props['producer_link'],
			'uk-text-{producer_image_svg_color} {@producer_image_svg_inline}' => $this->isImage($props['producer_link']) == 'svg',
			'uk-margin[-{producer_margin}]-top {@!producer_margin: remove}',
			'uk-margin-remove-top {@producer_margin: remove}',
			'uk-margin-remove-bottom',
			'uk-inline {@position_inline_producer_image}' => ['position_inline_producer_image' => $element['position_inline_producer_image']],
			'uk-display-block ${@ifnotinline}' => ['ifnotinline' => !$element['position_inline_producer_image']]
		],

		'src' => $props['producer_image'],
		'alt' => $props['producer_image_alt'],
		'width' => $element['producer_image_width'],
		'height' => $element['producer_image_height'],
		'thumbnail' => true,
	]);
	$producerimage->attr('style', [
		'width:{producer_image_width};' => ['producer_image_width' => $element['producer_image_width']],
		'height:{producer_image_height};' => ['producer_image_height' => $element['producer_image_height']],
		'position:{position_producer_image};' => ['position_producer_image' => $element['position_producer_image']],
		'left: {position_left_producer_image}px;' => ['position_left_producer_image' => $element['position_left_producer_image']],
		'right: {position_right_producer_image}px;' => ['position_right_producer_image' => $element['position_right_producer_image']],
		'top: {position_top_producer_image}px;' => ['position_top_producer_image' => $element['position_top_producer_image']],
		'bottom: {position_bottom_producer_image}px;' => ['position_bottom_producer_image' => $element['position_bottom_producer_image']],
		'z-index:{position_z_index_producer_image};' => ['position_z_index_producer_image' => $element['position_z_index_producer_image']],


	], $element);
	echo $producerimage($element, []);


}


