<?php include "includes/includes.php" ?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="es" >
<!--<![endif]-->
<!-- nd -->
<head>
  <meta charset="utf-8">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title><?php echo $row->titulo?></title>
  <!-- METAS SHARING -->
  <meta name="description" content="<?php echo $row->intro?>">
  <meta name="author" content="<?php echo $row->autor?>">
  <meta property="og:site_name" content="PIJAMASURF.COM" />
  <meta property="og:title" content="<?php echo $row->titulo;?>" />
  <meta property="og:description" content="<?php echo $row->intro?>" />
  <meta property="og:locale" content="es_LA" />
  <meta property="og:image" content="<?= getImage($row->imagen)?>" />
  <link rel="image_src" href="<?php echo getImage($row->imagen)?>" />
  <!-- AMP -->
  <link rel="amphtml" href="https://pijamasurf.com<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8') ?>amp/">
  <!-- AMP -->
  <!-- Twitter Meta tags START>-->
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:site" content="PIJAMASURF.COM" />
  <meta name="twitter:description" content="<?php echo $row->intro?>" />
  <meta name="twitter:title" content="<?php echo $row->titulo?>" />
  <meta name="twitter:image" content="<?php echo getImage($row->imagen)?>" />
  <!-- /Social Tags -->
  <!-- Slidebars CSS -->
  <link rel="stylesheet" href="/slidebars/slidebars.css">
  <link rel="stylesheet" href="/css/flexslider.css" type="text/css" />
  <link rel="stylesheet" href="/css/pijamasurf.css" type="text/css" />
  <link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
  <link rel='stylesheet' href='/css/typicons.min.css' />
  <link rel="stylesheet" type="text/css" href="/css/component.css" />
  <link href='//fonts.googleapis.com/css?family=Roboto:200,400,300,700' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Lato:200,400,300,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="/css/jquery.fancybox.css?v=2.1.5" media="screen" />
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="/js/modernizr.custom.js"></script>
  <?php include "common_files/analytics.php" ?>
  <!--ANALYTICS TRACK-->
  <script type="text/javascript">
    ga('set', 'title', '<?php echo $row->titulo; ?>');
    ga('send', {
      hitType: 'pageview',
      page: '<?php echo $pl1; ?>'
    });
    ga('set', 'title', '<?php echo $row2->titulo; ?>');
    ga('send', {
      hitType: 'pageview',
      page: '<?php echo $pl2; ?>'
    });
  </script>
  <!--ANALYTICS TRACK-->
  <?php if($isMobile): ?>
    <?php include "common_files/ads-nota-movil.php" ?>
    <?php else: ?>
      <?php include "common_files/ads-nota.php" ?>
      <script data-ad-client="ca-pub-7465386907247943" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <?php endif; ?>
    <!-- Facebook Pixel Code -->
    <script>
      !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
        n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
        n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
        t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
          document,'script','https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '1055240077898310');
      fbq('track', "PageView");</script>
      <noscript><img height="1" width="1" style="display:none"
        src="https://www.facebook.com/tr?id=1055240077898310&ev=PageView&noscript=1"
        /></noscript>
        <!-- End Facebook Pixel Code -->
        <?php echo str_replace("&#039;","'",$row->header_tag); ?>
        <?php if($row->pl != "7_muros_de_conciencia_que_la_humanidad_tiene_que_derribar_antes_de_vivir_sin_fronteras" && $row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
          AND !in_array( $row->pl, $contenidointeractivo_notes )
        ): ?>
      <?php endif; ?>
      <?php if($isMobile): ?>
        <?php else: ?>
        <?php endif; ?>

         <?php if($row->pl=="bebes_cerveza_como_vikingo_o_como_un_intelectual_frances"): ?>
          <!-- BEGIN Salesforce DMP ControlTag for "Michelob_BrandedContent" -->
          <script class="kxct" data-id="st6n96tdz" data-timing="async" data-version="3.0" type="text/javascript">
            window.Krux||((Krux=function(){Krux.q.push(arguments)}).q=[]);
            (function(){
              var k=document.createElement('script');k.type='text/javascript';k.async=true;
              k.src=(location.protocol==='https:'?'https:':'http:')+'//cdn.krxd.net/controltag/st6n96tdz.js';
              var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(k,s);
            }());
          </script>
          <!-- END Salesforce DMP ControlTag -->
        <?php endif; ?>
        <script charset="UTF-8" src="//cdn.sendpulse.com/9dae6d62c816560a842268bde2cd317d/js/push/b73fc2552e3a9d6e6b208149e7e99be8_1.js" async></script>
      </head>
      <body>
        <!--HEADER-->
        <?php include "common_files/header.php"; ?>
        <!--/HEADER-->
        <!--MAIN-->
        <div id="sb-site" class="main_nota_cont">
          <div id="uno_bigs" class="bg_customfg clearfix" style="background-image:url(<?php echo getImage($imagen)?>); height:494px; margin-bottom:20px;">
            <article class="articlegs">
              <div class="gray_scale"></div>
              <div class="textup">
                <h1 id="titulos2"><?php echo $row->titulo?></h1>
                <h2 id="titulos3"><a href="<?php echo getCategoriaPl($row->id_categoria)?>"><?php echo getCategoria($row->id_categoria)?></a></h2>
                <p id="fechas_autor">Por: <a style="text-decoration: none;color: white;" href="/autor/<?php echo urlencode($row->autor); ?>"><?php echo $row->autor?></a> - <?php echo $fecha_hora?></p>
              </div>
            </article>
          </div>
          <?php if($isMobile): ?>
            <!--VIDEO FACEBOOK-->
            <!--VIDEO FACEBOOK-->
          <?php endif; ?>
          <?php if($isMobile): ?>
            <?php if($special_cat == 0): //MOSTRAR BANNER?>
              <?php else: ?>
              <?php endif // Fin if $special_cat?>
              <?php else: ?>
            <?php endif; // Fin if $Mobile?>
            <center>
              <?php if($isMobile): ?>
                <?php else: ?>
                <?php endif; ?>
                <style type="text/css">
                  .addthis_jumbo_share{
                    width: 70%;
                    float: left;
                  }
                  @media (max-width: 1024px) {
                    .addthis_jumbo_share{
                      width: 100%;
                      float: inherit;
                    }
                  }
                </style>
                <!--CONTENT-->
                <div class="content_cont full">
                  <div class="content_wrapper full_inner clearfix">
                    <?php if($row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
                      AND !in_array( $row->pl, $contenidointeractivo_notes )
                    ): ?>
                    <div id="resumens"><?php echo $row->intro?></div>
                  <?php endif; ?>
                  <!-- Go to www.addthis.com/dashboard to customize your tools -->
                  <?php if($row->pl != "cerveza_y_personalidad_asi_es_como_estas_cervezas_coinciden_con_ciertas_formas_de_ser" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
                    AND !in_array( $row->pl, $contenidointeractivo_notes )
                  ): ?>
                  <div class="addthis_jumbo_share" data-url="https://pijamasurf.com/<?php echo $an1; ?>/<?php echo $me1; ?>/<?php echo $row->pl; ?>/" data-title="<?php echo $row->titulo; ?>" id="share1"></div>
                <?php endif; ?>
                <!--NOVECIENTOS-->
                <div class="bloque-noticia novecientos">
                  <?php if(isset($bannerCustom["BANNER_TOP"])): ?>
                    <!-- BANNER-CUSTOM-TOP -->
                    <style media="screen">
                    .banner_autos{
                      display: block;
                      width: 100%;
                      max-width: 800px;
                      margin: .75rem 0;
                      padding: 0;
                    }
                    .banner_autos img{
                      max-width: 100%;
                      pointer-events: none;
                    }
                    </style>
                    <?= $bannerCustom["BANNER_TOP"]; ?>
                    <!-- BANNER-CUSTOM-TOP -->
                  <?php endif; ?>
                  <!--NOTA UNO-->
                  <div class="texto-nota full">
