<?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';
};

$ID = (int)$_GET['ID'];

$ID_NOTA = "$ID";


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

mysql_select_db ("$basedatos");

$sql = "SELECT * FROM tienda_articulos WHERE ID = '$ID' ";

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];
$ID_NOTA = $row["ID"];
$carpetafoto = $row["carpetafoto"];
$foto = $row["foto"]; $ext_img = $row["ext_img"];
$cat_no = $row["cat"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$texto = str_replace('<div','<span',$texto);
$texto = str_replace('</div>','</span>',$texto);
$bajada = $row["bajada"];
$audio = $row["audio"];
$d = $row["d"];
$m = $row["m"];
$m2 = $row["m"];
$a = $row["a"];
$tag1 = $row["tag1"];
$tag2 = $row["tag2"];
$tag3 = $row["tag3"];
$tag4 = $row["tag4"];
$tag5 = $row["tag5"];
$youtube = $row["youtube"];
$visitas = $row["visitas"];
$html = $row["html"];
$ext_img = $row["ext_img"];
$ID_editor = $row["editor"];
$pie_foto = $row["pie_foto"];
$precio = $row["precio"];
$stock = $row["stock"];

$ejemplo_marca_de_agua = $row["ejemplo_marca_de_agua"];
}

mysql_free_result($consulta);

$visitas = $visitas + 1;
mysql_connect("$host","$usuario","$contra");


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


mysql_db_query("$basedatos",$sSQL);

?><!DOCTYPE html>

<html lang="<?php echo $lang_actual ?>">

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


<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

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

<title>Tu compra: <?php echo $titulo ?></title>
<?php $bajada1 = str_replace('"','',$bajada);  ?>
<meta name="description" content="<?php echo $bajada1 ?>" />
<meta name="keywords" content="<?php echo $tag1 ?>, <?php echo $tag2 ?>, <?php echo $tag3 ?>, <?php echo $tag4 ?>, <?php echo $tag5 ?>">
<meta name="language" content="<?php echo $lang_actual ?>" />

<link rel="canonical" href="<? echo "$dom/nota/$ID/".urls_amigables($titulo).""; ?>" />
<link rel="amphtml" href="<? echo "$dom/nota-amp/$ID/".urls_amigables($titulo).""; ?>"/>

<meta property="og:type" content="article" />
<meta property="og:title" content='<?php echo str_replace ('"','&#x22;',$titulo); ?>' />
<meta property="og:description" content="<?php echo $bajada1 ?>" />
<meta property="og:url" content="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" />
<?php if ($foto == '') {?>
<meta property="og:image" content="https://x7.com.ar/gero/nofoto.png"  /> <? } else {?>
<meta property="og:image" content="<? echo $dom;?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" /> <?php };?>

<meta name="date" content="<? echo  $a ?>-<? echo str_pad($m, 2, '0', STR_PAD_LEFT); ?>-<? echo str_pad($d, 2, '0', STR_PAD_LEFT); ?>" scheme="YYYY-MM-DD">



<?php
   mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql2 = "SELECT * FROM audios WHERE nota = '$ID' ORDER BY ID";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))

{
$nota = $row2["nota"];
$audio = $row2["mp3"];

      }

mysql_free_result($consulta2);


$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://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" 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.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" 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]-->
<script>
                                                        (function(d, s, id) {
                                                        var js, fjs = d.getElementsByTagName(s)[0];
                                                        if (d.getElementById(id)) return;
                                                        js = d.createElement(s); js.id = id;
                                                        js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=427523193949843";
                                                        fjs.parentNode.insertBefore(js, fjs);
                                                        }(document, 'script', 'facebook-jssdk'));
                                                    </script>


        <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_titulo ?>;
                        }

                        .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 .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?>;
                        }
                        .sidebar2{
                            will-change: min-height;
                        }

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


<body>


<!-- ESTO ES LA CABECERA EL HEAD -->

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


        <!-- ESTO ES EL CUERPO DE LA PAGINA, PEUDE ESTAR CONTENIDO O NO -->


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

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


<?

$ID = $_POST['ID'];
$titulo = $_POST['titulo'];
$precio = $_POST['precio'];
$cuantos = $_POST['cuantos'];
$nombre = $_POST['nombre'];
$direccion = $_POST['direccion'];
$localidad = $_POST['localidad'];
$provincia = $_POST['provincia'];
$email = $_POST['email'];
$telefono  = $_POST['telefono'];

?>
<form action="<? echo $dom ?>/mercadopago/pruebamercado.php" method="post">
                          <div id="content" class="col-12 col-sm-12 p-0 col-md-12 col-lg-12 content" >


