Ignore:
Timestamp:
Mar 8, 2011, 1:19:06 PM (13 years ago)
Author:
mistic100
Message:

[extensions] ContestResults 1.3

  • Add error and success messages on admin page
  • Add Spain (es_ES) thanks to jpr928
  • Contest status is automatic and shows remaining days
  • More flexibility for description fields
  • Compatibility with Piwigo 2.2.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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'}
    42
    53{$MENUBAR}
     
    108                <ul class="categoryActions"> 
    119                        {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>
    1313                        {/if}
    1414                        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     
    1616                <h2>
    1717                        <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}
    1923                </h2>
    2024        </div> <!-- titrePage -->
     
    3842        </div>
    3943       
    40         {if !empty($PRESENTATION)}
     44        {foreach from=$description item=desc name=desc_loop}
    4145                <div class="CR_text">
    42                         <h3>{'CR_presentation'|@translate} :</h3>
    43                         {$PRESENTATION}
     46                        <h3>{$desc.NAME} :</h3>
     47                        {$desc.CONTENT}
    4448                </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}
    6750</div> <!-- content_contest -->
    6851
     
    7255                        <ul class="categoryActions"> 
    7356                                {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>
    7560                                {/if}
    7661                        </ul>
Note: See TracChangeset for help on using the changeset viewer.