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

<?php include 'concha.php';?>
 <?php $file = "$logo_g";  // Dirección de la imagen

  $imagen = getimagesize($file);    //Sacamos la información
  $ancho_logo = $imagen[0];              //Ancho
  $alto_logo = $imagen[1];


 $alto_logo_nuevo =  $alto_logo * 960 / $ancho_logo;



   ?>
<?php





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

$ID_NOTA = "$ID";

if ($ID == '') {exit;};


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

mysql_select_db ("$basedatos");

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

$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];



$carpetafoto = $row["carpetafoto"];

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

$titulo = $row["titulo"];

$texto = $row["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"];

$ext_img = $row["ext_img"];

$ID_editor = $row["editor"];
$pie_foto = $row["pie_foto"];
$html = $row["html"];
$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="es">

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



    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1">

<?php   echo $link_titulo ?>
<?php   echo $link_menu ?>


<title><?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="es" />

<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="http://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
if ($opcion_audio_noticias_facebook == 'si') {


	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"];

?>
<meta property="og:video"
   content="http://www.btplc.com/Multimedia/player4-6.swf?image=<? echo $dom;?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>&file=<?php echo $audio ?>&autostart=true" />
<meta property="og:video:secure_url"
   content="https://www.btplc.com/Multimedia/player4-6.swf?image<? echo $dom;?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>&file=<?php echo $audio ?>&autostart=true" />
  <meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video:width" content="380" />
<meta property="og:video:height" content="230" />
<?


 }

mysql_free_result($consulta2);



} else {};
  ?>
        <?php include 'cabecera_estilo3new.php'; ?>
                    <div>
          <?php include 'marquesina.php'; ?>

        </div>



    <!-- Example row of columns -->

          <div class="row">

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

                <div id="">

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

                        <div id="" class="post">






                     <table width="97%" border="0" cellspacing="4" cellpadding="0">
  <tr>
    <td>  <div align="left">
            <?
$Y = $a;
$M = $m2;
$D = $d;

$date = "$Y$M$D";

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";};


?> <span style=";font-family:<?php echo $style_titulo ?>;font-size:10pt;color:<?php echo $d_color_titulo?>;"><?php echo $D ?> de <?php echo $m ?> de <?php echo $a ;?></span></div></td>
  </tr>
  <tr>
    <td><span style=";font-family:<?php echo $style_titulo ?>;font-size:25pt;color:<?php echo $d_color_titulo?>;"><?php echo $titulo ?></span></td>
  </tr>
<?php if ($foto == NULL) {} else {?>

<?php
  $file = "$dom/$carpetafoto/resize_$foto.jpg";  // Dirección de la imagen

  $imagen = getimagesize($file);    //Sacamos la información
  $ancho = $imagen[0];              //Ancho
  $alto = $imagen[1];               //Alto

?>


       <tr>
        <td>
<?php     if ($ejemplo_marca_de_agua == NULL) {  ?>
            <div align="left"><img class="img-responsive"  src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" /></div>
<?php   } else {?>
            <div align="left"><img class="img-responsive" src="<? echo $dom ?>/<?php echo $ejemplo_marca_de_agua ?>?i=<?php echo $dom ?>/<?php echo $carpetafoto ?>/resize_<?php echo $foto ?>.jpg" /></div>
<?php      };?>



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

       <p style="padding:0;
    font-size: 13px;
    line-height: 18px;
    color: rgb(175, 174, 174);
    font-family: Roboto, sans-serif;
    font-weight: 700;
    margin-left: 0px !important;
    letter-spacing: 1px;
"><?php echo $pie_foto ?></p>

        <?php };?>
          </td>
         </tr>
<?php };?>
    <tr>
    <td>




<?php
$sql65 = "SELECT * FROM fotos_notas WHERE noticia = '$ID'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$carpetafoto1 = $row65["carpetafoto"];
$ID_foto = $row65["ID"];


