forked from qwerty/tupali
implementacion lazy en el index
This commit is contained in:
parent
00d0a1529a
commit
d3f60cb814
@ -1290,6 +1290,8 @@ echo $css_adicional;
|
||||
$(function() {
|
||||
$('.lazy').Lazy({
|
||||
// your configuration goes here
|
||||
combined: true,
|
||||
delay: 1000,
|
||||
scrollDirection: 'vertical',
|
||||
effect: 'fadeIn',
|
||||
visibleOnly: true,
|
||||
|
@ -5303,11 +5303,11 @@ while( $row = mysqli_fetch_array( $sql ) ) {
|
||||
}
|
||||
$i++;
|
||||
if($row['imagen'] !="") {
|
||||
$logo="<img class='lazy img img-responsive img-rounded' style='background-image: url('milfs/images/secure/?file=150/$row[imagen]')' alt='$row[razon_social]' data-src='milfs/images/secure/?file=300/$row[imagen]' >";
|
||||
$logo="<img class='lazy img img-responsive img-rounded' alt='$row[razon_social]' data-src='milfs/images/secure/?file=300/$row[imagen]' src='milfs/images/secure/?file=150/$row[imagen]' >";
|
||||
}
|
||||
else {
|
||||
$logo_empresa = remplacetas('empresa','id',"1",'imagen','');
|
||||
$logo="<img class=' lazy img img-responsive' style='' data-src='milfs/images/sinimagen.jpg' alt='$row[razon_social]'>";
|
||||
$logo="<img class=' lazy img img-responsive' data-src='milfs/images/sinimagen.jpg' src='milfs/images/sinimagen.jpg' alt='$row[razon_social]'>";
|
||||
}
|
||||
// $slogan= substr($row[slogan],0, $length = 100)."";
|
||||
$slogan = $row['slogan'];
|
||||
|
Loading…
Reference in New Issue
Block a user