<script language="javascript"> 

function copia_portapapeles(){ 
    
   document.f1.campo1.select();
    
   window.clipboardData.setData("Text", document.f1.campo1.value); 
} 
</script> 

<?php  
 $home = $row["home"];
 ?><?php 
 
 if ($fecha_pub = 0) {} else {
     
     $seg_ini = $fechapub - time();
     $horas = floor($seg_ini/3600);
     $minutos = floor(($seg_ini-($horas*3600))/60);
     $segundos = $seg_ini-($horas*3600)-($minutos*60);
 }
?> 

    <div class="col-12 p-0" >
        
        <p style="font-size:10px; font-family:Verdana, Arial, Helvetica, sans-serif; background-color:#FFCC33; width:60px;"><?php echo $d ?>/<?php echo $m ?>/<?php echo $a ?></p>
        
    </div>
      
      <?php 
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"];

?><span class="Estilo2" style="background-color:<?php echo $color_cat ?>"><?php echo $cat ?></span> <?
}

mysql_free_result($consulta2);

}?>
      
      <div bgcolor="<? if ($ver == 'no') { if ($fechapub == 0) { ?>#33CCFF<? } else  {?>#FFFF66<? }; }; ?>
                                             
        <?php if ($destacado == "si") {?>#FFC5A8<? };?>" class="row">


        <div class="col-6">


          
              
              <div>
                  
                  <? if ($ver == 'no') { ?> 
                  
                  <span style="color: #FFFFFF; background: #666666;">  
                      
                      <? if ($fechapub == 0) { ?><? if ($lang == 'es') {echo "BORRADOR"; }; ?>
<? if ($lang == 'pt') {echo "RASCUNHO"; }; ?>
<? if ($lang == 'en') {echo "DRAFT"; }; ?> <? } else { ?> <b><? if ($lang == 'es') {echo "PROGRAMADA"; }; ?>
<? if ($lang == 'pt') {echo "AGENDAR"; }; ?>
<? if ($lang == 'en') {echo "SCHEDULED POST"; }; ?></b> &raquo; 
                      
                      <?php if ($seg_ini <= 0) {echo "Listo!, Esperando Publicacion...";} else { ?><? if ($lang == 'es') {echo "Dentro de"; }; ?>
<? if ($lang == 'pt') {echo "A notícia será postada em"; }; ?>
<? if ($lang == 'en') {echo "Will be scheduled in"; }; ?>
                      
                      <? if ($hora == 0) {} else { echo "$horas horas,"; }; ?>  
                      
                      <? echo "$minutos"; ?> minutos, <? echo "$segundos"; ?> segundos. <? }; };?>&nbsp;<?php echo $fecha ?> 
                  
                  </span>
                  
                  <br /> 
                  
                  <?php 
                                       
                                       };?>
           
           
          <? if ($ver == 'no' and $fechapub == 0){ ?> <a href="publicar_nota_borrador.php?ID=<?php echo $ID ?>"><span style="font-size:28px"><? if ($lang == 'es') {echo "Publicar"; }; ?>
<? if ($lang == 'pt') {echo "Publicar"; }; ?>
<? if ($lang == 'en') {echo "Publish"; }; ?> >></span></a> <?php };?>
           <span class="Estilo20"><?php if ($destacado == "si") {?>    
               
               <img src="images/150px-EstrellaOro_PPN.svg.png" width="25" height="25" /><?php } else {  };?> - <?php echo $titulo ?></span>
                  
                  <br />
          
              <?php if ($foto == NULL) {} else {?>

              <table  border="0">
                <tr>
                  <td rowspan="2">
                      <img src="../<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" class="img-fluid" alt="<?php echo $altfoto ?>" title="<?php echo $titulofoto ?>"/>
                    </td>
                  <td >
                      <a href="poner_marca_de_agua.php?ID=<?php echo $ID ?>">
                          <img border="0" title="<? if ($lang == 'es') {echo "PONER MARCA DE AGUA"; }; ?>
<? if ($lang == 'pt') {echo "COLOCAR MARCA D ÁGUA"; }; ?>
<? if ($lang == 'en') {echo "PUT WATER MARK"; }; ?>" src="iconomarcadeagua.png" width="70" height="50" />
                      </a>
                    </td>
                </tr>
                <tr>
                  <td>
                      <a href="eliminar_foto.php?ID=<?php echo $ID ?>&foto=<?php echo $foto ?>&carpetafoto=<?php echo $carpetafoto ?>">
                          <img border="0" title="eliminar foto" src="eliminar_img.jpg" width="70" height="50" />
                      </a>
                    </td>
                </tr>
              </table>
                     
              <br />
              <form  method="post" action="form_poner_pie_foto.php">
              <input class="form-control" name="pie_foto" type="text" value="<?php echo $pie_foto ?>"    placeholder="Pie de Foto..."/>
               <input class="form-control" name="altfoto" type="text" value="<?php echo $altfoto ?>"    placeholder="Alt de Foto..."/>
            <input class="form-control" name="titulofoto" type="text" value="<?php echo $titulofoto ?>"    placeholder="Título de Foto..."/>
                  
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
                  
              <input class="btn btn-primary" name="" type="submit" value="Ok"/>
              </form>
              
              <?php };?>
            
             
           

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



$ID_foto = $row65["ID"];


$foto_2 = $row65["foto"];
?><hr size="1" width="400px" /> 
  <span class="Estilo20"><? if ($lang == 'es') {echo "MAS FOTOS:"; }; ?>
<? if ($lang == 'pt') {echo "MAIS FOTOS:"; }; ?>
<? if ($lang == 'en') {echo "MORE PHOTOS:"; }; ?></span><br />

<?


 }
