forked from hakkens/davehakkens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
50 lines (34 loc) · 996 Bytes
/
page.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
<?php
get_header();
get_template_part( 'navbar' );
?>
<div id="topbar">
<?php
if( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>
</div>
<div id="content">
<div class="post">
<?php
if( have_posts() ) : while ( have_posts() ) : the_post();
$post_meta = get_post_meta( $post->ID );
?>
<?php $thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>
<div style="background-image: url('<?php echo $thumbnail_url; ?>');" class="thumbnail">
<div class="meta">
<h1><?php the_title(); ?></h1>
<?php if (isset($post_meta['subtitle'][0])): ?>
<h3><?php echo $post_meta['subtitle'][0]; ?></h3>
<?php endif; ?>
</div>
</div>
<div class="post-content">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
</div>
</div>
<?php get_footer(); ?>
<?php edit_post_link(); ?>