
            
             <!-- radio en vivo banner-->
     
     <div class="container">
  
  
  <style>
      .modal-dialog{
          max-width:90%;
          
          
      }
      
      .modal-content{
          
          background-color:transparent;
          
      }
      
      .modal-header{
          border:0;
          
      }
      
  </style>
         
          <?php
             $HayLugar700 = "no";
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * 
FROM  `publicidades_gif` WHERE lugar = '700'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

$img700 = $row["img"];

$carpetafoto700 = $row["carpetafoto"];
$Url700  = $row["url"];

    $HayLugar700 = "si";

}
mysql_free_result($consulta); ?>
         
         
<? if ($HayLugar700 == 'si') { ?> 
  <!-- Modal -->
  <div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog">
    
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <!--h4 class="modal-title">Modal Header</h4-->
        </div>
        <div class="modal-body">
          <a href="<? echo $Url700 ?>" data-pb-field="headlines.basic" data-pb-url-field="canonical_url" data-pb-placeholder="Write headline here">
            <img class="img-fluid" src="<? echo $dom ?>/<? echo $carpetafoto700 ?>/<? echo $img700 ?>" style="display: block;margin:auto;">
          </a>
        </div>
        <!--div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div-->
      </div>
      
    </div>
  </div> <? }; ?>
  
</div>

     <!--div class="row envivo" style="">
            
                <div class="container radio" >
                    
                    <div class="grid">
                                    
                 <!--   <div class="grid-item col-4 col-sm-4 col-md-6 col-lg-6 "> 
                        
                            
                            <div class="col-lg-6 col-12" style="text-align:center;padding:10px;">
                            
                            <img src="<? echo $dom;?>/upload_pic/resize_<?php echo $imagen ?>.jpg"  class="img-fluid" style="max-width:50%;">
                            </div>
                        
                        </div>
                        
                        
                        
                    <div class="grid-item col-4 col-sm-4 col-md-6 col-lg-6 ">  
                          
                        <div class="col-lg-6 col-12" style="padding:10px;text-align: center;">        
                        <h6 style="margin-bottom:0;color:#fff;">En vivo por LV12</h6>
                                 
                        <h6 style="margin-bottom:0;text-transform:uppercase;color:#fff;" class=""><?php echo $nombre_pro ?></h6>
                       
                        <p style="margin-bottom:0;padding-bottom:0;color:#fff;"><?php echo  $ini2 ?> a <?php echo $fin2 ?></p>
                            
                          </div> 
                                     
                    </div>
                   
                                  
                                    
                    <div class="grid-item col-12 col-sm-12 col-md-12 col-lg-12 " style="z-index:900;" >
                        
                        <div style="text-align:center;padding: 1em 0;">
                                                                                
                                   
                                                                
                                   
      <audio id="player2" src="<?php echo $ip_stream ?>" type="audio/mp3" controls="controls"  width="100%">
      </audio>    <br>

                                        <span style="line-height: 30px;">Escuchá LV12</span>
                                                           
                                  
                                                            
                                   <!-- <a class="btn btn-outline-primary" href="https://radiomitre.cienradios.com/hd/" target="_blank">
                                                                
                                        <i class="fas fa-video"></i>
                                                                
                                        <span style="line-height: 30px;">Video Del Día</span>
                                                            
                                    </a> 
                            
                            </div>
                                                        
                                </div>
                        
                      
                     </div>          
                                  
                </div>
                             
            </div-->

       <style>
                
           .tituloDelSlider{
               
               position: absolute;
               display: flex;
               color: #fff;
               align-items: center;
               bottom: 0;
           }              

.carousel-cell4 {
  width: 100%;
  min-height: 100px;
  background-color: rgba( 0,0,0,0.6);
}

.carousel-cell-image4 {
  display: block;
  max-height: 100%;
  margin: 0 auto;
  max-width: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.4s;
          transition: opacity 0.4s;
}

/* fade in lazy loaded image */
.carousel-cell-image4.flickity-lazyloaded,
.carousel-cell-image4.flickity-lazyerror {
  opacity: 1;
}      
           
           .carousel-captionh1{
               
               color: #fff;
               
           }
                </style>

                                                       <?php     
        

$hay_cuber_0 = 'no';
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_notaaa = $row["ID"];


$hay_cuber_0 = 'si';



}
mysql_free_result($consulta);?>
                    
                    
                          <?php if ($hay_cuber_0 == 'si') {?>
     
     
                    
                        <div class="flickity-carousel" data-flickity='{ "lazyLoad": 1, "initialIndex": 0, "freeScroll": false, "adaptiveHeight": true, "pageDots": false }' > <?php } else {};?>
                    
                      <?php     
        


mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_nota = $row["ID"];
$foto = $row["foto"]; 
$ext_img = $row["ext_img"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];
$can = $can + 1