$foto = $row65["foto"];
?>
<div style="float:left"><a data-lightbox="example-set"   href="<?php echo $dom ?>/<?php echo $carpetafoto1 ?>/resize_<?php echo $foto ?>.jpg"  title="<?php echo $titulo; ?>"><img src="<?php echo $dom ?>/<?php echo $carpetafoto1 ?>/thumbnail_<?php echo $foto ?>.jpg" width="120"  height="90" border="0" class="zoom example-image"  2px solid #999999 /></a></div>
<?


 }
mysql_free_result($consulta65);

?>

<?php
$sql65 = "SELECT * FROM `fotosnotasfull` WHERE `ID_nota` = '$ID'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{
$ID_foto = $row65["ID"];
$img = $row65["img"];

?>

<div class="grid-item col-lg-2 col-md-3 col-sm-12 col-xs-12" style="margin-bottom:15px;"  >
<a href="<?php echo $img ?>" rel="lightbox[<?php echo $ID ?>]" title="<?php echo $titulo; ?>"><img src="<?php echo $dom ?>/timthumb.php?src=<?php echo $img ?>&w=500&q=80" class="img-responsive" /></a>
        </div>

<?


 }
mysql_free_result($consulta65);

?></td>
  </tr>
    <tr>
    <td><div align="justify">

           <span style="font-family: 'Roboto', sans-serif;font-size:13pt;line-height:16px;"><?php echo $bajada ?></span>


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

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

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

$img = $row["img"];

$carpetafoto = $row["carpetafoto"];

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


	  }
mysql_free_result($consulta);?>



                <?php

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


$sql65 = "SELECT * FROM editores WHERE ID = '$ID_editor' LIMIT 1";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$nombre_editor = $row65["nombre"];
$telefono_editor = $row65["telefono"];
$email_editor = $row65["email"];
$instagram_editor = $row65["instagram"];
$facebook_editor = $row65["facebook"];
$twitter_editor = $row65["twitter"];
$foto_editor = $row65["foto"];
$ID_editor = $row65["ID"];



 }
mysql_free_result($consulta65);

?>

                        <div class="row">

                            <div class="col-xs-2 col-2 col-sm-2 col-md-2 col-lg-2" style="padding:10px;">



                                    <img class="img-fluid img-responsive" src="<?php echo $foto_editor ?>" data-hidpi="#" style="max-height:60px;margin:0 auto;border-radius:50%!important;">



                            </div>

                            <div class="col-xs-10 col-10 col-sm-10 col-md-10 col-lg-10" style="padding:10px;">

                                <h4 style="margin: 0;">Por:

                                  <span style=" color:#003366">  <?php echo $nombre_editor ?></span>

                                </h4>

                                 <ul class="navbar-nav ml-auto" style="display:inline-block;">

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

                                     <li class="nav-item2" style="display:inline-flex;margin-right:10px;">

                                        <a href="<?php echo $facebook_editor ?>" style="padding:0;" target="_blank">

                                            <h4 style="margin:0; padding:0.5em;" ><i class="fab fa-facebook-square" style="font-size:1.5em;"></i></h4>

                                        </a>

                                     </li> <?php };?>
                                       <?php  if ($twitter_editor == '') {} else {?>

                                     <li class="nav-item2" style="display:inline-flex;margin-right:10px;">

                                         <a href="<?php echo $twitter_editor ?>" style="padding:0;" target="_blank">

                                             <h4 style="margin:0; padding:0.5em;" ><i class="fab fa-twitter-square" style="font-size:1.5em;"></i></h4>

                                         </a>

                                     </li>
                                      <?php };?><?php  if ($instagram_editor == '') {} else {?>
                                     <li class="nav-item2" style="display:inline-flex;margin-right:10px;">

                                        <a href="<?php echo $instagram_editor ?>" style="padding:0;" target="_blank">

                                            <h4 style="margin:0; padding:0.5em;" ><i class="fab fa-instagram" style="font-size:1.5em;"></i></h4>

                                        </a>

                                    </li> <?php };?><?php  if ($email_editor == '') {} else {?>

                                     <li class="nav-item2" style="display:inline-flex;margin-right:10px;">

                                        <a href="mailto:<?php echo $email_editor ?>" style="padding:0;" target="_blank">

                                            <h4 style="margin:0; padding:0.5em;" ><i class="fas fa-envelope" style="font-size:1.5em;"></i></h4>

                                        </a>

                                    </li><?php };?>

                                </ul>

                            </div>

                        </div>




