<?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_labels',
		'uk-panel',
		'uk-margin[-{labels_margin}]-top {@!labels_margin: remove}',
		'uk-margin-remove-top {@labels_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_labels}' => ['position_inline_labels' => $element['position_inline_labels']],
	], $element),
]);
//Style position && size of an element
$el->attr('style', [
	'position:{position_labels};' => ['position_labels' => $element['position_labels']],
	'left: {position_left_labels}px;' => ['position_left_labels' => $element['position_left_labels']],
	'right: {position_right_labels}px;' => ['position_right_labels' => $element['position_right_labels']],
	'top: {position_top_labels}px;' => ['position_top_labels' => $element['position_top_labels']],
	'bottom: {position_bottom_labels}px;' => ['position_bottom_labels' => $element['position_bottom_labels']],
	'z-index:{position_z_index_labels};' => ['position_z_index_labels' => $element['position_z_index_labels']],
	'width:{labels_width};' => ['labels_width' => $element['labels_width']],
	'height:{labels_height};' => ['labels_height' => $element['labels_height']]
], $element);

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