<?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_vote',
		'uk-panel',
		'uk-{vote_text_style}' => ['vote_text_style' => $element['vote_text_style']],
		'uk-{vote_text_element} {@!vote_text_style}' => ['vote_text_element' => $element['vote_text_element'], 'vote_text_style' => $element['vote_text_style']],
		'uk-text-{vote_text_color}' => ['vote_text_color' => $element['vote_text_color']],
		'uk-font-{vote_text_font_family}' => ['vote_text_font_family' => $element['vote_text_font_family']],
		'uk-heading-{vote_text_decoration}' => ['vote_text_decoration' => $element['vote_text_decoration']],
		'uk-margin[-{vote_margin}]-top {@!vote_margin: remove}',
		'uk-margin-remove-top {@vote_margin: remove}',
		'uk-margin-remove-bottom',
		'uk-inline {@position_inline_vote}' => ['position_inline_vote' => $element['position_inline_vote']],
	], $element),
]);

//Style position && size of an element
$el->attr('style', [
	'position:{position_vote};' => ['position_vote' => $element['position_vote']],
	'left: {position_left_vote}px;' => ['position_left_vote' => $element['position_left_vote']],
	'right: {position_right_vote}px;' => ['position_right_vote' => $element['position_right_vote']],
	'top: {position_top_vote}px;' => ['position_top_vote' => $element['position_top_vote']],
	'bottom: {position_bottom_vote}px;' => ['position_bottom_vote' => $element['position_bottom_vote']],
	'z-index:{position_z_index_vote};' => ['position_z_index_vote' => $element['position_z_index_vote']],
	'width:{vote_width};' => ['vote_width' => $element['vote_width']],
	'height:{vote_height};' => ['vote_height' => $element['vote_height']],

], $element);

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