Changeset 16298


Ignore:
Timestamp:
Jul 2, 2012, 10:08:28 PM (12 years ago)
Author:
Zaphod
Message:

version 2.2.2

Location:
extensions/stripped
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/readme.txt

    r15949 r16298  
    3131Changelog
    3232---------
     33
     34*** version 2.2.2
     35
     36- rating score fix
     37- link to album on image
     38- new language (thanks to the translator)
    3339
    3440*** version 2.2.1
  • extensions/stripped/template/picture.tpl

    r14687 r16298  
    5252        {/if}{/strip}
    5353                {strip}{if isset($current.U_DOWNLOAD)}
    54                         <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li>
     54                        <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'Download'|@translate}</a></li>
    5555                {/if}{/strip}
    5656                {strip}{if isset($PLUGIN_PICTURE_ACTIONS)}
     
    158158                {if $display_info.categories}{assign var='display_count' value=$display_count+1}{/if}
    159159                {if $display_info.visits}{assign var='display_count' value=$display_count+1}{/if}
    160                 {if $display_info.average_rate and isset($rate_summary) }{assign var='display_count' value=$display_count+1}{/if}
     160                {if $display_info.rating_score and isset($rate_summary) }{assign var='display_count' value=$display_count+1}{/if}
    161161                {if isset($rating)}{assign var='display_count' value=$display_count+1}{/if}
    162162                {if $display_info.privacy_level and isset($available_permission_levels) }{assign var='display_count' value=$display_count+1}{/if}
     
    279279                                                {/if}
    280280
    281                                                 {if $display_info.average_rate and isset($rate_summary) }
    282                                                         <tr id="Average">
    283                                                                 <td class="label">{'Average rate'|@translate}</td>
    284                                                                 <td class="value" id="ratingSummary">
    285                                                                 {if $rate_summary.count}
    286                                                                         {assign var='rate_text' value='%.2f (rated %d times)'|@translate }
    287                                                                         {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
    288                                                                 {else}
    289                                                                         {'no rate'|@translate}
    290                                                                 {/if}
     281                                                {if $display_info.rating_score and isset($rate_summary) }
     282                                                        <tr id="Score">
     283                                                                <td class="label">{'Rating score'|@translate}</td>
     284                                                                <td class="value">
     285                                                                        {if $rate_summary.count}
     286                                                                                {if $rate_summary.count == 1}
     287                                                                                        {assign var='rate_text' value='%d rate'|@translate}
     288                                                                                {else}
     289                                                                                        {assign var='rate_text' value='%d rates'|@translate}
     290                                                                                {/if}
     291                                                                                <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span>
     292                                                                        {else}
     293                                                                                <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span>
     294                                                                        {/if}
    291295                                                                </td>
    292296                                                        </tr>
     
    294298                                         
    295299                                                {if isset($rating)}
    296                                                         <tr id="rating">
     300                                                        <tr id="Rating">
    297301                                                                <td class="label">
    298302                                                                        <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span>
  • extensions/stripped/template/picture_content.tpl

    r14687 r16298  
    2828        {/if}
    2929        {if ($stripped.imageArrows) }
    30 <!--            {if isset($U_UP)}
    31                         <a href="{$U_UP}" class="cat_up">&nbsp;</a>
    32                  {/if}-->
     30                {if isset($U_UP)}
     31                        <a href="{$U_UP}" class="img_nav cat_up" alt="{'Thumbnails'|@translate}">&nbsp;</a>
     32                {/if}
    3333                {if isset($previous)}
    34                         <a href="{$previous.U_IMG}" class="img_nav img_prev">&nbsp;</a>
     34                        <a href="{$previous.U_IMG}" class="img_nav img_prev" alt="{$previous.TITLE}">&nbsp;</a>
    3535                {/if}
    3636                {if isset($next)}
    37                         <a href="{$next.U_IMG}" class="img_nav img_next">&nbsp;</a>
     37                        <a href="{$next.U_IMG}" class="img_nav img_next" alt="{$next.TITLE}">&nbsp;</a>
    3838                {/if}
    3939        {/if}
Note: See TracChangeset for help on using the changeset viewer.