diff --git a/web/ajax/events.php b/web/ajax/events.php index c95b404c4..28512dfd1 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -275,7 +275,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&'); // Modify the row data as needed - $row['imgHtml'] = ''; + $row['imgHtml'] = ''; $row['Name'] = validHtmlStr($row['Name']); $row['Archived'] = $row['Archived'] ? translate('Yes') : translate('No'); $row['Emailed'] = $row['Emailed'] ? translate('Yes') : translate('No'); diff --git a/web/ajax/snapshots.php b/web/ajax/snapshots.php index d122e8a9f..c01e2ddbb 100644 --- a/web/ajax/snapshots.php +++ b/web/ajax/snapshots.php @@ -200,7 +200,7 @@ function queryRequest($search, $advsearch, $sort, $offset, $order, $limit) { $scale = intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width()); $imgSrc = $event->getThumbnailSrc(array(), '&'); - $row['imgHtml'] .= ''; + $row['imgHtml'] .= ''; } $row['Name'] = validHtmlStr($row['Name']); $row['Description'] = validHtmlStr($row['Description']); diff --git a/web/ajax/watch.php b/web/ajax/watch.php index e8c551643..367ab45c3 100644 --- a/web/ajax/watch.php +++ b/web/ajax/watch.php @@ -62,7 +62,7 @@ foreach ( $rows as $row ) { 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&'); // Modify the row data as needed - $row['imgHtml'] = ''; + $row['imgHtml'] = ''; $row['Name'] = validHtmlStr($row['Name']); $row['StartDateTime'] = strftime(STRF_FMT_DATETIME_SHORTER, strtotime($row['StartDateTime'])); $row['Length'] = gmdate('H:i:s', $row['Length'] ); diff --git a/web/includes/functions.php b/web/includes/functions.php index bfa4b9746..9ee3f68be 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -264,7 +264,7 @@ function getImageStreamHTML( $id, $src, $width, $height, $title='' ) { if ( canStreamIframe() ) { return ''; } else { - return ''; + return ''; } } @@ -316,7 +316,7 @@ function outputImageStill($id, $src, $width, $height, $title='') { function getImageStill($id, $src, $width, $height, $title='') { return ''; + (validInt($height)?' height="'.$height.'"':'').' loading="lazy" />'; } function getWebSiteUrl($id, $src, $width, $height, $title='') { diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index e49b2c467..cca0c31a2 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -319,7 +319,7 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) { .$thmbWidth.$thmbHeight. '" stream_src="' .$streamSrc. '" still_src="' .$stillSrc. '"'. ($options['width'] ? ' width="'.$options['width'].'"' : '' ). ($options['height'] ? ' height="'.$options['height'].'"' : '' ). - '/>'; + ' loading="lazy" />'; } ?>