<minvalue>2</minvalue>
<maxvalue>100</maxvalue>
</option>
+ <option name="poll_full_width">
+ <categoryname>message.general.poll</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>0</defaultvalue>
+ </option>
<!-- /message.general.poll -->
<!-- cms.media.thumbnail -->
</script>
{/if}
-<div class="pollContainer" data-poll-id="{@$poll->pollID}" data-can-vote="{if $poll->canVote()}1{else}0{/if}" data-can-view-result="{if $poll->canSeeResult()}1{else}0{/if}" data-can-view-participants="{if $poll->canViewParticipants()}true{else}false{/if}" data-in-vote="{if $poll->canVote() && !$poll->isParticipant()}1{else}0{/if}" data-question="{$poll->question}" data-max-votes="{@$poll->maxVotes}" data-is-public="{if $poll->isPublic}true{else}false{/if}">
+<div class="pollContainer{if POLL_FULL_WIDTH} pollContainerFullWidth{/if}" data-poll-id="{@$poll->pollID}" data-can-vote="{if $poll->canVote()}1{else}0{/if}" data-can-view-result="{if $poll->canSeeResult()}1{else}0{/if}" data-can-view-participants="{if $poll->canViewParticipants()}true{else}false{/if}" data-in-vote="{if $poll->canVote() && !$poll->isParticipant()}1{else}0{/if}" data-question="{$poll->question}" data-max-votes="{@$poll->maxVotes}" data-is-public="{if $poll->isPublic}true{else}false{/if}">
<section>
<h2>{$poll->question} <span class="badge jsTooltip" title="{lang}wcf.poll.totalVotes{/lang}">{#$poll->votes}</span></h2>
</section>
{hascontent}
- <div class="formSubmit jsOnly"{if !$poll->canVote() && $__pollView === 'result' && !$poll->canSeeResult()} style="display: none"{/if}>
+ <div class="formSubmit jsOnly"{if !$poll->canVote() && $__pollView === 'result'} style="display: none"{/if}>
{content}
{if $__wcf->getUser()->userID}
<button class="small jsButtonPollVote"{if $poll->canVote()} disabled{else} style="display: none;"{/if}>{lang}wcf.poll.button.vote{/lang}</button>
define('SEARCH_DEFAULT_SORT_FIELD', 'time');
define('SEARCH_DEFAULT_SORT_ORDER', 'DESC');
define('POLL_MAX_OPTIONS', 20);
+define('POLL_FULL_WIDTH', 0);
define('MEDIA_SMALL_THUMBNAIL_WIDTH', 280);
define('MEDIA_SMALL_THUMBNAIL_HEIGHT', 210);
define('MEDIA_SMALL_THUMBNAIL_RETAIN_DIMENSIONS', 1);
padding: 10px 0;
@include screen-sm-up {
- float: left;
- margin-right: 20px;
- max-width: 50%;
+ &.pollContainerFullWidth {
+ margin-bottom: 20px;
+ }
+
+ &:not(.pollContainerFullWidth) {
+ float: left;
+ margin-right: 20px;
+ max-width: 50%;
+ }
}
h2 {
<item name="wcf.acp.option.category.message.general.poll"><![CDATA[Umfragen]]></item>
<item name="wcf.acp.option.module_poll"><![CDATA[Umfragen]]></item>
<item name="wcf.acp.option.poll_max_options"><![CDATA[Maximale Anzahl an Antworten]]></item>
+ <item name="wcf.acp.option.poll_full_width"><![CDATA[Umfrage über die gesamte Breite darstellen]]></item>
<item name="wcf.acp.option.error.validationFailed"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du hast{else}Sie haben{/if} einen ungültigen Inhalt eingegeben.]]></item>
<item name="wcf.acp.option.module_members_list"><![CDATA[Mitgliederliste]]></item>
<item name="wcf.acp.option.footer_code"><![CDATA[Footer-Code]]></item>
<item name="wcf.acp.option.category.message.general.poll"><![CDATA[Polls]]></item>
<item name="wcf.acp.option.module_poll"><![CDATA[Polls]]></item>
<item name="wcf.acp.option.poll_max_options"><![CDATA[Maximum Poll Options]]></item>
+ <item name="wcf.acp.option.poll_full_width"><![CDATA[Display polls over the entire width]]></item>
<item name="wcf.acp.option.error.validationFailed"><![CDATA[You have entered an invalid value.]]></item>
<item name="wcf.acp.option.module_members_list"><![CDATA[Members list]]></item>
<item name="wcf.acp.option.footer_code"><![CDATA[Footer Code]]></item>