-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
50 lines (39 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
50
<?php get_header() ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$src = wp_get_attachment_image_src( get_post_thumbnail_id(), "full" );
$src = $src[0];
?>
<article>
<div class="parallax-window parallax-page" data-natural-height="100%" data-parallax="scroll" data-image-src="<?php echo $src ?>"></div>
<div class="titleWrapper">
<div class="titlePage">
<h2><?php the_title() ?></h2>
<div class="postInfo">
<time datetime="<?php echo get_the_date( "c"); ?>"><?php the_date() ?></time>
</div>
</div>
</div>
<div class="contentBg">
<div class="container">
<div class="col-md-12 thePost">
<?php the_content() ?>
</div>
<div class="col-md-12">
<div class="authorCredits">
<div class="authorAvatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), 64 ); ?></div>
<div class="authorLink">
<span class="authorName"><?php the_author_link() ?></span>
<span class="bio"><?php echo get_the_author_meta( "description" ); ?></span>
<span><?php echo get_the_author_meta( "twitter" ); ?></span>
</div>
</div>
</div>
<?php comments_template(); ?>
</div>
<div class="clearfix"></div>
</div>
</article>
<?php endwhile; endif; ?>
<?php get_footer() ?>