<?php }; //finaliza if de editores?>



 <?php include 'audio_new.php'; ?>


     </div></td>
  </tr>




    <?php if ($youtube == NULL) {} else { ?>
      <tr>
        <td class="Estilo43">

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

      <?php  }; ?>





      <tr>
    <td>
    <div id="fb-root"></div>
<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>

<?php include 'rotativas_random_arriba.php';?><br>

<span style="font-family: 'Roboto', sans-serif;">

<?php $texto = str_replace('<img', '<img class="img-responsive"',$texto); ?>
<?php $texto = str_replace('[img]', '<img class="img-responsive" src="../../timthumb.php?src=',$texto); ?>
<?php $texto = str_replace('[/img]', '&w=800&q=80">',$texto); ?>



                                                        <?php /* convierte youtube de galeria de medios*/ $texto = str_replace('[youtube]', '<div  style="position: relative; padding-bottom: 56.25%;">  <iframe style="position: absolute;width: 100%; height: 100%;" src="https://www.youtube.com/embed/',$texto); ?>
                                                        <?php $texto = str_replace('[/youtube]', '" frameborder="0" allowfullscreen></iframe></div>',$texto); ?>


                                                                                                                <?php /* convierte instagram de galeria de medios*/ $texto = str_replace('[ig]', '<div style="text-align:center"><iframe width="450" height="640" src="https://www.instagram.com/p/',$texto); ?>
                                                                                                                <?php $texto = str_replace('[/ig]', '/embed/" frameborder="0"></iframe></div>',$texto); ?>


<?php if ($adsense == '') {} else { echo $adsense; };?>
<?php echo $texto ?>
<?php if ($adsense == '') {} else { echo $adsense; };?>
</span>

<?php echo $html?>
          <p>


<div align="right">

    <?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 "http://radiosnet.com.ar/xls.png"; };

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


?>" /></a>
<?


 }
mysql_free_result($consulta65);
?>
</div>
                  <div align="center" class="fb-like" data-href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" data-send="true" data-width="100%" data-show-faces="true"></div>
          <br />
          <?php include 'rotativas_random_abajo.php';?><br>

            </p>
  <div align="right">
            COMPARTIR:<br>

<a target="_blank" href="http://www.facebook.com/sharer.php?p[title]=<?php echo $titulo1 ?>&p[url]=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo_xx) ?>"> <img src="<?php echo $dom ?>/facebook-256.png" width="30"></a>
<a target="_blank" href="http://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) ?>"> <img src="<?php echo $dom ?>/twitter-512.png" width="30"></a>  <a 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);?>"><img src="<?php echo $dom ?>/whatsapp-icon.svg" width="30"></a>
            </div></td>
  </tr>
 <?php       if ($adsense == '') {} else {

?>
        <tr>
        <td colspan="2" height="90px" valign="top"><div style="padding-left:9px;">
<?php echo $adsense12;?></div></td>
        </tr>
<?
};?>


    <tr>
    <td>