<?php if($slider > 0):?>
 <div class="flexslider">
  <ul class="slides">
   <?php foreach($imagenes as $res): $res->imagen = str_replace("https://pijamasurf.com/","https://23.253.163.107/",$res->imagen); $res->imagen = str_replace('23.253.163.107/wp-content','23.253.41.33/wp-content/uploads/10.208.149.45',$row->imagen);?>
    <li data-thumb="<?php if(strpos($res->imagen, "http") !== false || strpos($res->imagen, "https")):?><?php echo $res->imagen?><?php else:?>/imagesPosts/<?php echo $res->imagen; ?><?php endif?>">
      <img src="<?php if(strpos($res->imagen, "http") !== false || strpos($res->imagen, "https")):?><?php echo $res->imagen?><?php else:?>/imagesPosts/<?php echo $res->imagen; ?><?php endif?>" />
    </li>
    <?php break; endforeach?>
  </ul>
</div>
<?php endif?>
<?php $c = str_replace('https://23.253.163.107/wp-content','/wp-content/uploads/10.208.149.45',$row->contenido);
if($row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
  AND !in_array( $row->pl, $contenidointeractivo_notes )
){
}
$tmp = "";
$pos = strpos($c, '</p>') + 4;
$c = substr_replace($c, $tmp, $pos, 0);
echo $c;
?>
</div>

