-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tomasz Rondio
committed
Nov 14, 2013
1 parent
7877825
commit 59d929c
Showing
18 changed files
with
395 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ $answers = array() }} | ||
{{ list_debate_answers order="bynumber asc" }} | ||
{{ if empty($answers) }} | ||
{{ $percent = floor($gimme->debateanswer->percentage) }} | ||
{{ else }} | ||
{{ $percent = ceil($gimme->debateanswer->percentage) }} | ||
{{ /if }} | ||
{{ $answers[] = ['answer' => $gimme->debateanswer->answer, 'percent' => $percent] }} | ||
{{ /list_debate_answers }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ $timestamp = sprintf('@%d', $gimme->debate->date_end) }} | ||
{{ $closingdate=date_create($timestamp) }} | ||
{{ $deadline=$closingdate->setTime(12, 0) }} | ||
{{ $diff=date_diff($deadline, date_create('now')) }} | ||
{{ if $deadline->getTimestamp() > time() }} | ||
<p>{{ $diff->days }} {{ #days# }}, {{ $diff->h }} {{ #hours# }}, {{ $diff->i }} {{ #minutes# }} more {{ if $gimme->article->comment_count }}<span class="comm">{{ $gimme->article->comment_count }}</span>{{ /if }}</p> | ||
{{ else }} | ||
<p>Discussion closed on {{ $deadline->format('j.n.Y') }} at noon {{ if $gimme->article->comment_count }}<a href="{{ url}}#comments"><span class="comm">{{ $gimme->article->comment_count }}</span></a>{{ /if }}</p> | ||
{{ /if }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ include file="_tpl/debate-answers.tpl" scope="parent" }} | ||
|
||
{{ capture name="votes" }} | ||
<ul class="debatte-score"> | ||
{{ strip }} | ||
{{ foreach $answers as $answer }} | ||
<li style="width:{{ $answer.percent }}%;" class="{{ if $answer@first }}yes{{ else }}no{{ /if }}"><span><b>{{ $answer.answer|escape }}</b> {{ $answer.percent }}%</span></li> | ||
{{ /foreach }} | ||
{{ /strip }} | ||
</ul> | ||
{{ /capture }} | ||
|
||
{{ if !$gimme->debate->is_votable }} | ||
{{ $smarty.capture.votes }} | ||
<small>{{ if $gimme->debate->is_current && !$gimme->user->logged_in }}Current result{{ else }}Final result{{ /if }}</small> | ||
{{ /if }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{ list_debates length="1" item="article" }} | ||
|
||
<div id="debate" class="clearfix score-box"> | ||
<h3>{{ #debateVoting# }}</h3> | ||
|
||
{{ include file="_tpl/debate-votes-total.tpl" scope="parent" }} | ||
|
||
{{ if $gimme->debate->is_votable }} | ||
{{ $smarty.capture.votes }} | ||
{{ include file="_tpl/debate-deadline.tpl" }} | ||
{{ /if }} | ||
|
||
|
||
{{ if $gimme->default_article->defined }} | ||
<div class="vote-box"> | ||
<div class="button-group"> | ||
{{ if $gimme->debate->is_votable }} | ||
{{ debate_form template="article.tpl" submit_button=false }} | ||
{{ list_debate_answers order="bynumber asc" }} | ||
|
||
<a onclick="$('#answer-{{ $gimme->debateanswer->number }}').attr('checked','checked');$(this).parents('form:eq(0)').submit(); return false;" href="javascript:void(0)" class="button debbut">{{ $gimme->debateanswer->answer }}</a> | ||
|
||
<!-- f_debateanswer_nr name mandatory --> | ||
<input type="radio" name="f_debateanswer_nr" | ||
value="{{ $gimme->debateanswer->number }}" id="answer-{{ $gimme->debateanswer->number }}" | ||
onclick="$(this).parents('form:eq(0)').submit();" style="display:none" /> | ||
|
||
{{ /list_debate_answers }} | ||
<input type="submit" id="submit-debate" class="button" value="~" style="display:none" /> | ||
{{ /debate_form }} | ||
{{ /if }} | ||
|
||
</div> | ||
</div> | ||
{{ if $gimme->debate->is_votable }}<small>{{ #changeYourMind# }}</small> | ||
{{ elseif $gimme->user->logged_in or !$gimme->debate->is_current }}<small>{{ #debateClosed# }}</small> | ||
{{ elseif $gimme->debate->is_current && !$gimme->user->logged_in }}<small>{{ #pleaseLoginVote# }}</small>{{ /if }} | ||
{{ /if }} | ||
|
||
</div> | ||
{{ /list_debates }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{ config_load file="{{ $gimme->language->english_name }}.conf" }} | ||
<div class="bloger_news_items"> | ||
<div class="space_left_content"> | ||
<ul> | ||
{{ list_articles ignore_issue="true" ignore_section="true" order="byPublishDate desc" length="10" }} | ||
|
||
{{if $gimme->current_list->index==4}} | ||
<li class="news_item"> | ||
|
||
</li> | ||
{{/if}} | ||
<li class="news_item"> | ||
<div class="content content_text"> | ||
|
||
{{ image rendition="section" }} | ||
<a href="{{url options="article"}}" class="thumbnail"> | ||
|
||
<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" /> | ||
{{ include file="_tpl/article_icons.tpl" }} | ||
</a> | ||
{{/image}} | ||
|
||
|
||
|
||
<h6 class="info">{{list_article_authors}} | ||
{{if $gimme->current_list->index!=1}}, {{/if}} | ||
|
||
{{ if $gimme->author->biography->first_name }} | ||
{{ $gimme->author->biography->first_name }} {{ | ||
$gimme->author->biography->last_name }} | ||
{{ else }} | ||
{{ $gimme->author->name }} | ||
{{ /if }} | ||
{{if $gimme->current_list->at_end}} | ||
- {{/if}}{{/list_article_authors}}{{ $gimme->article->publish_date|camp_date_format:"%d.%m.%Y, %H:%i" }}</h6> | ||
<h3 class="title"><a href="{{url options="article"}}">{{$gimme->article->name}}</a></h3> | ||
|
||
<p>{{$gimme->article->deck|strip_tags}}</p> | ||
</div> | ||
</li> | ||
|
||
{{if $gimme->current_list->at_end}} | ||
|
||
|
||
|
||
</ul> | ||
</div> | ||
</div> | ||
|
||
{{ include file="_tpl/pagination.tpl" }} | ||
{{/if}} | ||
|
||
{{/list_articles}} |
Oops, something went wrong.