?>

 <div class="carousel-cell4">
     
     <img class="carousel-cell-image4" data-flickity-lazyload="upload_pic/thumbnail_<?php echo $foto ?>.jpg" src="upload_pic/resize_<?php echo $foto ?>.jpg" alt="<?php echo $titulo ?>"/>
     
      <?php if ($titulo == '') {} else {?>
     
     <div class="container tituloDelSlider" >
         
         <?php if($nota == 0) {} else {?> 
             
             <a class="hvr-underline-from-left" style="color: #fff;" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo) ?>">
                 
                 <h2 class="carousel-captionh1"><?php echo $titulo ?></h2>
                 
                 <p class="displaytitulo"><?php echo $texto ?></p>
                 
             </a> 
             
             <?php };?>

     </div>
     
     <?php };?>
                            
</div>
                        
<?}
                            
mysql_free_result($consulta);
                            
                            ?>
                            
                        <?php   if ($hay_cuber_0 == 'si') {?>
                        
</div> 
     
     
     <?php } else {};?>

            
            <!-- video destacado botón en "en vivo banner" --> 
                <?
$hay_video = "no";

mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM `videos_home` WHERE home = '1'";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{
$ID = $row["ID"];
$cat = $row["cat"];
$titulo = $row["titulo"];
$bajada = $row["bajada"];
$video = $row["video"];
$hay_video = "si";
?><?

}

mysql_free_result($consulta);

?>
             
           <?php   if ($hay_video == 'no') {} else 
           { ?>
     
            <div class="row">
                
                
                
                <div class="container-fluid" style="background-color:#e4e4e4;z-index:900;">
                                
               <div class="row">
                   
                   <div class="col-12 col-sm-6 col-md-6 col-lg-6" style="padding:10px;"> 
                        
                        <iframe width="100%" height="304" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
                        
                                                        
                    </div>
                   
                   <div class="col-12 col-sm-6 col-md-6 col-lg-6" style="padding:10px;">
                        
                        
                            
                            <div class="col-12 col-sm-12 col-md-12 col-lg-12 " style="">
                        
                        <div class="no-skin flex-item flex-stack text-align-left equalize-height-target">
                                
                                <a class="" href="#" title="The Art World" data-reactid="195"><!-- react-text: 196 --><?php echo $cat ?><!-- /react-text --></a>
                                
                                <h2 class="" style="margin:0;">
                                    <a href="#" data-pb-field="headlines.basic" data-pb-url-field="canonical_url" data-pb-placeholder="Write headline here"><?php echo $titulo ?></a>
                                </h2>
                            
                                <p style="margin-bottom: 6px;"><?php echo $bajada ?></p>
                                
                               
                        </div>
                            
                            
                        </div>
                
                              
                       <div class="grid">
                
                
                     <?


mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM `videos_home` WHERE home = '2' LIMIT 2";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{
$ID = $row["ID"];
$cat = $row["cat"];
$titulo = $row["titulo"];
$bajada = $row["bajada"];
$video = $row["video"];

?>
                            
                            <div class="grid-item col-6 col-sm-6 col-md-6 col-lg-6" style=""> 
                            
                             <iframe width="100%" height="190" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>                         
                    </div>
                            
                            <?

}

mysql_free_result($consulta);

?>
                            
                         
                        
                        </div>
                   
                   </div>
                    
                    </div>    
                                   
            </div>
             
            </div>
     
                <?php  }; //cierro el if del videos home si hay ?>
                
                
                
                      <?php if ($funcion10 == 'si') {?>
     
     <div class="row" style="margin:20px 0;">
         
         <div class="col-12 col-sm-12 col-md-12 col-lg-12">
             
             <iframe src="http://infoxxx.xyz/resultados_mundial.php" width="100%" height="170" scrolling="no" style="width: 1px; min-width: 100%; *width: 100%;" class="" frameborder="0"></iframe>
         
         </div>
     
     </div>
                  

 <?php  } else {}; ?>
                  
               <!-- ARRANCA PUBLIS PRIMERAS -->
     <?
$sql = "SELECT * FROM `publicidades_gif` where lugar = '500' LIMIT 1";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$img_p = $row["img"];
$url_p = $row["url"];
    $carpetafoto_p = $row["carpetafoto"];
?>

     
    <div class="row" style="margin-top:15px;">
        
        
        
        <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;padding:15px 0px;">

            
        <div class="grid">
         
         <div class="grid-item col-12 col-sm-12 col-md-12 col-lg-12" >
             
             
             <a href="<? echo $url_p ?>" target="_blank">  <img src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid" alt="Image"></a>

         
         </div>
     
     </div>
     
</div>

        

</div><? 
}
mysql_free_result($consulta); ?>
     
     
     
     
     
  
 
 
        
                            
        <?php mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * 
FROM  `publicidades_gif` WHERE lugar = '911'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-fluid publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<?


	  }
mysql_free_result($consulta);?>


        
        <?php mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * 
FROM  `publicidades_slide` WHERE lugar = '911'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

 $width_slide = "100%";  include 'publicidad_slider_virgen_div.php';

	  }
mysql_free_result($consulta);?>
        
        
<?php     $tam_ancho = 669;


mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM publicidades_swf WHERE lugar = 911";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID = $row["ID"];