mysql_free_result($consulta65);

?>

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



$ID_foto = $row65["ID"];

$carpetafoto12 = $row65["carpetafoto"];

$foto_2 = $row65["foto"];

?>

<a href="../<?php echo $carpetafoto12 ?>/resize_<?php echo $foto_2 ?>.jpg" rel="lightbox[<?php echo $ID ?>]" title="<?php echo $titulo; ?>" target="_blank"><img src="../timthumb.php?src=../<?php echo $carpetafoto12 ?>/thumbnail_<?php echo $foto_2 ?>.jpg&w=500&q=80" width="66" height="49"  style="border: 2px solid #999999" /></a>  <a href="borrar_foto_nota.php?ID=<?php echo $ID_foto ?>&foto=<?php echo $foto_2 ?>&carpetafoto=<?php echo $carpetafoto ?>">(X)</a>
<?


 }
mysql_free_result($consulta65);

?>



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



$ID_video = $row65["ID"];

$video = $row65["video"];


?>

<div align="left" style="text-align:left;">

<video  width="350px"  controls>
  <source src="<?php echo $video ?>" type="video/mp4">
<? if ($lang == 'es') {echo "Su Navegador no Suporta Video"; }; ?>
<? if ($lang == 'pt') {echo "Seu Navegador não Suporta Vídeo"; }; ?>
<? if ($lang == 'en') {echo "Your Browser Does Not Support Video"; }; ?></video>
</div>

 <a href="borrar_video.php?ID=<?php echo $ID_video ?>"><? if ($lang == 'es') {echo "(BORRAR VIDEO)"; }; ?>
<? if ($lang == 'pt') {echo "(APAGAR VIDEO)"; }; ?>
<? if ($lang == 'en') {echo "(DELETE VIDEO)"; }; ?></a>
<?


 }
mysql_free_result($consulta65);

?>


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

?>

<a href="<?php echo $img ?>" rel="lightbox[<?php echo $ID ?>]" title="<?php echo $titulo; ?>" target="_blank"><img src="../timthumb.php?src=<?php echo $img ?>&w=70&q=80" width="70"  style="border: 2px solid #999999" /></a>   <a href="borrar_foto_nota_full.php?ID=<?php echo $ID_fotoAA ?>&img=<?php echo $img ?>">(X)</a>
<?


 }
mysql_free_result($consulta65);

?>

<br />

<?php 

	


$sql2 = "SELECT * FROM audios WHERE nota = '$ID'";

$consulta2 = mysql_query ($sql2);

while ($row2 = mysql_fetch_array($consulta2))



