From eac6eddd0d52e2e96a32516750df05126a6f098f Mon Sep 17 00:00:00 2001 From: humano Date: Mon, 30 Oct 2017 11:26:26 -0500 Subject: [PATCH] implementacion de carga dinamica de imagenes con lazy loading --- milfs/funciones/funciones.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index dd5fe65..406fc28 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -11065,7 +11065,7 @@ if (mysqli_num_rows($sql)!='0'){ $td .= "$imagen"; }else {$imagen='';} - +if(!isset($_REQUEST['print'])) { $src ="data-src";}else{ $src =" print src"; } while( $row = mysqli_fetch_array( $sql ) ) { $campo_tipo = remplacetas('form_campos','id',$row[id_campo],'campo_tipo'); @@ -11107,7 +11107,7 @@ $td .= "$imagen"; }else { $size="150" ; } - if($contenido !=""){$contenido = ""; } + if($contenido !=""){$contenido = ""; } else{$contenido="";} } elseif($campo_tipo=='14'){ @@ -11119,8 +11119,9 @@ $td .= "$imagen"; //@require("includes/datos.php"); $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 = " - + "; } else { $contenido ='';}