<?php include 'url_amigable.php';?><?php include 'concha.php';?>
   <?php     
        
$hay_des_2 = 'no';

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

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

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

}
mysql_free_result($consulta);?>
                        
<!doctype html>

<html lang="es"> 


  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      
      

      <!-- version 20 -->
<title><?php echo $nombresitio ?></title>
<meta name="description" content="<?php echo $descripcion_web ?>" />
<meta name="keywords" content="<?php echo $nombresitio ?>, radio, en vivo, escuchar, portal" />
<meta name="language" content="es" />
<meta property="og:title" content="<?php echo $nombresitio ?>" />
<meta property="og:description" content="<?php echo $descripcion_web ?>" />
<meta property="og:site_name" content="<?php echo $nombresitio ?>" />
<meta name="language" content="es" />
<meta property="og:type" content="article" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="<?php echo $dom ?>" />
<meta property="og:image" content="<? 
$logo_C = str_replace('http://', 'https://', $logo_C);
?><?php echo  $logo_C;?>"  /> 
    
    
	<? 
$link_titulo = str_replace('http://', 'https://', $link_titulo);
?>
<?php echo $link_titulo ;?>
   
<? 
$link_menu = str_replace('http://', 'https://', $link_menu);
?>
<?php echo $link_menu; ?>
    
<? 
$link_bajada = str_replace('http://', 'https://', $link_bajada);
?>
<?php echo $link_bajada; ?>
<?
$catba = $_GET['cat'];

$i_publi = 10000000;

?>


<link rel="shortcut icon" href="<?php echo $dom ?>/icono.ico" type="image/x-icon" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> 
<link rel="stylesheet" href="../css/estiloSesenta.css" />
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"/>
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville|Playfair+Display" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway:100,200,400,500,600,700,800,900" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:100,200,400,600,900" rel="stylesheet">      
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="stylesheet" href="https://montemaiz.gob.ar/css/hover-min.css"/>
<link rel="stylesheet" href="https://radioshosting.com/css/css/lightbox.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn t work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> 
 <script src="https://radioshosting.com/css/js/lightbox-plus-jquery.min.js"></script>        
