<?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_country',
		'uk-panel',
		'uk-{country_text_style}' => ['country_text_style' => $element['country_text_style']],
		'uk-{country_text_element} {@!country_text_style}' => ['country_text_element' => $element['country_text_element'], 'country_text_style' => $element['country_text_style']],
		'uk-text-{country_text_color}' => ['country_text_color' => $element['country_text_color']],
		'uk-font-{country_text_font_family}' => ['country_text_font_family' => $element['country_text_font_family']],
		'uk-heading-{country_text_decoration}' => ['country_text_decoration' => $element['country_text_decoration']],
		'uk-margin[-{country_margin}]-top {@!country_margin: remove}',
		'uk-margin-remove-top {@country_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_country}' => ['position_inline_country' => $element['position_inline_country']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_country};' => ['position_country' => $element['position_country']],
	'left: {position_left_country}px;' => ['position_left_country' => $element['position_left_country']],
	'right: {position_right_country}px;' => ['position_right_country' => $element['position_right_country']],
	'top: {position_top_country}px;' => ['position_top_country' => $element['position_top_country']],
	'bottom: {position_bottom_country}px;' => ['position_bottom_country' => $element['position_bottom_country']],
	'z-index:{position_z_index_country};' => ['position_z_index_country' => $element['position_z_index_country']],
	'width:{country_width};' => ['country_width' => $element['country_width']],
	'height:{country_height};' => ['country_height' => $element['country_height']],

], $element);

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