<?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_created_on',
		'uk-panel',
		'uk-{createdon_text_style}' => ['createdon_text_style' => $element['createdon_text_style']],
		'uk-{createdon_text_element} {@!createdon_text_style}' => ['createdon_text_element' => $element['createdon_text_element'], 'createdon_text_style' => $element['createdon_text_style']],
		'uk-text-{createdon_text_color}' => ['createdon_text_color' => $element['createdon_text_color']],
		'uk-font-{createdon_text_font_family}' => ['createdon_text_font_family' => $element['createdon_text_font_family']],
		'uk-heading-{createdon_text_decoration}' => ['createdon_text_decoration' => $element['createdon_text_decoration']],
		'uk-margin[-{createdon_margin}]-top {@!createdon_margin: remove}',
		'uk-margin-remove-top {@createdon_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_createdon}' => ['position_inline_createdon' => $element['position_inline_createdon']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_createdon};' => ['position_createdon' => $element['position_createdon']],
	'left: {position_left_createdon}px;' => ['position_left_createdon' => $element['position_left_createdon']],
	'right: {position_right_createdon}px;' => ['position_right_createdon' => $element['position_right_createdon']],
	'top: {position_top_createdon}px;' => ['position_top_createdon' => $element['position_top_createdon']],
	'bottom: {position_bottom_createdon}px;' => ['position_bottom_createdon' => $element['position_bottom_createdon']],
	'z-index:{position_z_index_createdon};' => ['position_z_index_createdon' => $element['position_z_index_createdon']],
	'width:{createdon_width};' => ['createdon_width' => $element['createdon_width']],
	'height:{createdon_height};' => ['createdon_height' => $element['createdon_height']],

], $element);

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