$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];
$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];


 
	
	$tam_alto = $alto * $tam_ancho / $ancho;
	
	
	
    
    ?>
   <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};  
   ?>
      <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
          <param name="src" value="<?php echo $tdom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
          <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
      </object>
      <br>

      <?
	  }
mysql_free_result($consulta);

?>
                    
                  
                  
             <!-- 1 gr y 2 ch -->
              
                           <?

$hay_nota_des2 = "no";
mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$hay_nota_des2 = "si";

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);


}

mysql_free_result($consulta);

?>




<?php if ($hay_nota_des2 == 'no') {} else { ?>
                   
            
            <div class="row" style="margin-top:15px;margin-bottom:15px;border-bottom:1px solid #e4e4e4;">
                
               
              
                       <div class="col-12 col-sm-12 col-md-8 col-lg-8"  style="margin-bottom:15px;z-index:900;background:#fff;">
                   
                           <div class="artX4">
                                    <div id="flex_6314" class="lazy-wrapper photo-wrapper">
                                       <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-pb-field="headlines.basic" data-pb-url-field="canonical_url" data-pb-placeholder="Write headline here">
                                           
                                           <h2 class="" ><?php echo $titulo ?></h2>
                                           </a>
                                        
                                        <p class=""><?php echo $bajada ?></p>
                                        
                                        <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-pb-field="headlines.basic" data-pb-url-field="canonical_url" data-pb-placeholder="Write headline here">
                                            
                                           
                                           
                                            <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?>.jpg" style="display: block;">
                                          
                                        
                                            
                                           </a>
                                    
                                    </div>
                                </div>
                        
                       <!-- <div class="border-bottom-hairline-tight">
                            <div class="no-skin flex-item flex-stack text-align-left equalize-height-target">
                                
                                
                                
                            </div>
                        </div>-->
                   
                </div>
                         
                          <?
///// noticias destacadas inicio

mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);


}

mysql_free_result($consulta);

?> 
                                                           
                <div class="col-12 col-sm-12 col-md-4 col-lg-4"  style="margin-bottom:15px;z-index:900;background:#fff;">
                    
                     <div class="grid">
                                        
                       
                       <div class="grid-item col-6 col-sm-6 col-md-12 col-lg-12"> 
                           
                           <style>
                               
                              .bajadaDeDos {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity .15s linear;
    position: absolute;
    bottom: -1px;
    left: 0px;
    background-color: #fff;
    padding: 10px 25px;
    overflow-y:hidden;
}
                               
                               .imgDest:hover .bajadaDeDos{
                                   visibility: visible;
                                   opacity: 1;
                                   height: 100%;
                                   bottom: -16px;
                               }
                           .imgDest:hover .fondo{
                                   background-color: #fff;
                                   
                               }
                           
                           
                           </style>
                                
                        <div class="artX4">
                            
                            <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" class="imgDest">
                                
                                <h4  style="margin-right:10px;"><?php echo $titulo ?></h4>
                                
                                <div class="col-12 col-lg-12" style="padding:0;">
                                
                                    <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" style="display: block;">
                                    
                                    <p class="bajadaDeDos"><?php echo $bajada ?></p>
                                    
                                </div>
                            
                            </a>
                         
                         </div>
                                
                        </div>
                                 
                                 
                                     <?

/// noticia grande 1 de 3

mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);


}

mysql_free_result($consulta);

?> 
                                                
                        <div class="grid-item col-6 col-sm-6 col-md-12 col-lg-12" style="margin-bottom:15px;">
                                
                                                  
                                
                                <div class="artX4">
                                    
                                    <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" class="imgDest">
                                        
                                        <h4 class="" style="margin-right:10px;"><?php echo $titulo ?> </h4>
                                        
                                         <div class="col-12 col-lg-12" style="padding:0;">
                                
                                    <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" style="display: block;">
                                    
                                    <p class="bajadaDeDos"><?php echo $bajada ?></p>
                                    
                                </div>
                                        </a>
                               
                                        
                                           
                                     
                                        
                                </div>
                            
                        </div>
                
                        
                    </div>  
                
                </div>
                       
            </div>
            
            
            <?php }; ///cierro el if de las notis destacadas 2 ?>
             <!-- fin noticia gran 1 de 3 slider grande -->
             
       
       
         <?
$sql = "SELECT * FROM `publicidades_gif` where lugar = '501' LIMIT 1";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$img_p = $row["img"];
$url_p = $row["url"];
    $carpetafoto_p = $row["carpetafoto"];
?>

     
    <div class="row" style="margin-top:15px;">
        
        
        
        <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;padding:15px 0px;">

            
        <div class="grid">
         
         <div class="grid-item col-12 col-sm-12 col-md-12 col-lg-12" >
             
             
             <a href="<? echo $url_p ?>" target="_blank">   <img src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid" alt="Image"></a>

         
         </div>
     
     </div>
     
</div>

        

</div><? 
}
mysql_free_result($consulta); ?>
     


                     
        
            <div class="row" style="margin-bottom:15px;">
            
                
                <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="padding:0px 15px;">
                
                
                  
