<?php include 'url_amigable.php';
 include 'concha.php';

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

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


$catba = $_GET['cat'];

mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql2 = "SELECT * FROM categorias WHERE ID = '$catba'";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))
{
$cat1 = $row2["nombre"];
$color_cat = $row2["color"];
$disciplina = $row2["disciplina"];
}
mysql_free_result($consulta2);

?><!doctype html>

<!-- es version -->

<html lang="es">

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

<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="<?php $logo_C = str_replace('http://', 'https://', $logo_C);echo $logo_C;?>"  />

    <?php
$link_titulo = str_replace('http://', 'https://', $link_titulo);
                               echo $link_titulo;
?>

   <?
$link_menu = str_replace('http://', 'https://', $link_menu);
                               echo $link_menu;
?>

   <?
$link_bajada = str_replace('http://', 'https://', $link_bajada);
                               echo $link_bajada;
?>



<?
$catba = $_GET['cat'];

$i_publi = 10000000;

?>

<title>ESTILO4</title>
<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 href="https://radioshosting.com/css/delalora<? echo $estiloweb ?>new.css" rel="stylesheet">
<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 rel="stylesheet" href="https://radioshosting.com/css/css/lightbox.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- 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]-->
         <style>
        body {
            background-color: <? echo $d_color_fondo?>;
            overflow-x: hidden;
            margin: 0 auto;
        }


        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            margin-bottom: 10px;
            line-height: 1.1em;
            font-weight: 600;
            margin-top: 0;
            color: <?php echo $d_color_titulo?>;
            font-family: <?php echo $style_titulo ?>;
        }

        p {
            font-family: <?php echo $style_bajada ?>;
        }

        .h3,
        h3 {
            font-size: 1rem;
        }

        h1 a,
        h2 a,
        h3 a,
        h4 a,
        h5 a,
        h6 a {
            display: block;
            color: <?php echo $d_color_menu?>;
        }

        a:hover {

            color: <?php echo $d_color_menu_sobre?>;

        }

        a:link,
        a:visited,
        a:active,
        a:focus,
        a:before,
        a:after {
            outline: 0 none;
            text-decoration: none;
            color: <?php echo $d_color_menu?>;
        }





        .navbar-nav .dropdown-menu {
            position: absolute;
            background-color: <? echo $d_color_fondo_menu?>;
        }


        .dropdown:hover>ul {

            display: block !important;

        }

        .dropdown ul li a {

            color: <?php echo $d_color_menu?>;

        }


        .navbar-light .navbar-nav .nav-link:focus,
        .navbar-light .navbar-nav {
            color: <?php echo $d_color_menu ?>;

        }

        .nav-link:hover {
            color: <?php echo $d_color_menu_sobre ?>;

        }

        #logo {
            max-width: 3.2rem;
        }

        #logo:hover path {
            fill: <?php echo $d_color_menu ?>;

        }

        #logo:hover {

            color: <?php echo $d_color_menu_sobre ?>;

        }

        #logo2 {
            fill: <?php echo $d_color_weather2 ?>;
            max-width: 48px;
        }


        #logo3 {
            fill: <?php echo $d_color_weather2 ?>;
            max-width: 18px;
        }

        .color {
            color: <? echo $d_color_menu?>;
        }

        .btn-outline-primary.active,
        .btn-outline-primary:active,
        .show>.btn-outline-primary.dropdown-toggle {
            color: <?php echo $d_color_fondo_menu ?>;
            background-color: <?php echo $d_color_menu ?>;
            border: 3px solid <?php echo $d_color_fondo_menu ?>;
        }

        .btn-outline-primary:hover {
            color: <?php echo $d_color_fondo_menu ?>;
            background-color: <?php echo $d_color_menu ?>;
            border: 3px solid <?php echo $d_color_fondo_menu ?>;

        }

        .btn-outline-primary {
            color: <?php echo $d_color_menu ?>;
            background-color: <?php echo $d_color_fondo_menu ?>;
            border: 3px solid transparent;
        }

        footer p {
            margin-bottom: .25rem;
            color: <?php echo $d_color_menu ?>;
            font-weight: 300;
        }

        .facebook {
            display: block;
            float: right;
            background: <?php echo $d_color_menu ?>;
            margin-right: 37px !important;
        }

        .twitter {
            display: block;
            float: right;
            background: <?php echo $d_color_menu ?>;
        }

        .flickity-page-dots .dot {
            background: <?php echo $d_color_menu ?>;

        }

        .sidebar {
            will-change: min-height;
        }

        .sidebar__inner {
            transform: translate(0, 0);
            /* For browsers don't support translate3d. */
            transform: translate3d(0, 0, 0);
            will-change: position, transform;
        }

        .sidebar .widget .widget-title {
            font-size: 20px;
        }

        <? $hexa=substr($d_color_fondo_menu, 1);

        $decimal=hexdec($hexa);


        if ($decimal <='10066329') {
            $color_titulo_barra="250,250,250,0.9";
        }

        else {
            $color_titulo_barra="0,0,0,0.9";
        }

        ;

        ?>.widget-head {
            background-color: <? echo $d_color_fondo_menu?> !important;
        }

        .widget-title {
            font-size: 25px;
            font-weight: 900;
            line-height: 1;
            text-transform: uppercase;
            margin-bottom: 0;
            color: <?php echo $d_color_menu ?>;
            font-family: <?php echo $style_titulo ?>;
        }

        /* ---- grid ---- */



        .topbar {

            border-bottom: 0;

            background-color: <? echo $d_color_fondo_menu ?>;
            color: <? echo $d_color_menu ?>;
        }


        .header {


            <?php if ($textura==NULL && $logo_g==NULL) {
                ?>background-color: <?php echo $d_color_fondo_cabecera ?>;

                <?
            }

            elseif($textura !=NULL) {
                ?>background-position: center center;
                background-size: cover;
                background-repeat: no-repeat;
                background-image: url(<?php $textura = str_replace("www.radiosnet.com.ar","recursos.radiosnethosting.com",$textura);
                echo $textura ?>);
                -moz-background-size: cover;
                -webkit-background-size: cover;

                <?php
            }

            else {
                ?>background-position: center center;
                background-size: cover;
                background-repeat: no-repeat;
                background-image: url(<?php echo $logo_g ?>);
                -moz-background-size: cover;
                -webkit-background-size: cover;

                <?
            }

            ?>clear: both;


        }


        .header-right {
            float: right;
        }

        .logo {
            max-width: 80%;

        }

        .bg-light {

            background-color: #fff !important;
        }

        article {
            background: transparent;
            /*border-radius: 3px;
                                        border: 1px solid #e4e4e4;*/
        }

        .colorTitulo {
            color: <?php echo $d_color_titulo ?>;
            font-weight: 800;
            letter-spacing: 1px;

        }



        .facebook {

            display: block;
            float: right;
            background-color: <?php echo $color_cat ?> !important;
            margin-right: 37px !important;
        }

        .twitter {

            display: block;
            float: right;
            background-color: <?php echo $color_cat ?> !important;
        }

        p.displaytitulo {
            height: 0;
            margin: 0;
            font-family: 'Montserrat', sans-serif !important;
            letter-spacing: 1px;
        }




        .carousel-caption {

            z-index: 10;
            padding: 4px 20px;
            /* padding-bottom: 20px;
                                position: absolute;
                            right: 0;
                            bottom: 0px;
                            left: 0;
                             */

            background-color: <? echo $d_color_fondo_menu ?>99;

        }

        .carousel-caption h2 {
            color: <? echo $d_color_menu ?> !important;
            font-weight: 700;
            margin: 0;

            font-size: 2.5vw;
        }



        .localidad {
            font-family: <?php echo $style_titulo ?>;
            color: <?php echo $d_color_weather2?>;
            line-height: 1;

        }





        /* destacadas slider */

        .titulo {
            display: none;
            position: absolute;
            bottom: 0;
            height: 100%;
            width: 100%;
            padding: 20px 15px;
            background-color: <?php echo $d_color_fondo_menu ?>;
            opacity: 0.7;
        }


        .cub3r-caption {
            /*display:none;*/
            position: absolute;
            bottom: 0;
            left: 0;
            background-color: <? echo $d_color_fondo_menu?>99;
            width: 100%;
            padding: 0.5rem 0.75rem;
        }

        .cub3r-caption-text {
            color: <? echo $d_color_menu?> !important;
        }

        .html-marquee {
            font-weight: 200;
            height: 40px !important;
            width: 100%;
            background-color: transparent !important;
            font-family: 'Montserrat', sans-serif !important;
            font-size: inherit !important;
            color: <? echo $d_color_menu ?> !important;
            letter-spacing: 0.5px;
        }

        marquee p {
            color: <? echo $d_color_menu ?> !important;
        }

        .texto-fecha {

            color: <? echo $d_color_menu?>;
        }

        .navbar-toggler-icon {
            color: <? echo $d_color_menu?>;
        }
    </style>

	</head>
	<body>



