-
Notifications
You must be signed in to change notification settings - Fork 3
/
page-biblio-archive.php
69 lines (58 loc) · 1.39 KB
/
page-biblio-archive.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Template Name: Bibliotech Archive
*
* This template is used to display the
* Archive page of all Bibliotech issues
*
* @package MITLibraries-News
* @since 1.0
*/
get_header();
get_template_part( 'inc/sub-header' );
get_template_part( 'inc/bib-header' );
?>
<div class="clearfix">
<div class="container subscribe">
<div class="biblio-archive">
<?php
if ( have_posts() ) {
while ( have_posts() ) : the_post();
?>
<div class="col-md-12">
<?php the_title( '<h1>', '</h1>' );
if ( get_field( 'subtitle' ) ) { ?>
<h2 class="subtitle"><?php the_field( 'subtitle' ); ?></h2>
<?php } ?>
</div>
<div class="col-xs-12 col-xs-B-6 col-sm-6 col-md-6">
<?php the_content(); ?>
<br><br>
</div>
<div class="col-xs-12 col-xs-B-6 col-sm-6 col-md-6">
<?php if ( has_post_thumbnail() ) :
if ( get_field( 'bibLink' ) ) {
?><a href="<?php the_field( 'bibLink' ); ?>"><?php
}
the_post_thumbnail();
if ( get_field( 'bibLink' ) ) {
?></a><?php
}
if ( get_field( 'bibCaption' ) ) {
?><div class="caption"><?php the_field( 'bibCaption' ); ?></div><?php
}
endif; ?>
</div>
<?php
endwhile;
} else {
?>
<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php
}
?>
</div><!-- news-content -->
</div><!-- container -->
</div><!--close biblio about-->
<div class="container">
<?php get_footer(); ?>