<commit_before><?php
get_header();
?>

<!-- main content -->

<main id="main-content" class="container">

  <!-- main posts loop -->
  <section id="posts" class="row">

<?php
if( have_posts() ) {
  while( have_posts() ) {
    the_post();

    // Get columns content
    $right_column = apply_filters( 'the_content', get_post_meta( $post->ID, '_igv_right_column', true ) );
    $left_column = apply_filters( 'the_content', get_post_meta( $post->ID, '_igv_left_column', true ) );

?>

    <article id="post-<?php the_ID(); ?>">
      <?php if (!is_page()) { ?>
      <a href="<?php the_permalink() ?>"><h3 class="margin-bottom-small"><?php the_title(); ?></h3></a>
      <?php } ?>


      <?php 
      if( ! empty($right_column) ) {
      ?>
        <div class="sidebar col col-3">

        <?php echo $right_column; ?> 

        <?php
        if (is_single() && in_cat_ancestor_of('laboratorio')) {
          laboratorio_index(); 
        }
        ?>

        </div>
      <?php } ?>

      <div class="col col-5">
        <?php the_content(); ?>
      </div>

      <?php if( ! empty($left_column) ) { ?>
        <div class="sidebar col col-3"><?php echo $left_column; ?></div> 
      <?php } ?>

    </article>

<?php
  }
} else {
?>
    <article class="col col-12 u-alert"><?php _e('Sorry, no posts matched your criteria :{'); ?></article>
<?php
} ?>
<commit_msg>fix columns conditionals<commit_after><?php
get_header();
?>

<!-- main content -->

<main id="main-content" class="container">

  <!-- main posts loop -->
  <section id="posts" class="row">

<?php
if( have_posts() ) {
  while( have_posts() ) {
    the_post();

    // Get columns content
    $right_column = apply_filters( 'the_content', get_post_meta( $post->ID, '_igv_right_column', true ) );
    $left_column = apply_filters( 'the_content', get_post_meta( $post->ID, '_igv_left_column', true ) );

?>

    <article id="post-<?php the_ID(); ?>">
      <?php if (!is_page()) { ?>
      <a href="<?php the_permalink() ?>"><h3 class="margin-bottom-small"><?php the_title(); ?></h3></a>
      <?php } ?>


      <?php 
      if( !empty( $left_column ) || ( is_single() && in_cat_ancestor_of( 'laboratorio' ) )  ) {
      ?>
        <div class="sidebar col col-3">

        <?php echo $left_column; ?> 

        <?php
        if (is_single() && in_cat_ancestor_of('laboratorio')) {
          laboratorio_index(); 
        }
        ?>

        </div>
      <?php } ?>

      <div class="col col-5">
        <?php the_content(); ?>
      </div>

      <?php if( ! empty($right_column) ) { ?>
        <div class="sidebar col col-3"><?php echo $right_column; ?></div> 
      <?php } ?>

    </article>

<?php
  }
} else {
?>
    <article class="col col-12 u-alert"><?php _e('Sorry, no posts matched your criteria :{'); ?></article>
<?php
} ?>

{'fraction_non_alphanumeric': 0.2089126559714795, 'fraction_numerical': 0.004991087344028521, 'mean_word_length': 2.64889466840052, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1710913', 'n_tokens_mistral': 985, 'n_tokens_neox': 970, 'n_words': 204}