Event date format( 'F, j Y' ); ?> starting at and ending at
+
+
+
+
+
+
+
+
diff --git a/web/app/themes/mitlib-news/index.php b/web/app/themes/mitlib-news/index.php
new file mode 100644
index 00000000..535a6b04
--- /dev/null
+++ b/web/app/themes/mitlib-news/index.php
@@ -0,0 +1,165 @@
+ID == $post->ID;
+
+/**
+ * The $post_count variable is used to record how many stories were loaded
+ * on the initial page load (since the number of sticky stories is variable).
+ * This is then passed to the pagination routine to ensure smooth progression
+ * from the first to second pages.
+ */
+$post_count = 0;
+
+get_header();
+
+get_template_part( 'inc/sub-header' );
+
+// This sets up the upper region of the list, for "Featured" posts.
+?>
+
+
+
+
+
+
+
+
+
Featured news
+ 7,
+ 'post__in' => $sticky,
+ 'post_type' => array(
+ 'spotlights',
+ 'bibliotech',
+ 'post',
+ ),
+ 'ignore_sticky_posts' => 1,
+ 'orderby' => 'post_date',
+ 'order' => 'DESC',
+ 'suppress_filters' => false,
+);
+$sticky_query = new WP_Query( $args );
+
+if ( $sticky_query->have_posts() ) :
+ $i = 1; // $i is a counter variable.
+ while ( $sticky_query->have_posts() ) :
+ $sticky_query->the_post();
+
+ if ( 1 == $i ) {
+ // The first card is rendered as a feature.
+ renderMobileCard( $i, $post );
+ renderFeatureCard( $i, $post );
+ } else {
+ // All other cards are rendered normally.
+ renderRegularCard( $i, $post );
+ }
+
+ $i++;
+ $post_count++;
+
+ endwhile;
+
+ // This resets the query.
+ wp_reset_postdata();
+ wp_reset_query();
+
+endif;
+?>
+