{

$ID_audio = $row2["ID"];
$titulo11 = $row2["titulo"];
$audio = $row2["mp3"];

?> <hr size="1" width="400px" /> 

<span class="Estilo20"><? if ($lang == 'es') {echo "AUDIO ADJUNTO"; }; ?>
<? if ($lang == 'pt') {echo "AÚDIO ANEXADO"; }; ?>
<? if ($lang == 'en') {echo "AUDIO ATTACCHED"; }; ?>AUDIO ADJUNTO:</span><br /> 

<script language=javascript>
function ventanaSecundaria44 (URL){
   window.open(URL,"ventana1","width=420,height=200,scrollbars=NO")
}
  </script>


<br />


<a href="javascript:ventanaSecundaria44('<?php echo $dom ?>/audio1.php?mp3=<?php echo $audio ?>')"><img border="0" src="../AUDIO.gif" /></a>(<a href="borrar_audio.php?ID=<?php echo $ID_audio ?>&audio=<?php echo $audio ?>"><? if ($lang == 'es') {echo "BORRAR AUDIO"; }; ?>
<? if ($lang == 'pt') {echo "APAGAR AÚDIO"; }; ?>
<? if ($lang == 'en') {echo "DELETE AUDIO"; }; ?></a>) 
<form id="form2" name="form2" method="post" action="form_titulo_audio.php">
  Titulo Audio
  <input type="text" name="titulo_audio" id="titulo_audio" value="<?php echo $titulo11 ?>" />
  <input name="ID_audio" type="hidden" value="<?php echo $ID_audio ?>" />
  <input type="submit" name="button" id="button" value="Enviar" />
</form>
<br />

<form name="f1"> 


<textarea cols="30" rows="3" name="campo1">
<iframe src="http://reproductor.radiosnet.com.ar/?nombreradio=<?php echo $nombresitio ?>&tituloaudio=<?php echo $titulo11 ?>&audio=<?php echo $audio ?>?mp3=&ID_nota=<?php echo $nota ?>&titulo=<?php echo $titulo11 ?>" width="100%" height="150px"></iframe></textarea>
 <br />

<input type="button" value="Seleccionar Codigo" onclick="copia_portapapeles()"> 
</form> 

<?

 }
mysql_free_result($consulta2);

?>








<?php if ($youtube == NULL) {} else {?> 
                  
                  <hr size="1" />
                  
<span class="Estilo20"><? if ($lang == 'es') {echo "VIDEO ADJUNTO"; }; ?>
<? if ($lang == 'pt') {echo "VÍDEO ANEXADO"; }; ?>
<? if ($lang == 'en') {echo "ATACCHED VIDEO"; }; ?></span><br />
                  
<object width="150" height="130">
<param name="movie" value="http://www.youtube.com/v/<?php echo $youtube ?>&amp;hl=es&amp;fs=1&amp;rel=0" />
                       <param>
                       <param name="allowFullScreen" value="true" />
                       <param>
                       <param name="allowscriptaccess" value="always" />
                       <param>
                       <embed src="http://www.youtube.com/v/<?php echo $youtube ?>&amp;hl=es&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="130"><embed>
            </object>(<a href="poner_video.php?ID=<?php echo $ID ?>"><? if ($lang == 'es') {echo "BORRAR VIDEO"; }; ?>
<? if ($lang == 'pt') {echo "APAGAR VÍDEO"; }; ?>
<? if ($lang == 'en') {echo "DELETE VIDEO"; }; ?></a>) <br />
                  
<?php };?>

 
<img src="personas.png" width="14" alt="visitas" title="visitas" height="14" /><span class="Estilo2">accesos:</span> <?php echo $visitas ?> - <img src="impresiones.png" width="14" alt="impresiones" title="impresiones" height="14" /> <span class="Estilo2">vistas en el home:</span> <span style="color:#999999"><?php echo $impresiones ?></span> <br />
CARGADA POR: <?php echo $user_carga_nota ?>

