  

<div id="bannerch2" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

<div id="myCarousel_nota" class="carousel slide" data-ride="carousel">
                          
                        

                              <!-- Wrapper for slides -->
                              <div class="carousel-inner" role="listbox">
                              
                              
         
                              
                              
                               <?php     
$can = 0;

include('concha.php');


$sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = 'no' AND ver = 'si' AND foto != '' ORDER BY ID desc LIMIT 10";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{

$ID = $row["ID"];
$titulo = $row["titulo"];
$titulo11 = $row["titulo"];
$bajada = $row["bajada"];
$texto = $row["texto"];
$audio = $row["audio"];
$youtube  = $row["youtube"];
$d = $row["d"];
$m = $row["m"];
$a = $row["a"];
$fecha = "$d - $m - $a";
$carpetafoto = $row["carpetafoto"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$cat = $row["cat"];
$cat1 = $row["cat"];
$home = $row["home"];
$impresiones = $row["impresiones"];

$ID_nota = $row["ID"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];
$can = $can + 1;


$sql2 = "SELECT * FROM categorias WHERE ID = '$cat1'";
$consulta2 = $conn->query($sql2);
while ($row2 = $consulta2->fetch_assoc())
{
$cat = $row2["nombre"];
$color_cat = $row2["color"];
}
$consulta2->free_result();

?>

    <div class="<? if ($can == 1) {?>item active<? } else {?>item<? };?>  img-noti-index">
                                
 
 
 <?php if ($cat1 == '' or $cat1 == 0) {} else   {?>
 <div id="etiqueta" style="background-color:<?php echo $color_cat ?>";>
    <h5><span style=";font-family:<?php echo $style_titulo ?>;font-size:15px; color:#FFFFFF;"><?php echo $cat ?></span></h5>
</div><?php };?>


                                  <a target="_parent" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><img alt="PUBLICIDAD" src="<? echo $dom;?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" title="<?php echo $titulo ?>" width="100%" class="img-responsive" >
                                  <?php if ($titulo == '') {} else {?>
                                    <div id="carousel-caption" class="carousel-caption">
                            <div align="left"  style="font-size:19px;  font-family:<?php echo $style_titulo ?>; "><?php echo $titulo ?></div>
                                      
                                    </div><?php };?>
                                   </a>
                                  
                                  
                                </div>

<?
}
$consulta->free_result();
                              
                              ?>
                                
								
                              </div>

                              <!-- Left and right controls -->
                              <a class="left carousel-control" href="#myCarousel_nota" role="button" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                              </a>
                              <a class="right carousel-control" href="#myCarousel_nota" role="button" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                              </a>
                              
                              
                              
                                                           
                              
                            </div>
                            </div>
                            
