<?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_price',
		'uk-panel',
		'uk-{price_text_style}' => ['price_text_style' => $element['price_text_style']],
		'uk-{price_text_element} {@!price_text_style}' => ['price_text_element' => $element['price_text_element'], 'price_text_style' => $element['price_text_style']],
		'uk-text-{price_text_color}' => ['price_text_color' => $element['price_text_color']],
		'uk-font-{price_text_font_family}' => ['price_text_font_family' => $element['price_text_font_family']],
		'uk-heading-{price_text_decoration}' => ['price_text_decoration' => $element['price_text_decoration']],
		'uk-margin[-{price_margin}]-top {@!price_margin: remove}',
		'uk-margin-remove-top {@price_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_price}' => ['position_inline_price' => $element['position_inline_price']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_price};' => ['position_price' => $element['position_price']],
	'left: {position_left_price}px;' => ['position_left_price' => $element['position_left_price']],
	'right: {position_right_price}px;' => ['position_right_price' => $element['position_right_price']],
	'top: {position_top_price}px;' => ['position_top_price' => $element['position_top_price']],
	'bottom: {position_bottom_price}px;' => ['position_bottom_price' => $element['position_bottom_price']],
	'z-index:{position_z_index_price};' => ['position_z_index_price' => $element['position_z_index_price']],
	'width:{price_width};' => ['price_width' => $element['price_width']],
	'height:{price_height};' => ['price_height' => $element['price_height']],

], $element);

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