summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-05-24 13:01:13 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-05-24 13:01:13 +0200
commit6c98040d5b5f29f3952b8222d5cf256007347e5d (patch)
tree31f781bf71e0fc431328d163c4361f07e2f9ffb2 /themes
parente75b25313a062eaac262f504397b1b75c092a6cd (diff)
parent99dd0b5d5e19d565088595a9fd9d164bcd4834ae (diff)
Merge branch 'rating'
Diffstat (limited to 'themes')
-rw-r--r--themes/default/templates/photo_index.tpl8
-rw-r--r--themes/default/templates/search.tpl23
-rw-r--r--themes/default/templates/single_photo.tpl7
3 files changed, 38 insertions, 0 deletions
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl
index c9da477..7fe04ab 100644
--- a/themes/default/templates/photo_index.tpl
+++ b/themes/default/templates/photo_index.tpl
@@ -78,9 +78,17 @@
<br />
{$img_name[thumb]}
</a>
+ <!-- show lightbox eyes, if enabled -->
{ if $use_lightbox }
<a href="{$web_path}/phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="{$web_path}/resources/eyes.png" /></a>
{ /if }
+ <!-- show F-Spot photo rating value, if available -->
+ { if $img_rating[thumb] }
+ <br />
+ {section name="rating" loop=$img_rating[thumb] step=1}
+ <img src="{$web_path}/resources/star.png" />
+ {/section}
+ { /if }
</div>
{/if}
diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl
index c1d152c..672bb35 100644
--- a/themes/default/templates/search.tpl
+++ b/themes/default/templates/search.tpl
@@ -60,6 +60,29 @@
<input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
</td>
</tr>
+ { if $has_rating }
+ <tr>
+ <td>Rating:</td>
+ <td class="nowarp">
+ { if ! $rate_search_enabled }
+ <input type="checkbox" class="checkbox" name="consider_rate" value="Y" />
+ { else }
+ <input type="checkbox" class="checkbox" name="consider_rate" value="Y" checked="checked" />
+ { /if }
+ consider rate-range
+ </td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>
+ { $rate_search }
+ </td>
+ <td>
+ <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
+ </td>
+ </tr>
+ { /if }
<tr>
<td>
Sort-Order:&nbsp;
diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl
index 9b690ff..20b59f8 100644
--- a/themes/default/templates/single_photo.tpl
+++ b/themes/default/templates/single_photo.tpl
@@ -42,6 +42,13 @@
{$ExifOrigResolution}px<br />
{ /if }
<u>Size:</u>&nbsp;{$ExifFileSize}<br />
+ { if $image_rating }
+ <u><img src="{$web_path}/resources/rating.png" alt="rating" />&nbsp;Rating:</u><br />
+ {section name="rating" loop=$image_rating step=1}
+ <img src="{$web_path}/resources/star.png" />
+ {/section}
+ <br />
+ { /if }
{ if $tags }
<br />
<u><img src="{$web_path}/resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />