Changeset 2295 for trunk/template


Ignore:
Timestamp:
Apr 2, 2008, 2:51:08 AM (16 years ago)
Author:
rvelices
Message:
  • fix display of rating stars on picture page (since smarty)
  • rating star css use a CSS sprite
Location:
trunk/template/yoga
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/picture.css

    r2292 r2295  
    111111
    112112.rateButtonStarFull {
    113   background: url('icon/star_f.gif') no-repeat center;
    114   width: 16px;
     113        background: url('icon/rating-stars.gif') no-repeat scroll; background-position:-16px center; width:16px;
    115114}
    116115
    117116.rateButtonStarEmpty {
    118   background: url('icon/star_e.gif') no-repeat center;
    119   width: 16px;
     117        background: url('icon/rating-stars.gif') no-repeat scroll; background-position:0 center; width:16px;
    120118}
    121119
  • trunk/template/yoga/picture.tpl

    r2265 r2295  
    4040      <a href="{$U_SLIDESHOW_STOP}" title="{'slideshow_stop'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_slideshow.png" class="button" alt="{'slideshow_stop'|@translate}"></a>
    4141    {/if}
    42       <a href="{$U_METADATA}" title="{'picture_show_metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="{'picture_show_metadata'|@translate}"></a>
     42      <a href="{$U_METADATA}" title="{'picture_show_metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata" /></a>
    4343    {if isset($current.U_DOWNLOAD) }
    4444      <a href="{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
     
    116116    <td class="value">
    117117      {if isset($related_tags)}
    118         {foreach from=$related_tags item=tag name=tag_loop}
    119         {if !$smarty.foreach.tag_loop.first}, {/if}
    120         <a href="{$tag.U_TAG}">{$tag.NAME}</a>
    121         {/foreach}
     118        {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}
     119        <a href="{$tag.U_TAG}">{$tag.NAME}</a>{/foreach}
    122120      {/if}
    123121    </td>
     
    177175{foreach from=$rating.marks item=mark name=rate_loop}
    178176{if !$smarty.foreach.rate_loop.first} | {/if}
    179 {if $mark==$rating.USER_RATE}
     177{if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
    180178  <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" />
    181179{else}
Note: See TracChangeset for help on using the changeset viewer.