<?php     $tam_ancho = 960;


mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM publicidades_swf WHERE lugar = '910'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID = $row["ID"];


$swf = $row["swf"];
$carpetafoto = $row["carpetafoto"];
$ancho = $row["ancho"];

$alto = $row["alto"];

$lugar = $row["lugar"];


 
	
	$tam_alto = $alto * $tam_ancho / $ancho;
	
	
	
    
    ?>
   <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};  
   ?>
      <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
          <param name="src" value="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
          <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"></embed>
      </object>
      <br>

      <?
	  }
mysql_free_result($consulta);

?>    
		
        
        
        <?php mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * 
FROM  `publicidades_slide` WHERE lugar = '910'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

 $width_slide = "100%";  include 'publicidad_slider_virgen_div.php';

	  }
mysql_free_result($consulta);?>



<?php mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * 
FROM  `publicidades_gif` WHERE lugar = '910'";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_p = $row["ID"];

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

$url  = $row["url"];
?>
<a href="<?php echo $url ?>" target="_blank"><img class="img-fluid publi-index" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" width="100%"  /></a>
<?


	  }
mysql_free_result($consulta);?>


          
                
                
                
                </div>

            </div>
            
            <!-- X4 fotos arriba -->
        
            
              
            
      <?php   
                
                $lugar_publis_estilo = 1000;
                
  
                
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM `categorias` WHERE `home` != '' AND `home` != 'si'  ORDER BY orden LIMIT 20" ;
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{


$ID_cat_slide = $row["ID"];
$nombre_cat_slide = $row["nombre"];
$color_cat_slide = $row["color"];
$home = $row["home"];
    
    
          
$hay_publi = 'no';
$sql68 = "SELECT * FROM `publicidades_gif` where lugar = '$lugar_publis_estilo' LIMIT 1";

$consulta68 = mysql_query ($sql68);
while ($row68 = mysql_fetch_array($consulta68))
{
$img_p = $row68["img"];
$url_p = $row68["url"];
$carpetafoto_p = $row68["carpetafoto"];
$hay_publi = 'si';
     
}
mysql_free_result($consulta68); 
    
    
?>


            <div class="row" style="margin-bottom:15px;">
                
                <?php if ($hay_publi == 'si') {?>  
                
                <div class="grid-item col-12 col-sm-12 col-md-3 col-lg-3" style="">
 <img src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid">
</div>
                
                <div class="col-12 col-sm-12 col-md-9 col-lg-9" >
                    
                    
                    <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:15px;">
                    
                    <h3 class="widget-title" style="">
                        
                        <span><?php echo $nombre_cat_slide ?></span>
                    
                    </h3>
                
                    </div>  
		
                    <div class="grid" style="border-bottom:1px solid #e4e4e4;">
<?

$lugar_ii = 0;
$random = rand(1,4);
    
    
if ($home == 1) { if ($hay_publi == 'si')  {$limit = "3";} else {$limit = "4";}; };
    
    
if ($home == 2) {$limit = "3";};
if ($home == 3) {$limit = "2";};
if ($home == 4) {$limit = "4";};
    
    
             
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql22 = "SELECT ID,titulo,texto,bajada,d,m,a,carpetafoto,foto,ext_img FROM notas WHERE ver = 'si' AND foto != '' AND cat = '$ID_cat_slide' AND des_cat = '1' ORDER BY ID desc LIMIT $limit";

$consulta22 = mysql_query ($sql22);
while ($row22 = mysql_fetch_array($consulta22))
{

$lugar_ii = $lugar_ii + 1;

$ID = $row22["ID"];

$titulo = $row22["titulo"];

$texto = $row22["texto"];

$bajada = $row22["bajada"];

$d = $row22["d"];

$m = $row22["m"];

$a = $row22["a"];

$carpetafoto = $row22["carpetafoto"];

$foto = $row22["foto"];
    
$ext_img = $row22["ext_img"];

 
if ($home == 1) {include 'estilo1_cat.php';};
if ($home == 2) {include 'estilo2_cat.php';};
if ($home == 3) {include 'estilo3_cat.php';};
if ($home == 4) {include 'estilo4_cat.php';};
    
    
          
}
mysql_free_result($consulta22);


?> </div>  
                
                </div>
             
             
             <?} else {?> 
             
             <div class="col-12 col-sm-12 col-md-12 col-lg-12" >
                    
                    
                    <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:15px;">
                    
                    <h3 class="widget-title" style="">
                        
                        <span><?php echo $nombre_cat_slide ?></span>
                    
                    </h3>
                
                    </div>  
		
                    <div class="grid" style="border-bottom:1px solid #e4e4e4;">
<?

$lugar_ii = 0;
$random = rand(1,4);
    
    
if ($home == 1) { if ($hay_publi == 'si')  {$limit = "3";} else {$limit = "4";}; };
    
    
if ($home == 2) {$limit = "3";};
if ($home == 3) {$limit = "2";};
if ($home == 4) {$limit = "4";};
    
    
             
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql22 = "SELECT ID,titulo,texto,bajada,d,m,a,carpetafoto,foto, ext_img FROM notas WHERE ver = 'si' AND foto != '' AND cat = '$ID_cat_slide' AND des_cat = '1' ORDER BY ID desc LIMIT $limit";

$consulta22 = mysql_query ($sql22);
while ($row22 = mysql_fetch_array($consulta22))
{

$lugar_ii = $lugar_ii + 1;

$ID = $row22["ID"];

$titulo = $row22["titulo"];

$texto = $row22["texto"];

$bajada = $row22["bajada"];

$d = $row22["d"];

$m = $row22["m"];

$a = $row22["a"];

$carpetafoto = $row22["carpetafoto"];

$foto = $row22["foto"];
    
$ext_img = $row22["ext_img"];

 
if ($home == 1) {include 'estilo1_cat.php';};
if ($home == 2) {include 'estilo2_cat.php';};
if ($home == 3) {include 'estilo3_cat.php';};
if ($home == 4) {include 'estilo4_cat.php';};
    
    
          
}
mysql_free_result($consulta22);


?> </div>  
                
                </div>
            
            
             <?} ;?>
                
                
                
                
                
                </div>
                
                
                
            <div class="row">
                
 <!-- ARRANCA PUBLIS PRIMERAS -->
     <?
$sql44 = "SELECT * FROM `publicidades_gif` where lugar = '$id_publi_new' LIMIT 1";

$consulta44 = mysql_query ($sql44);
while ($row44 = mysql_fetch_array($consulta44))
{
$img_p = $row44["img"];
$url_p = $row44["url"];
    $carpetafoto_p = $row44["carpetafoto"];
    
    
?>

     
  
        
        
        
        <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;padding:15px 0px;">

            
              
<div class="col-12 col-sm-12 col-md-12 col-lg-12" >
             
             
             <a href="<? echo $url_p ?>" target="_blank">  <img src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid" alt="Image"></a>

         
         </div>
     
     
</div>

        
<? 
}
mysql_free_result($consulta44); ?> 
                
                
            </div>

          <?php 
    $lugar_publis_estilo = $lugar_publis_estilo + 1;    
    $id_publi_new = $id_publi_new + 1;
             }


