-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-flash-papers.php
36 lines (34 loc) · 1.24 KB
/
single-flash-papers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
Template Name: Flash Papers
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<?php get_header(); ?>
<?php get_template_part('template-parts/books-pub-hero'); ?>
<section class="container" style="max-width: 900px;">
<div class="row">
<div class="col-12">
<h1><?php the_title(); ?><span style="float: right;"><?php echo get_the_date(); ?></span></h1>
<?php the_content(); ?>
</div>
<?php while( have_rows('linked_articles') ) : the_row();
$link = get_sub_field('link');
$title = get_sub_field('title');
$body = get_sub_field('body');
$source = get_sub_field('source');
$time = get_sub_field('time');
?>
<a class="col-12 card" href="<?php echo $link; ?>" target="_blank">
<h3><?php echo $title; ?></h3>
<p><?php echo $body; ?></p>
<p class="source"><?php echo $source; ?> / <span><?php echo $time; ?></span></p>
</a>
<?php endwhile; ?>
</div>
</section>
<?php get_template_part('template-parts/contact') ?>
<?php get_template_part('template-parts/cta'); ?>
<?php get_footer(); ?>