<input type="hidden" name="titulo" value="<? echo $titulo ?>">
<input type="hidden" name="precio" value="<? echo $precio ?>">
<input type="hidden" name="cuantos" value="<? echo $cuantos ?>">
<input type="hidden" name="nombre" value="<? echo $nombre ?>">
<input type="hidden" name="email" value="<? echo $email ?>">

                            <div style="border-bottom:1px solid rgba(0,0,0,0.15);margin:15px 0;">
                            <h2>CONFIRMA TU COMPRA</h2>
                            </div>


<p>Articulo: <b><a href="<? echo $dom ?>/tienda/<? echo $ID ?>/a" target="_blank"><? echo $titulo ?></a></b></p>


<p>Precio: <b>$ <? echo $precio ?></b></p>


<p>Cantidad: <? echo $cuantos ?></p>


<p>TOTAL: <b>$ <? $TOTAL = $precio * $cuantos; echo $TOTAL ?></b></p>

<div style="border-bottom:1px solid rgba(0,0,0,0.15);margin:15px 0;">
  <H2>TUS DATOS</H2>
</div>

<div class="row">
<div class="col-6" style=" padding-bottom:5px;"><? echo $nombre ?></div>
<div class="col-6" style=" padding-bottom:5px;"><? echo $direccion ?></div>
<div class="col-6" style=" padding-bottom:5px;"><? echo $localidad ?></div>
<div class="col-6" style=" padding-bottom:5px;"><? echo $provincia ?></div>
<div class="col-6" style=" padding-bottom:5px;"><? echo $email ?></div>
<div class="col-6" style=" padding-bottom:5px;"><? echo $telefono ?></div>
</div>

<BR><BR><BR>





<button type="submit" class="btn btn-primary">CONFIRMAR Y PAGAR CON MERCADOPAGO</button>

