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

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

    $images = get_post_meta($post->ID, '_igv_collection_imgs', true);
    $background = get_post_meta($post->ID, '_igv_collection_bg', true);
?>
    <?php 
      if (!empty($background)) {
    ?>
    <div class="single-collection-background" style="background-image:url('<?php echo $background ?>')"></div>
    <?php
      } 
    ?>

    <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
      <div class="grid-row single-collection-row">

      <?php 
        if (!empty($images)) {
          foreach ($images as $image) {
            echo wp_get_attachment_image( $image, 'full', false, array('class'=>'single-collection-item'));
          }
        }
      ?>

      </div>
      <div class="single-collection-title"><h1><?php the_title(); ?></h1></div>
    </article>

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

<?php
get_footer();
?><commit_msg>make title uppercase<commit_after><?php
get_header();
?>

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

    $images = get_post_meta($post->ID, '_igv_collection_imgs', true);
    $background = get_post_meta($post->ID, '_igv_collection_bg', true);
?>
    <?php 
      if (!empty($background)) {
    ?>
    <div class="single-collection-background" style="background-image:url('<?php echo $background ?>')"></div>
    <?php
      } 
    ?>

    <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
      <div class="grid-row single-collection-row">

      <?php 
        if (!empty($images)) {
          foreach ($images as $image) {
            echo wp_get_attachment_image( $image, 'full', false, array('class'=>'single-collection-item'));
          }
        }
      ?>

      </div>
      <div class="single-collection-title font-uppercase"><h1><?php the_title(); ?></h1></div>
    </article>

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

<?php
get_footer();
?>
{'fraction_non_alphanumeric': 0.2100093545369504, 'fraction_numerical': 0.0018709073900841909, 'mean_word_length': 3.0588235294117645, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 59, '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': '7519060', 'n_tokens_mistral': 714, 'n_tokens_neox': 711, 'n_words': 137}