mysql_free_result($consulta);?>
                
                
           
            
<!-- grid -->
                  
                      
            <div class="row" style="margin-bottom:15px;">
                
         
                
                <div style="height:auto;" class="col-12 col-sm-12 col-md-12  <? if ($hay_des_2 == 'no') { ?>col-lg-9<?
                    } else { ?> col-lg-9 <? } ;?>" role="main"  >
                    
                    
          
          
         
            
                    <div id="grid"  style="" >
                        
                       <?php     
        
$haycuber = 0;

mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");

$sql = "SELECT * FROM notas_tapa WHERE cu3er = '1' ORDER BY ID desc";

$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$haycuber = 1;
}
mysql_free_result($consulta2);
if ($haycuber == 1) {
?> 
                         <div id="tritop" class="row" style="margin-bottom:15px;">
          
            <div id="tritop1" class="col-12 col-sm-4 col-md-4 col-lg-4">
<?php include 'cu3er12_estilo4.php';?>
                    </div>
              
            <div id="tritop2" class="col-12 col-sm-4 col-md-4 col-lg-4">
<?php include 'cu3er22_estilo4.php';?>

            </div>
              
            <div id="tritop3" class="col-12 col-sm-4 col-md-4 col-lg-4">
 
<?php include 'cu3er32_estilo4.php';?>
                    </div>
          
          </div> 
		  
		  <?php  } else {};?>
                        


                    
                          <?       if ($adsense == ' ') {} else { ?>
<div class="col-lg-12 col-12" style="padding:15px 0;">
<? echo $adsense; ?>    
</div>          
         <?  }; ?>
                    
                    
                    
                        
                        <div class="grid"  <?php   if ($hay_cuber_0 == 'si') {?> style="margin-top:15px;" <?php } else {};?> >
                
                           
                           
                   
                           
                           
                           
                           
                           
                        <?php    // arranca destacados ?>
                        
                                   
                           
                           <?


mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);



$M = $m;



if ($M == '01') {$m = "enero";};



if ($M == '02') {$m = "febrero";};



if ($M == '03') {$m = "marzo";};



if ($M == '04') {$m = "abril";};



if ($M == '05') {$m = "mayo";};



if ($M == '06') {$m = "junio";};



if ($M == '07') {$m = "julio";};



if ($M == '08') {$m = "agosto";};



if ($M == '09') {$m = "septiembre";};



if ($M == '10') {$m = "octubre";};



if ($M == '11') {$m = "noviembre";};



if ($M == '12') {$m = "diciembre";};







if ($cat == 0) {} else {

$sql2 = "SELECT * FROM categorias WHERE ID = '$cat'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$cat = $row2["nombre"];

$color_cat = $row2["color"];

}

mysql_free_result($consulta2);

}

?>

<?

