1 | {html_head} |
---|
2 | <link rel="stylesheet" type="text/css" href="{$CR_PATH}template/style.css"> |
---|
3 | {/html_head} |
---|
4 | |
---|
5 | {$MENUBAR} |
---|
6 | |
---|
7 | {if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if} |
---|
8 | |
---|
9 | <div id="content" class="content"> |
---|
10 | <div class="titrePage"> |
---|
11 | <ul class="categoryActions"> |
---|
12 | {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} |
---|
13 | </ul> |
---|
14 | <h2>{'Contests'|@translate}</h2> |
---|
15 | </div> <!-- titrePage --> |
---|
16 | |
---|
17 | {if !isset($contests)} |
---|
18 | <div class="nopublic" style="margin-bottom:200px;"> |
---|
19 | {'CR_no_contest'|@translate} |
---|
20 | </div> |
---|
21 | |
---|
22 | {else} |
---|
23 | <ul class="thumbnailCategories"> |
---|
24 | {foreach from=$contests item=contest} |
---|
25 | <li> |
---|
26 | <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}"> |
---|
27 | <div class="illustration"> |
---|
28 | <a href="{$contest.URL}"> |
---|
29 | {if $contest.STATUS == 'pending'} |
---|
30 | {if !empty($contest.LOGO)} |
---|
31 | <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> |
---|
32 | {/if} |
---|
33 | {else} |
---|
34 | <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}"> |
---|
35 | {/if} |
---|
36 | </a> |
---|
37 | </div> |
---|
38 | <div class="description"> |
---|
39 | <h3> |
---|
40 | <a href="{$contest.URL}">{$contest.NAME}</a> |
---|
41 | {if $contest.STATUS == 'finished'}<span class="CR_finished">({'CR_finished'|@translate})</span>{/if} |
---|
42 | </h3> |
---|
43 | <div class="text"> |
---|
44 | <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> |
---|
45 | <p> |
---|
46 | {if $contest.STATUS == 'pending'} |
---|
47 | {if !empty($contest.SUMMARY)} |
---|
48 | {$contest.SUMMARY} |
---|
49 | {/if} |
---|
50 | {else} |
---|
51 | {foreach from=$contest.RESULTS item=result} |
---|
52 | {'CR_order_'|cat:$result.RANK|@translate} {'CR_place'|@translate} - <u>{$result.AUTHOR}</u><br> |
---|
53 | {/foreach} |
---|
54 | {/if} |
---|
55 | </p> |
---|
56 | </div> |
---|
57 | </div> |
---|
58 | </div> |
---|
59 | </li> |
---|
60 | {/foreach} |
---|
61 | </ul> |
---|
62 | {/if} |
---|
63 | </div> <!-- content --> |
---|
64 | |
---|
65 | {if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if} |
---|