<commit_before><?php

/*
 * Program Single Template
 * 
 * This template is served up anytime a program page
 * is called to be displayed.
 */
 
 get_header();
 
 ?>
 
 
 <div class="row">
 	<div class="large-9 columns single-program-content-container entry">
 		<?php while (have_posts()) : the_post(); ?>
 			
 			<?php
 			
 			/**
			 * Populate the $program_id variable to pass to
			 * any functions that require it to function.
			 */
			
			$program_id = $post->ID;
			$program_object = new programInfo($program_id);
			 
			?>
 			
			<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
				<header>
					<h1 class="entry-title"><?php the_title(); ?></h1>
				</header>
				<?php do_action('watertower_program_before_entry_content'); ?>
				<div class="entry-content">
					<?php the_content(); ?>
				</div>
			</article>
		<?php endwhile;?>
		
		
		
		
		<?php 
		/**
		 * Video Section
		 * This is the section of each school page where we pull in
		 * any videos that may lend themselves to the school.
		 */
		if (rwmb_meta('video_shortcode')) :
		?>
		
		<div class="videos-container" data-magellan-destination="videos">
			<h2>Videos</h2>
			<?php echo do_shortcode(rwmb_meta('video_shortcode')); ?>
		</div>
		
		<?php endif; ?>
		
		
		<?php
		/**
		 * Program Info Section
		 * This is a section that displays general information
		 * about the program, such as how long the program lasts,
		 * if there is an outreach how long it is, and the 
		 * accreditation information.
		 */
		 if (!empty($program_object->accreditation)) : ?>
		 
		 <div id="accreditation" data-magellan-destination="accreditation" class="row program-info-container">
		 	<h2 style="display: none;">Accreditation</h2>
		 	<div class="medium-3 columns program-info-duration-container">
		 		<div class="program-info-duration-number"><?php echo $program_object->academic_info['program_duration']; ?></div>
		 		<div class="program-info-duration-desc">Weeks Total</div>
		 	</div>
		 	<div class="medium-9 columns program-info-academic-container">
		 		<h5>Accreditation <i class="fa fa-graduation-cap"></i></h5>
		 		<?php echo $program_object->academic_info['accreditation']; ?>
		 	</div>
		 </div>
		 
		<?php endif; 
		
		/**
		 *	Program Schedule Section
		 * 	This is the section where all of the dates for
		 * 	upcoming programs are displayed along with links to
		 * 	apply for each of the scheduled schools. 
		 */
		if ($program_object->rolling_enrollment_status != 1) :
			
		echo '<div data-magellan-destination="upcoming-schools">';
			echo '<ul id="schedule" class="small-block-grid-1 medium-block-grid-3 program-dates-container">';
				echo '<div class="upcoming-schools-header"><h2>Upcoming Schools</h2>';
				available_via_correspondence_link();
				echo '</div>';
					
					if (!empty($program_object->schedule)) {
							
						// Dispaly available program instaces	
						foreach ($program_object->schedule as $program_occurance) {
							echo '<li><div class="program-date-info-container">';
							echo '<h4>' . $program_occurance['quarter'] . '</h4>';
								echo '<ul>';
								
									$program_info_string = '<li>%s:<span class="right">%s</span></li>';
									
									echo sprintf($program_info_string, 'Start Date', date('m/d/y', strtotime($program_occurance['start_date'])));
									echo sprintf($program_info_string, 'End Date', date('m/d/y', strtotime($program_occurance['end_date'])));
									echo sprintf($program_info_string, 'Total Cost', $program_occurance['total_cost']);<commit_msg>Fixed Bug with Program Pages Upcoming Schools Container<commit_after><?php

/*
 * Program Single Template
 * 
 * This template is served up anytime a program page
 * is called to be displayed.
 */
 
 get_header();
 
 ?>
 
 
 <div class="row">
 	<div class="large-9 columns single-program-content-container entry">
 		<?php while (have_posts()) : the_post(); ?>
 			
 			<?php
 			
 			/**
			 * Populate the $program_id variable to pass to
			 * any functions that require it to function.
			 */
			
			$program_id = $post->ID;
			$program_object = new programInfo($program_id);
			 
			?>
 			
			<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
				<header>
					<h1 class="entry-title"><?php the_title(); ?></h1>
				</header>
				<?php do_action('watertower_program_before_entry_content'); ?>
				<div class="entry-content">
					<?php the_content(); ?>
				</div>
			</article>
		<?php endwhile;?>
		
		
		
		
		<?php 
		/**
		 * Video Section
		 * This is the section of each school page where we pull in
		 * any videos that may lend themselves to the school.
		 */
		if (rwmb_meta('video_shortcode')) :
		?>
		
		<div class="videos-container" data-magellan-destination="videos">
			<h2>Videos</h2>
			<?php echo do_shortcode(rwmb_meta('video_shortcode')); ?>
		</div>
		
		<?php endif; ?>
		
		
		<?php
		/**
		 * Program Info Section
		 * This is a section that displays general information
		 * about the program, such as how long the program lasts,
		 * if there is an outreach how long it is, and the 
		 * accreditation information.
		 */
		 if (!empty($program_object->accreditation)) : ?>
		 
		 <div id="accreditation" data-magellan-destination="accreditation" class="row program-info-container">
		 	<h2 style="display: none;">Accreditation</h2>
		 	<div class="medium-3 columns program-info-duration-container">
		 		<div class="program-info-duration-number"><?php echo $program_object->academic_info['program_duration']; ?></div>
		 		<div class="program-info-duration-desc">Weeks Total</div>
		 	</div>
		 	<div class="medium-9 columns program-info-academic-container">
		 		<h5>Accreditation <i class="fa fa-graduation-cap"></i></h5>
		 		<?php echo $program_object->academic_info['accreditation']; ?>
		 	</div>
		 </div>
		 
		<?php endif; 
		
		/**
		 *	Program Schedule Section
		 * 	This is the section where all of the dates for
		 * 	upcoming programs are displayed along with links to
		 * 	apply for each of the scheduled schools. 
		 */
		echo '<div data-magellan-destination="upcoming-schools">';
		 
		if ($program_object->rolling_enrollment_status != 1) :
			echo '<ul id="schedule" class="small-block-grid-1 medium-block-grid-3 program-dates-container">';
				echo '<div class="upcoming-schools-header"><h2>Upcoming Schools</h2>';
				available_via_correspondence_link();
				echo '</div>';
					
					if (!empty($program_object->schedule)) {
							
						// Dispaly available program instaces	
						foreach ($program_object->schedule as $program_occurance) {
							echo '<li><div class="program-date-info-container">';
							echo '<h4>' . $program_occurance['quarter'] . '</h4>';
								echo '<ul>';
								
									$program_info_string = '<li>%s:<span class="right">%s</span></li>';
									
									echo sprintf($program_info_string, 'Start Date', date('m/d/y', strtotime($program_occurance['start_date'])));
									echo sprintf($program_info_string, 'End Date', date('m/d/y', strtotime($program_occurance['end_date'])));
									echo sprintf($program_info_string, 'Total Cost', $program_occurance['total_cost']);
{'fraction_non_alphanumeric': 0.1530669667979741, 'fraction_numerical': 0.005064715813168261, 'mean_word_length': 3.2980652962515116, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 137, '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': '4898660', 'n_tokens_mistral': 2762, 'n_tokens_neox': 2160, 'n_words': 538}