forked from noahbuscher/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
32 lines (29 loc) · 805 Bytes
/
page.php
File metadata and controls
32 lines (29 loc) · 805 Bytes
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
<?php get_header(); ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (($img = has_post_thumbnail())): ?>
<section
class="hero hero-slim"
style="background-image: url(<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>);"
>
<div class="hero-inner">
<h1 class="text-centered text-white"><?php echo get_the_title(); ?></h1>
</div>
</section>
<?php else: ?>
<section class="hero hero-slim">
<div class="hero-inner">
<h1 class="text-centered text-white"><?php echo get_the_title(); ?></h1>
</div>
</section>
<?php endif ?>
<section class="container">
<div class="row">
<div class="col-1">
<article>
<?php the_content(); ?>
</article>
</div>
</div>
</section>
<?php endwhile; ?>
<?php get_footer(); ?>