Changeset 9572 for extensions/ContestResults/template
- Timestamp:
- Mar 8, 2011, 1:19:06 PM (14 years ago)
- Location:
- extensions/ContestResults/template
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/template/cr_main.tpl
r9419 r9572 1 {html_head} 2 <link rel="stylesheet" type="text/css" href="{$CR_PATH}template/style.css"> 3 {/html_head} 1 {combine_css id='cr_style' path=$CR_PATH|@cat:'template/style.css'} 4 2 5 3 {$MENUBAR} … … 10 8 <div class="titrePage"> 11 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} 12 15 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 16 </ul> 13 17 </ul> 14 18 <h2>{'Contests'|@translate}</h2> … … 26 30 <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}"> 27 31 <div class="illustration"> 28 {if $contest.STATUS == 'pending'} 32 {if !$contest.FINISHED == 'pending'} 33 <a href="{$contest.URL}"> 29 34 {if !empty($contest.LOGO)} 30 <a href="{$contest.URL}"> 31 <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> 32 </a> 35 <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> 33 36 {/if} 37 </a> 34 38 {else} 35 39 <a href="{$contest.URL}"> … … 41 45 <h3> 42 46 <a href="{$contest.URL}">{$contest.NAME}</a> 43 {if $contest.STATUS == 'finished'}<span class="CR_finished">({'CR_finished'|@translate})</span>{/if} 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} 44 52 </h3> 45 53 <div class="text"> 46 54 <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> 47 55 <p> 48 {if $contest.STATUS == 'pending'}56 {if !$contest.FINISHED} 49 57 {if !empty($contest.SUMMARY)} 50 58 {$contest.SUMMARY} -
extensions/ContestResults/template/cr_menubar.tpl
r9200 r9572 1 1 {html_head} 2 2 <style type="text/css"> 3 .CR_finished {ldelim}3 .CR_finished_menu {ldelim} 4 4 font-size:0.8em; 5 5 color:#a00; 6 letter-spacing:0px; 6 7 } 7 8 </style> … … 15 16 <a href="{$data.URL}" title="{$data.DATE}"> 16 17 {$data.LABEL} 17 {if $data.STATUS == 'finished'}<span class="CR_finished">×</span>{/if} 18 {if $data.FINISHED} 19 <span class="CR_finished_menu">×</span> 20 {else} 21 <span class="CR_finished_menu">{$data.DAYS}</span> 22 {/if} 18 23 </a> 19 24 </li> -
extensions/ContestResults/template/cr_page.tpl
r9200 r9572 1 {html_head} 2 <link rel="stylesheet" type="text/css" href="{$CR_PATH}template/style.css"> 3 {/html_head} 1 {combine_css id='cr_style' path=$CR_PATH|@cat:'template/style.css'} 4 2 5 3 {$MENUBAR} … … 10 8 <ul class="categoryActions"> 11 9 {if isset($U_EDIT) } 12 <li><a href="{$U_EDIT}" title="{'CR_edit_tab'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'CR_edit_tab'|@translate}"></a></li> 10 <li><a href="{$U_EDIT}" title="{'CR_edit_tab'|@translate}" class="pwg-state-default pwg-button"> 11 <span class="pwg-icon pwg-icon-category-edit"> </span><span class="pwg-button-text">{'CR_edit_tab'|@translate}</span> 12 </a></li> 13 13 {/if} 14 14 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} … … 16 16 <h2> 17 17 <a href="index.php?/contests" name="top">{'Contests'|@translate}</a>{$SEPARATOR}<a href="{$URL}">{$NAME}</a> 18 {if $STATUS=='finished'}<span class="CR_finished">({'CR_finished'|@translate})</span>{/if} 18 {if $FINISHED} 19 <span class="CR_finished">({'CR_finished'|@translate})</span> 20 {else} 21 <span class="CR_finished">({$DAYS} {'CR_days'|@translate})</span> 22 {/if} 19 23 </h2> 20 24 </div> <!-- titrePage --> … … 38 42 </div> 39 43 40 { if !empty($PRESENTATION)}44 {foreach from=$description item=desc name=desc_loop} 41 45 <div class="CR_text"> 42 <h3>{ 'CR_presentation'|@translate} :</h3>43 {$ PRESENTATION}46 <h3>{$desc.NAME} :</h3> 47 {$desc.CONTENT} 44 48 </div> 45 {/if} 46 47 {if !empty($RULES)} 48 <div class="CR_text"> 49 <h3>{'CR_rules'|@translate} :</h3> 50 {$RULES} 51 </div> 52 {/if} 53 54 {if !empty($PRICES)} 55 <div class="CR_text"> 56 <h3>{'CR_prices'|@translate} :</h3> 57 {$PRICES} 58 </div> 59 {/if} 60 61 {if !empty($FINAL)} 62 <div class="CR_text"> 63 <h3>{'CR_final'|@translate} :</h3> 64 {$FINAL} 65 </div> 66 {/if} 49 {/foreach} 67 50 </div> <!-- content_contest --> 68 51 … … 72 55 <ul class="categoryActions"> 73 56 {if isset($U_RESULTS) } 74 <li><a href="{$U_RESULTS}" title="{'CR_results'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'CR_results'|@translate}"></a></li> 57 <li><a href="{$U_RESULTS}" title="{'CR_results'|@translate}" class="pwg-state-default pwg-button"> 58 <span class="pwg-icon pwg-icon-category-edit"> </span><span class="pwg-button-text">{'CR_edit_tab'|@translate}</span> 59 </a></li> 75 60 {/if} 76 61 </ul> -
extensions/ContestResults/template/style.css
r9200 r9572 2 2 font-weight:normal; 3 3 font-size:0.8em; 4 letter-spacing:0. 3em;4 letter-spacing:0.2em; 5 5 padding-left:10px; 6 6 color:#a00;
Note: See TracChangeset
for help on using the changeset viewer.