<?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;
$el = $this->el('div', [

	'class' =>  $this->expr([
		'djc_add_to_cart',
		'uk-panel',
		'uk-margin[-{addtocart_margin}]-top {@!addtocart_margin: remove}',
		'uk-margin-remove-top {@addtocart_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_addtocart}' => ['position_inline_addtocart' => $element['position_inline_addtocart']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_addtocart};' => ['position_addtocart' => $element['position_addtocart']],
	'left: {position_left_addtocart}px;' => ['position_left_addtocart' => $element['position_left_addtocart']],
	'right: {position_right_addtocart}px;' => ['position_right_addtocart' => $element['position_right_addtocart']],
	'top: {position_top_addtocart}px;' => ['position_top_addtocart' => $element['position_top_addtocart']],
	'bottom: {position_bottom_addtocart}px;' => ['position_bottom_addtocart' => $element['position_bottom_addtocart']],
	'z-index:{position_z_index_addtocart};' => ['position_z_index_addtocart' => $element['position_z_index_addtocart']],
	'width:{addtocart_width};' => ['addtocart_width' => $element['addtocart_width']],
	'height:{addtocart_height};' => ['addtocart_height' => $element['addtocart_height']],

], $element);


echo $el($props, $attrs, $props['addtocart']);
