the_post();
            //the Loop
            ?>

					<?php 
            /**
             * Include the Post-Format-specific template for the content.
             * Remove the $curated post from the blogroll
             * TODO: Move jumbotron div into featured template
             */
            if ($curated != get_the_ID()) {
                ai_get_template_part('template-parts/content', 'blogroll');
                $post_count++;
            }
            if (0 == $post_count % 2) {
                ai_get_template_part('template-parts/module', 'mid-roll', array('post_count' => $post_count));
            }
            ?>
				<?php 
        }
        ?>
			</section>

			<?php 
        hsinsider_the_posts_navigation();
        ?>

			<?php 
    } else {
        ?>
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class(array('col-md-8', 'single'));
?>
>
	<header class="entry-header">
		<?php 
hsinsider_get_lead_art();
?>
		<!-- Social Sharing -->
		<?php 
ai_get_template_part('template-parts/module', 'share', array('title' => get_the_title(), 'url' => get_permalink()));
?>
		<!-- School -->
		<?php 
hsinsider_school_link('school', $post->ID);
?>
		<!-- Post Title -->
		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>
		<div class="entry-meta">
			<?php 
hsinsider_get_post_byline();
?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->
Example #3
0
 /**
  * Iterate over an array of arbitrary items, passing the index and item to a
  * given template part.
  *
  * This function will load the given partial and add two variables to its
  * variables array: `index` and `item`. `index` will hold the array key, and
  * `item` will hold the array value.
  *
  * @param array $items The items to iterate over.
  * @param string $slug Template slug. @see ai_get_template_part().
  * @param string $name Template name. @see ai_get_template_part().
  * @param array $variables Variables for the template. Adds 'index' and
  *                         'item' as noted above. @see ai_get_template_part.
  */
 function ai_iterate_template_part($items, $slug, $name = null, $variables = array())
 {
     list($name, $variables) = _ai_fix_template_part_args($name, $variables);
     foreach ((array) $items as $index => $item) {
         ai_get_template_part($slug, $name, array_merge($variables, array('item' => $item, 'index' => $index)));
     }
 }
Example #4
0
<!DOCTYPE html>
<html <?php 
language_attributes();
?>
>
<head>
	<meta charset="<?php 
bloginfo('charset');
?>
">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
">
	<?php 
wp_head();
?>
</head>

<body <?php 
body_class();
?>
>
	<div id="page" class="hfeed site">
		<?php 
ai_get_template_part('template-parts/module', 'header');
?>
		<div id="content" class="site-content">
" <?php 
post_class(array('col-md-8', ' post video'));
?>
>
	<header class="entry-header">
		<div class="iframe-wrapper">
		<?php 
$youtube_id = get_post_meta($post->ID, 'video_info', TRUE)['youtube_id'];
?>
			<iframe src="https://www.youtube.com/embed/<?php 
echo urlencode($youtube_id);
?>
" frameborder="0" allowfullscreen></iframe>
		</div>
		<?php 
ai_get_template_part('template-parts/module', 'share');
?>
		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>
		<div class="entry-meta">
			<?php 
hsinsider_get_post_byline();
?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php 
the_content();
?>
Example #6
0
        }
        if (0 == $post_count % 2) {
            ai_get_template_part('template-parts/module', 'mid-roll', array('post_count' => $post_count));
        }
        $post_count++;
        ?>
				<?php 
    }
    ?>
			</section>

			<?php 
    hsinsider_the_posts_navigation();
    ?>

		<?php 
} else {
    ?>

			<?php 
    ai_get_template_part('template-parts/content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->
	</div><!-- #primary -->
<?php 
get_footer();