<?php if ($opcion3 == 'si') {?>
<span style="font-family: 'Roboto', sans-serif;"> Comentarios:  </span>  <br>
                <?php if ($comentarios == 'facebook') {?>


  <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><?php
} else {

?>
<span style="font-family: 'Roboto', sans-serif">
<?
$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"];


?>
<span class="Estilo9" style="color:#111111; font-family:Arial, Helvetica, sans-serif"><strong><?php echo $nombre ?> &raquo;</strong><br />
          </span><span class="Estilo9"  style="color: #232323; font-family:Arial, Helvetica, sans-serif;"><?php echo $texto ?> </span><br>

<span style=" font-size:11px;"><a href="<?php echo $dom ?>/responder_comentario.php?ID_comentario=<?php echo $ID_comentario ?>">Responder a este comentario</a> &raquo;&raquo;</span>
         <br>

             <?

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





?>

 <span class="Estilo9" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;"><strong>>>> <em>Respuesta para '<?php echo $nombre ?>' de '<?php echo $nombre33 ?>'</em></strong></span><br />
 <span class="Estilo9" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;"> <?php echo $mensaje33 ?> </span>
<img src="<?php echo $dom ?>/lineanota.gif" class="img-responsive" height="3" /><br>


                    <?php }

mysql_free_result($consulta33);

?>


            <?php }

mysql_free_result($consulta);

if ($c == 0) {?>

<strong>Aun no hay comentarios, sé el primero en escribir uno!</strong>
<img src="<?php echo $dom ?>/lineanota.gif" class="img-responsive" height="3" />

<? } ?>
</span>
<form id="form1" name="form1" method="post" action="<? echo $dom;?>/formcomentario.php?IDD=<?php echo $ID_NOTA ?>">

Escribir un comentario &raquo;<br>
<br />
<div align="left">

 <input name="nombre" type="text" class="transparente23" id="nombre" value="nombre" size="12" onFocus="if (this.value == 'nombre') {this.value = '';}" />
<br><br /><textarea name="texto" rows="4" class="transparente22"  onFocus="if (this.value == 'comentario') {this.value = '';}">comentario</textarea><br /><br>
<br>
<br></div>
<div align="left">
        <?php  ///inicio codigo capthca

		   if ($comentarios == 'captcha') {
            ?>

		    <br />
            <style>
#recaptcha_image,
#recaptcha_image img
{
    width: 300px !important;
    cursor: pointer;
}
#recaptcha_image img:hover
{
    position: absolute;
    width: 300px !important;
}
.recaptcha_only_if_image,
.recaptcha_only_if_audio
{
    display: block;
}
       </style>
            <script type="text/javascript">
var RecaptchaOptions = {
theme : 'custom',
custom_theme_widget: 'recaptcha_widget'
};
</script>


<div id="recaptcha_widget" style="display:none">

<div id="recaptcha_image"></div>
<div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div>

<br>
<br>

INGRESE CAPTCHA: <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
<br>

<div><a href="javascript:Recaptcha.reload()">CAMBIAR</a></div>
</div>

<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=6LdAWMESAAAAAHpz874QmLV5K9eiTJJbr6Pha0Qe">

</script>
<noscript>

<iframe src="http://www.google.com/recaptcha/api/noscript?k=6LdAWMESAAAAAHpz874QmLV5K9eiTJJbr6Pha0Qe"
height="100" width="300" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript></span>
<?php } else {}
/////fin comentarios con captha
?><br>
              <input name="button" type="submit" class="Estilo42" id="button" value="Enviar &raquo;" />



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




          </td>
  </tr>
</table>


                        </div>

          </form>

          </div>

</tr>

</table>
            </div>

                </div>

        <!-- End of columns -->

                <sidebar id="sidebar" class="col-sx-12 col-sm-3 col-md-3 col-lg-3" data-spy="" data-offset-top="">

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

                      <?  include 'propagandas3.php'; ?>

                        </div>

                </sidebar>

          <!-- End of columns -->

        </div>

      <!-- /container -->
      <div class="clearfix"></div>

      <!-- Site footer -->

        <footer class="footer">
          <div id="divfooter" style="background-color: <?php echo $d_color_fondo_menu ?>;"></div>

              <p><br>
<?php include 'abajo.php';?><br>
</p>

          </footer>

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

      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>


      <?php include 'google.php';?>

<?php include 'abajo_logo.php';

?>
       <script src="https://radioshosting.com/css/js/lightbox-plus-jquery.min.js"></script>
       <script src="https://radioshosting.com/css/js/menuse.js"></script>

  </body>

</html>
