/
page.php
39 lines (37 loc) · 1.29 KB
/
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
<?php get_header(); ?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=333029946865563";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php
$url = catch_post_image(true, $post->ID, $post->post_content);
?>
<section class="page">
<header class="row-table" style="background-image: url(<?php echo $url; ?>);"> <?php wp_reset_postdata(); ?>
<div class="col-cell">
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<?php the_title( '<h1>', '</h1>' ); ?>
</div>
</div>
</div>
</div>
</header>
</section>
<?php while ( have_posts() ) : the_post(); ?>
<section class="single-med">
<article class="container">
<div class="row">
<div class="article-text col-sm-8 col-sm-offset-2">
<?php the_content(); ?>
</div>
</div>
</article>
</section>
<?php endwhile; ?>
<?php get_footer(); ?>