<?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_availinfo',
		'uk-panel',
		'uk-{availinfo_text_style}' => ['availinfo_text_style' => $element['availinfo_text_style']],
		'uk-{availinfo_text_element} {@!availinfo_text_style}' => ['availinfo_text_element' => $element['availinfo_text_element'], 'availinfo_text_style' => $element['availinfo_text_style']],
		'uk-text-{availinfo_text_color}' => ['availinfo_text_color' => $element['availinfo_text_color']],
		'uk-font-{availinfo_text_font_family}' => ['availinfo_text_font_family' => $element['availinfo_text_font_family']],
		'uk-heading-{availinfo_text_decoration}' => ['availinfo_text_decoration' => $element['availinfo_text_decoration']],
		'uk-margin[-{availinfo_margin}]-top {@!availinfo_margin: remove}',
		'uk-margin-remove-top {@availinfo_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-child-width-expand',
		'uk-inline {@position_inline_availinfo}' => ['position_inline_availinfo' => $element['position_inline_availinfo']],
	], $element),

]);

//Style - position & size

$el->attr('style', [
	'position:{position_availinfo};' => ['position_availinfo' => $element['position_availinfo']],
	'left: {position_left_availinfo}px;' => ['position_left_availinfo' => $element['position_left_availinfo']],
	'right: {position_right_availinfo}px;' => ['position_right_availinfo' => $element['position_right_availinfo']],
	'top: {position_top_availinfo}px;' => ['position_top_availinfo' => $element['position_top_availinfo']],
	'bottom: {position_bottom_availinfo}px;' => ['position_bottom_availinfo' => $element['position_bottom_availinfo']],
	'z-index:{position_z_index_availinfo};' => ['position_z_index_availinfo' => $element['position_z_index_availinfo']],
	'width:{availinfo_width};' => ['availinfo_width' => $element['availinfo_width']],
	'height:{availinfo_height};' => ['availinfo_height' => $element['availinfo_height']],

], $element);



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