clean up code
This commit is contained in:
@@ -475,28 +475,7 @@ function displayRetina ($file,$album) {
|
|||||||
$display = '<div class="album">';
|
$display = '<div class="album">';
|
||||||
$display .= '<div class="holder">';
|
$display .= '<div class="holder">';
|
||||||
$display .= '<a href="' . $fullpath . 'albums/'.$album.'/'.$file['filename'].'" title="'.date_archive($file['filename']).'" class="kk-lightbox">';
|
$display .= '<a href="' . $fullpath . 'albums/'.$album.'/'.$file['filename'].'" title="'.date_archive($file['filename']).'" class="kk-lightbox">';
|
||||||
/*
|
|
||||||
$display .= '<picture data-picture data-alt="">';
|
|
||||||
$display .= '<!--[if IE 9]><video style="display: none;"><![endif]-->';
|
|
||||||
$display .= '<source class="image_standard" srcset="' . $standard . '">';
|
|
||||||
|
|
||||||
$display .= '<!--[if IE 9]></video><![endif]-->';
|
|
||||||
$display .= '<img srcset="' . $thumb['sd']['url'] . '" width="' . $thumb['sd']['width'] . '" height="' . $thumb['sd']['height'] . '"alt="">';
|
|
||||||
$display .= '</picture>';
|
|
||||||
|
|
||||||
$display .= '<img width="" height=""
|
|
||||||
src="../../../zenphoto/cache/photos-du-mois/10_2016_200_thumb.jpg"
|
|
||||||
class="" alt=""
|
|
||||||
srcset="../../../zenphoto/cache/photos-du-mois/10_2016_200_thumb.jpg 200w,
|
|
||||||
../../../zenphoto/cache/photos-du-mois/10_2016_400_thumb.jpg 400w"
|
|
||||||
sizes="(max-width: 200px) 100vw, 200px" />';
|
|
||||||
|
|
||||||
$display .= '<img width="' . $thumb['sd']['width'] . '" height="' . $thumb['sd']['height'] . '"
|
|
||||||
src="' . $thumb['sd']['url'] . '"
|
|
||||||
class="" alt=""
|
|
||||||
srcset="' . $standard . '"
|
|
||||||
sizes="(max-width: 200px) 100vw, 200px" />';
|
|
||||||
*/
|
|
||||||
$display .= "<img width='" . $thumb['sd']['width'] . "' height='" . $thumb['sd']['height'] . "' src='" . $thumb['sd']['url'] . "' class='' alt='' srcset='" . $standard . "' sizes='(max-width: 200px) 100vw, 200px' />";
|
$display .= "<img width='" . $thumb['sd']['width'] . "' height='" . $thumb['sd']['height'] . "' src='" . $thumb['sd']['url'] . "' class='' alt='' srcset='" . $standard . "' sizes='(max-width: 200px) 100vw, 200px' />";
|
||||||
|
|
||||||
$display .= '</a>';
|
$display .= '</a>';
|
||||||
|
|||||||
Reference in New Issue
Block a user