</div>

            

          </div>


            <div class="col-3 list-group">
                
                


            <?php if ($foto == NULL) {?>
                
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="../subir_foto_principal.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "FOTO PRINCIPAL"; }; ?>
<? if ($lang == 'pt') {echo "FOTO PRINCIPAL"; }; ?>
<? if ($lang == 'en') {echo "MAIN PHOTO"; }; ?></span></button>
            </form>
            
                <?php } else { };?>
                
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="../subir_mas_fotos.php">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "MAS FOTOS ((recortadas))"; }; ?>
<? if ($lang == 'pt') {echo "MAIS FOTOS (recortadas)"; }; ?>
<? if ($lang == 'en') {echo "MORE PHOTOS (selected area)"; }; ?>MAS FOTOS (recortadas)</span></button>
            </form>
                
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="../uploadfotosfull.php">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "MAS FOTOS ( en masa)"; }; ?>
<? if ($lang == 'pt') {echo "MAIS FOTOS ( em massa)"; }; ?>
<? if ($lang == 'en') {echo "MORE PHOTOS ( photo package/ mass action)"; }; ?></span></button>
            </form>
     
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="../uploadvideos.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "SUBIR VIDEO EN SERVIDOR"; }; ?>
<? if ($lang == 'pt') {echo "CARREGAR VÍDEO NO SERVIDOR"; }; ?>
<? if ($lang == 'en') {echo "UPLOAD VIDEO IN SERVER"; }; ?></span></button>
            </form>
            
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="poner_video.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "SUBIR VIEO DE YOUTUBE"; }; ?>
<? if ($lang == 'pt') {echo "PUBLICAR VÍDEO DO YOUTUBE"; }; ?>
<? if ($lang == 'en') {echo "ADD VIDEO FROM YOUTUBE"; }; ?></span></button>
            </form>
            
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="poner_audio.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "SUBIR AUDIOS"; }; ?>
<? if ($lang == 'pt') {echo "PUBLICAR AÚDIOS"; }; ?>
<? if ($lang == 'en') {echo "UPLOAD AUDIOS"; }; ?></span></button>
          </form>
           
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="poner_archivos.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span>&uArr; <? if ($lang == 'es') {echo "SUBIR ARCHIVOS"; }; ?>
<? if ($lang == 'pt') {echo "ANEXAR ARQUIVOS"; }; ?>
<? if ($lang == 'en') {echo "UPLOAD FILES"; }; ?></span></button>
          </form>
          
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" target="_blank" action="poner_html.php?ID=<?php echo $ID ?>">
                      <input name="ID" type="hidden" value="<?php echo $ID ?>" />
                 <button value="submit" class="btn p-0 " title="<? if ($lang == 'es') {echo "SIRVE PARA AGREGAR VIDEOS DE FACEBOOK, TWITTER O CUALQUIER CODIGO PARA EMBEBER"; }; ?>
<? if ($lang == 'pt') {echo "SERVE PARA ADCIONAR VÍDEOS DE FACEBOOK, TWITTER OU QUALQUER CÓDIGO EMBED"; }; ?>
<? if ($lang == 'en') {echo "TO ADD VIDEOS FROM FACEBOOK, TWITTER OR ANY OTHER EMBEED CODE"; }; ?>"><span>HTML EMBED</span></button>
          </form>
          
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="POST" target="_blank" action="form_asignar_editor.php?ID=<?php echo $ID ?>">
                      <input name="ID" type="hidden" value="<?php echo $ID ?>" />
                 <label>
                      <select name="editor" class="form-control" id="select">
                      
                      <option value="0"><? if ($lang == 'es') {echo "Asignar un editor..."; }; ?>
<? if ($lang == 'pt') {echo "Designar um editor..."; }; ?>
<? if ($lang == 'en') {echo "Select an editor..."; }; ?></option>
                      
                      <?php 


$sql65 = "SELECT * FROM editores ORDER BY nombre";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{


$nombre = $row65["nombre"];
$telefono = $row65["telefono"];
$email = $row65["email"];
$instagram = $row65["instagram"];
$facebook = $row65["facebook"];
$twitter = $row65["twitter"];
$foto = $row65["foto"];
$ID_editor = $row65["ID"];


?>

<option <?php if($editor == $ID_editor){ ?> selected="selected" <?php } ?>value="<?php echo $ID_editor ?>"><?php echo $nombre ?></option>
<?


 }
mysql_free_result($consulta65);

?>
                      
                      </select>
                 </label>
                 <button value="submit" class="btn p-0 " title="<? if ($lang == 'es') {echo "SIRVE PARA AGREGAR VIDEOS DE FACEBOOK, TWITTER, O CUALQUIER CODIGO PARA EMBEBER"; }; ?>