<?php if(isset($bannerCustom["BANNER_DOWN"])): ?>
  <!-- BANNER-CUSTOM-DOWN -->
  <style media="screen">
  .banner_autos{
    display: block;
    width: 100%;
    max-width: 800px;
    margin: .75rem 0;
    padding: 0;
  }
  .banner_autos img{
    max-width: 100%;
    pointer-events: none;
  }
  </style>
  <?= $bannerCustom["BANNER_DOWN"]; ?>
  <!-- BANNER-CUSTOM-DOWN -->
<?php endif; ?>

<?php include 'common_files/herramientas_bottom.php';?>
<?php if ($row->pl != "cerveza_y_personalidad_asi_es_como_estas_cervezas_coinciden_con_ciertas_formas_de_ser" && $row->pl != "5_habitos_que_estan_uniformando_nuestra_epoca_y_como_hackearlos_para_ser_diferentes_infografia" && $row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
  AND !in_array( $row->pl, $contenidointeractivo_notes )
):?>
<div class="fb-comments" data-href="<?php echo $main_path ?><?php echo getPermalink($row->fecha,$row->pl)?>" data-width="100%" data-numposts="5"></div>
<?php 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_ES/sdk.js#xfbml=1&version=v2.5&appId=902128303236941";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php if($isMobile): ?>
  <?php echo str_replace("&#039;","'",$row->body_tag); ?>
  <?php if($special_cat == 0 && empty($row->body_tag)): //MOSTRAR BANNER?>
  <?php else: ?>
  <?php endif // Fin if $special_cat?>
<?php endif // Fin if $special_cat?>
<!--/NOTA UNO-->
</div>
<!--DISQUSS-->
<!--/DISQUSS-->
<!--NOVECIENTOS-->
<!--SIDEBAR-->
<?php if($isMobile): ?>
  <?php if($special_cat == 0 && empty($row->body_tag)): //MOSTRAR BANNER?>
    <?php if( !in_array($pl, $contenidointeractivo_notes) ): ?>
    <?php endif; ?>
    <?php else: ?>
    <?php endif; ?>
    <?php else: ?>
      <?php if($row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
        AND !in_array( $row->pl, $contenidointeractivo_notes )
      ): ?>
      <?php if ($row->id_categoria == 41):?>
        <?php include "common_files/sidebar_lifestyle.php"?>
        <?php else:?>
          <?php include "common_files/sidebar-general.php"?>
        <?php endif?>
      <?php endif; ?>
    <?php endif; ?>
    <!--/SIDEBAR-->
  </div>
