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

<!-- main content -->

<main id="main-content">

  <!-- main posts loop -->
  <section id="page">

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

    <article <?php post_class('container'); ?> id="post-<?php the_ID(); ?>">

      <div class="row">
        <div class="col col-4">

          <h3 class="text-align-center margin-top-basic margin-bottom-basic"><?php the_title(); ?>:</h3>

          <div class="copy"><?php the_content(); ?></div>

        </div>

        <div class="col col-4">

          <div id="page-key-color-image" class="image-key-color-holder background-key-color">
            <div class="image-key-color" style="background-image: url(<?php if (!empty($img)) {echo $img[0];} ?>);"></div>
          </div>

        </div>

        <div class="col col-4">

<?php
      $current_query = current_query();

      if ($current_query->have_posts()) {
        while ($current_query->have_posts()) {
          $current_query->the_post();

          $number = get_post_meta($post->ID, '_igv_number');
          $program_files = get_post_meta($post->ID, '_igv_program_files');
?>

          <h3 class="text-align-center margin-top-basic margin-bottom-basic">
            <?php if (!empty($number[0])) { echo 'No. ' . add_leading_zero($number[0]) . '<br>'; } ?>
            <?php the_title(); ?>
          </h3>

          <div class="copy">
<?php

          if (!empty($program_files[0])) {
            echo '<ul>';
            foreach ($program_files[0] as $file) {
              echo "<li><a href=" . $file['file'] . " target='_blank' class='font-underline'>" . __('[:es]' . $file['text'] . '[:en]' . $file['text_en']) . "</a></li>";
            }
            echo '</ul>';
          } // end if
        } // end while
      } // end if
      wp_reset_postdata();
?>
          </div>
        </div>
      </div>

    </article>
<?php
  }
} else {
?>
    <article class="u-alert"><?php _e('[:es]Lo sentimos, pero no podemos encontrar lo que estás buscando.[:en]Sorry, no posts matched your criteria[:]'); ?></article>
<?php
} ?>

  <!-- end page -->
  </section>

<!-- end main-content -->

</main>

<?php
get_footer();
?>
<commit_msg>fix thumbnail reference<commit_after><?php
get_header();
?>

<!-- main content -->

<main id="main-content">

  <!-- main posts loop -->
  <section id="page">

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

    <article <?php post_class('container'); ?> id="post-<?php the_ID(); ?>">

      <div class="row">
        <div class="col col-4">

          <h3 class="text-align-center margin-top-basic margin-bottom-basic"><?php the_title(); ?>:</h3>

          <div class="copy"><?php the_content(); ?></div>

        </div>

<?php
      $current_query = current_query();

      if ($current_query->have_posts()) {
        while ($current_query->have_posts()) {
          $current_query->the_post();

          $number = get_post_meta($post->ID, '_igv_number');
          $program_files = get_post_meta($post->ID, '_igv_program_files');

          $img = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'col-4');
?>
        <div class="col col-4">

          <div id="page-key-color-image" class="image-key-color-holder background-key-color">
            <div class="image-key-color" style="background-image: url(<?php if (!empty($img)) {echo $img[0];} ?>);"></div>
          </div>

        </div>

        <div class="col col-4">

          <h3 class="text-align-center margin-top-basic margin-bottom-basic">
            <?php if (!empty($number[0])) { echo 'No. ' . add_leading_zero($number[0]) . '<br>'; } ?>
            <?php the_title(); ?>
          </h3>

          <div class="copy">
<?php

          if (!empty($program_files[0])) {
            echo '<ul>';
            foreach ($program_files[0] as $file) {
              echo "<li><a href=" . $file['file'] . " target='_blank' class='font-underline'>" . __('[:es]' . $file['text'] . '[:en]' . $file['text_en']) . "</a></li>";
            }
            echo '</ul>';
          }
        }
      }

      wp_reset_postdata();
?>
          </div>
        </div>
      </div>

    </article>
<?php
  }
} else {
?>
    <article class="u-alert"><?php _e('[:es]Lo sentimos, pero no podemos encontrar lo que estás buscando.[:en]Sorry, no posts matched your criteria[:]'); ?></article>
<?php
} ?>

  <!-- end page -->
  </section>

<!-- end main-content -->

</main>

<?php
get_footer();
?>

{'fraction_non_alphanumeric': 0.21802002224694106, 'fraction_numerical': 0.0055617352614015575, 'mean_word_length': 2.337787676317743, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 122, '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': '6489682', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1477, 'n_words': 301}