<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>    
    <style>
        
        /* Antes va lo que se pueda mover a un archivo sin php */
            
        
        body {

        overflow-x: hidden;

        <?php  
            
        $e = substr("$d_color_fondo",0,1);
        $e1 = substr("$d_color_fondo",0,4);

        if ($e == '#') { ?>

        background-color:<?php  echo $d_color_fondo ?>;

        <?php  } else 

        { 


        if ($e1 == 'http') { ?>


        background-image:url(<?php  echo $d_color_fondo ?>); 

        background-repeat:repeat; 



        <?php  } else 

        { ?>


        background-image: url("https://recursos.radiosnethosting.com/fondos/<?php  echo $d_color_fondo ?>");

        background-attachment: fixed;

        -webkit-background-size: cover;

        -moz-background-size: cover;

        -o-background-size: cover;

        background-size: cover;



        <?php  } ?>

        <?php  }; ?>

        margin-left: 0px;

        margin-top: 0px;

        margin-right: 0px;

        margin-bottom: 0px;
                
        } 
                    
        h1, h2, h3, h4, h5, h6 {
            margin-bottom: 10px;
            
            margin-top: 0;
            color: <?php echo $d_color_menu ;?>;
            font-family: 'Raleway', 'Lato', sans-serif;
            letter-spacing: 0.2px;
            font-weight: 600;
        }
                    
        .colorTitulo {
                color:<?php echo $d_color_titulo ?>;
                font-size: 1.5em;
                
            }
                    
        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
                        display: block;
                        
            
                    }
                
        a:hover, a:link, a:visited, a:active, a:focus, a:before, a:after {
            outline: 0 none;
            color: <?php echo $d_color_menu ;?>;
            text-decoration:  none!important;
            
            }

            
        /* ============================ Estilo de los resultados ============================ */
            

            .carouselResultados{
                background-color: <?php echo $d_color_fondo_menu ;?>
                
            }
                            
        .carousel-cell-resultado {
                                display: inline-flex;
                                width: 20%;
                                height: 4em;
                                margin-right: 0;
                                background: #fff;
                                border-radius: 0!important;
                                color: <?php echo $d_color_fondo_menu ;?>;
                                text-align: center;
                                /*counter-increment: carousel-cell;*/
            
                            }
            
            .btn-carousel-resultados{
                margin:0 auto;
                width:100%;
                background-color:<?php echo $d_color_fondo_menu?>;
                border-radius: 0!important;
                    border: 0;
            }
                            
            .carousel-cell-resultado::before {
                display: none
            }
            
        .dropup button {
                                
                                background-color: <?php echo $d_color_fondo_menu ;?>;
                                padding: .5rem .75rem;
                                font-weight: 600;
                                font-family: raleway;
                                font-size: 1.2em;
                                letter-spacing: 1px;
                                cursor: pointer;
                                
                            }
                            
        .dropup button:hover {
                                background-color: #fff;
                                color:<?php echo $d_color_fondo_menu ; ?>;
                            }
            
        .dropup button:visited {
                                background-color: #fff;
                                
                                color:<?php echo $d_color_fondo_menu ; ?>;
                            } 
                
        .dropup button:active {
                
                                background-color: #fff;
                                
                                color:<?php echo $d_color_fondo_menu ; ?>;
                            }
            
        .btn-secondary.active, .btn-secondary:active, .show > .btn-secondary.dropdown-toggle {
                                background-color: #fff;
                                
                                color:<?php echo $d_color_fondo_menu ; ?>;
                            }
                            
        .cat-title {
            position: absolute;
            top: 0;
            line-height: 30px;
            display: block;
            font-size: 0.8em;
            font-weight: 600;
            text-transform: capitalize;
            padding: 0 5px;
            margin-left: 5px;
            background-color:<?php echo $color_cat ?>;
            display: block;
            z-index: 1;
        }
            
        .cat-title a {
                
                color:rgba(<? echo $color_titulo_barra2 ?>)!important; 
                font-family: 'Raleway', Arial, sans-serif;
                text-transform: capitalize;
            }
            
        .btnCategorias{
                width: 100%;
                background-color:<?php echo $d_color_fondo_menu ;?> ;
                border: 0;
                display: block;
            }
            
        /* header */
        #header-wrapper{
                    padding: 0;   
                    background-color: <? echo $d_color_fondo_menu ?>;
                    }
                    
        .topbar {
            font-size: 15px;
            border-bottom:1px solid <?php echo $d_color_fondo_menu ?>; 
            max-height: 30px!important;
            line-height: 1em!important;
            background-color: <?php echo $d_color_fondo_menu ?>!important;
            color: #fff!important;
                    }    
        
        .svg path {
                    height: 40px!important;   
                width: 40px!important;   
                
            fill: <?php echo $d_color_menu ?>;
                    
                        
                    }
            
        .svg:hover path{
                
                fill: <?php echo $d_color_menu ?>;
                
            }
            
            
        /* ============================ Estilo de las cabeceras ============================ */  
            
        
            .row{
                margin: 0;
                width: 100%;
            }
            
            .bloqueBorde{
                border: 1px solid #e4e4e4;
                border-radius: 10px 10px 0 0 !important;
                
            }
            
            
        .widget-head {
            padding:1em;
        /* border-top: 1px solid #e4e4e4;
            border-bottom:  4px solid #ED1B24;*/
            background-color: <?php echo $d_color_fondo_menu ?>;
        }
            
        .widget-head h3 {
                font-size: 2em;
            }
            
        .widget-head span {
            /*padding:1em;
            border-top: 1px solid #e4e4e4;*/
            border-bottom:  4px solid #ED1B24;
                
        }
            
        .widget-title {
            font-size: 2em;
            font-weight: 600;
            line-height: 1;
            letter-spacing: 1px;
            margin-bottom: 0;
            color:#fff;
            font-family: 'Raleway', sans-serif;
            text-transform: capitalize;
        }
            
            
            
        /* ============================ Estilo de los cabeceras ============================ */  
            
        
        .carousel-caption {
            position: absolute;
            right: 0;
            bottom: 0px;
            top: 0;
            left: 0;
            z-index: 10;
            padding:2rem;
            color: #fff;
            background-color: rgba(0,0,0,0.3);
            
        }
            
        .carousel-captionh1 {
            color: <?php echo $d_color_fondo_menu ;?>!important; 
            opacity: 1;
            position: absolute;
            bottom: 0;
            text-transform: uppercase;
            padding: 1rem;
            /* color: white; */
            z-index: 13;
            font-weight: 600;
            
            }
            
        .btn-outline-primary.active, .btn-outline-primary:active, .show>.btn-outline-primary.dropdown-toggle {
            color: #fff;
            background-color: <?php echo $d_color_fondo_menu ?>;
            border-color: <?php echo $d_color_fondo_menu ?>;
        }
            
        .btn-outline-primary:hover {
            color:#fff;
            background-color: <?php echo $d_color_fondo_menu ?>;
            border-color:<?php echo $d_color_fondo_menu ?>;
        }
            
        .btn-outline-primary {
            color: <?php echo $d_color_fondo_menu ?>;
            background-color:#fff ;
            background-image: none;
            border-color: <?php echo $d_color_fondo_menu ?>;
        }
            
        .radio{
                background-color: <? echo $d_color_fondo_menu ?>;
                background-repeat:repeat;
                
            }
            
        #play-pause-button{
                color:<? echo $d_color_fondo_menu?>;
                
            }
        
        .flickity-prev-next-button .arrow {
                
                fill: <?php echo $d_color_fondo_menu ;?>;
                background-color: #fff;
            }   
            
        .flickity-prev-next-button{
                
            
                background-color: #fff;
            }   
            
        body::-webkit-scrollbar-thumb {
            background-color: <?php echo $d_color_fondo_menu ;?>;
        }

        .scrollList::-webkit-scrollbar-thumb {
            background-color: <?php echo $d_color_fondo_menu ;?>;
        }


            
            
        </style>
        
        <style>
            
            .no-skin{
                border-radius: 0px!important;
                border-bottom: 4px solid <?php echo $d_color_fondo_menu ?> 
                
            }
            
            article{
                border-radius: 0px!important;
                border-bottom: 4px solid <?php echo $d_color_fondo_menu ?>
                
            }
                                    
            .bajadaDeDos{
                visibility: hidden;
                opacity: 0;
                transition: visibility 0s, opacity .15s linear;
                position:absolute;
                bottom:-1px;
                left:0px;
                background-color:#fff;
                padding: 10px 25px;
            }
            
            .displayBajada:hover .bajadaDeDos{
                visibility: visible;
                opacity: 1;
            }
