|
@@ -17,99 +17,28 @@ get_header();
|
|
<section id="all-news" class="container">
|
|
<section id="all-news" class="container">
|
|
|
|
|
|
<h2>All News</h2>
|
|
<h2>All News</h2>
|
|
-
|
|
|
|
<hr>
|
|
<hr>
|
|
-
|
|
|
|
<?php if (have_posts()) : ?>
|
|
<?php if (have_posts()) : ?>
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
|
|
+ <div class="parent-grid">
|
|
|
|
|
|
- <div class="grid">
|
|
|
|
- <div class="stub">
|
|
|
|
-
|
|
|
|
- <div class="stub-img-holder">
|
|
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
|
|
|
|
- </div>
|
|
|
|
- <span class="news-date">January 1, 2023</span>
|
|
|
|
-
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>Learning to make a museum more accessible</h3>
|
|
|
|
- </a>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="stub">
|
|
|
|
|
|
+ <div class="stub grid-sub-item">
|
|
<div class="stub-img-holder">
|
|
<div class="stub-img-holder">
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/campus_02.jpg" alt="">
|
|
|
|
|
|
+ <img class="stub-img" src="<?php echo get_the_post_thumbnail_url() ?>" alt="">
|
|
</div>
|
|
</div>
|
|
- <span class="news-date">January 1, 2023</span>
|
|
|
|
|
|
+ <span class="news-date"><?php the_field('news_date'); ?></span>
|
|
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>New blood test to identify infections could reduce global antibiotic overuse</h3>
|
|
|
|
|
|
+ <a href="<?php echo get_permalink(); ?>">
|
|
|
|
+ <h3><?php echo get_the_title(); ?></h3>
|
|
</a>
|
|
</a>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="stub">
|
|
|
|
- <div class="stub-img-holder">
|
|
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/gettybacktoschool.webp" alt="">
|
|
|
|
- </div>
|
|
|
|
- <span class="news-date">January 5, 2023</span>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>New center at addresses the forces shaping early childhood</h3>
|
|
|
|
- </a>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="grid">
|
|
|
|
- <div class="stub">
|
|
|
|
-
|
|
|
|
- <div class="stub-img-holder">
|
|
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
|
|
|
|
- </div>
|
|
|
|
- <span class="news-date">January 1, 2023</span>
|
|
|
|
-
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>Learning to make a museum more accessible</h3>
|
|
|
|
- </a>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="stub">
|
|
|
|
- <div class="stub-img-holder">
|
|
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/campus_02.jpg" alt="">
|
|
|
|
- </div>
|
|
|
|
- <span class="news-date">January 1, 2023</span>
|
|
|
|
-
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>New blood test to identify infections could reduce global antibiotic overuse</h3>
|
|
|
|
- </a>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="stub">
|
|
|
|
- <div class="stub-img-holder">
|
|
|
|
- <img class="stub-img" src="<?php echo (get_template_directory_uri()) ?>/img/gettybacktoschool.webp" alt="">
|
|
|
|
- </div>
|
|
|
|
- <span class="news-date">January 5, 2023</span>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <a href="#">
|
|
|
|
- <h3>New center at addresses the forces shaping early childhood</h3>
|
|
|
|
- </a>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
<?php endwhile; ?>
|
|
<?php endwhile; ?>
|
|
-
|
|
|
|
<?php the_posts_navigation(); ?>
|
|
<?php the_posts_navigation(); ?>
|
|
-
|
|
|
|
<?php
|
|
<?php
|
|
else :
|
|
else :
|
|
-
|
|
|
|
get_template_part('template-parts/content', 'none');
|
|
get_template_part('template-parts/content', 'none');
|
|
-
|
|
|
|
endif;
|
|
endif;
|
|
?>
|
|
?>
|
|
</section>
|
|
</section>
|