$n = 0;

$sql2 = "SELECT * FROM comentarios WHERE IDD = '$ID' and ver = 'si'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$n = $n + 1;

}

mysql_free_result($consulta2);

?>





                           
                           
                     <?php       ////aca arranca el articulo?>
                           
                           
                            
                            <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="">
                               
                              
                                
                                <article class="post-137356 post type-post status-publish format-standard has-post-thumbnail category-archivo category-comunicados category-cultura tag-camerata-bariloche tag-septiembre-musical" itemscope="" itemtype="https://schema.org/Article">
                                    
                                    <div class="widget-head"> <h4 class="widget-title"><span>DESTACADA</span></h4></div>
                                    
                                    <div class="news-image" style="">
                                   
                                   <?php if ($cat == '0') {} else {?>
                                        <span class="cat-title larger cat-6" style="background-color:<?php echo $color_cat ?>;top:36px;">
                                            <a style="color:#fff; font-family: Open Sans, Arial, sans-serif;" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $cat ?></a>
                                        </span> <?php };?>
                                        
                                        <a class="tshare facebook" style="background-color: <?php echo $color_cat ?>!important;" href="javascript:ventanaSecundaria56('https://www.facebook.com/sharer.php?p[title]=<?php echo $titulo1 ?>&p[url]=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-facebook" aria-hidden="true"></i></a>
                                        
                                        <a class="tshare twitter" style="background-color: <?php echo $color_cat ?>!important;" href="javascript:ventanaSecundaria56('https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo; ?> - Leer: &amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-twitter" aria-hidden="true"></i></a>
                                        
                                        
                                        
<?php 

///////youtube ?>

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

 <div style="display:block;margin:20px 0px;">  



<iframe width="100%" height="315" src="https://www.youtube.com/embed/<?php echo $youtube ?>" frameborder="0" allowfullscreen></iframe>

     

</div>

    

<?php  }; ?>
                       <?php         if ($foto == '') {} else {?>
                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" style="text-align:center;">
                                            <img class="img-fluid" src="<?php echo $dom ;?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>">
                                        </a> <?php };?>
                                        
                                    </div> 
                                    <div class="news-summary">
                                        <h2><a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $titulo ?></a></h2>
                                        <div class="mom-post-meta nb-item-meta">
                                            <span class="entry-date"><?php echo $d ?> de <?php echo $m ?>, <?php echo $a ?></span>
                                        </div>
                                            <span class="bajada">
                                                <p class="selectionShareable" style="margin-bottom:0;"><?php $bajada = str_replace('<em>','',$bajada);  $bajada = str_replace('</em>','',$bajada);  echo $bajada; ?></p></span>
                                    </div>
                                
                                
                                </article>

                            </div>
                            
                       
                       
               
               


<?php

////////////GIF

$sql2 = "SELECT * FROM publicidades_gif WHERE lugar = '$i_publi'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$img = $row2["img"];

$url = $row2["url"];



$carpetafoto = $row2["carpetafoto"];



?>

                           <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 
	$url = str_replace('https:', '',  $url); 
	$url = str_replace('http:', '',  $url); 
	echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto?>/<?php echo $img ?>" > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                        
                            </div>
<?

}

mysql_free_result($consulta2);

//////////////////// FIN GIF

?>

            
            
            



<?php     $tam_ancho = 300;

$sql44 = "SELECT * FROM publicidades_swf WHERE lugar = $i_publi";

$consulta44 = mysql_query ($sql44);

while ($row44 = mysql_fetch_array($consulta44))

{

$ID = $row44["ID"];

$swf = $row44["swf"];

$carpetafoto = $row44["carpetafoto"];

$ancho = $row44["ancho"];

$alto = $row44["alto"];

$lugar = $row44["lugar"];

$tam_alto = $alto * $tam_ancho / $ancho;

?>



                            <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style=" margin-bottom:10px;">

                                <object  width="100%" height="100%">

<param name="src" value="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />

<embed src="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>

</object>

  </div>


<?

}

mysql_free_result($consulta44);

?>
   
                       
                       
<?php  

//arranca publis jpg

$sql2 = "SELECT * FROM publicidades WHERE lugar = '$i_publi'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$img = $row2["img"];

$url = $row2["url"];



$carpetafoto = $row2["carpetafoto"];



?>



          
                           <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center;">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 
	$url = str_replace('https:', '',  $url); 
	$url = str_replace('http:', '',  $url); 
	echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid" src="<?php echo $carpetafoto?>/resize_<?php echo $img ?>.jpg"  > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                        

                            </div>


<?

}

mysql_free_result($consulta2);
///termina publi jpg
?>

                           

<?php 



$i= $i + 1;



}

mysql_free_result($consulta);

//aca termina article
?>


                           
                         <?php   //termina destacado ?> 
                           
                           
                           <?


mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$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 home = 'si' ORDER BY ID desc LIMIT $cantidad_notas";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);



$M = $m;



if ($M == '01') {$m = "enero";};



if ($M == '02') {$m = "febrero";};