</style>
      
</head>

    <body>    
        <section id="header-wrapper" class="sticky-top container-fluid" style="">       
                <div class="row">            
                    <div class="col-sm-12 col-12 col-md-12 col-lg-12"  style="padding:0;"> 
                        <?php    include 'menuestilo60.php';?>
                    </div>              
                </div>
        </section>
        
        <section class="container-fluid  p-0 margenSup">
        
                           <?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 mb-3" data-flickity='{ "lazyLoad": 9, "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 ?>" width="100%" />
     
      <?php if ($titulo == '') {} else {?>
     
                        <div class="container" >
                            
<h2 class="carousel-captionh1"><?php if($nota == 0) {} else {?> <a class="hvr-underline-from-left" target="_parent" style="color: #fff;" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo) ?>"><?php };?>
							<?php echo $titulo ?><?php if($nota == 0) {} else {?> </a> <?php };?></h2>
                            <div class="carousel-caption d-md-block text-left" style="margin-bottom:0;">
                            
                            <p class="displaytitulo"><?php echo $texto ?></p>
                           </div>
                        </div>
     
     <?php };?>
     
                        </div>
                        
                        <?
}
mysql_free_result($consulta);?>
                        <?php   if ($hay_cuber_0 == 'si') {?>
                        </div> 
     
     
     <?php } else {};?>


        
        </section>        
            
 <section class="container">
     
          
<!-- radio en vivo banner-->
     
<?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') { ?> 
         
     <div class="container">    
  <!-- 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-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="<? $ip_stream = str_replace('http://', 'https://', $ip_stream);?>
<?php echo $ip_stream ;?><?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>

            
            
            <!-- 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" style="background-color:<?php echo $d_color_menu ;?>;z-index:900;">
                                
               <div class="row">
                   
                   <div class="col-12 col-sm-6 col-md-6 col-lg-6" style="padding:0;"> 
                       <div class="videoPrincipal">
                        <iframe style="position:absolute;width:100%;height:100%;" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
                        </div>
                                                        
                    </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">
                                
                                <p class="" style="margin:0; color:<? echo $d_color_fondo_menu?>!important;font-weight:bold;"><?php echo $cat ?></p>
                                
                                <h2 class="tituloVideo" style="margin:0; color:<? echo $d_color_fondo_menu?>!important;">
                                    <?php echo $titulo ?>
                                </h2>
                            
                                <p style="margin-bottom: 6px;color:<? echo $d_color_fondo_menu?>!important;"><?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 ?>
     
     <!-- Comienza resultados de las disciplinas-->
     
     
            <div class="row bloqueBorde d-none" >
                
                
                
         <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12">
                    
                    <h3 class="widget-title" style="">
                        
                        <span>Resultados</span>
                    
                    </h3>
                
                    </div> 
                
                 <div class="col-12 col-lg-12 p-0 ">
                 
                 <div class="carouselResultados" data-flickity='{ "groupCells": true, "pageDots": false, "wrapAround": true }'>
                     
                                                          
<?php	  

mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM disciplinas_categorias  ";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
    
{

$ID = $row["ID"];   
$disciplina = $row["disciplina"];   
$categoria = $row["categoria"];


?>
                     
                     <div class="carousel-cell-resultado">
                         
                         <a href="<?php echo $dom?>/principal.php?ID=<? echo $ID?>" class="btn btn-carousel-resultados hvr-underline-from-center">
                             
                             <ul class="listaMenor">
                                 
                                               
                     <?php
   
                     
        $sql23 = "SELECT * FROM `disciplinas` WHERE `ID` = '$disciplina' LIMIT 1 ";
        $consulta23 = mysql_query ($sql23);
        while ($row23 = mysql_fetch_array($consulta23))
            
               
            
        {
            $ID = $row23["ID"];
            $nombre = $row23["nombre"];
            $logo = $row23["logo"];
             
        }
    
                                 
                                 
                                 ?>
                         <li><h5 class="carousel-cell-resultadoh5 m-0"><?php  echo $nombre;?> </h5></li>
                                       
                                 
                                 <?
 
    
        mysql_free_result($consulta23);
    ?>
    
                                 
                                 
                                 <li><p  class="carousel-cell-resultadop"><?php echo $categoria?></p></li>
                                 
                              
                             </ul>
                             
                             
                         </a>
                         
                     </div>
                     
<?php 

 }
             
mysql_free_result($consulta);

?>   
                     
                     
            </div>
            
             </div>
             
            
         
         <div class="col-12 col-md-9 col-lg-9 p-3">
             
            
             
                 
                 <div class="col-12 col-lg-12 p-0">
                     
                                         <?php

$ID_resultado = (int)$_GET['ID_res'];                         
                         
$sql = "SELECT * FROM `resultados` WHERE ID = '$ID_resultado' ";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))

