Changeset 9745 for extensions/ContestResults/template/cr_main.tpl
- Timestamp:
- Mar 17, 2011, 8:25:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/template/cr_main.tpl
r9572 r9745 1 {combine_css id='cr_style'path=$CR_PATH|@cat:'template/style.css'}1 {combine_css path=$CR_PATH|@cat:'template/style.css'} 2 2 3 3 {$MENUBAR} … … 26 26 {else} 27 27 <ul class="thumbnailCategories"> 28 {foreach from=$contests item=contest}29 <li >30 <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">28 {foreach from=$contests item=contest} 29 <li {if !$contest.VISIBLE}class="novisible"{/if}> 30 <div class="thumbnailCategory"> 31 31 <div class="illustration"> 32 {if !$contest.FINISHED == 'pending'}33 32 <a href="{$contest.URL}"> 34 {if !empty($contest.LOGO)}33 {if $contest.STATUS != 'finished' AND !empty($contest.LOGO)} 35 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:'"':' '}"> 36 37 {/if} 37 38 </a> 38 {else}39 <a href="{$contest.URL}">40 <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}">41 </a>42 {/if}43 39 </div> 44 40 <div class="description"> 45 <h3> 46 <a href="{$contest.URL}">{$contest.NAME}</a> 47 {if $contest.FINISHED} 48 <span class="CR_finished">({'CR_finished'|@translate})</span> 49 {else} 50 <span class="CR_finished">({$contest.DAYS} {'CR_days'|@translate})</span> 51 {/if} 52 </h3> 41 <h3><a href="{$contest.URL}">{$contest.NAME}</a></h3> 53 42 <div class="text"> 54 43 <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> 44 <span class="CR_finished">({$contest.DAYS})</span> 55 45 <p> 56 {if !$contest.FINISHED} 57 {if !empty($contest.SUMMARY)} 58 {$contest.SUMMARY} 59 {/if} 46 {if $contest.STATUS != 'finished' AND !empty($contest.SUMMARY)} 47 {$contest.SUMMARY} 60 48 {else} 61 49 {foreach from=$contest.RESULTS item=result} … … 68 56 </div> 69 57 </li> 70 {/foreach}58 {/foreach} 71 59 </ul> 72 60 {/if}
Note: See TracChangeset
for help on using the changeset viewer.