Last change
on this file since 17835 was
9745,
checked in by mistic100, 14 years ago
|
[extensions] Contest Results
- New bloc for PWG Stuffs
- Use new admin links and javascript implementation
- Distinguish pending and running contests (both pending before)
|
File size:
1.2 KB
|
Line | |
---|
1 | {combine_css path=$block.CR_PATH|@cat:'template/style.css'} |
---|
2 | |
---|
3 | <ul class="thumbnailCategories"> |
---|
4 | {foreach from=$block.contests item=contest} |
---|
5 | <li class="{$block.SIZE_CLASS} {if !$contest.VISIBLE}novisible{/if}"> |
---|
6 | <div class="thumbnailCategory"> |
---|
7 | <div class="illustration"> |
---|
8 | <a href="{$contest.URL}"> |
---|
9 | {if $contest.STATUS != 'finished' AND !empty($contest.LOGO)} |
---|
10 | <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> |
---|
11 | {elseif !empty($contest.RESULTS.1.TN_SRC)} |
---|
12 | <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}"> |
---|
13 | {/if} |
---|
14 | </a> |
---|
15 | </div> |
---|
16 | <div class="description"> |
---|
17 | <h3><a href="{$contest.URL}">{$contest.NAME}</a></h3> |
---|
18 | <div class="text"> |
---|
19 | <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> |
---|
20 | <span class="CR_finished">({$contest.DAYS})</span> |
---|
21 | <p> |
---|
22 | {if $contest.STATUS != 'finished' AND !empty($contest.SUMMARY)} |
---|
23 | {$contest.SUMMARY} |
---|
24 | {else} |
---|
25 | {foreach from=$contest.RESULTS item=result} |
---|
26 | {'CR_order_'|cat:$result.RANK|@translate} {'CR_place'|@translate} - <u>{$result.AUTHOR}</u><br> |
---|
27 | {/foreach} |
---|
28 | {/if} |
---|
29 | </p> |
---|
30 | </div> |
---|
31 | </div> |
---|
32 | </div> |
---|
33 | </li> |
---|
34 | {/foreach} |
---|
35 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.