- fix display of rating stars on picture page (since smarty)

- rating star css use a CSS sprite

git-svn-id: http://piwigo.org/svn/trunk@2295 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-04-02 00:51:08 +00:00
parent 118e0ac6e2
commit 0c1e61c481
5 changed files with 6 additions and 10 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

+2 -4
View File
@@ -110,13 +110,11 @@ TABLE.infoTable TD.value UL {
}
.rateButtonStarFull {
background: url('icon/star_f.gif') no-repeat center;
width: 16px;
background: url('icon/rating-stars.gif') no-repeat scroll; background-position:-16px center; width:16px;
}
.rateButtonStarEmpty {
background: url('icon/star_e.gif') no-repeat center;
width: 16px;
background: url('icon/rating-stars.gif') no-repeat scroll; background-position:0 center; width:16px;
}
#comments {
+4 -6
View File
@@ -39,7 +39,7 @@
{if isset($U_SLIDESHOW_STOP) }
<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>
{/if}
<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>
<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>
{if isset($current.U_DOWNLOAD) }
<a href="{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
{/if}
@@ -115,10 +115,8 @@
<td class="label">{'Tags'|@translate}</td>
<td class="value">
{if isset($related_tags)}
{foreach from=$related_tags item=tag name=tag_loop}
{if !$smarty.foreach.tag_loop.first}, {/if}
<a href="{$tag.U_TAG}">{$tag.NAME}</a>
{/foreach}
{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}
<a href="{$tag.U_TAG}">{$tag.NAME}</a>{/foreach}
{/if}
</td>
</tr>
@@ -176,7 +174,7 @@
:
{foreach from=$rating.marks item=mark name=rate_loop}
{if !$smarty.foreach.rate_loop.first} | {/if}
{if $mark==$rating.USER_RATE}
{if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
<input type="button" name="rate" value="{$mark}" class="rateButtonSelected" />
{else}
<input type="submit" name="rate" value="{$mark}" class="rateButton" />