</div>
<!--/CONTENT-->
</div>
<!--/MAIN-->
<?php if($row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
  AND !in_array( $row->pl, $contenidointeractivo_notes )
): ?>
<?php if($isMobile): ?>
  <!-- Begin MailChimp Signup Form -->
  <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
  <style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
    We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
  </style>
 <!-- 
  <div id="mc_embed_signup" style="max-width:300px; margin: 0 auto; border: 1px solid #c3c3c3;">
    <img src="/images/newsletter-pijamasurf.gif">
    <form action="https://pijamasurf.us18.list-manage.com/subscribe/post?u=f58653764b1b77c4e5fb69d44&amp;id=0b6e961693" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
      <div id="mc_embed_signup_scroll">
        <h2 style="color: #3f5564; font-family:'Roboto', Helvetica, sans-serif; font-size:17px; text-align: center;">Suscribete a nuestra lista</h2>
        <div class="mc-field-group">
          <label for="mce-EMAIL" style="font-family: 'Roboto', Helvetica, sans-serif; font-size:16px; margin-left:15px; padding-bottom:10px;">Correo electrónico </label>
          <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" style="width:90%; display: block; margin: 0 auto; padding:10px">
        </div>
        <div id="mce-responses" class="clear">
          <div class="response" id="mce-error-response" style="display:none"></div>
          <div class="response" id="mce-success-response" style="display:none"></div>
        </div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
       <!-- <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f58653764b1b77c4e5fb69d44_0b6e961693" tabindex="-1" value=""></div>
        <br/>
        <div class="clear"><input type="submit" value="Suscribirme" name="subscribe" id="mc-embedded-subscribe" class="button" style="background-color:#3f5564; color:white; font-family: 'Roboto', Helvetica, sans-serif; width:110px; line-height: 16px; border:none; padding: 10px; margin: 0 auto;display:block; font-size:16px; "></div>
        <br/>
      </div>
    </form>
  </div> -->
  <!--<div align="center">
<a href="https://www.bancodonde.com/golazodonde">
<img src="/images/banner_golazo_banco_donde.jpg" alt="Golazo Dondé"  width=300>
</a>
</div> -->
  <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
  <!--End mc_embed_signup-->
<?php endif; ?>
<!--INICIA SEGUNDA NOTA-->
<!--TERMINA SEGUNDA NOTA-->
<?php endif; ?>
<!--FOOTER-->
<?php include "common_files/footer.php"; ?>
<!--/FOOTER-->
<!--MENU MOVIL-->
<?php include 'common_files/sidr.php'; ?>
<!--/MENU MOVIL-->
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<?php if( empty($row->body_tag) AND !in_array($pl, $contenidointeractivo_notes) ): ?>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55db93af8c766d89" async></script>
<?php endif; ?>
<script defer src="/js/jquery.flexslider.js"></script>
<script>
 $(window).load(function() {
  $('.flexslider').flexslider({
    animation: "slide",
    controlNav: "thumbnails"
  });
});
</script>
<script>
  $('#lupita').click(function() {
    $('.searchlb').show( "slow" );
  });
  $('#cerrarer').click(function() {
    $('.searchlb').hide( "slow" );
  });
</script>
<script src="/js/cbpHorizontalMenu.min.js"></script>
<script>
  $(function() {
    cbpHorizontalMenu.init();
  });
</script>
<script src="/slidebars/slidebars.js"></script>
<script>
  (function($) {
    $(document).ready(function() {
      $.slidebars();
    });
  }) (jQuery);
</script>
<?php if(empty($row->body_tag)): ?>
 <?php if($isMobile): ?>
   <?php else: ?>
   <?php endif; ?>
   <?php else: ?>
   <?php endif; ?>
   <!--TABOOLA-->
   <script type="text/javascript">
    window._taboola = window._taboola || [];
    _taboola.push({flush: true});
  </script>
  <script>
    function gaTrack(path, title) {
      ga('set', { page: path, title: title });
      ga('send', 'pageview');
    }
    <?php $u = "https://pijamasurf.com/{$an2}/{$me2}/{$pl2}"; ?>
    (function($) {
      $(document).ready(function() {
            // Track a virtual page
            //gaTrack('<?php echo $pl2; ?>', '<?php echo $row2->titulo; ?>');
          });
    }) (jQuery);
  </script>
  <?php if($row->pl != "bebes_cerveza_como_vikingo_o_como_un_intelectual_frances" && $row->pl != "desde_desayunos_de_cerveza_en_el_antiguo_egipto_hasta_la_cerveza_de_bajas_calorias_la_evolucion_de_una_bebida" && $row->pl != "si_mundialmente_la_tecnologia_tuviera_que_hablarse_con_un_mismo_idioma_que_idioma_hablarias_tu"
    AND !in_array( $row->pl, $contenidointeractivo_notes )
  ): ?>
<?php endif; ?>
<?php if(!$isMobile): ?>
  <!-- Teads -->
  <script type="text/javascript" class="teads" async="true" src="//a.teads.tv/page/46971/tag"></script>
  <!-- Teads -->
<?php endif; ?>
</body>
</html>