{
    
$ID = $row["ID"];
$ID_disciplina = $row["ID_disciplina"];
$ID_disciplina_categoria = $row["ID_disciplina_categoria"];
$fecha = $row["fecha"];
$resultado = $row["resultado"];
$equipo_local = $row["equipo_local"];
$equipo_visitante = $row["equipo_visitante"];
$goles_local = $row["goles_local"];
$goles_visitante = $row["goles_visitante"];
$estadio = $row["estadio"];
$arbitro = $row["arbitro"];   

}

                     
?>
       
                     
                     <div class="row" >
                         
                         <?php 
   
                         
                         
$sql2 = "SELECT * FROM `equipos` WHERE ID = '$equipo_local' ";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))

{
    
$ID = $row2["ID"];
$nombre = $row2["nombre"];
$logo = $row2["logo"];
   

}
                     
mysql_free_result($consulta2);

?>
                         
                         <div class="col-3 col-3 margenDerecho" >
                             
                             <img style="max-height:5em;margin:1em 0;" src="<?php echo $logo ?>"  class="img-fluid">
                         
                         </div>
                         
                         <div class="col-2 col-lg-2 margenDerecho">
                             
                             <ul class="listaMayor">
                                 
                                 <li>
                                     
                                     <h4 style="color:<?php echo $d_color_fondo_menu ;?>;"><?php echo $goles_local ?></h4>
                                 
                                 </li>
                             
                                 <li>                             
                                     
                                     <p class="estiloEquipo" style="color:<?php echo $d_color_fondo_menu ;?>;">
                                         
                                         <?php echo $nombre ?>
                                     
                                     </p>
                                     
                                 </li>
                             
                                 <li>
                                     
                                     <i class="fas fa-futbol"></i>
                                 
                                 </li>
                                                          
                             </ul>
                                                                          
                         </div>
                         
                         <div class="col-2 col-lg-2 margenCentro">
                         
                               <h3 style="color:<?php echo $d_color_fondo_menu ;?>;">VS</h3>
                      
                         </div>
                         
                         <div class="col-2 col-lg-2">
                             
                             <ul class="listaMayor">
                                                                                           <?php 
   
                   
                         
$sql2 = "SELECT * FROM `equipos` WHERE ID = '$equipo_visitante' ";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))

{
    
$ID = $row2["ID"];
$nombre = $row2["nombre"];
$logo = $row2["logo"];
   

}
                     
mysql_free_result($consulta2);

?>
                                 <li> 
                                     
                                     <h4 style="color:<?php echo $d_color_fondo_menu ;?>;"><?php echo $goles_visitante ?></h4>
                                     
                                 </li>
                                 
                                 <li>
                                     
                                     <p class="estiloEquipo" style="color:<?php echo $d_color_fondo_menu ;?>;"><?php echo $nombre ?></p>
                                 
                                 </li>
                                 
                                 <li><i class="fas fa-futbol"></i></li>
                                 
                             </ul>
                                                        
                         </div>
                         
                         <div class="col-3 col-3 ">
                             
                             <img style="max-height:5em;margin:1em 0;" src="<?php echo $logo ?>"  class="img-fluid">
                         
                         </div>                
                    
                     </div>
                     
                                        <?

                     
mysql_free_result($consulta);

?>
       
                     
                     <!--div class="btn-group dropup" style="width:100%;">
                         
  <button style="width:100%;" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Estadísticas</button>
  <div style="width:100%;padding:1em;background-color:#fff;" class="dropdown-menu">
      
      
      
    <div class="row">
                         
                         <div class="col-4 col-lg-4 margenDerecho">
                         
                              <ul class="listaMenor" >
                     
                         <li>5</li>
                         <li>2</li>
                         <li>0</li>
                         <li>7</li>
                         <li>5</li>
                         <li>3</li>
                                                  
                     </ul>
                 
                             
                         </div>
                         
                         <div class="col-4 col-lg-4 margenCentro">
                         
                           
                     <ul class="listaMenor" >
                     
                         <li>Faltas</li>
                         <li>Tarjetas Amarillas</li>
                         <li>Tarjetas Rojas</li>
                         <li>Fuera de Lugar</li>
                         <li>Tiros de Esquina</li>
                         <li>Salvadas</li>
                                                  
                     </ul>
                         
                         </div>
                         
                         <div class="col-4 col-lg-4 ">
                         
                             <ul class="listaMenor">
                     
                         <li>12</li>
                         <li>3</li>
                         <li>0</li>
                         <li>3</li>
                         <li>10</li>
                         <li>2</li>
                                                  
                     </ul>
                     
                             
                         </div>
                                          
                     </div>
                    
  </div>
</div-->
                     
                 </div>
                      
         
         </div>
         
         <div class="col-12 col-md-3 col-lg-3 p-0">
             
             <div class="col-12 col-lg-12 p-2 scrollList">
                   
<?php

$ID_categoria = (int)$_GET['ID'];                         
     
     
                 
$sql = "SELECT * FROM `resultados` WHERE ID_disciplina_categoria = '$ID_categoria' ORDER BY ID ";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))

