Use alt and title tags on frame images

pull/3684/head
Isaac Connor 2023-03-28 16:35:20 -04:00
parent 06cad49b80
commit db58e9f7ef
1 changed files with 3 additions and 3 deletions

View File

@ -221,21 +221,21 @@ if ( $Event->Id() and !file_exists($Event->Path()) )
if (file_exists($Event->Path().'/alarm.jpg')) { if (file_exists($Event->Path().'/alarm.jpg')) {
echo ' echo '
<a href="?view=image&eid='. $Event->Id().'&amp;fid=alarm"> <a href="?view=image&eid='. $Event->Id().'&amp;fid=alarm">
<img src="?view=image&eid='. $Event->Id().'&amp;fid=alarm&width='.ZM_WEB_LIST_THUMB_WIDTH.'" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" alt="First alarmed frame"/> <img src="?view=image&eid='. $Event->Id().'&amp;fid=alarm&width='.ZM_WEB_LIST_THUMB_WIDTH.'" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" alt="First alarmed frame" title="First alarmed frame"/>
</a> </a>
'; ';
} }
if (file_exists($Event->Path().'/snapshot.jpg')) { if (file_exists($Event->Path().'/snapshot.jpg')) {
echo ' echo '
<a href="?view=image&eid='. $Event->Id().'&amp;fid=snapshot"> <a href="?view=image&eid='. $Event->Id().'&amp;fid=snapshot">
<img src="?view=image&eid='. $Event->Id().'&amp;fid=snapshot&width='.ZM_WEB_LIST_THUMB_WIDTH.'" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" title="Frame with the most motion"/> <img src="?view=image&eid='. $Event->Id().'&amp;fid=snapshot&width='.ZM_WEB_LIST_THUMB_WIDTH.'" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" alt="Frame with the most motion" title="Frame with the most motion"/>
</a> </a>
'; ';
} }
if (file_exists($Event->Path().'/objdetect.jpg')) { if (file_exists($Event->Path().'/objdetect.jpg')) {
echo ' echo '
<a href="?view=image&eid='. $Event->Id().'&amp;fid=objdetect"> <a href="?view=image&eid='. $Event->Id().'&amp;fid=objdetect">
<img src="?view=image&eid='. $Event->Id().'&amp;fid=objdetect" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" alt="Detected Objects"/> <img src="?view=image&eid='. $Event->Id().'&amp;fid=objdetect" width="'.ZM_WEB_LIST_THUMB_WIDTH.'" alt="Detected Objects" title="Detected Objects"/>
</a> </a>
'; ';
} }