<? if ($lang == 'pt') {echo "SERVE PARA ADCIONAR VÍDEOS DE FACEBOOK, TWITTER OU QUALQUER CÓDIGO EMBED"; }; ?>
<? if ($lang == 'en') {echo "TO ADD VIDEOS FROM FACEBOOK, TWITTER OR OTHERS EMBEED CODES"; }; ?>"><span><? if ($lang == 'es') {echo "ASSGINAR EDITOR"; }; ?>
<? if ($lang == 'pt') {echo "DESIGNAR EDITOR"; }; ?>
<? if ($lang == 'en') {echo "SELECT EDITOR"; }; ?></span></button>
          </form>
      
                
                
            </div>

            
          
            <div class="col-3 list-group">    
              
              <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="editarnota.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
              <button value="submit" class="btn p-0 "><span><img src="editar-icono-8216-128.png" width="15" height="15" />EDITAR</span></button>
          </form>
          
    
          
            <form  class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="borrarnota.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="delete1.png" width="15" height="15" /><? if ($lang == 'es') {echo "ELIMINAR"; }; ?>
<? if ($lang == 'pt') {echo "APAGAR"; }; ?>
<? if ($lang == 'en') {echo "DELETE"; }; ?></span></button>
          </form>
          
    
          <?php if ($destacado == "si") {?> 
          
         
            <form  class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "QUITAR DESTACAR"; }; ?>
<? if ($lang == 'pt') {echo "REMOVER DESTAQUE"; }; ?>
<? if ($lang == 'en') {echo "DELETE PIN"; }; ?></span></button>
          </form>
          
          
         <? } else { ?>
         
              

<?php $sql444 = "SELECT * FROM notas WHERE destacado = 'si'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d = $i_d + 1;
 }
mysql_free_result($consulta444);

if ($i_d >= 7) { echo "<span style='color:#000000'><? if ($lang == 'es') {echo "LIMITE DE NOTICIAS DESTACADAS"; }; ?>
<? if ($lang == 'pt') {echo "LIMITE DE NOTÍCIAS DESTACADAS"; }; ?>
<? if ($lang == 'en') {echo "LIMIT OF PIN NEWS"; }; ?>LIMITE DE NOTICIAS DESTACADAS</span>" ;} else {

?>
                      
            <form  class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "DESTACAR"; }; ?>
<? if ($lang == 'pt') {echo "DESTACAR"; }; ?>
<? if ($lang == 'en') {echo "PIN POST"; }; ?>DESTACAR</span></button>
          </form>
        
<?php }; ?>
          
<?php  }; ?>
                        
                        
<?php if ($destacado == "1") {?> 
                
            <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "QUITAR DESTACAR"; }; ?>
<? if ($lang == 'pt') {echo "TIRAR DESTAQUE"; }; ?>
<? if ($lang == 'en') {echo "REMOVE PIN"; }; ?>QUITAR DESTACAR 1</span></button>
          </form>    
                
          <? } else { ?>
          
          
              

<?php $i_d1 = 0; $sql444 = "SELECT * FROM notas WHERE destacado = '1'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d1 = $i_d1 + 1;
 }
mysql_free_result($consulta444);

if ($i_d1 >= 7) { echo "<? if ($lang == 'es') {echo "LIMITE DE NOTICIAS 1 DESTACADAS"; }; ?>
<? if ($lang == 'pt') {echo "LIMITE DE NOTÍCIAS 1 DESTACADAS"; }; ?>
<? if ($lang == 'en') {echo "LIMIT OF PINS NEWS 1"; }; ?>" ;} else {

?>
                      
              <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="destacar_1.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "DESTACAR 1"; }; ?>
<? if ($lang == 'pt') {echo "DESTACAR 1"; }; ?>
<? if ($lang == 'en') {echo "PIN 1"; }; ?>DESTACAR 1</span></button>
          </form><?php }; ?>
            <?php  }; ?>
                        
                                         
                                         
                                       
                                       
                                       
                                                     