<?php if ($estiloweb == 72) { include 'menu_magazine.php'; }; ?>



        <div class="<?
        //echo $opcion101;
        if ($opcion101 == 1) { echo 'container-fluid';}

        if ($opcion101 == 0) {echo 'container';}

        ?>" style="margin-top: 15px;">

            <div  id="main-content" class="row">

                    <div id="content" class="content col-12 col-sm-12 col-md-8 col-lg-8 p-0" role="main">

                        <div id="grid">

                            <div class="widget-head">
                                <h3 class="widget-title">
                                    <span><?php echo $cat1;?></span>
                                </h3>
                            </div>



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

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

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

                                $img = $row["img"];

                                $carpetafoto = $row["carpetafoto"];

                                $url  = $row["url"];
                                ?>  <div style="height:auto;" class="col-12 col-sm-12 col-md-12 col-lg-9" role="main">
                                <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></div>
                                <?


                                    }
                                mysql_free_result($consulta);?>


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



                                        <?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  cat = '$catba' OR cat2 = '$catba' OR cat3 = '$catba' OR cat4 = '$catba' OR cat5 = '$catba' ORDER BY ID desc LIMIT 8";

                                                $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-6" style="">



                                                <article class="post-137356 post type-post status-publish format-standard has-post-thumbnail category-archivo category-comunicados category-cultura tag-camerata-bariloche tag-septiembre-musical" itemscope="" itemtype="https://schema.org/Article">

                                                    <div class="widget-head"> <h4 class="widget-title"><span>DESTACADA</span></h4></div>

                                                    <div class="news-image" style="">
                                                            <? $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 ?>;top:45px;">
                                                            <a style="color:rgba(<? echo $color_titulo_barra2 ?>)!important; font-family: Open Sans, Arial, sans-serif;" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $cat ?></a>
                                                        </div> <?php };?>
                                                        <a class="tshare facebook" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;"  href="javascript:ventanaSecundaria56('https://www.facebook.com/sharer.php?p[title]=<?php echo $titulo1 ?>&p[url]=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-facebook 3x" aria-hidden="true"></i></a>


                                                        <a class="tshare twitter" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;" href="javascript:ventanaSecundaria56('https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo; ?> - Leer: &amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-twitter 3x" aria-hidden="true"></i></a>

    <? if ($foto == '') { ?> <br><br> <? } else { ?>
                                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                            <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>">
                                                        </a> <? }; ?>
                                                     </div>
                                                    <div class="news-summary">
                                                        <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 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-6" 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-6" style=" margin-bottom:10px;">

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

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

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

                                                            </object>

                                                            </div>


                                                            <?

                                                            }

                                                            mysql_free_result($consulta44);

                                                            ?>



                                                            <?php

                                                            //arranca publis jpg

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

                                                            $consulta2 = mysql_query ($sql2);

                                                            while ($row2 = mysql_fetch_array($consulta2))

                                                            {

                                                            $img = $row2["img"];

                                                            $url = $row2["url"];



                                                            $carpetafoto = $row2["carpetafoto"];



                                                            ?>




                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" 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?>/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  cat = '$catba' OR cat2 = '$catba' OR cat3 = '$catba' OR cat4 = '$catba' OR cat5 = '$catba' 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-6" style="">



                                                <article class="post-137356 post type-post status-publish format-standard has-post-thumbnail category-archivo category-comunicados category-cultura tag-camerata-bariloche tag-septiembre-musical" itemscope="" itemtype="https://schema.org/Article">
                                                    <div class="news-image" style="">
                                                            <? $hexa2 = substr($color_cat,1);

                                                                $decimal2 = hexdec($hexa2);


                                                                if ($decimal2 <= '10066329') {$color_titulo_barra2 = "250,250,250,0.9";} else {$color_titulo_barra2 = "0,0,0,0.9";};

                                                        ?>
                                                    <?php if ($cat == '0') {} else {?>
                                                        <div class="cat-title larger cat-6" style="background-color:<?php echo $color_cat ?>;">
                                                            <a style="color:rgba(<? echo $color_titulo_barra2 ?>)!important; font-family: Open Sans, Arial, sans-serif;" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $cat ?></a>
                                                        </div> <?php };?>
                                                        <a class="tshare facebook" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;"  href="javascript:ventanaSecundaria56('https://www.facebook.com/sharer.php?p[title]=<?php echo $titulo1 ?>&p[url]=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-facebook 3x" aria-hidden="true"></i></a>


                                                        <a class="tshare twitter" style="background-color: <?php echo $color_cat ?>!important;color:rgba(<? echo $color_titulo_barra2 ?>)!important;" href="javascript:ventanaSecundaria56('https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo; ?> - Leer: &amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>')"><i class="fab fa-twitter 3x" aria-hidden="true"></i></a>

                                                          <? if ($foto == '') { ?> <br><br> <? } else  { ?>
                                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                            <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" alt="<?php echo $titulo ?>">
                                                        </a> <? }; ?>                                                    </div>
                                                    <div class="news-summary">
                                                        <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> <span class="bajada"><p class="selectionShareable" style="margin-bottom:0;"><?php 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-6" 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-6" style=" margin-bottom:10px;">

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

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

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

                                                        </object>

                                                        </div>


                                                        <?

                                                        }

                                                        mysql_free_result($consulta44);

                                                        ?>



                                                        <?php

                                                        //arranca publis jpg

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

                                                        $consulta2 = mysql_query ($sql2);

                                                        while ($row2 = mysql_fetch_array($consulta2))

                                                        {

                                                        $img = $row2["img"];

                                                        $url = $row2["url"];



                                                        $carpetafoto = $row2["carpetafoto"];



                                                        ?>




                                        <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" 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?>/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 id="sidebar" class="sidebar col-12 col-sm-12 col-md-4 col-lg-4 p-0">

                    <div class="sidebar__inner">

                        <?
                            $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);
                            ?>

                        <!-- aca termina el cuerpo  -->
                        <!-- este es el sidebar -->
                        <?  include 'propagandas_div.php'; ?>

                    </div>

                </div>

                </div>


            </div>



                         <!-- esto es el footer -->
            <?php if ($estiloweb == 72) { include 'footer.magazine.php'; }; ?>
		    <!-- termina el footer -->



 <? include 'clix_footer.php';?>


    <!-- ESTO SON TODOS LOS JS QUE USA EL SITIO -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
        integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
    </script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
        integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
    </script>
    <script src="https://radioshosting.com/css/js/lightbox-plus-jquery.min.js"></script>
    <script src="<? echo $dom ?>/js/jquery.fittext.js"></script>
    <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
          <script>

        // Set the options to make LazyLoad self-initialize
        window.lazyLoadOptions = {
            elements_selector: ".lazy",
            // ... more custom settings?
        };
        // Listen to the initialization event and get the instance of LazyLoad
        window.addEventListener('LazyLoad::Initialized', function (event) {
            window.lazyLoadInstance = event.detail.instance;
        }, false);
    </script>
    <script async src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.4.0/dist/lazyload.min.js"></script>
    <script type="text/javascript" src="<?php echo $dom;?>/js/rAF.js"></script>
    <script type="text/javascript" src="<?php echo $dom;?>/js/ResizeSensor.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sticky-sidebar@3.3.1/dist/sticky-sidebar.js">
    </script>

    <script type="text/javascript">
          var sidebar = new StickySidebar('#sidebar', {
              containerSelector: '#main-content',
              innerWrapperSelector: '.sidebar__inner',
              resizeSensor: true,
              topSpacing: 60,
              bottomSpacing: 20,
              minWidth: 767
          });
    </script>
    <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>

    <script>


        $(window).on('shown.bs.modal', function () {
            status = $('#myModal').modal('show');
        });




        //window.setInterval(function(){
        //$('.grid').isotope({
        //itemSelector: '.grid-item'
        //});
        //}, 4000);

        function ventanaSecundaria56(URL) {
            window.open(URL, "ventana1", "width=960,height=630,scrollbars=NO")
        }


        $(function () {
            var a = $(".carousel-captionh1").fitText(1.2, {
            minFontSize: '14px',
            maxFontSize: '18px'
            });
            $(".colorTitulo").fitText(1.2, {
                minFontSize: '14px',
                maxFontSize: '24px'
            });
            $(".carousel-caption h2").fitText(1.2, {
                minFontSize: '14px',
                maxFontSize: '30px'
            });
            $(".tituloVideo").fitText(1.2, {
                minFontSize: '14px',
                maxFontSize: '30px'
            });
            $(".tarso").fitText(1.2, {
                minFontSize: '20px',
                maxFontSize: '50px'
            });
            $(".tarso2").fitText(1.2, {
                minFontSize: '5px',
                maxFontSize: '11px'
            });

            jQuery('img.svg').each(function () {
                var $img = jQuery(this);
                var imgID = $img.attr('id');
                var imgClass = $img.attr('class');
                var imgURL = $img.attr('src');
                //console.log('lalasl', imgURL);
                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>

<?php include 'google.php';?>
</body>
</html>
