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

<!-- main content -->

<main id="main-content">

<?php
if( have_posts() ) {
  while( have_posts() ) {
    the_post();
    $meta = get_post_meta($post->ID);
    $fundraiser_expiration = IGV_get_option('_igv_fundraiser_end_time');
    $fundraiser_youtube_id = IGV_get_option('_igv_fundraiser_youtube_id');
    $is_fundraiser = $fundraiser_expiration > time();
?>
  <!-- main posts loop -->
  <article id="page">
    <div class="container">
  <?php if ($is_fundraiser) { ?>
      <div class="row margin-bottom-small">
        <div class="col col24">
          <h4>Fundraiser<span id="progress-text"></span></h4>
        </div>
      </div>
      <div id="progress-bar-row" class="row margin-bottom-small">
        <div id="progress-bar-holder" class="col col24">
          <div id="progress-bar"></div>
        </div>
      </div>
  <?php
        } else {
  ?>
      <div class="row margin-bottom-small">
        <div class="col col24">
          <h4><?php the_title(); ?></h4>
        </div>
      </div>
  <?php
        }
  ?>
    </div>
  <?php
    if (!empty($meta['_cmb_support_youtube']) || $fundraiser_youtube_id) {
      $youtube_id = $meta['_cmb_support_youtube'][0];
      if ($fundraiser_youtube_id && $is_fundraiser) {
        $youtube_id= $fundraiser_youtube_id;
      }
  ?>
    <div class="container">
      <div class="row margin-bottom-basic">
        <div class="col col24">
          <div class="u-video-embed-container">
            <iframe class="youtube-player" type="text/html" src="http://www.youtube.com/embed/<?php echo $youtube_id; ?>?autohide=2&amp;modestbranding=1&amp;origin=http://novaramedia.com&amp;showinfo=0&amp;theme=light&amp;rel=0"></iframe>
          </div>
        </div>
      </div>
    </div>
  <?php
      get_template_part('partials/support-section');
    }
  ?>
    <div class="container">
      <div class="row margin-top-basic margin-bottom-basic">
        <div class="col col24">
          <div class="text-copy text-copy-max-width">
            <?php the_content(); ?>
          </div>
        </div>
      </div>
    </div>

    <?php
      get_template_part('partials/support-section');

      if (!empty($meta['_cmb_page_extra_section'])) {
    ?>
    <div class="container">
      <div class="row margin-top-basic margin-bottom-basic">
        <div class="col col24">
          <div class="text-copy text-copy-max-width">
            <?php echo apply_filters( 'the_content', $meta['_cmb_page_extra_section'][0]); ?>
          </div>
        </div>
      </div>
    </div>
<?php
        get_template_part('partials/support-section');

      }
?>
  <!-- end post -->
  </article>
<?php
  }
} else {
?>
  <div class="container">
    <div class="row">
      <article class="col col24"><?php _e('Sorry, no posts matched your criteria :{'); ?></article>
    </div>
  </div>
<?php
} ?>

<!-- end main-content -->

</main>

<?php
get_footer();
?><commit_msg>Hotfix: Generate correct youtube embed for support page<commit_after><?php
get_header();
?>

<!-- main content -->

<main id="main-content">

<?php
if( have_posts() ) {
  while( have_posts() ) {
    the_post();
    $meta = get_post_meta($post->ID);
    $fundraiser_expiration = IGV_get_option('_igv_fundraiser_end_time');
    $fundraiser_youtube_id = IGV_get_option('_igv_fundraiser_youtube_id');
    $is_fundraiser = $fundraiser_expiration > time();
?>
  <!-- main posts loop -->
  <article id="page">
    <div class="container">
  <?php if ($is_fundraiser) { ?>
      <div class="row margin-bottom-small">
        <div class="col col24">
          <h4>Fundraiser<span id="progress-text"></span></h4>
        </div>
      </div>
      <div id="progress-bar-row" class="row margin-bottom-small">
        <div id="progress-bar-holder" class="col col24">
          <div id="progress-bar"></div>
        </div>
      </div>
  <?php
        } else {
  ?>
      <div class="row margin-bottom-small">
        <div class="col col24">
          <h4><?php the_title(); ?></h4>
        </div>
      </div>
  <?php
        }
  ?>
    </div>
  <?php
    if (!empty($meta['_cmb_support_youtube']) || $fundraiser_youtube_id) {
      $youtube_id = $meta['_cmb_support_youtube'][0];
      if ($fundraiser_youtube_id && $is_fundraiser) {
        $youtube_id = $fundraiser_youtube_id;
      }
  ?>
    <div class="container">
      <div class="row margin-bottom-basic">
        <div class="col col24">
          <div class="u-video-embed-container">
            <iframe class="youtube-player" type="text/html" src="<?php echo generate_youtube_embed_url($youtube_id); ?>"></iframe>
          </div>
        </div>
      </div>
    </div>
  <?php
      get_template_part('partials/support-section');
    }
  ?>
    <div class="container">
      <div class="row margin-top-basic margin-bottom-basic">
        <div class="col col24">
          <div class="text-copy text-copy-max-width">
            <?php the_content(); ?>
          </div>
        </div>
      </div>
    </div>

    <?php
      get_template_part('partials/support-section');

      if (!empty($meta['_cmb_page_extra_section'])) {
    ?>
    <div class="container">
      <div class="row margin-top-basic margin-bottom-basic">
        <div class="col col24">
          <div class="text-copy text-copy-max-width">
            <?php echo apply_filters( 'the_content', $meta['_cmb_page_extra_section'][0]); ?>
          </div>
        </div>
      </div>
    </div>
<?php
        get_template_part('partials/support-section');

      }
?>
  <!-- end post -->
  </article>
<?php
  }
} else {
?>
  <div class="container">
    <div class="row">
      <article class="col col24"><?php _e('Sorry, no posts matched your criteria :{'); ?></article>
    </div>
  </div>
<?php
} ?>

<!-- end main-content -->

</main>

<?php
get_footer();
?>
{'fraction_non_alphanumeric': 0.1883061049011178, 'fraction_numerical': 0.007566638005159072, 'mean_word_length': 2.5768757687576875, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4464433', 'n_tokens_mistral': 2008, 'n_tokens_neox': 1967, 'n_words': 355}