<?php if ($destacado == "2") {?> 
             
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="quitar_destacar.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "QUITAR DESTACAR 2"; }; ?>
<? if ($lang == 'pt') {echo "REMOVER DESTAQUE 2"; }; ?>
<? if ($lang == 'en') {echo "REMOVE PIN 2"; }; ?></span></button>
          </form>          
          <? } else { ?>
          
          
           

<?php $i_d2 = 0;    $sql444 = "SELECT * FROM notas WHERE destacado = '2'";
$consulta444 = mysql_query ($sql444);
while ($row444 = mysql_fetch_array($consulta444))
{
$i_d2 = $i_d2 + 1;
 }
mysql_free_result($consulta444);

if ($i_d2 >= 7) { echo "LIMITE DE NOTICIAS 2 DESTACADAS" ;} else {

?>
                      
               <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="destacar_2.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "DESTACAR 2"; }; ?>
<? if ($lang == 'pt') {echo "DESTACAR 2"; }; ?>
<? if ($lang == 'en') {echo "PIN 2"; }; ?></span></button>
          </form><?php }; ?>
                
            <?php  }; ?>
                                                      
                                                     
<?php if ($des_cat == "1") {?> 
                
                 <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="quitar_des_cat.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "QUITAR DESTACAR EN CAT"; }; ?>
<? if ($lang == 'pt') {echo "REMOVER DESTAQUE NA CATEGORIA"; }; ?>
<? if ($lang == 'en') {echo "REMOVE PIN IN CATEGORY"; }; ?></span></button>
          </form>          
          <? } else { ?>
          
          
              
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="destacar_en_cat.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><img src="images/PN.svg.png" width="19" height="19" /> <? if ($lang == 'es') {echo "DESTACAR EN CAT"; }; ?>
<? if ($lang == 'pt') {echo "DESTACAR NA CATEGORIA"; }; ?>
<? if ($lang == 'en') {echo "PIN IN CATEGORY"; }; ?></span></button>
          </form>
                
                <?php }; ?>
                                                  
            <?php if ($home == 'no') { ?>   
                
              <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="poner_home.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><? if ($lang == 'es') {echo "PONER EN HOME"; }; ?>
<? if ($lang == 'pt') {echo "COLOCAR NA HOME"; }; ?>
<? if ($lang == 'en') {echo "PUBLISH IN HOME"; }; ?></span></button>
          </form>  
                
                <? } else { ?>
                
                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" action="quitar_home.php?ID=<?php echo $ID ?>">
              <input name="ID" type="hidden" value="<?php echo $ID ?>" />
             <button value="submit" class="btn p-0 "><span><? if ($lang == 'es') {echo "QUITAR DEL HOME"; }; ?>
<? if ($lang == 'pt') {echo "TIRAR DA HOME"; }; ?>
<? if ($lang == 'en') {echo "REMOVE FROM HOME"; }; ?></span></button>
          </form>   
                
                <?php  }; ?>
          
          <form class="list-group-item list-group-item-action" id="form1" name="form1" target="_blank" method="get" action="https://developers.facebook.com/tools/debug/sharing/?q=">
              <input name="q" type="hidden" value="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" />
             <button value="submit" class="btn p-0 " title="cuando no comparte bien la noticia tocar aqui"><span class="Estilo2"><img src="square-facebook-512.png" width="15" height="15" /> <? if ($lang == 'es') {echo "DEBUGGER FACE"; }; ?>
<? if ($lang == 'pt') {echo "DEBUGGER FACE"; }; ?>
<? if ($lang == 'en') {echo "DEBUGGER FACE"; }; ?></span></button>
          </form>
          
                <a class="list-group-item list-group-item-action" href="http://www.facebook.com/sharer.php?u=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&t=<?php echo $titulo ?>"  target="_blank">
              <button value="submit" class="btn p-0 "><span class="Estilo2"><img src="square-facebook-512.png" width="15" height="15" /> <? if ($lang == 'es') {echo "COMPARTIR FACE"; }; ?>
<? if ($lang == 'pt') {echo "COMPARTILHAR NO FACE"; }; ?>
<? if ($lang == 'en') {echo "SHARE IN FACEBOOK"; }; ?></span></button>
          </a>
          

                <form class="list-group-item list-group-item-action" id="form1" name="form1" method="get" target="_blank" action="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                 <button value="submit" class="btn p-0 "><span><img src="Mano_cursor.png" width="14" height="17" /> <? if ($lang == 'es') {echo "VER EN EL SITIO"; }; ?>
<? if ($lang == 'pt') {echo "VER NO SITE"; }; ?>
<? if ($lang == 'en') {echo "SEE IN WEB"; }; ?></span></button>
          </form>
          
          
          
          </div>

           

        </div>

        

      

<hr color="#666666"/>

        