<?php

include 'concha.php';?>


<?php

 if ($lang_actual == 'es' or $lang_actual == '')
{
include 'lang_es_no_panel.php';
};

 if ($lang_actual == 'pt')
{
include 'lang_pt_no_panel.php';
};

?>

<?php 



$titulo = "$nombresitio / $lang_mensajes_en_notas";

include 'arriba_full.php'

?>





       

          

          



 <div class="<? if ($estiloweb == 4 || 61) { ?> col-lg-8 col-md-8<? } else { ?>col-lg-9 col-md-9 <? } ?> col-sm-12 col-12 p-0" >

       

 

   

        

        <div id="grid" style="background-color:#fff; margin-bottom:15px;" data-sticky_column>

              

               

       <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><?php echo $lang_ultimos_mensajes ?></span>

                    </h3>

                </div>

       

               

               <div  class="col-12 col-sm-12 col-md-12 col-lg-12" style="background-color:#fff;">

        

            

<?php 




$sql = "SELECT * FROM comentarios WHERE ver = 'si' ORDER BY ID desc LIMIT 30";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$nombre = $row["nombre"];
$ID = $row["ID"];
$texto = $row["texto"];
$fecha = $row["fecha"]; 
$sub_comentario = $row["sub_comentario"]; 
$IDD =  $row["IDD"];
if ($IDM == 0) {$es = 'no';} else {$es = 'si';};

$sql66 = "SELECT ID,titulo,texto,bajada,d,m,a,carpetafoto,foto,ext_img FROM notas WHERE ID = '$IDD' LIMIT 1";

$consulta66 = $conn->query($sql66);

while ($row66 = $consulta66->fetch_assoc())

{

$ID_nota = $row66["ID"];
$titulo = $row66["titulo"];
$d = $row66["d"];
$m = $row66["m"];
$a = $row66["a"];
$carpetafoto = $row66["carpetafoto"];
$foto = $row66["foto"];
$ext_img = $row66["ext_img"];

 ?>         



 <?php    if ($foto == NULL) {} else {?>





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

<h2 style="font-family:<?php echo $style_titulo ?>;"><?php echo $nombre ?>:</h2>

</div>

  <div class="row">

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

<a  target="_blank" href="<? echo $dom;?>/nota/<?php echo $ID_nota ?>/<?php echo urls_amigables($titulo) ?>">

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

    </a>

                   

</div>

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

<p style=";font-family:;"><?php echo $texto ?></p>

 <p><?php echo $lang_100000100 ?>:<?php echo  $titulo ?></p>   

        </div>

</div>                  

	<?php };?>



            <?php





 }

$consulta66->free_result();


?>
<?

$c = 0;

$sql2 = "SELECT * FROM comentarios WHERE sub_comentario = '$ID' AND ver = 'si' ";
$consulta2 = $conn->query($sql2);
while ($row2 = $consulta2->fetch_assoc())
{
$c = $c + 1;
$nombre = $row2["nombre"];
$texto = $row2["texto"];

?>





<h4><?php echo $lang_respuestas ?>:<br /> &raquo; <strong><?php echo $nombre ?></strong>:</h4><br>

        <p><?php echo $texto ?></p>

                  

<?php }

$consulta2->free_result();

?>


<!--a style="margin-top:10px;" class="btn btn-outline-primary my-2 my-sm-0" href="<? echo $dom;?>/nota/<?php echo $ID_nota ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $lang_100000101 ?></a>

<div style="width:100%;height:1px;background-color: #d1d1d1; margin-top:10px;" ></div--> 


<?

}


$consulta->free_result();


?>

              

                  </div>

                       

                </div>

</div>

        

        

        <!-- End of columns -->  <?php include 'abajo_full.php'?>

