<?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_city',
		'uk-panel',
		'uk-{city_text_style}' => ['city_text_style' => $element['city_text_style']],
		'uk-{city_text_element} {@!city_text_style}' => ['city_text_element' => $element['city_text_element'], 'city_text_style' => $element['city_text_style']],
		'uk-text-{city_text_color}' => ['city_text_color' => $element['city_text_color']],
		'uk-font-{city_text_font_family}' => ['city_text_font_family' => $element['city_text_font_family']],
		'uk-heading-{city_text_decoration}' => ['city_text_decoration' => $element['city_text_decoration']],
		'uk-margin[-{city_margin}]-top {@!city_margin: remove}',
		'uk-margin-remove-top {@city_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_city}' => ['position_inline_city' => $element['position_inline_city']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_city};' => ['position_city' => $element['position_city']],
	'left: {position_left_city}px;' => ['position_left_city' => $element['position_left_city']],
	'right: {position_right_city}px;' => ['position_right_city' => $element['position_right_city']],
	'top: {position_top_city}px;' => ['position_top_city' => $element['position_top_city']],
	'bottom: {position_bottom_city}px;' => ['position_bottom_city' => $element['position_bottom_city']],
	'z-index:{position_z_index_city};' => ['position_z_index_city' => $element['position_z_index_city']],
	'width:{city_width};' => ['city_width' => $element['city_width']],
	'height:{city_height};' => ['city_height' => $element['city_height']],

], $element);

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