<BR><BR><BR>
  Medios de pago: <br>
  <img class="img-fluid" src="<? echo $dom ?>/mediosdepago.png"><br><BR>



                                                </div>
                                              </form>




                                                <!-- -->
                                                <?php if ($html == NULL) {} else { ?>
                                                <div style="position:relative;padding-bottom:56.25%;">

                                                    <?php echo $html?>

                                                </div>
                                                <?php  }?>

                                                <!-- -->


                                                <!-- -->

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

                                                            <?php

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

                                                            $sql65 = "SELECT * FROM archivos WHERE ID_nota = '$ID_NOTA'";
                                                        $consulta65 = mysql_query ($sql65);
                                                        while ($row65 = mysql_fetch_array($consulta65))
                                                        {


                                                        $ruta = $row65["ruta"];
                                                        $tipo = $row65["tipo"];

                                                        if ($tipo == 'pdf') { echo "<iframe src='$ruta' width='100%' height='500px'></iframe>" ; };?>

                                                        <a class="btn" target="_blank" href="<?php echo $ruta ?>"><img src="<?


                                                        if ($tipo == 'xls' or $tipo == 'xlsx') { echo "https://radiosnet.com.ar/xls.png"; };

                                                        if ($tipo == 'doc' or $tipo == 'docx') { echo "https://radiosnet.com.ar/doc.png"; };


                                                        ?>" /></a>
                                                        <?


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

                                                <!-- -->

                                                <div class="col-lg-12 col-12">
                                                    <?php include 'rotativas_random_abajo.php';?>
                                                </div>

                                                <!-- -->

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

                                                    <h4>COMPARTIR:</h4>

                                                    <ul class="navbar-nav flex-row ml-md-auto d-md-flex">

                                                        <li class="nav-item">
                                                            <a style="margin-left:10px;" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&t=<?php echo $titulo ?>">
                                                                <i class="fab fa-facebook" style="font-size:30px;color:#111111; " aria-hidden="true"></i>
                                                            </a>
                                                        </li>

                                                        <li class="nav-item">
                                                            <a style="margin-left:10px;" target="_blank" href="https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo_xx) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo_xx; ?>&amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo_xx) ?>">
                                                                <i class="fab fa-twitter" style="font-size:30px;color:#111111; " aria-hidden="true"></i>
                                                            </a>
                                                        </li>

                                                        <li class="nav-item">
                                                            <a style="margin-left:10px;" target="_blank" href="https://api.whatsapp.com/send?text=*<?php echo $titulo_xx ?>.*  <?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo_xx);?>">
                                                                <i class="fab fa-whatsapp" style="font-size:30px;color:#111111; " aria-hidden="true"></i>
                                                            </a>
                                                        </li>
                                                    </ul>


                                                </div>

                                                <!-- -->

                                                <div class="col-lg-12 col-12 p-0">

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

                                                                    <div style="border-bottom:1px solid rgba(0,0,0,0.15);margin:15px 0;">

                                                                        <h3 style="font-family:<?php echo $style_titulo ?>;color:<?php echo $d_color_titulo?>;">Notas Relacionadas</h3>

                                                                    </div>

                                                                </div>


                                                                <div  class="grid">



                                                                    <?
                                                                    mysql_connect ("$host", "$usuario", "$contra");
                                                                    mysql_select_db ("$basedatos");
                                                                    if ($cat_no == 0)  {
                                                                        $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE ver = 'si' AND foto != '' AND ID != '$ID_NOTA' ORDER BY ID desc LIMIT 3";
                                                                    } else {
                                                                        $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE cat = '$cat_no' AND ver = 'si' AND foto != '' AND ID != '$ID_NOTA' AND m = '$m2' ORDER BY rand() LIMIT 3";
                                                                    }
                                                                    $consulta = mysql_query ($sql);
                                                                    while ($row = mysql_fetch_array($consulta))

                                                                    {

                                                                    $ID2 = $row["ID"];
                                                                    $i_publi = $i_publi + 1;
                                                                    $titulo2 = $row["titulo"];
                                                                    $bajad2a = $row["bajada"];
                                                                    $texto2 = $row["texto"];
                                                                    $audio = $row["audio"];
                                                                    $youtube  = $row["youtube"];
                                                                    $d = $row["d"];
                                                                    $m = $row["m"];
                                                                    $a = $row["a"];
                                                                    $fecha2 = "$d - $m - $a";
                                                                    $carpetafoto2 = $row["carpetafoto"];
                                                                    $foto2 = $row["foto"];
                                                                    $cat11 = $row["cat"];
                                                                    $home = $row["home"];
                                                                    $ext_img = $row["ext_img"];
                                                                    $impresiones = $row["impresiones"];
                                                                    $impresiones = $impresiones + 1;
                                                                    $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";
                                                                    mysql_db_query("$basedatos",$sSQL);
                                                                    if ($cat_no == 0) {} else {
                                                                    $sql2 = "SELECT * FROM categorias WHERE ID = '$cat_no'";
                                                                    $consulta2 = mysql_query ($sql2);
                                                                    while ($row2 = mysql_fetch_array($consulta2))
                                                                    {
                                                                    $cat_name = $row2["nombre"];
                                                                    $color_cat = $row2["color"];
                                                                    }
                                                                    mysql_free_result($consulta2);
                                                                    }
                                                                    ?>



                                                                        <div class="grid-item col-12 col-sm-4 col-md-4 col-lg-4 ">



                                                                                <div class="img-contenedor">

                                                                                    <?php if ($cat_no == 0) {} else   {?>

                                                                                            <div id="etiqueta_ch" style="background-color:<?php echo $color_cat ?>";>
                                                                                                <span style=";font-family:<?php echo $style_titulo ?>;font-size:10px; color:#FFFFFF;"><?php echo $cat_name ?></span>
                                                                                            </div>

                                                                                    <?php };?>

                                                                                    <a href="<? echo $dom;?>/nota/<?php echo $ID2 ?>/<?php echo urls_amigables($titulo2) ?>"> <img class="<? if ($estiloweb <= 3){echo "img-responsive";} else {echo "img-fluid";} ?>" src="<?php echo $dom ?>/<?php echo $carpetafoto2 ?>/thumbnail_<?php echo $foto2 ?><? echo $ext_img?>" alt="<?php echo $titulo2 ?>" width="100%"  /></a>

                                                                                    <div class="caption news-summary">
                                                                                        <a href="<? echo $dom;?>/nota/<?php echo $ID2 ?>/<?php echo urls_amigables($titulo2) ?>"><h3><?php echo $titulo2 ?></h3></a>
                                                                                    </div>

                                                                                </div>

                                                                        </div>

                                                                        <?
                                                                        }
                                                                        mysql_free_result($consulta);
                                                                        ?>
                                                                    <style>
                                                                        .img-contenedor {/*Ancho y altura son modificables al requerimiento de cada uno*/
                                                                            width:<?php echo $marco1px ?>;
                                                                            height:<?php echo $alto_new ?>px;
                                                                            overflow:hidden;
                                                                        }
                                                                    </style>
                                                                </div>


                                                </div>

                                                <!-- -->

                                                <? if ($adsense == '') {} else {?>

                                                <div  class="col-12 col-lg-12">
                                                    <div style="padding-left:9px;height:90px;">
                                                        <?php echo $adsense12;?>
                                                    </div>
                                                </div>

                                                <?};?>

                                                <!-- -->

                                                <div class="col-12">

                                                            <div class="row p-3" >

                                                                <?php if ($opcion3 == 'si') { ?>

                                                                <div class="col-12"><h3 style="">Comentarios</h3></div>


                                                                <? if ($comentarios == 'facebook') {?>

                                                                    <div class="col-12 col-sm-6 col-md-6 col-lg-6">
                                                                        <div class="fb-comments" reverse="false" data-href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-num-posts="100" data-width="100%"  data-order-by="reverse_time";></div>
                                                                    </div>

                                                                <?}else{?>

                                                                    <div class="col-12 col-sm-6 col-md-6 col-lg-6">
                                                                            <?

                                                                            $c = 0;
                                                                            mysql_connect ("$host", "$usuario", "$contra");
                                                                            mysql_select_db ("$basedatos");
                                                                            $sql = "SELECT * FROM comentarios WHERE IDD = '$ID_NOTA' AND ver = 'si' ";
                                                                            $consulta = mysql_query ($sql);
                                                                            while ($row = mysql_fetch_array($consulta))
                                                                            {
                                                                            $c = $c + 1;
                                                                            $ID_comentario = $row["ID"];
                                                                            $nombre = $row["nombre"];
                                                                            $texto = $row["texto"];
                                                                            ?>

                                                                            <p class="Estilo9" style="">
                                                                                <?php echo $nombre ?>
                                                                            </p>

                                                                            <p class="Estilo9"  style="<?php echo $style_bajada  ?>"><?php echo $texto ?></p>


                                                                            <a href="<?php echo $dom ?>/responder_comentario.php?ID_comentario=<?php echo $ID_comentario ?>" class="btn btn-outline-primary my-2">Responder a este comentario</a>


                                                                            <?

                                                                            $sql33 = "SELECT * FROM comentarios WHERE sub_comentario = '$ID_comentario' AND ver = 'si' ";

                                                                            $consulta33 = mysql_query ($sql33);

                                                                            while ($row33 = mysql_fetch_array($consulta33))

                                                                            {


                                                                                $nombre33 = $row33["nombre"];

                                                                                $mensaje33 = $row33["texto"];





                                                                                ?>

                                                                                    <p class="" style="">
                                                                                        <strong> <em>Respuesta para '<?php echo $nombre ?>' de '<?php echo $nombre33 ?>'</em></strong>
                                                                                    </p>

                                                                                    <p class="" style=""><?php echo $mensaje33 ?> </p>



                                                                            <?php }

                                                                            mysql_free_result($consulta33);

                                                                            ?>


                                                                        <?php }
                                                                        //echo $c;
                                                                        mysql_free_result($consulta);

                                                                        if ($c == 0) { ?>

                                                                        <p>Aun no hay comentarios, sé el primero en escribir uno!</p>


                                                                        <? } ?>
                                                                    </div>

                                                                    <div class="col-12 col-sm-6 col-md-6 col-lg-6">
                                                                                <form id="form1" name="form1" method="post" action="<? echo $dom;?>/formcomentario.php?IDD=<?php echo $ID_NOTA ?>">

                                                                                                Escribir un comentario &raquo;<br>

                                                                                                <div class="form-group">

                                                                                                <input name="nombre" type="text" class="form-control" id="nombre" value="nombre" size="12" onFocus="if (this.value == 'nombre') {this.value = '';}" placeholder="Nombre"/>
                                                                                                <textarea name="texto" rows="4" class="form-control"  onFocus="if (this.value == 'comentario') {this.value = '';}" placeholder="Comentario"></textarea>
                                                                                                </div>
                                                                                        <div  class="form-group">


     <div style="text-align:center;margin-bottom:20px;">
  <button name="button" type="submit" id="button" value="Enviar" />Enviar</button>
                                                                                                </div>
                                                                                            </div>
                                                                                </form>
                                                                    </div>

                                                                <?php };} else {};?>




                                                            </div>
                                                </div>

                                            </div>

                                    </div>

                                <!-- ACA termina-->

                            </div>


                </div>

            </div>

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

            <? include 'clix_footer.php';?>
		    <!-- termina el footer -->
		    <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 src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
        <script>
           // new WOW().init();
            //  console.log('asdasd34');
        </script>
            <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://radioshosting.com/css/js/lightbox-plus-jquery.min.js"></script>
            <script src="../../js/jquery.fittext.js"></script>
            <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
            <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.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 type="text/javascript" src="./js/rAF.js"></script>
            <script type="text/javascript" src="./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>
            $( window ).on("load", function() {

              //      var sidebar = new StickySidebar('#sidebar', {
              //      containerSelector: '#main-content',
              //      innerWrapperSelector: '.sidebar__inner',
              //      topSpacing: 60,
              //      bottomSpacing: 20,
              //      minWidth: 450,
              //      resizeSensor: true
              //  });
            });


$(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>