if ($M == '03') {$m = "marzo";};



if ($M == '04') {$m = "abril";};



if ($M == '05') {$m = "mayo";};



if ($M == '06') {$m = "junio";};



if ($M == '07') {$m = "julio";};



if ($M == '08') {$m = "agosto";};



if ($M == '09') {$m = "septiembre";};



if ($M == '10') {$m = "octubre";};



if ($M == '11') {$m = "noviembre";};



if ($M == '12') {$m = "diciembre";};







if ($cat == 0) {} else {

$sql2 = "SELECT * FROM categorias WHERE ID = '$cat'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$cat = $row2["nombre"];

$color_cat = $row2["color"];

}

mysql_free_result($consulta2);

}

?>

<?

$n = 0;

$sql2 = "SELECT * FROM comentarios WHERE IDD = '$ID' and ver = 'si'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$n = $n + 1;

}

mysql_free_result($consulta2);

?>





                           
                           
                     <?php       ////aca arranca el articulo?>
                           
                            
                            
                            <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="">
                               
                               
                                
                                <article class="post-137356 post type-post status-publish format-standard has-post-thumbnail category-archivo category-comunicados category-cultura tag-camerata-bariloche tag-septiembre-musical" itemscope="" itemtype="https://schema.org/Article">
                                    <?    if ($foto == '') {} else { ?>
                                    <div class="news-image" style="">
                                        <? $hexa2 = substr($color_cat,1); 
        
        $decimal2 = hexdec($hexa2);
        
        
        if ($decimal2 <= '10066329') {$color_titulo_barra2 = "250,250,250,0.9";} else {$color_titulo_barra2 = "0,0,0,0.9";};        
        
?>  
                                     <?php if ($cat == '0') {} else {?>
                                        <div class="cat-title larger cat-6" style="background-color:<?php echo $color_cat ?>;">
                                            <a style="color:rgba(<? echo $color_titulo_barra2 ?>)!important; font-family: Open Sans, Arial, sans-serif;" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $cat ?></a>
                                        </div> <?php };?>                
                                        <a class="tshare facebook" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;"  href="javascript:ventanaSecundaria56('https://www.facebook.com/sharer.php?p[title]=<?php echo $titulo1 ?>&p[url]=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-facebook 3x" aria-hidden="true"></i></a>
                                        
                                       
                                        <a class="tshare twitter" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;" href="javascript:ventanaSecundaria56('https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo; ?> - Leer: &amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-twitter 3x" aria-hidden="true"></i></a>
                                        
                                     
                                                                          
<?php 

///////youtube ?>

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

 <div style="display:block;margin-top:10px;">  



<iframe width="100%" height="315" src="https://www.youtube.com/embed/<?php echo $youtube ?>" frameborder="0" allowfullscreen></iframe>

     

</div>

    

<?php  }; ?>
                                     
                                       
                                       <?php         if ($foto == '') {} else {?>
                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" style="text-align:center;">
                                            <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>">
                                        </a><? }; ?>
                                        
                                        
                                    </div><? }; ?>
                                    <div class="news-summary">
                                        <h2><a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $titulo ?></a></h2><div class="mom-post-meta nb-item-meta"> <span datetime="2017-09-07T11:41:24+00:00" class="entry-date"><?php echo $d ?> de <?php echo $m ?>, <?php echo $a ?></span></div> <span class="bajada"><p class="selectionShareable" style="margin-bottom:0;"><?php $bajada = str_replace('<em>','',$bajada);  $bajada = str_replace('</em>','',$bajada);  echo $bajada; ?></p></span></div>
                                
                                
                                </article>

                            </div>
                            
               
               
             <?   if(($i_publi % 5 ) == 0){ ?>
             
                <?       if ($adsense == ' ') {} else { ?>
                <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">
         <? echo $adsense; ?>
           </div>          
         <?  }; ?>  
  <?  }; ?>  

<?php

////////////GIF

$sql2 = "SELECT * FROM publicidades_gif WHERE lugar = '$i_publi'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$img = $row2["img"];

$url = $row2["url"];



$carpetafoto = $row2["carpetafoto"];



?>

                           <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 
	$url = str_replace('https:', '',  $url); 
	$url = str_replace('http:', '',  $url); 
	echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto?>/<?php echo $img ?>" > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                        
                            </div>
<?

}

mysql_free_result($consulta2);

//////////////////// FIN GIF

?>

            
            
            



<?php     $tam_ancho = 300;

$sql44 = "SELECT * FROM publicidades_swf WHERE lugar = $i_publi";

$consulta44 = mysql_query ($sql44);

while ($row44 = mysql_fetch_array($consulta44))

{

$ID = $row44["ID"];

$swf = $row44["swf"];

$carpetafoto = $row44["carpetafoto"];

$ancho = $row44["ancho"];

$alto = $row44["alto"];

$lugar = $row44["lugar"];

$tam_alto = $alto * $tam_ancho / $ancho;

?>



<div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style=" margin-bottom:10px;">

<object  width="100%" height="100%">

<param name="src" value="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />

<embed src="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>

</object>

  </div>


<?

}