{
$ID_res = $row["ID"];
$ID_disciplina = $row["ID_disciplina"];
$ID_disciplina_categoria = $row["ID_disciplina_categoria"];
$fecha = $row["fecha"];
$resultado = $row["resultado"];
$equipo_local = $row["equipo_local"];
$equipo_visitante = $row["equipo_visitante"];
$goles_local = $row["goles_local"];
$goles_visitante = $row["goles_visitante"];
$estadio = $row["estadio"];
$arbitro = $row["arbitro"];
    
?>
                 
                   
                     <a href="<?php echo $dom?>/principal.php?ID=<? echo $ID_disciplina_categoria ?>&ID_res=<? echo $ID_res ?>" class="col-12 col-lg-12 p-0" style="margin:0.5em 0;display:block;">
                
                <div class="row">
                    
                    <div class="col-3 col-lg-3 estiloEquipo margenCentro">
                        
                     <?php  
        
  
        
$sql32 = "SELECT * FROM `equipos` WHERE ID = '$equipo_local' ";
$consulta32 = mysql_query ($sql32);
while ($row32 = mysql_fetch_array($consulta32))

{
$ID_equipo = $row32["ID"];
$nombre = $row32["nombre"];
$logo = $row32["logo"];
    


}
    
    ?>
        <img alt="<?php echo $nombre?>" title="<?php echo $nombre?>" style="max-height:2em;" src="<?php echo $dom?>/<?php echo $logo?>"  class="img-fluid">
                        
                                            <?

mysql_free_result($consulta32);

?>
                    
                    </div>
                    
                    <div class="col-2 col-lg-2 estiloEquipo margenCentro" >
                        
                        <h4 style="font-size:1em;color:<?php echo $d_color_fondo_menu ;?>;font-weight:700;line-height:1.5em;"><?php echo $goles_local?></h4>
                    
                    </div>
                    
                    <div class="col-2 col-lg-2 estiloEquipo margenCentro" >
                        
                        <h4 style="font-size:1em;color:<?php echo $d_color_fondo_menu ;?>; line-height:1.5em;">VS</h4>
                        
                        
                    
                    </div>
                    
                    <div class="col-2 col-lg-2 estiloEquipo margenCentro" >
                        
                        <h4 style="font-size:1em;color:<?php echo $d_color_fondo_menu ;?>;font-weight:700;line-height:1.5em;"><?php echo $goles_visitante?></h4>
                    
                    </div>
                    
                    <div class="col-3 col-lg-3 estiloEquipo margenCentro" >
                        
                              <?php  
        
  
        
$sql32 = "SELECT * FROM `equipos` WHERE ID = '$equipo_visitante' ";
$consulta32 = mysql_query ($sql32);
while ($row32 = mysql_fetch_array($consulta32))

{
$ID_equipo = $row32["ID"];
$nombre = $row32["nombre"];
$logo = $row32["logo"];
    


}
    
    ?>
        <img alt="<?php echo $nombre?>" title="<?php echo $nombre?>" style="max-height:2em;" src="<?php echo $dom?>/<?php echo $logo?>"  class="img-fluid">
                        
                                            <?

mysql_free_result($consulta32);

?>
                    </div>
                
                </div>
                
                     
            </a>
      
                    <?

}

mysql_free_result($consulta);

?>
                    
                    
                </div>
                
                     
            </div>
      
           
         
            
            </div>
                
       
     
     
     <!-- Finaliza resultados de las disciplinas-->
     
     
     <?php if ($adsense == '') {} else { ?>
     
        <div class="row bloqueBorde" style="padding:15px 0;">
 
     <? echo $adsense; ?>

     </div>          
         
     
     <?  }; ?>
                  
               <!-- 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 bloqueBorde" 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 ?>" /></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);

