<?php

include 'concha.php';?>



<?php



$titulo = "$nombresitio / Galería de Fotos ";

include 'arriba_full.php'

?>


 <div class="news-summary col-lg-8 col-md-8 col-sm-12 col-12 p-0" >




<div>



<div class="widget-head">

                    <h3 <? if ($estiloweb <= 3){echo 'style="padding: 1px 5px 1px 5px; background-color:'; echo $d_color_fondo_menu; echo ';font-family:'; echo $style_titulo; echo ';font-size:25px;color:#ffffff;"'; } else {echo 'class="widget-title"';} ?>>

                        <span><? echo $lang_100078 ?></span>

                    </h3>

                </div>



<div class="grid" style="padding-top:40px;">





               <?

$i = 0;

     while ($i < 10){



 ?>







        <?



$sql = "SELECT * FROM albumes ORDER BY nombre LIMIT $i,3";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$nombre = $row["nombre"];
$sql44 = "SELECT * FROM fotos WHERE album = '$ID' ORDER BY rand()";
$consulta44 = $conn->query($sql44);
while ($row44 = $consulta44->fetch_assoc())
{
$foto = $row44["foto"];
$carpetafoto = $row44["carpetafoto"];
$ext_img = $row44["ext_img"];
}

$consulta44->free_result();

?>



            <div class="grid-item col-md-4 col-sm-6 col-12" style="margin:5px 0;">

            <div class="col-lg-12 col-12">

                <h3 style="margin:5px auto;font-family:<?php echo $style_titulo ?>;color:<?php echo $d_color_titulo?>;"> <?php echo $nombre ?></h3>
            </div>



            <?php  // $ini_foto = substr($foto,0,4);



			// if ($ini_foto == 'http') {$foto_mostrar = $foto;} else {$foto_mostrar = "$carpetafoto/thumbnail_$foto$ext_img";};



			?>





             <a href="album.php?ID=<?php echo $ID ?>" title="<?php echo $titulo; ?>">





            <?php  // $ini_foto = substr($foto,0,4);



			// if ($ini_foto == 'http') {$foto_mostrar = $foto;} else {$foto_mostrar = "$carpetafoto/thumbnail_$foto$ext_img";};



			?>

<? if ($ext_img == '') {$ext_img = ".jpg";}; ?>



              <img  src="<? echo $dom?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><? echo $ext_img?>" class="<? if ($estiloweb <= 3){echo "img-responsive";} else {echo "img-fluid";} ?>" />

            </a>







            </div>



                 <?  }





$consulta->free_result();



?> <?php



 $i = $i + 3;

 ?>



    <?

 } ?>



      </div>





    </div>





       </div>


<?php include 'abajo_full.php'?>
