<?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_address',
		'uk-panel',
		'uk-{address_text_style}' => ['address_text_style' => $element['address_text_style']],
		'uk-{address_text_element} {@!address_text_style}' => ['address_text_element' => $element['address_text_element'], 'address_text_style' => $element['address_text_style']],
		'uk-text-{address_text_color}' => ['address_text_color' => $element['address_text_color']],
		'uk-font-{address_text_font_family}' => ['address_text_font_family' => $element['address_text_font_family']],
		'uk-heading-{address_text_decoration}' => ['address_text_decoration' => $element['address_text_decoration']],
		'uk-margin[-{address_margin}]-top {@!address_margin: remove}',
		'uk-margin-remove-top {@address_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_address}' => ['position_inline_address' => $element['position_inline_address']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_address};' => ['position_address' => $element['position_address']],
	'left: {position_left_address}px;' => ['position_left_address' => $element['position_left_address']],
	'right: {position_right_address}px;' => ['position_right_address' => $element['position_right_address']],
	'top: {position_top_address}px;' => ['position_top_address' => $element['position_top_address']],
	'bottom: {position_bottom_address}px;' => ['position_bottom_address' => $element['position_bottom_address']],
	'z-index:{position_z_index_address};' => ['position_z_index_address' => $element['position_z_index_address']],
	'width:{address_width};' => ['address_width' => $element['address_width']],
	'height:{address_height};' => ['address_height' => $element['address_height']],

], $element);


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