<?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_hits',
		'uk-panel',
		'uk-{hits_text_style}' => ['hits_text_style' => $element['hits_text_style']],
		'uk-{hits_text_element} {@!hits_text_style}' => ['hits_text_element' => $element['hits_text_element'], 'hits_text_style' => $element['hits_text_style']],
		'uk-text-{hits_text_color}'  => ['hits_text_color' => $element['hits_text_color']],
		'uk-font-{hits_text_font_family}' => ['hits_text_font_family' => $element['hits_text_font_family']],
		'uk-heading-{hits_text_decoration}'  => ['hits_text_decoration' => $element['hits_text_decoration']],
		'uk-margin[-{hits_margin}]-top {@!hits_margin: remove}',
		'uk-margin-remove-top {@hits_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_hits}' => ['position_inline_hits' => $element['position_inline_hits']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_hits};' => ['position_hits' => $element['position_hits']],
	'left: {position_left_hits}px;' => ['position_left_hits' => $element['position_left_hits']],
	'right: {position_right_hits}px;' => ['position_right_hits' => $element['position_right_hits']],
	'top: {position_top_hits}px;' => ['position_top_hits' => $element['position_top_hits']],
	'bottom: {position_bottom_hits}px;' => ['position_bottom_hits' => $element['position_bottom_hits']],
	'z-index:{position_z_index_hits};' => ['position_z_index_hits' => $element['position_z_index_hits']],
	'width:{hits_width};' => ['hits_width' => $element['hits_width']],
	'height:{hits_height};' => ['hits_height' => $element['hits_height']],

], $element);

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