<?php /* Smarty version 2.6.26, created on 2020-06-25 13:10:58
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/polls/polls.block.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', '/home3/bargaip4/public_html/gevimmo/plugins/polls/polls.block.tpl', 13, false),)), $this); ?>
<!-- poll block -->

<?php $this->assign('lang_site', @RL_LANG_CODE); ?>

<?php if ($this->_tpl_vars['poll']): ?>
	<div class="poll-container" id="poll_container_<?php echo $this->_tpl_vars['poll']['ID']; ?>
">
		<?php if ($this->_tpl_vars['poll']['voted']): ?>
			<?php if ($this->_tpl_vars['poll']['Random'] == 1 || $this->_tpl_vars['block']['Header'] == 0): ?>
				<header class="poll-header"><b><?php echo $this->_tpl_vars['poll']['name'][$this->_tpl_vars['lang_site']]; ?>
</b></header>
			<?php endif; ?>
			
			<ul class="poll-votes">
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@RL_PLUGINS)) ? $this->_run_mod_handler('cat', true, $_tmp, 'polls') : smarty_modifier_cat($_tmp, 'polls')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'results.tpl') : smarty_modifier_cat($_tmp, 'results.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			</ul>
			
			<div class="poll-total"><?php echo $this->_tpl_vars['lang']['total_votes']; ?>
: <b><?php echo $this->_tpl_vars['poll']['total']; ?>
</b></div>
		<?php else: ?>
			<?php if ($this->_tpl_vars['poll']['Random'] == 1 || $this->_tpl_vars['block']['Header'] == 0): ?>
				<header class="poll-header"><b><?php echo $this->_tpl_vars['poll']['name'][$this->_tpl_vars['lang_site']]; ?>
</b></header>
			<?php endif; ?>

			<div class="poll-inquirer">
				<ul class="poll-answer">
				<?php $_from = $this->_tpl_vars['poll']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['poll_item']):
?>
					<li>
						<span style="background: <?php echo $this->_tpl_vars['poll_item']['Color']; ?>
;"></span>
						<label><input type="radio" name="poll_<?php echo $this->_tpl_vars['poll']['Key']; ?>
" value="<?php echo $this->_tpl_vars['poll_item']['Key']; ?>
" /> <?php echo $this->_tpl_vars['poll_item']['name'][$this->_tpl_vars['lang_site']]; ?>
</label>
					</li>
				<?php endforeach; endif; unset($_from); ?>
				</ul>

				<div class="poll-nav">
					<div class="two-inline <?php echo $this->_tpl_vars['text_dir']; ?>
">
						<div><input type="button" value="<?php echo $this->_tpl_vars['lang']['vote']; ?>
" id="vote_button_<?php echo $this->_tpl_vars['poll']['ID']; ?>
" /></div>
						<div class="ralign"><span class="link"><?php echo $this->_tpl_vars['lang']['polls_view_results']; ?>
</span></div>
					</div>
				</div>
			</div>

			<div class="poll-results hide">
				<ul class="poll-votes" id="poll_results_<?php echo $this->_tpl_vars['poll']['ID']; ?>
">
					<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@RL_PLUGINS)) ? $this->_run_mod_handler('cat', true, $_tmp, 'polls') : smarty_modifier_cat($_tmp, 'polls')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'results.tpl') : smarty_modifier_cat($_tmp, 'results.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				</ul>

				<div class="poll-total"><?php echo $this->_tpl_vars['lang']['total_votes']; ?>
: <b><?php echo $this->_tpl_vars['poll']['total']; ?>
</b></div>

				<div class="poll-results-nav ralign">
					<span class="link"><?php echo $this->_tpl_vars['lang']['polls_back_for_vote']; ?>
</span>
				</div>
			</div>
		<?php endif; ?>

		<script id="pollItem" type="text/x-jquery-tmpl">
		<?php echo '

		${($data.lang_votes = \''; ?>
<?php echo $this->_tpl_vars['lang']['votes']; ?>
<?php echo '\'),\'\'}

		<li>
		    <div>${name.en} (<b>${Votes}</b> ${lang_votes})</div>
		    <div style="width: {{if percent < 10}}10{{else percent >= 10 && percent < 70}}${percent*1.25}{{else}}${percent}{{/if}}%; background: ${Color};color: {{if Color == \'#ffffff\'}}#000000{{else}}#ffffff{{/if}};">
		        ${percent}%
		    </div>
		</li>

		'; ?>

		</script>
	</div>
<?php else: ?>
	<?php echo $this->_tpl_vars['lang']['polls_not_created']; ?>

<?php endif; ?>

<!-- poll block end -->