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