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_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'}
    42
    53{$MENUBAR}
     
    108        <div class="titrePage">
    119                <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}
    1215                        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     16                </ul>
    1317                </ul>
    1418                <h2>{'Contests'|@translate}</h2>
     
    2630                        <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
    2731                                <div class="illustration">
    28                                 {if $contest.STATUS == 'pending'}
     32                                {if !$contest.FINISHED == 'pending'}
     33                                        <a href="{$contest.URL}">
    2934                                        {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;">
    3336                                        {/if}
     37                                        </a>
    3438                                {else}
    3539                                        <a href="{$contest.URL}">
     
    4145                                        <h3>
    4246                                                <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}
    4452                                        </h3>
    4553                                        <div class="text">
    4654                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
    4755                                                <p>
    48                                                 {if $contest.STATUS == 'pending'}
     56                                                {if !$contest.FINISHED}
    4957                                                        {if !empty($contest.SUMMARY)}
    5058                                                                {$contest.SUMMARY}
Note: See TracChangeset for help on using the changeset viewer.