blob: c28859bded9b871aa34bb7fda3b51b18adb66b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# A non-empty EXIF summary becomes a title="" attribute so hovering the image
# shows the camera/exposure details, mirroring the details view.
if [ -n "$render_exif_tooltip_html" ]; then
render_exif_tooltip_attr=" title=\"$render_exif_tooltip_html\""
else
render_exif_tooltip_attr=''
fi
cat <<END
<div class='view'>
<a href="${render_page_num_html}-${render_view_next_html}.html">
<img class='view ${render_animation_class_html}' alt='${render_photo_html}' src='${render_backhref_html}/${render_photos_dir_html}/${render_photo_html}'${render_exif_tooltip_attr}>
</a>
<div class="navigator">
<a href="${render_page_num_html}-${render_view_prev_html}.html" class="arrow">⇐</a>
<a href="page-${render_page_num_html}.html#${render_photo_html}">Thumbnails</a> <span class="nav-sep">|</span>
<a href="${render_page_num_html}-${render_preview_num_html}-details.html">Details</a> <span class="nav-sep">|</span>
<a href='${render_backhref_html}/${render_photos_dir_html}/${render_photo_html}'>Direct link</a>
<a href="${render_page_num_html}-${render_view_next_html}.html" class="arrow">⇒</a>
</div>
</div>
END
if [ "${render_original_basepath_is_set}" = 'yes' ]; then
cat <<END
<p>
<a href="${render_original_basepath_html}/${render_photo_html}">Original</a>
</p>
END
fi
|