?>
                    
                       <?php if ($funcion10 == 's') {?>
     
     <div class="row bloqueBorde">
         
         <div class="col-12 col-sm-12 col-md-12 col-lg-12">
             
             <iframe src="https://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 {}; ?>
 
                         <? if($funcion10 == 'si'){?>
    <div class="container my-3">
            <div class="row mb-3">
                <div class="col-12 text-center p-0 d-flex justify-content-center align-items-center" style="height:150px;background-image:url('https://www.argentina.gob.ar/sites/default/files/styles/jumbotron/public/2020-header-web-coronavirus-2.jpg?itok=mn2bHUNt');">
                    <a class="stretched-link" href="https://www.argentina.gob.ar/salud/coronavirus-COVID-19" target="_blank">
                        <h2>MÁS INFORMACIÓN SOBRE COVID-19</h2>
                    </a>
                </div>
                <div class="col-12 d-flex justify-content-center" style="background-color:red;">
                    
                    <div class="container-fluid p-0">
                        <div class="row">
                            <div class="col-6 col-md-3 ">
                                <ul style="list-style:none;padding:0;">
                                    <li style="list-style:none;text-align:center;"><p style="color:#ffffff;">Fecha</p></li>
                                    <li style="list-style:none;text-align:center;"><h2 class="colorTitulo info" style="color:#ffffff;"></h2></li>
                                </ul>
                            </div>
                            <div class="col-6 col-md-3 ">
                                <ul style="list-style:none;padding:0;">
                                    <li style="list-style:none;text-align:center;"><p style="color:#ffffff;">Contagios</p></li>
                                    <li style="list-style:none;text-align:center;"><h2 class="colorTitulo info2" style="color:#ffffff;"></h2></li>
                                </ul>
                            </div>
                            <div class="col-6 col-md-3 ">
                                <ul style="list-style:none;padding:0;">
                                    <li style="list-style:none;text-align:center;"><p style="color:#ffffff;">Recuperados</p></li>
                                    <li style="list-style:none;text-align:center;"><h2 class="colorTitulo info4" style="color:#ffffff;"></h2></li>
                                </ul>
                            </div>
                            <div class="col-6 col-md-3 ">
                                <ul style="list-style:none;padding:0;">
                                    <li style="list-style:none;text-align:center;"><p style="color:#ffffff;">Muertes</p></li>
                                    <li style="list-style:none;text-align:center;"><h2 class="colorTitulo info3" style="color:#ffffff;"></h2></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
    
<?} else {} ?>
   <script>
        fetch("https://pomber.github.io/covid19/timeseries.json")
      .then(response => response.json())
      .then(data => {
        let yi = data["Argentina"].reverse();
        const str = yi[0].date;
        const words = str.split('-');
        $('.info').text(words[2]+'-'+words[1]+'-'+words[0]);
        $('.info2').text(yi[0].confirmed);
        $('.info3').text(yi[0].deaths);
        $('.info4').text(yi[0].recovered);
      })

    </script>
                  
             <!-- 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 bloqueBorde" style="margin-top:15px;margin-bottom:15px;">
                
               
              
                       <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">
                                           
                                           <h3 class="colorTitulo" ><?php echo $titulo ?></h3>
                                           </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=";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="colorTitulo" 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>
              
              <?       if ($adsense == ' ') {} else { ?>
<div class="col-12 col-sm-12 col-md-12 col-lg-12" style="padding: 0;">
 <? echo $adsense; ?>
</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 bloqueBorde" 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-responsive 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 bloqueBorde" 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="row" >
<?

$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,ext_img,foto 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 p-0" >
                    
                    
                    <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12">
                    
                    <h3 class="widget-title" style="">
                        
                        <span><?php echo $nombre_cat_slide ?></span>
                    
                    </h3>
                
                    </div>
                 
                    <div class="pl-1 pr-1 pt-3">
		
                        <div class="grid " >
<?

$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>
                
                
                
               
                
 <!-- 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="row bloqueBorde mb-3">
        
        <div class="col-12 col-sm-12 col-md-12 col-lg-12 p-0" style="text-align:center;">
            
            <div class="col-12 col-sm-12 col-md-12 col-lg-12 p-0" >
                
                <a href="<? echo $url_p ?>" target="_blank"><img src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid" alt="Image"></a>
            
            </div>
                    
        </div>
</div>
        
<? 
}
mysql_free_result($consulta44); ?> 
                
                
            
          <?php 
    $lugar_publis_estilo = $lugar_publis_estilo + 1;    
    $id_publi_new = $id_publi_new + 1;
             }
mysql_free_result($consulta);?>
                
                
            <!-- X3 -->
            
