1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 13:24:26 +03:00
ifhub.club/application/frontend/skin/developer/components/poll/poll.tpl
2014-06-23 19:51:40 +07:00

15 lines
409 B
Smarty

{**
* Опрос
*
* @param ModulePoll_EntityPoll $poll Опрос
*}
<div class="poll poll-type-{$poll->getTargetType()} js-poll" data-poll-id="{$poll->getId()}" data-poll-answer-max="{$poll->getCountAnswerMax()}">
<h3 class="poll-title">{$poll->getTitle()}</h3>
{if ! $poll->getVoteCurrent()}
{include './poll.vote.tpl' poll=$poll}
{else}
{include './poll.result.tpl' oPoll=$poll}
{/if}
</div>