<?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_fax',
		'uk-panel',
		'uk-{fax_text_style}' => ['fax_text_style' => $element['fax_text_style']],
		'uk-{fax_text_element} {@!fax_text_style}' => ['fax_text_element' => $element['fax_text_element'], 'fax_text_style' => $element['fax_text_style']],
		'uk-text-{fax_text_color}' => ['fax_text_color' => $element['fax_text_color']],
		'uk-font-{fax_text_font_family}' => ['fax_text_font_family' => $element['fax_text_font_family']],
		'uk-heading-{fax_text_decoration}' => ['fax_text_decoration' => $element['fax_text_decoration']],
		'uk-inline {@position_inline_fax}' => ['position_inline_fax' => $element['position_inline_fax']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_fax};' => ['position_fax' => $element['position_fax']],
	'left: {position_left_fax}px;' => ['position_left_fax' => $element['position_left_fax']],
	'right: {position_right_fax}px;' => ['position_right_fax' => $element['position_right_fax']],
	'top: {position_top_fax}px;' => ['position_top_fax' => $element['position_top_fax']],
	'bottom: {position_bottom_fax}px;' => ['position_bottom_fax' => $element['position_bottom_fax']],
	'z-index:{position_z_index_fax};' => ['position_z_index_fax' => $element['position_z_index_fax']],
	'width:{fax_width};' => ['fax_width' => $element['fax_width']],
	'height:{fax_height};' => ['fax_height' => $element['fax_height']],

], $element);

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