mysql_free_result($consulta44);

?>
   
                       
                       
<?php  

//arranca publis jpg

$sql2 = "SELECT * FROM publicidades WHERE lugar = '$i_publi'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$img = $row2["img"];

$url = $row2["url"];



$carpetafoto = $row2["carpetafoto"];



?>



          
                           <div class="grid-item base-box col-xs-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center;">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 
	$url = str_replace('https:', '',  $url); 
	$url = str_replace('http:', '',  $url); 
	echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid" src="<?php echo $carpetafoto?>/resize_<?php echo $img ?>.jpg" > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                        
                            </div>


<?

}

mysql_free_result($consulta2);
///termina publi jpg
?>

                           

<?php 



$i= $i + 1;



}

mysql_free_result($consulta);

//aca termina article
?>


                           
</div>
                        
                    </div>
                    
                    </div>  
                
        
                
                <sidebar class=" col-12 <? if ($des == 2 ){echo "col-sm-8 col-md-8";} else {echo "col-sm-12 col-md-12";} ?>  col-lg-3" role="complementary" >
                    
                    <div >
                    
                    
           <?            
            $hay_des_2 = 'no';        
mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

$sql = "SELECT ID FROM notas WHERE destacado = '2' AND ver = 'si' AND home = 'si' ORDER BY ID desc LIMIT 1";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID_cac = $row["ID"];
$hay_des_2 = 'si';


}

mysql_free_result($consulta);


?>
                <?php   if ($hay_des_2 == 'si') { ?>
                    
                    
                <div class="widget-head">
                    <h3 class="widget-title">
                        <span>EN FOCO</span>
                    </h3>
                    </div><?php } else {};?>
            
            
            
                      
                           <?


mysql_connect ("$host", "$usuario", "$contra");

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];

$i_publi = $i_publi + 1;

$titulo = $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"];

$home = $row["home"];

$impresiones = $row["impresiones"];

$impresiones = $impresiones + 1;

$sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

mysql_db_query("$basedatos",$sSQL);



$M = $m;



if ($M == '01') {$m = "enero";};



if ($M == '02') {$m = "febrero";};



if ($M == '03') {$m = "marzo";};



if ($M == '04') {$m = "abril";};



if ($M == '05') {$m = "mayo";};



if ($M == '06') {$m = "junio";};



if ($M == '07') {$m = "julio";};



if ($M == '08') {$m = "agosto";};



if ($M == '09') {$m = "septiembre";};



if ($M == '10') {$m = "octubre";};



if ($M == '11') {$m = "noviembre";};



if ($M == '12') {$m = "diciembre";};







if ($cat == 0) {} else {

$sql2 = "SELECT * FROM categorias WHERE ID = '$cat'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$cat = $row2["nombre"];

$color_cat = $row2["color"];

}

mysql_free_result($consulta2);

}

?>

<?

$n = 0;

$sql2 = "SELECT * FROM comentarios WHERE IDD = '$ID' and ver = 'si'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))

{

$n = $n + 1;

}

mysql_free_result($consulta2);

?>





                           
                           
                     <?php       ////aca arranca el articulo?>
                           
                   
            
            
            <div class="base-box2 ">
                
                <article class="post-137356 post type-post status-publish format-standard has-post-thumbnail category-archivo category-comunicados category-cultura tag-camerata-bariloche tag-septiembre-musical"  style="margin-bottom:15px;"  itemtype="https://schema.org/Article">
                                    <div class="news-image">
                                        
                                        <a class="fshare facebook" href="javascript:fbShare('<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>', '<?php echo $titulo ?>', '', '', 520, 350)"></a>
                                        <a class="tshare twitter" href="javascript:twShare('<?php echo $titulo ?> <?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>', '', '', '', 520, 350)"></a>
                                        <a class="wshare wapp" href="whatsapp://send?text=comunicaciontucuman.gob.ar: Camerata Bariloche celebra sus 50 años en el Teatro San Martín - <?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-action="share/whatsapp/share"></a>
                                        <a href="h<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                            <img style="padding:0;padding-bottom:0;" class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>" width="460" height="263" class="disappear appear">
                                        </a>
                                    </div>
                                    <div class="news-summary">
                                        
                                        <h3>
                                            <?php echo $titulo ?>
                                        </h3>
                                        <div class="mom-post-meta nb-item-meta"> <span class="entry-date"><?php echo $d ?> <?php echo $m ?>, <?php echo $a ?></span>
                                        </div>
                                        <span class="bajada">
                                            <p class="selectionShareable"> <?php echo $bajada ?></p>
                                        </span>
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                    </div>
                    
                    
                </article>

                        
                        
                        
                         
                                                           
<?php 



$i= $i + 1;



}

mysql_free_result($consulta);

//aca termina article
 ?>
          </div> 
            
            
            
                      <?  include 'propagandas7.php'; ?>
                      
                      
                      
            </div>

                </sidebar>
                
                </div>
            
            <!-- slider foto y titulo -->
            