<?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_by',
		'uk-panel',
		'uk-{createdby_text_style}' => ['createdby_text_style' => $element['createdby_text_style']],
		'uk-{createdby_text_element} {@!createdby_text_style}' => ['createdby_text_element' => $element['createdby_text_element'], 'createdby_text_style' => $element['createdby_text_style']],
		'uk-text-{createdby_text_color}' => ['createdby_text_color' => $element['createdby_text_color']],
		'uk-font-{createdby_text_font_family}' => ['createdby_text_font_family' => $element['createdby_text_font_family']],
		'uk-heading-{createdby_text_decoration}' => ['createdby_text_decoration' => $element['createdby_text_decoration']],
		'uk-margin[-{createdby_margin}]-top {@!createdby_margin: remove}',
		'uk-margin-remove-top {@createdby_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_createdby}' => ['position_inline_createdby' => $element['position_inline_createdby']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_createdby};' => ['position_createdby' => $element['position_createdby']],
	'left: {position_left_createdby}px;' => ['position_left_createdby' => $element['position_left_createdby']],
	'right: {position_right_createdby}px;' => ['position_right_createdby' => $element['position_right_createdby']],
	'top: {position_top_createdby}px;' => ['position_top_createdby' => $element['position_top_createdby']],
	'bottom: {position_bottom_createdby}px;' => ['position_bottom_createdby' => $element['position_bottom_createdby']],
	'z-index:{position_z_index_createdby};' => ['position_z_index_createdby' => $element['position_z_index_createdby']],
	'width:{createdby_width};' => ['createdby_width' => $element['createdby_width']],
	'height:{createdby_height};' => ['createdby_height' => $element['createdby_height']],

], $element);

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