From 0c1e61c481628ecae8b772e971259fc48ecd113b Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 2 Apr 2008 00:51:08 +0000 Subject: - 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 --- template/yoga/icon/rating-stars.gif | Bin 0 -> 251 bytes template/yoga/icon/star_e.gif | Bin 109 -> 0 bytes template/yoga/icon/star_f.gif | Bin 185 -> 0 bytes template/yoga/picture.css | 6 ++---- template/yoga/picture.tpl | 10 ++++------ 5 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 template/yoga/icon/rating-stars.gif delete mode 100644 template/yoga/icon/star_e.gif delete mode 100644 template/yoga/icon/star_f.gif (limited to 'template/yoga') diff --git a/template/yoga/icon/rating-stars.gif b/template/yoga/icon/rating-stars.gif new file mode 100644 index 000000000..535443e06 Binary files /dev/null and b/template/yoga/icon/rating-stars.gif differ diff --git a/template/yoga/icon/star_e.gif b/template/yoga/icon/star_e.gif deleted file mode 100644 index e09994991..000000000 Binary files a/template/yoga/icon/star_e.gif and /dev/null differ diff --git a/template/yoga/icon/star_f.gif b/template/yoga/icon/star_f.gif deleted file mode 100644 index 5e08567b3..000000000 Binary files a/template/yoga/icon/star_f.gif and /dev/null differ diff --git a/template/yoga/picture.css b/template/yoga/picture.css index 27fd5aec8..839760053 100644 --- a/template/yoga/picture.css +++ b/template/yoga/picture.css @@ -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 { diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index 9e0d6fa2f..276db31de 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -39,7 +39,7 @@ {if isset($U_SLIDESHOW_STOP) } {'slideshow_stop'|@translate} {/if} - {'picture_show_metadata'|@translate} + metadata {if isset($current.U_DOWNLOAD) } {'download'|@translate} {/if} @@ -115,10 +115,8 @@ {'Tags'|@translate} {if isset($related_tags)} - {foreach from=$related_tags item=tag name=tag_loop} - {if !$smarty.foreach.tag_loop.first}, {/if} - {$tag.NAME} - {/foreach} + {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} + {$tag.NAME}{/foreach} {/if} @@ -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} {else} -- cgit v1.2.3