-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-page.php
55 lines (50 loc) · 1.8 KB
/
content-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
51
52
53
54
55
<?php
/**
* The template used for displaying page content in page.php
*
* @package Clean Blog
*/
?>
<!-- Page Header -->
<?php if ( has_post_thumbnail() ) : ?>
<?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( '1900', '9999' ) ); ?>
<header class="intro-header" style="background-image: url('<?php echo $image_url[0]; ?>')">
<?php else : ?>
<header class="intro-header" style="background-image: url('<?php header_image(); ?>')">
<?php endif; ?>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-heading">
<h1><?php the_title(); ?></h1>
<hr class="small">
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'cleanblog' ),
'after' => '</div>',
) );
edit_post_link( __( 'Edit', 'cleanblog' ), '<span class="edit-link">', '</span>' );
?>
</div>
</div>
<?php if ( comments_open() || get_comments_number() ) : ?>
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div>
<?php comments_template(); ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
<hr>