<!-- grid -->
                  
                      
            <div class="row" style="margin-bottom:15px;">
                
                <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>Últimas Noticias</span>
                    
                    </h3>
                
                    </div> 
                
                <div style="height:auto;" class="col-12 col-sm-12 col-md-12 col-lg-12" role="main">
                    
            
                    <div id="grid"  style="" >
                        
                        <?       if ($adsense == ' ') {} else { ?>
<div class="col-12 col-lg-12" style="padding:15px 0;">
 <? echo $adsense; ?>
</div>          
         <?  }; ?>
                        
                       <?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 {};?>
                        

                    
                    
                    
                         <div class="grid wow fadeIn" data-wow-duration="1s" <?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-12 col-sm-6 col-md-6 col-lg-4" style="">
                               
                              
                                
                                <article class="wow fadeIn" data-wow-duration="1s">
                                    
                                    <div class="widget-head"> <h4 class="widget-title dest"><span>DESTACADA</span></h4></div>
                                    
                                    <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 {?>
                                        <span class="cat-title larger cat-6" style="background-color:<?php echo $color_cat ?>;top:64px;">
                                            <a style="color:rgba(<? echo $color_titulo_barra2 ?>)!important; 
" 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;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" 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" aria-hidden="true"></i></a>
                                        
                                        
                                        
<?php 

///////youtube ?>

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

 <div style="position:realtive;padding-bottom:56.25%;">  



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

     

</div>

    </div>

<?php  }; ?>
                       <?php         if ($foto == '' || $youtube != NULL) {} 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">
                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><h3 class="colorTitulo"><?php echo $titulo ?></h3></a>
                                        <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-12 col-sm-6 col-md-6 col-lg-4" style="text-align:center; ">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 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-12 col-sm-6 col-md-6 col-lg-4" 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-12 col-sm-6 col-md-6 col-lg-4" style="text-align:center;">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 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'  and des_cat = 0 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-12 col-sm-6 col-md-6 col-lg-4" style="">
                               
                               
                                
                                <article class="wow fadeIn" data-wow-duration="1s" >
                                    <?    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;" 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         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  ///////youtube ?>

                                        <?php  if ($youtube == NULL) { } else { ?>
                                        
                                        <div style="position: relative; padding-bottom: 56.25%;margin-top: 1em;">  



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

     

</div>
                                        
                                        <?php  }; ?>
                                    
                                    </div><? }; ?>
                                    
                                    <div class="news-summary">
                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><h3 class="colorTitulo"><?php echo $titulo ?></h3></a>
                                        
                                        <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> 
                                        
                                        <div class="bajada"><p class="selectionShareable" style="margin-bottom:0;"><?php $bajada = str_replace('<em>','',$bajada);  $bajada = str_replace('</em>','',$bajada);  echo $bajada; ?></p></div>
                                    
                                    </div>
                                
                                
                                </article>

                            </div>
                            
               
               
             <?   if(($i_publi % 5 ) == 0){ ?>
             
                <?       if ($adsense == ' ') {} else { ?>
                <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-4" 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-12 col-sm-6 col-md-6 col-lg-4" style="text-align:center; ">
                               
                                                    <?php   if ($url == NULL) {} else { ?>

                            <a href="<?php 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-12 col-sm-6 col-md-6 col-lg-4" 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-12 col-sm-6 col-md-6 col-lg-4" style="text-align:center;">
                               
                            <?php   if ($url == NULL) {} else { ?>

    <a href="<?php 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>  
                
        
                
                <div class=" col-12 col-sm-12 col-md-12 col-lg-12" role="complementary" >
                    
                    <div class="grid2">
                        
                            <?            
                                        $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);


                            ?>
                                            
            
                      <?  include 'propagandas_div_60.php'; ?>        
                    </div>

                </div>
                
                </div>
            
            <!-- slider foto y titulo -->
            
            
            
            
            
            
            <?php          
	  
	  /// comienza ultimas notis de categoria seleccionada. cat1 4 notas con foto  
	                              
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM `categorias` WHERE `home` LIKE 'si' ORDER BY orden LIMIT 3" ;
$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"];
?>
            
            
            
            
            <div class="destacadas bloqueBorde">
                
                <div class="container-fluid" style="">

                        <div class="row" style="margin:0 auto;background-color:#fff;">
            
                            <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12" style="">
                                <h3 class="widget-title" style="">
                                    <span><?php echo $nombre_cat_slide ?></span>
                                </h3>
                            </div>  
                            
                            <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="background:#ffffff;margin:15px 0;">
                                <!-- Flickity HTML init -->
                                <div class="carousel2 js-flickity" data-flickity='{ "lazyLoad": 3, "initialIndex": 1, "freeScroll": false, "wrapAround": true, "pageDots": false  }'>
                 <?               
                                
                                

$sql3 = "SELECT ID,titulo,texto,bajada,d,m,a,carpetafoto,foto FROM notas WHERE ver = 'si' AND foto != '' AND cat = '$ID_cat_slide' ORDER BY ID desc LIMIT 12" ;
$consulta3 = mysql_query ($sql3);
while ($row3 = mysql_fetch_array($consulta3))
{


$ID = $row3["ID"];
$titulo = $row3["titulo"];
$texto = $row3["texto"];
$bajada = $row3["bajada"];
$d = $row3["d"];
$m = $row3["m"];
$a = $row3["a"];
$carpetafoto = $row3["carpetafoto"];
$foto = $row3["foto"]; 
$ext_img = $row3["ext_img"];

if ($ext_img == NULL) {$ext_img = ".jpg";} else {};




 ?><a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" class="carouselimg">
                                      <img class="carousel-cell-image2" data-flickity-lazyload="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>"  src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>" />
                                        <div class="titulo" >
                                            <h4 class="titulotext" style="color:#fff!important;"><?php echo $titulo ?></h4>
                                        </div>
                                    </a >
                                    
                                    
                                         <?php
 }
mysql_free_result($consulta3);

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

 
                    
                </div>
        
        
        <?php   
             }
mysql_free_result($consulta); ///termina slider cat1 4 notas con foto ?>
            
            <!--  -->
            
                    
             <div class="wrapper" id="wrapper-footer">
            
            <div class="container">
                
                    <div class="row">
            
                    <div class="col-md-6">
                        
                        <div id="text-15" class="widget footer-widget widget_text"> 
                
                
                            <div class="textwidget">
                
                
                                <?php echo $contacto ?>
                
                
                            </div>
            
                        </div> 
                        
                        </div>
            
            
                    <div class="col-md-6">
                        
                        
                        
            
                        <div id="sociallinks_widget-3" class="widget footer-widget widget_sociallinks_widget">
                            <h2 class="widget-title" style="color: #8a8a8a;text-align:right;">Seguinos</h2> 
                            <p class="widget-title" style="color: #8a8a8a;text-align:right;font-size:16px;"><i class="fab fa-whatsapp"></i> <?php echo $whatsapp ?></p> 
                            
                            <div class="social">
<ul class="navbar-nav" style="display:inline-block;">
                           
                                                 
                                           <?php  if ($facebook == NULL) {} else {?>

            <li class="nav-item" style="display:inline-flex;">
                
                <a  class="nav-link" target="_blank" href="<?php echo $facebook ?>"><i class="fab fa-facebook" aria-hidden="true" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
        
            </li>
              <?php };?>

                <?php  if ($twitter_btn == NULL) {} else {?>
                <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $twitter_btn ?>"><i class="fab fa-twitter" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_aim == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_aim ?>"><i class="fab fa-instagram" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_ask == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_ask ?>"> <img src="https://www.radiosnet.com.ar/iconos/1/ask.png" alt="" width="40" height="40" /></a>
</li>
              <?php };?>

              <?php  if ($social_blogger == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_blogger ?>"><i class="fab fa-blogger" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_flickr == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_flickr ?>"><i class="fab fa-flickr" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_google == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_google ?>"><i class="fab fa-google" style="font-size:1.5em;font-weight:200;color:#8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_myspace == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_myspace ?>"> <img src="https://www.radiosnet.com.ar/iconos/1/myspace.png" alt="" width="40" height="40" /></a>
</li>
              <?php };?>

              <?php  if ($social_tumblr == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_tumblr ?>"><i class="fab fa-tumblr" style="font-size:1.5em;font-weight:200;color: #8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_vimeo == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_vimeo ?>"><i class="fab fa-vimeo-v" style="font-size:1.5em;font-weight:200;color: #8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_yahoo == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_yahoo ?>"><i class="fab fa-yahoo" style="font-size:1.5em;font-weight:200;color: #8a8a8a;"></i></a>
</li>
              <?php };?>

              <?php  if ($social_youtube == NULL) {} else {?>
              <li class="nav-item" style="display:inline-flex;">

              <a  class="nav-link" target="_blank" href="<?php echo $social_youtube ?>"><i class="fab fa-youtube" style="font-size:1.5em;font-weight:200;font-weight:200;color: #8a8a8a;"></i></a>
</li>
              <?php };?>

        
                <?php if ($funcion1 == 'si') {  ?>
                <li class="nav-item" style="display:inline-flex;line-height:2em;">

                <a  class="nav-link" target="_blank" href="<?php echo $dom ?>/envivo"><img src="<?php echo $dom ?>/Fondo_Boton_Rojo.png" class="img-fluid" style="padding: 0;"></a>
                </li>
                <?php }; ?>
 
                 
                            
                        </ul>
            </div>
            </div> </div>
            
                    <div class="col-md-12">
            
                        <footer class="site-footer" id="colophon">
            
                            <div class="site-info">
            
                                <div class="row">
            
                                    <div class="col-md-8">
            <h1 class="navbar-brand mb-0"><a rel="home" href="principal.php" title="">
                
                <img class="img-fluid custom-logo" width="201" height="31" src="<? 
$logo_C = str_replace('http://', 'https://', $logo_C);
?><?php echo  $logo_C;?>"></a></h1>
            <span class="copyright"> <?php echo $nombresitio ?> - Todos los derechos reservados © <?php echo date(Y); ?></span>
            </div>
            
                                    <div class="col-md-4">
            <span>Desarrollado por</span>
            <a href="https://www.radiosnet.com.ar/" target="_blank" class="surhive-link">
            <img src="https://lv12.com.ar/logoradiosnet.png" class="surhive" width="100%" height="auto" alt="RadiosNet">
            </a>
            </div>
            
                                </div>
            
                            </div>
            
                        </footer>
            
                    </div>
            
                </div>
            
                </div>
            
            </div>
      
        </section>  
                        
 <? include 'clix_footer.php';?>    
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>

        
        

<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<script type="text/javascript">
window.setInterval(function(){
  $('.grid').isotope({
  itemSelector: '.grid-item'
});
}, 2000);
</script>
<script type="text/javascript">
window.setInterval(function(){

  $('.grid2').isotope({
  itemSelector: '.grid-item2'
});

}, 2000);
 
</script>
<script language=javascript>
function ventanaSecundaria56 (URL){
   window.open(URL,"ventana1","width=960,height=630,scrollbars=NO")
}
  </script>
<script>
    
    
         
         $(function(){
             
    jQuery('img.svg').each(function(){
        var $img = jQuery(this);
        var imgID = $img.attr('id');
        var imgClass = $img.attr('class');
        var imgURL = $img.attr('src');
    
        jQuery.get(imgURL, function(data) {
            
            // Get the SVG tag, ignore the rest
            var $svg = jQuery(data).find('svg');
    
            // Add replaced image's ID to the new SVG
            if(typeof imgID !== 'undefined') {
                $svg = $svg.attr('id', imgID);
            }
            // Add replaced image's classes to the new SVG
            if(typeof imgClass !== 'undefined') {
                $svg = $svg.attr('class', imgClass+' replaced-svg');
            }
    
            // Remove any invalid XML tags as per http://validator.w3.org
            $svg = $svg.removeAttr('xmlns:a');
            
            // Check if the viewport is set, else we gonna set it if we can.
            if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
                $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
            }
    
            // Replace image with new SVG
            $img.replaceWith($svg);
    
        }, 'xml');
    
    });
});
  
 

     
  
</script>
   
         <script>
        $(document).ready(function(){
        $('.dropdown-submenu a.test').on("click", function(e){
            $(this).next('ul').toggle();
            e.stopPropagation();
            e.preventDefault();
        });
        });
        </script> 
        <script src="js/wow.min.js"></script>
              <script>
              new WOW().init();
        </script>  
           
</body>
</html>

         
