implementacion de carga dinamica de imagenes con lazy loading
This commit is contained in:
parent
e0c74579b4
commit
4ffa9517ff
@ -11061,7 +11061,7 @@ if (mysqli_num_rows($sql)!='0'){
|
||||
if($imagen[3] != null AND $tipo !='titulos') {
|
||||
$array[image]=$imagen;
|
||||
$imagen_icon="secure/?file=150/$imagen";
|
||||
$imagen= "<img class='thumbnail' data-src='images/secure/?file=150/$imagen' src='images/secure/?file=150/$imagen' alt='$imagen' style='max-width:100px;' title='$imagen'>";
|
||||
$imagen= "<img class='thumbnail lazy' data-src='images/secure/?file=150/$imagen' src='images/secure/?file=150/$imagen' alt='$imagen' style='max-width:100px;' title='$imagen'>";
|
||||
$td .= "<td class='planilla_$row[id_campo]' >$imagen</td>";
|
||||
}else {$imagen='';}
|
||||
|
||||
@ -11120,7 +11120,7 @@ $td .= "<td class='planilla_$row[id_campo]' >$imagen</td>";
|
||||
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
|
||||
//http://staticmap.openstreetmap.de/staticmap.php?center=40.714728,-73.998672&zoom=14&size=865x512&maptype=mapnik
|
||||
$contenido = "
|
||||
<img class='img-round' src='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
|
||||
<img class='lazy img-round' data-src='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
|
||||
";
|
||||
} else { $contenido ='';}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user